From 0d619425d0cde8f92cfd5bd0c32c72c104804510 Mon Sep 17 00:00:00 2001 From: go1dfish Date: Sun, 24 Jun 2018 08:36:40 -0700 Subject: [PATCH] 0.4.0: Active sort, fetch comment tree structures by submission --- dist/notabug.web.js | 18 +++--- lib/accessors.js | 14 ++++- lib/listing.js | 58 +++++++++---------- lib/notabug.js | 2 +- lib/sorts.js | 3 + lib/watch.js | 133 +++++++++++++++++++++++--------------------- package.json | 2 +- src/accessors.js | 6 ++ src/listing.js | 22 +++++--- src/notabug.js | 2 +- src/sorts.js | 1 + src/watch.js | 49 ++++++++++++---- 12 files changed, 186 insertions(+), 124 deletions(-) diff --git a/dist/notabug.web.js b/dist/notabug.web.js index f68ebd8..8dabc2b 100644 --- a/dist/notabug.web.js +++ b/dist/notabug.web.js @@ -1,18 +1,20 @@ -!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("notabug-peer",[],n):"object"==typeof exports?exports["notabug-peer"]=n():t["notabug-peer"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){e(1),t.exports=e(328)},function(t,n,e){(function(t){"use strict";function n(t,n,e){t[n]||Object[r](t,n,{writable:!0,configurable:!0,value:e})}if(e(2),e(323),e(325),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(n,function(){return this}())},function(t,n,e){"use strict";e(3),e(51),e(52),e(53),e(54),e(56),e(59),e(60),e(61),e(62),e(63),e(64),e(65),e(66),e(67),e(69),e(71),e(73),e(75),e(78),e(79),e(80),e(84),e(86),e(88),e(91),e(92),e(93),e(94),e(96),e(97),e(98),e(99),e(100),e(101),e(102),e(104),e(105),e(106),e(108),e(109),e(110),e(112),e(114),e(115),e(116),e(117),e(118),e(119),e(120),e(121),e(122),e(123),e(124),e(125),e(126),e(131),e(132),e(136),e(137),e(138),e(139),e(141),e(142),e(143),e(144),e(145),e(146),e(147),e(148),e(149),e(150),e(151),e(152),e(153),e(154),e(155),e(157),e(158),e(160),e(161),e(167),e(168),e(170),e(171),e(172),e(176),e(177),e(178),e(179),e(180),e(182),e(183),e(184),e(185),e(188),e(190),e(191),e(192),e(194),e(196),e(198),e(199),e(200),e(202),e(203),e(204),e(205),e(216),e(220),e(221),e(223),e(224),e(228),e(229),e(231),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(240),e(241),e(242),e(243),e(244),e(245),e(246),e(247),e(248),e(249),e(251),e(252),e(253),e(254),e(255),e(257),e(258),e(259),e(261),e(262),e(263),e(264),e(265),e(266),e(267),e(268),e(270),e(271),e(273),e(274),e(275),e(276),e(279),e(280),e(282),e(283),e(284),e(285),e(287),e(288),e(289),e(290),e(291),e(292),e(293),e(294),e(295),e(296),e(298),e(299),e(300),e(301),e(302),e(303),e(304),e(305),e(306),e(307),e(308),e(310),e(311),e(312),e(313),e(314),e(315),e(316),e(317),e(318),e(319),e(320),e(321),e(322),t.exports=e(9)},function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(4),o=e(5),u=e(6),s=e(8),c=e(18),a=e(22).KEY,f=e(7),l=e(23),h=e(25),p=e(19),d=e(26),y=e(27),g=e(28),v=e(29),m=e(44),b=e(12),w=e(13),_=e(32),S=e(16),x=e(17),E=e(45),A=e(48),I=e(50),O=e(11),P=e(30),M=I.f,T=O.f,k=A.f,L=i.Symbol,j=i.JSON,R=j&&j.stringify,F="prototype",C=d("_hidden"),B=d("toPrimitive"),U={}.propertyIsEnumerable,N=l("symbol-registry"),D=l("symbols"),Y=l("op-symbols"),V=Object[F],z="function"==typeof L,W=i.QObject,G=!W||!W[F]||!W[F].findChild,X=u&&f(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=M(V,n);r&&delete V[n],T(t,n,e),r&&t!==V&&T(V,n,r)}:T,$=function(t){var n=D[t]=E(L[F]);return n._k=t,n},K=z&&"symbol"==r(L.iterator)?function(t){return"symbol"==("undefined"==typeof t?"undefined":r(t))}:function(t){return t instanceof L},H=function(t,n,e){return t===V&&H(Y,n,e),b(t),n=S(n,!0),b(e),o(D,n)?(e.enumerable?(o(t,C)&&t[C][n]&&(t[C][n]=!1),e=E(e,{enumerable:x(0,!1)})):(o(t,C)||T(t,C,x(1,{})),t[C][n]=!0),X(t,n,e)):T(t,n,e)},q=function(t,n){b(t);for(var e,r=v(n=_(n)),i=0,o=r.length;o>i;)H(t,e=r[i++],n[e]);return t},J=function(t,n){return void 0===n?E(t):q(E(t),n)},Z=function(t){var n=U.call(this,t=S(t,!0));return!(this===V&&o(D,t)&&!o(Y,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,C)&&this[C][t])||n)},Q=function(t,n){if(t=_(t),n=S(n,!0),t!==V||!o(D,n)||o(Y,n)){var e=M(t,n);return!e||!o(D,n)||o(t,C)&&t[C][n]||(e.enumerable=!0),e}},tt=function(t){for(var n,e=k(_(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==C||n==a||r.push(n);return r},nt=function(t){for(var n,e=t===V,r=k(e?Y:_(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(V,n)||i.push(D[n]);return i};z||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function n(e){this===V&&n.call(Y,e),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),X(this,t,x(1,e))};return u&&G&&X(V,t,{configurable:!0,set:n}),$(t)},c(L[F],"toString",function(){return this._k}),I.f=Q,O.f=H,e(49).f=A.f=tt,e(43).f=Z,e(42).f=nt,u&&!e(24)&&c(V,"propertyIsEnumerable",Z,!0),y.f=function(t){return $(d(t))}),s(s.G+s.W+s.F*!z,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var it=P(d.store),ot=0;it.length>ot;)g(it[ot++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=L(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in N)if(N[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!z,"Object",{create:J,defineProperty:H,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:nt}),j&&s(s.S+s.F*(!z||f(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(w(n)||void 0!==t)&&!K(t))return m(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!K(n))return n}),r[1]=n,R.apply(j,r)}}),L[F][B]||e(10)(L[F],B,L[F].valueOf),h(L,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,n){"use strict";var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){"use strict";var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";t.exports=!e(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){"use strict";var r=e(4),i=e(9),o=e(10),u=e(18),s=e(20),c="prototype",a=function t(n,e,a){var f,l,h,p,d=n&t.F,y=n&t.G,g=n&t.S,v=n&t.P,m=n&t.B,b=y?r:g?r[e]||(r[e]={}):(r[e]||{})[c],w=y?i:i[e]||(i[e]={}),_=w[c]||(w[c]={});y&&(a=e);for(f in a)l=!d&&b&&void 0!==b[f],h=(l?b:a)[f],p=m&&l?s(h,r):v&&"function"==typeof h?s(Function.call,h):h,b&&u(b,f,h,n&t.U),w[f]!=h&&o(w,f,p),v&&_[f]!=h&&(_[f]=h)};r.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){"use strict";var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},function(t,n,e){"use strict";var r=e(11),i=e(17);t.exports=e(6)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){"use strict";var r=e(12),i=e(14),o=e(16),u=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){"use strict";var r=e(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===("undefined"==typeof t?"undefined":e(t))?null!==t:"function"==typeof t}},function(t,n,e){"use strict";t.exports=!e(6)&&!e(7)(function(){return 7!=Object.defineProperty(e(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(13),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){"use strict";var r=e(13);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){"use strict";t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";var r=e(4),i=e(10),o=e(5),u=e(19)("src"),s="toString",c=Function[s],a=(""+c).split(s);e(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,s){var c="function"==typeof e;c&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(c&&(o(e,u)||i(e,u,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:s?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,s,function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){"use strict";var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";var r=e(21);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(19)("meta"),o=e(13),u=e(5),s=e(11).f,c=0,a=Object.isExtensible||function(){return!0},f=!e(7)(function(){return a(Object.preventExtensions({}))}),l=function(t){s(t,i,{value:{i:"O"+ ++c,w:{}}})},h=function(t,n){if(!o(t))return"symbol"==("undefined"==typeof t?"undefined":r(t))?t:("string"==typeof t?"S":"P")+t;if(!u(t,i)){if(!a(t))return"F";if(!n)return"E";l(t)}return t[i].i},p=function(t,n){if(!u(t,i)){if(!a(t))return!0;if(!n)return!1;l(t)}return t[i].w},d=function(t){return f&&y.NEED&&a(t)&&!u(t,i)&&l(t),t},y=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:p,onFreeze:d}},function(t,n,e){"use strict";var r=e(9),i=e(4),o="__core-js_shared__",u=i[o]||(i[o]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(24)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){"use strict";t.exports=!1},function(t,n,e){"use strict";var r=e(11).f,i=e(5),o=e(26)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){"use strict";var r=e(23)("wks"),i=e(19),o=e(4).Symbol,u="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};s.store=r},function(t,n,e){"use strict";n.f=e(26)},function(t,n,e){"use strict";var r=e(4),i=e(9),o=e(24),u=e(27),s=e(11).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||s(n,t,{value:u.f(t)})}},function(t,n,e){"use strict";var r=e(30),i=e(42),o=e(43);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,s=e(t),c=o.f,a=0;s.length>a;)c.call(t,u=s[a++])&&n.push(u);return n}},function(t,n,e){"use strict";var r=e(31),i=e(41);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){"use strict";var r=e(5),i=e(32),o=e(36)(!1),u=e(40)("IE_PROTO");t.exports=function(t,n){var e,s=i(t),c=0,a=[];for(e in s)e!=u&&r(s,e)&&a.push(e);for(;n.length>c;)r(s,e=n[c++])&&(~o(a,e)||a.push(e));return a}},function(t,n,e){"use strict";var r=e(33),i=e(35);t.exports=function(t){return r(i(t))}},function(t,n,e){"use strict";var r=e(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){"use strict";var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";var r=e(32),i=e(37),o=e(39);t.exports=function(t){return function(n,e,u){var s,c=r(n),a=i(c.length),f=o(u,a);if(t&&e!=e){for(;a>f;)if(s=c[f++],s!=s)return!0}else for(;a>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){"use strict";var r=e(38),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n){"use strict";var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){"use strict";var r=e(38),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){"use strict";var r=e(23)("keys"),i=e(19);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){"use strict";n.f=Object.getOwnPropertySymbols},function(t,n){"use strict";n.f={}.propertyIsEnumerable},function(t,n,e){"use strict";var r=e(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(12),i=e(46),o=e(41),u=e(40)("IE_PROTO"),s=function(){},c="prototype",a=function(){var t,n=e(15)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(47).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),a=t.F;r--;)delete a[c][o[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(s[c]=r(t),e=new s,s[c]=null,e[u]=t):e=a(),void 0===n?e:i(e,n)}},function(t,n,e){"use strict";var r=e(11),i=e(12),o=e(30);t.exports=e(6)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),s=u.length,c=0;s>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){"use strict";var r=e(4).document;t.exports=r&&r.documentElement},function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(32),o=e(49).f,u={}.toString,s="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==u.call(t)?c(t):o(i(t))}},function(t,n,e){"use strict";var r=e(31),i=e(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){"use strict";var r=e(43),i=e(17),o=e(32),u=e(16),s=e(5),c=e(14),a=Object.getOwnPropertyDescriptor;n.f=e(6)?a:function(t,n){if(t=o(t),n=u(n,!0),c)try{return a(t,n)}catch(t){}if(s(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r=e(8);r(r.S,"Object",{create:e(45)})},function(t,n,e){"use strict";var r=e(8);r(r.S+r.F*!e(6),"Object",{defineProperty:e(11).f})},function(t,n,e){"use strict";var r=e(8);r(r.S+r.F*!e(6),"Object",{defineProperties:e(46)})},function(t,n,e){"use strict";var r=e(32),i=e(50).f;e(55)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){"use strict";var r=e(8),i=e(9),o=e(7);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){"use strict";var r=e(57),i=e(58);e(55)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){"use strict";var r=e(35);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(5),i=e(57),o=e(40)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){"use strict";var r=e(57),i=e(30);e(55)("keys",function(){return function(t){return i(r(t))}})},function(t,n,e){"use strict";e(55)("getOwnPropertyNames",function(){return e(48).f})},function(t,n,e){"use strict";var r=e(13),i=e(22).onFreeze;e(55)("freeze",function(t){return function(n){return t&&r(n)?t(i(n)):n}})},function(t,n,e){"use strict";var r=e(13),i=e(22).onFreeze;e(55)("seal",function(t){return function(n){return t&&r(n)?t(i(n)):n}})},function(t,n,e){"use strict";var r=e(13),i=e(22).onFreeze;e(55)("preventExtensions",function(t){return function(n){return t&&r(n)?t(i(n)):n}})},function(t,n,e){"use strict";var r=e(13);e(55)("isFrozen",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){"use strict";var r=e(13);e(55)("isSealed",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){"use strict";var r=e(13);e(55)("isExtensible",function(t){return function(n){return!!r(n)&&(!t||t(n))}})},function(t,n,e){"use strict";var r=e(8);r(r.S+r.F,"Object",{assign:e(68)})},function(t,n,e){"use strict";var r=e(30),i=e(42),o=e(43),u=e(57),s=e(33),c=Object.assign;t.exports=!c||e(7)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=u(t),c=arguments.length,a=1,f=i.f,l=o.f;c>a;)for(var h,p=s(arguments[a++]),d=f?r(p).concat(f(p)):r(p),y=d.length,g=0;y>g;)l.call(p,h=d[g++])&&(e[h]=p[h]);return e}:c},function(t,n,e){"use strict";var r=e(8);r(r.S,"Object",{is:e(70)})},function(t,n){"use strict";t.exports=Object.is||function(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},function(t,n,e){"use strict";var r=e(8);r(r.S,"Object",{setPrototypeOf:e(72).set})},function(t,n,e){"use strict";var r=e(13),i=e(12),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(20)(Function.call,e(50).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(74),i={};i[e(26)("toStringTag")]="z",i+""!="[object z]"&&e(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){"use strict";var r=e(34),i=e(26)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(s=r(n))&&"function"==typeof n.callee?"Arguments":s}},function(t,n,e){"use strict";var r=e(8);r(r.P,"Function",{bind:e(76)})},function(t,n,e){"use strict";var r=e(21),i=e(13),o=e(77),u=[].slice,s={},c=function(t,n,e){if(!(n in s)){for(var r=[],i=0;i>>0||(u.test(e)?16:10))}:r},function(t,n,e){"use strict";var r=e(8),i=e(35),o=e(7),u=e(83),s="["+u+"]",c="​…",a=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),l=function(t,n,e){var i={},s=o(function(){return!!u[t]()||c[t]()!=c}),a=i[t]=s?n(h):u[t];e&&(i[e]=a),r(r.P+r.F*s,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(f,"")),t};t.exports=l},function(t,n){"use strict";t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){"use strict";var r=e(8),i=e(85);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,n,e){"use strict";var r=e(4).parseFloat,i=e(82).trim;t.exports=1/r(e(83)+"-0")!==-(1/0)?function(t){var n=i(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){"use strict";var r=e(4),i=e(5),o=e(34),u=e(87),s=e(16),c=e(7),a=e(49).f,f=e(50).f,l=e(11).f,h=e(82).trim,p="Number",d=r[p],y=d,g=d.prototype,v=o(e(45)(g))==p,m="trim"in String.prototype,b=function(t){var n=s(t,!1);if("string"==typeof n&&n.length>2){n=m?n.trim():h(n,3);var e,r,i,o=n.charCodeAt(0);if(43===o||45===o){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+n}for(var u,c=n.slice(2),a=0,f=c.length;ai)return NaN;return parseInt(c,r)}}return+n};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof d&&(v?c(function(){g.valueOf.call(e)}):o(e)!=p)?u(new y(b(n)),e,d):b(n)};for(var w,_=e(6)?a(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;_.length>S;S++)i(y,w=_[S])&&!i(d,w)&&l(d,w,f(y,w));d.prototype=g,g.constructor=d,e(18)(r,p,d)}},function(t,n,e){"use strict";var r=e(13),i=e(72).set;t.exports=function(t,n,e){var o,u=n.constructor;return u!==e&&"function"==typeof u&&(o=u.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},function(t,n,e){"use strict";var r=e(8),i=e(38),o=e(89),u=e(90),s=1..toFixed,c=Math.floor,a=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",h=function(t,n){for(var e=-1,r=n;++e<6;)r+=t*a[e],a[e]=r%1e7,r=c(r/1e7)},p=function(t){for(var n=6,e=0;--n>=0;)e+=a[n],a[n]=c(e/t),e=e%t*1e7},d=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var e=String(a[t]);n=""===n?e:n+u.call(l,7-e.length)+e}return n},y=function t(n,e,r){return 0===e?r:e%2===1?t(n,e-1,r*n):t(n*n,e/2,r)},g=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(7)(function(){s.call({})})),"Number",{toFixed:function(t){var n,e,r,s,c=o(this,f),a=i(t),v="",m=l;if(a<0||a>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(n=g(c*y(2,69,1))-69,e=n<0?c*y(2,-n,1):c/y(2,n,1),e*=4503599627370496,n=52-n,n>0){for(h(0,e),r=a;r>=7;)h(1e7,0),r-=7;for(h(y(10,r,1),0),r=n-1;r>=23;)p(1<<23),r-=23;p(1<0?(s=m.length,m=v+(s<=a?"0."+u.call(l,a-s)+m:m.slice(0,s-a)+"."+m.slice(s-a))):m=v+m,m}})},function(t,n,e){"use strict";var r=e(34);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){"use strict";var r=e(38),i=e(35);t.exports=function(t){var n=String(i(this)),e="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(e+=n);return e}},function(t,n,e){"use strict";var r=e(8),i=e(7),o=e(89),u=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){"use strict";var r=e(8),i=e(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Number",{isInteger:e(95)})},function(t,n,e){"use strict";var r=e(13),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,n,e){"use strict";var r=e(8);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){"use strict";var r=e(8),i=e(95),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){"use strict";var r=e(8),i=e(85);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,e){"use strict";var r=e(8),i=e(81);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,e){"use strict";var r=e(8),i=e(103),o=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n){"use strict";t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){"use strict";function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=e(8),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,n,e){"use strict";var r=e(8),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){"use strict";var r=e(8),i=e(107);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n){"use strict";t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){"use strict";var r=e(8),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,e){"use strict";var r=e(8),i=e(111);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n){"use strict";var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{fround:e(113)})},function(t,n,e){"use strict";var r=e(107),i=Math.pow,o=i(2,-52),u=i(2,-23),s=i(2,127)*(2-u),c=i(2,-126),a=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var n,e,i=Math.abs(t),f=r(t);return is||e!=e?f*(1/0):f*e)}},function(t,n,e){"use strict";var r=e(8),i=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,o=0,u=0,s=arguments.length,c=0;u0?(r=e/c,o+=r*r):o+=e;return c===1/0?1/0:c*Math.sqrt(o)}})},function(t,n,e){"use strict";var r=e(8),i=Math.imul;r(r.S+r.F*e(7)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,n){var e=65535,r=+t,i=+n,o=e&r,u=e&i;return 0|o*u+((e&r>>>16)*u+o*(e&i>>>16)<<16>>>0)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{log1p:e(103)})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{sign:e(107)})},function(t,n,e){"use strict";var r=e(8),i=e(111),o=Math.exp;r(r.S+r.F*e(7)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,e){"use strict";var r=e(8),i=e(111),o=Math.exp;r(r.S,"Math",{tanh:function(t){var n=i(t=+t),e=i(-t);return n==1/0?1:e==1/0?-1:(n-e)/(o(t)+o(-t))}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){"use strict";var r=e(8),i=e(39),o=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?o(n):o(((n-=65536)>>10)+55296,n%1024+56320))}return e.join("")}})},function(t,n,e){"use strict";var r=e(8),i=e(32),o=e(37);r(r.S,"String",{raw:function(t){for(var n=i(t.raw),e=o(n.length),r=arguments.length,u=[],s=0;e>s;)u.push(String(n[s++])),s=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(38),i=e(35);t.exports=function(t){return function(n,e){var o,u,s=String(i(n)),c=r(e),a=s.length;return c<0||c>=a?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===a||(u=s.charCodeAt(c+1))<56320||u>57343?t?s.charAt(c):o:t?s.slice(c,c+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){"use strict";var r=e(24),i=e(8),o=e(18),u=e(10),s=e(129),c=e(130),a=e(25),f=e(58),l=e(26)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",y="values",g=function(){return this};t.exports=function(t,n,e,v,m,b,w){c(e,n,v);var _,S,x,E=function(t){if(!h&&t in P)return P[t];switch(t){case d:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},A=n+" Iterator",I=m==y,O=!1,P=t.prototype,M=P[l]||P[p]||m&&P[m],T=M||E(m),k=m?I?E("entries"):T:void 0,L="Array"==n?P.entries||M:M;if(L&&(x=f(L.call(new t)),x!==Object.prototype&&x.next&&(a(x,A,!0),r||"function"==typeof x[l]||u(x,l,g))),I&&M&&M.name!==y&&(O=!0,T=function(){return M.call(this)}),r&&!w||!h&&!O&&P[l]||u(P,l,T),s[n]=T,s[A]=g,m)if(_={values:I?T:E(y),keys:b?T:E(d),entries:k},w)for(S in _)S in P||o(P,S,_[S]);else i(i.P+i.F*(h||O),n,_);return _}},function(t,n){"use strict";t.exports={}},function(t,n,e){"use strict";var r=e(45),i=e(17),o=e(25),u={};e(10)(u,e(26)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){"use strict";var r=e(8),i=e(127)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,e){"use strict";var r=e(8),i=e(37),o=e(133),u="endsWith",s=""[u];r(r.P+r.F*e(135)(u),"String",{endsWith:function(t){var n=o(this,t,u),e=arguments.length>1?arguments[1]:void 0,r=i(n.length),c=void 0===e?r:Math.min(i(e),r),a=String(t);return s?s.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,e){"use strict";var r=e(134),i=e(35);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){"use strict";var r=e(13),i=e(34),o=e(26)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){"use strict";var r=e(26)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){"use strict";var r=e(8),i=e(133),o="includes";r(r.P+r.F*e(135)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0); -}})},function(t,n,e){"use strict";var r=e(8);r(r.P,"String",{repeat:e(90)})},function(t,n,e){"use strict";var r=e(8),i=e(37),o=e(133),u="startsWith",s=""[u];r(r.P+r.F*e(135)(u),"String",{startsWith:function(t){var n=o(this,t,u),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return s?s.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){"use strict";e(140)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,e){"use strict";var r=e(8),i=e(7),o=e(35),u=/"/g,s=function(t,n,e,r){var i=String(o(t)),s="<"+n;return""!==e&&(s+=" "+e+'="'+String(r).replace(u,""")+'"'),s+">"+i+""};t.exports=function(t,n){var e={};e[t]=n(s),r(r.P+r.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",e)}},function(t,n,e){"use strict";e(140)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,e){"use strict";e(140)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,e){"use strict";e(140)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,e){"use strict";e(140)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,e){"use strict";e(140)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,e){"use strict";e(140)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,e){"use strict";e(140)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,e){"use strict";e(140)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,e){"use strict";e(140)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,e){"use strict";e(140)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,e){"use strict";e(140)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,e){"use strict";e(140)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){"use strict";var r=e(8),i=e(57),o=e(16);r(r.P+r.F*e(7)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),e=o(n);return"number"!=typeof e||isFinite(e)?n.toISOString():null}})},function(t,n,e){"use strict";var r=e(8),i=e(156);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,e){"use strict";var r=e(7),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:o},function(t,n,e){"use strict";var r=Date.prototype,i="Invalid Date",o="toString",u=r[o],s=r.getTime;new Date(NaN)+""!=i&&e(18)(r,o,function(){var t=s.call(this);return t===t?u.call(this):i})},function(t,n,e){"use strict";var r=e(26)("toPrimitive"),i=Date.prototype;r in i||e(10)(i,r,e(159))},function(t,n,e){"use strict";var r=e(12),i=e(16),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=o)}},function(t,n,e){"use strict";var r=e(8);r(r.S,"Array",{isArray:e(44)})},function(t,n,e){"use strict";var r=e(20),i=e(8),o=e(57),u=e(162),s=e(163),c=e(37),a=e(164),f=e(165);i(i.S+i.F*!e(166)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,g=void 0!==y,v=0,m=f(h);if(g&&(y=r(y,d>2?arguments[2]:void 0,2)),void 0==m||p==Array&&s(m))for(n=c(h.length),e=new p(n);n>v;v++)a(e,v,g?y(h[v],v):h[v]);else for(l=m.call(h),e=new p;!(i=l.next()).done;v++)a(e,v,g?u(l,y,[i.value,v],!0):i.value);return e.length=v,e}})},function(t,n,e){"use strict";var r=e(12);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(129),i=e(26)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){"use strict";var r=e(11),i=e(17);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){"use strict";var r=e(74),i=e(26)("iterator"),o=e(129);t.exports=e(9).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){"use strict";var r=e(26)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(8),i=e(164);r(r.S+r.F*e(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)i(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){"use strict";var r=e(8),i=e(32),o=[].join;r(r.P+r.F*(e(33)!=Object||!e(169)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,e){"use strict";var r=e(7);t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){"use strict";var r=e(8),i=e(47),o=e(34),u=e(39),s=e(37),c=[].slice;r(r.P+r.F*e(7)(function(){i&&c.call(i)}),"Array",{slice:function(t,n){var e=s(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return c.call(this,t,n);for(var i=u(t,e),a=u(n,e),f=s(a-i),l=new Array(f),h=0;h_;_++)if((h||_ in m)&&(y=m[_],g=b(y,_,v),t))if(e)S[_]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:S.push(y)}else if(f)return!1;return l?-1:a||f?f:S}}},function(t,n,e){"use strict";var r=e(175);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){"use strict";var r=e(13),i=e(44),o=e(26)("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(8),i=e(173)(1);r(r.P+r.F*!e(169)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(8),i=e(173)(2);r(r.P+r.F*!e(169)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(8),i=e(173)(3);r(r.P+r.F*!e(169)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(8),i=e(173)(4);r(r.P+r.F*!e(169)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(8),i=e(181);r(r.P+r.F*!e(169)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,e){"use strict";var r=e(21),i=e(57),o=e(33),u=e(37);t.exports=function(t,n,e,s,c){r(n);var a=i(t),f=o(a),l=u(a.length),h=c?l-1:0,p=c?-1:1;if(e<2)for(;;){if(h in f){s=f[h],h+=p;break}if(h+=p,c?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:l>h;h+=p)h in f&&(s=n(s,f[h],h,a));return s}},function(t,n,e){"use strict";var r=e(8),i=e(181);r(r.P+r.F*!e(169)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,e){"use strict";var r=e(8),i=e(36)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!e(169)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(8),i=e(32),o=e(38),u=e(37),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!e(169)(s)),"Array",{lastIndexOf:function(t){if(c)return s.apply(this,arguments)||0;var n=i(this),e=u(n.length),r=e-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){"use strict";var r=e(8);r(r.P,"Array",{copyWithin:e(186)}),e(187)("copyWithin")},function(t,n,e){"use strict";var r=e(57),i=e(39),o=e(37);t.exports=[].copyWithin||function(t,n){var e=r(this),u=o(e.length),s=i(t,u),c=i(n,u),a=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===a?u:i(a,u))-c,u-s),l=1;for(c0;)c in e?e[s]=e[c]:delete e[s],s+=l,c+=l;return e}},function(t,n,e){"use strict";var r=e(26)("unscopables"),i=Array.prototype;void 0==i[r]&&e(10)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){"use strict";var r=e(8);r(r.P,"Array",{fill:e(189)}),e(187)("fill")},function(t,n,e){"use strict";var r=e(57),i=e(39),o=e(37);t.exports=function(t){for(var n=r(this),e=o(n.length),u=arguments.length,s=i(u>1?arguments[1]:void 0,e),c=u>2?arguments[2]:void 0,a=void 0===c?e:i(c,e);a>s;)n[s++]=t;return n}},function(t,n,e){"use strict";var r=e(8),i=e(173)(5),o="find",u=!0;o in[]&&Array(1)[o](function(){u=!1}),r(r.P+r.F*u,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(187)(o)},function(t,n,e){"use strict";var r=e(8),i=e(173)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),r(r.P+r.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(187)(o)},function(t,n,e){"use strict";e(193)("Array")},function(t,n,e){"use strict";var r=e(4),i=e(11),o=e(6),u=e(26)("species");t.exports=function(t){var n=r[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,e){"use strict";var r=e(187),i=e(195),o=e(129),u=e(32);t.exports=e(128)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n){"use strict";t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(4),i=e(87),o=e(11).f,u=e(49).f,s=e(134),c=e(197),a=r.RegExp,f=a,l=a.prototype,h=/a/g,p=/a/g,d=new a(h)!==h;if(e(6)&&(!d||e(7)(function(){return p[e(26)("match")]=!1,a(h)!=h||a(p)==p||"/a/i"!=a(h,"i")}))){a=function(t,n){var e=this instanceof a,r=s(t),o=void 0===n;return!e&&r&&t.constructor===a&&o?t:i(d?new f(r&&!o?t.source:t,n):f((r=t instanceof a)?t.source:t,r&&o?c.call(t):n),e?this:l,a)};for(var y=(function(t){t in a||o(a,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})}),g=u(f),v=0;g.length>v;)y(g[v++]);l.constructor=a,a.prototype=l,e(18)(r,"RegExp",a)}e(193)("RegExp")},function(t,n,e){"use strict";var r=e(12);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";e(199);var r=e(12),i=e(197),o=e(6),u="toString",s=/./[u],c=function(t){e(18)(RegExp.prototype,u,t,!0)};e(7)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):s.name!=u&&c(function(){return s.call(this)})},function(t,n,e){"use strict";e(6)&&"g"!=/./g.flags&&e(11).f(RegExp.prototype,"flags",{configurable:!0,get:e(197)})},function(t,n,e){"use strict";e(201)("match",1,function(t,n,e){return[function(e){var r=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n,e){"use strict";var r=e(10),i=e(18),o=e(7),u=e(35),s=e(26);t.exports=function(t,n,e){var c=s(t),a=e(u,c,""[t]),f=a[0],l=a[1];o(function(){var n={};return n[c]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,f),r(RegExp.prototype,c,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n,e){"use strict";e(201)("replace",2,function(t,n,e){return[function(r,i){var o=t(this),u=void 0==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},e]})},function(t,n,e){"use strict";e(201)("search",1,function(t,n,e){return[function(e){var r=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n,e){"use strict";e(201)("split",2,function(t,n,r){var i=e(134),o=r,u=[].push,s="split",c="length",a="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[c]||2!="ab"[s](/(?:ab)*/)[c]||4!="."[s](/(.?)(.?)/)[c]||"."[s](/()()/)[c]>1||""[s](/.?/)[c]){var f=void 0===/()??/.exec("")[1];r=function(t,n){var e=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(e,t,n);var r,s,l,h,p,d=[],y=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,v=void 0===n?4294967295:n>>>0,m=new RegExp(t.source,y+"g");for(f||(r=new RegExp("^"+m.source+"$(?!\\s)",y));(s=m.exec(e))&&(l=s.index+s[0][c],!(l>g&&(d.push(e.slice(g,s.index)),!f&&s[c]>1&&s[0].replace(r,function(){for(p=1;p1&&s.index=v)));)m[a]===s.index&&m[a]++;return g===e[c]?!h&&m.test("")||d.push(""):d.push(e.slice(g)),d[c]>v?d.slice(0,v):d}}else"0"[s](void 0,0)[c]&&(r=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(e,i){var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},function(t,n,e){"use strict";var r,i,o,u,s=e(24),c=e(4),a=e(20),f=e(74),l=e(8),h=e(13),p=e(21),d=e(206),y=e(207),g=e(208),v=e(209).set,m=e(210)(),b=e(211),w=e(212),_=e(213),S=e(214),x="Promise",E=c.TypeError,A=c.process,I=A&&A.versions,O=I&&I.v8||"",P=c[x],M="process"==f(A),T=function(){},k=i=b.f,L=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[e(26)("species")]=function(t){t(T,T)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof n&&0!==O.indexOf("6.6")&&_.indexOf("Chrome/66")===-1}catch(t){}}(),j=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},R=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u,s=i?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{s?(i||(2==t._h&&B(t),t._h=1),s===!0?e=r:(f&&f.enter(),e=s(r),f&&(f.exit(),u=!0)),e===n.promise?a(E("Promise-chain cycle")):(o=j(e))?o.call(e,c,a):c(e)):a(r)}catch(t){f&&!u&&f.exit(),a(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&F(t)})}},F=function(t){v.call(c,function(){var n,e,r,i=t._v,o=C(t);if(o&&(n=w(function(){M?A.emit("unhandledRejection",i,t):(e=c.onunhandledrejection)?e({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=M||C(t)?2:1),t._a=void 0,o&&n.e)throw n.v})},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){v.call(c,function(){var n;M?A.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},U=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),R(n,!0))},N=function t(n){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===n)throw E("Promise can't be resolved itself");(e=j(n))?m(function(){var i={_w:r,_d:!1};try{e.call(n,a(t,i,1),a(U,i,1))}catch(t){U.call(i,t)}}):(r._v=n,r._s=1,R(r,!1))}catch(t){U.call({_w:r,_d:!1},t)}}};L||(P=function(t){d(this,P,x,"_h"),p(t),r.call(this);try{t(a(N,this,1),a(U,this,1))}catch(t){U.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(215)(P.prototype,{then:function(t,n){var e=k(g(this,P));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=M?A.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&R(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=a(N,t,1),this.reject=a(U,t,1)},b.f=k=function(t){return t===P||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!L,{Promise:P}),e(25)(P,x),e(193)(x),u=e(9)[x],l(l.S+l.F*!L,x,{reject:function(t){var n=k(this),e=n.reject;return e(t),n.promise}}),l(l.S+l.F*(s||!L),x,{resolve:function(t){return S(s&&this===u?P:this,t)}}),l(l.S+l.F*!(L&&e(166)(function(t){P.all(t).catch(T)})),x,{all:function(t){var n=this,e=k(n),r=e.resolve,i=e.reject,o=w(function(){var e=[],o=0,u=1;y(t,!1,function(t){var s=o++,c=!1;e.push(void 0),u++,n.resolve(t).then(function(t){c||(c=!0,e[s]=t,--u||r(e))},i)}),--u||r(e)});return o.e&&i(o.v),e.promise},race:function(t){var n=this,e=k(n),r=e.reject,i=w(function(){y(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i.e&&r(i.v),e.promise}})},function(t,n){"use strict";t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){"use strict";var r=e(20),i=e(162),o=e(163),u=e(12),s=e(37),c=e(165),a={},f={},l=t.exports=function(t,n,e,l,h){var p,d,y,g,v=h?function(){return t}:c(t),m=r(e,l,n?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(p=s(t.length);p>b;b++)if(g=n?m(u(d=t[b])[0],d[1]):m(t[b]),g===a||g===f)return g}else for(y=v.call(t);!(d=y.next()).done;)if(g=i(y,m,d.value,n),g===a||g===f)return g};l.BREAK=a,l.RETURN=f},function(t,n,e){"use strict";var r=e(12),i=e(21),o=e(26)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){"use strict";var r,i,o,u=e(20),s=e(77),c=e(47),a=e(15),f=e(4),l=f.process,h=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,y=f.Dispatch,g=0,v={},m="onreadystatechange",b=function(){var t=+this;if(v.hasOwnProperty(t)){var n=v[t];delete v[t],n()}},w=function(t){b.call(t.data)};h&&p||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),n)},r(g),g},p=function(t){delete v[t]},"process"==e(34)(l)?r=function(t){l.nextTick(u(b,t,1))}:y&&y.now?r=function(t){y.now(u(b,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=w,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r=m in a("script")?function(t){c.appendChild(a("script"))[m]=function(){c.removeChild(this),b.call(t)}}:function(t){setTimeout(u(b,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,e){"use strict";var r=e(4),i=e(209).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,s=r.Promise,c="process"==e(34)(u);t.exports=function(){var t,n,e,a=function(){var r,i;for(c&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(c)e=function(){u.nextTick(a)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);e=function(){f.then(a)}}else e=function(){i.call(r,a)};else{var l=!0,h=document.createTextNode("");new o(a).observe(h,{characterData:!0}),e=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";function r(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=i(n),this.reject=i(e)}var i=e(21);t.exports.f=function(t){return new r(t)}},function(t,n){"use strict";t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){"use strict";var r=e(4),i=r.navigator;t.exports=i&&i.userAgent||""},function(t,n,e){"use strict";var r=e(12),i=e(13),o=e(211);t.exports=function(t,n){if(r(t),i(n)&&n.constructor===t)return n;var e=o.f(t),u=e.resolve;return u(n),e.promise}},function(t,n,e){"use strict";var r=e(18);t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},function(t,n,e){"use strict";var r=e(217),i=e(218),o="Map";t.exports=e(219)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=r.getEntry(i(this,o),t);return n&&n.v},set:function(t,n){return r.def(i(this,o),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(11).f,i=e(45),o=e(215),u=e(20),s=e(206),c=e(207),a=e(128),f=e(195),l=e(193),h=e(6),p=e(22).fastKey,d=e(218),y=h?"_s":"size",g=function(t,n){var e,r=p(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,a){var f=t(function(t,r){s(t,f,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[y]=0,void 0!=r&&c(r,e,t[a],t)});return o(f.prototype,{clear:function(){for(var t=d(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var e=d(this,n),r=g(e,t);if(r){var i=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),e._f==r&&(e._f=i),e._l==r&&(e._l=o),e[y]--}return!!r},forEach:function(t){d(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(d(this,n),t)}}),h&&r(f.prototype,"size",{get:function(){return d(this,n)[y]}}),f},def:function(t,n,e){var r,i,o=g(t,n);return o?o.v=e:(t._l=o={i:i=p(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,n,e){a(t,n,function(t,e){this._t=d(t,n),this._k=e,this._l=void 0},function(){for(var t=this,n=t._k,e=t._l;e&&e.r;)e=e.p;return t._t&&(t._l=e=e?e.n:t._t._f)?"keys"==n?f(0,e.k):"values"==n?f(0,e.v):f(0,[e.k,e.v]):(t._t=void 0,f(1))},e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(13);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){"use strict";var r=e(4),i=e(8),o=e(18),u=e(215),s=e(22),c=e(207),a=e(206),f=e(13),l=e(7),h=e(166),p=e(25),d=e(87);t.exports=function(t,n,e,y,g,v){var m=r[t],b=m,w=g?"set":"add",_=b&&b.prototype,S={},x=function(t){var n=_[t];o(_,t,"delete"==t?function(t){return!(v&&!f(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!f(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!f(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof b&&(v||_.forEach&&!l(function(){(new b).entries().next()}))){var E=new b,A=E[w](v?{}:-0,1)!=E,I=l(function(){E.has(1)}),O=h(function(t){new b(t)}),P=!v&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});O||(b=n(function(n,e){a(n,b,t);var r=d(new m,n,b);return void 0!=e&&c(e,g,r[w],r),r}),b.prototype=_,_.constructor=b),(I||P)&&(x("delete"),x("has"),g&&x("get")),(P||A)&&x(w),v&&_.clear&&delete _.clear}else b=y.getConstructor(n,t,g,w),u(b.prototype,e),s.NEED=!0;return p(b,t),S[t]=b,i(i.G+i.W+i.F*(b!=m),S),v||y.setStrong(b,t,g),b}},function(t,n,e){"use strict";var r=e(217),i=e(218),o="Set";t.exports=e(219)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,o),t=0===t?0:t,t)}},r)},function(t,n,e){"use strict";var r,i=e(173)(0),o=e(18),u=e(22),s=e(68),c=e(222),a=e(13),f=e(7),l=e(218),h="WeakMap",p=u.getWeak,d=Object.isExtensible,y=c.ufstore,g={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(a(t)){var n=p(t);return n===!0?y(l(this,h)).get(t):n?n[this._i]:void 0}},set:function(t,n){return c.def(l(this,h),t,n)}},b=t.exports=e(219)(h,v,m,c,!0,!0);f(function(){return 7!=(new b).set((Object.freeze||Object)(g),7).get(g)})&&(r=c.getConstructor(v,h),s(r.prototype,m),u.NEED=!0,i(["delete","has","get","set"],function(t){var n=b.prototype,e=n[t];o(n,t,function(n,i){if(a(n)&&!d(n)){this._f||(this._f=new r);var o=this._f[t](n,i);return"set"==t?this:o}return e.call(this,n,i)})}))},function(t,n,e){"use strict";var r=e(215),i=e(22).getWeak,o=e(12),u=e(13),s=e(206),c=e(207),a=e(173),f=e(5),l=e(218),h=a(5),p=a(6),d=0,y=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},v=function(t,n){return h(t.a,function(t){return t[0]===n})};g.prototype={get:function(t){var n=v(this,t);if(n)return n[1]},has:function(t){return!!v(this,t)},set:function(t,n){var e=v(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,o){var a=t(function(t,r){s(t,a,n,"_i"),t._t=n,t._i=d++,t._l=void 0,void 0!=r&&c(r,e,t[o],t)});return r(a.prototype,{delete:function(t){if(!u(t))return!1;var e=i(t);return e===!0?y(l(this,n)).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=i(t);return e===!0?y(l(this,n)).has(t):e&&f(e,this._i)}}),a},def:function(t,n,e){var r=i(o(n),!0);return r===!0?y(t).set(n,e):r[t._i]=e,t},ufstore:y}},function(t,n,e){"use strict";var r=e(222),i=e(218),o="WeakSet";e(219)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,o),t,!0)}},r,!1,!0)},function(t,n,e){"use strict";var r=e(8),i=e(225),o=e(226),u=e(12),s=e(39),c=e(37),a=e(13),f=e(4).ArrayBuffer,l=e(208),h=o.ArrayBuffer,p=o.DataView,d=i.ABV&&f.isView,y=h.prototype.slice,g=i.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,v,{isView:function(t){return d&&d(t)||a(t)&&g in t}}),r(r.P+r.U+r.F*e(7)(function(){return!new h(2).slice(1,void 0).byteLength}),v,{slice:function(t,n){if(void 0!==y&&void 0===n)return y.call(u(this),t);for(var e=u(this).byteLength,r=s(t,e),i=s(void 0===n?e:n,e),o=new(l(this,h))(c(i-r)),a=new p(this),f=new p(o),d=0;r>1,f=23===n?Y(2,-24)-Y(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=D(t),t!=t||t===U?(i=t!=t?1:0,r=c):(r=V(z(t)/W),t*(o=Y(2,-r))<1&&(r--,o*=2),t+=r+a>=1?f/o:f*Y(2,1-a),t*o>=2&&(r++,o/=2),r+a>=c?(i=0,r=c):r+a>=1?(i=(t*o-1)*Y(2,n),r+=a):(i=t*Y(2,a-1)*Y(2,n),r=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(r=r<0;u[l++]=255&r,r/=256,s-=8);return u[--l]|=128*h,u}function i(t,n,e){var r,i=8*e-n-1,o=(1<>1,s=i-7,c=e-1,a=t[c--],f=127&a;for(a>>=7;s>0;f=256*f+t[c],c--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=n;s>0;r=256*r+t[c],c--,s-=8);if(0===f)f=1-u;else{if(f===o)return r?NaN:a?-U:U;r+=Y(2,n),f-=u}return(a?-1:1)*r*Y(2,f-n)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function u(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function a(t){return r(t,52,8)}function f(t){return r(t,23,4)}function l(t,n,e){I(t[k],n,{get:function(){return this[e]}})}function h(t,n,e,r){var i=+e,o=E(i);if(o+n>t[H])throw B(j);var u=t[K]._b,s=o+t[q],c=u.slice(s,s+n);return r?c:c.reverse()}function p(t,n,e,r,i,o){var u=+e,s=E(u);if(s+n>t[H])throw B(j);for(var c=t[K]._b,a=s+t[q],f=r(+i),l=0;ltt;)(J=Q[tt++])in R||m(R,J,N[J]);g||(Z.constructor=R)}var nt=new F(new R(2)),et=F[k].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||b(F[k],{setInt8:function(t,n){et.call(this,t,n<<24>>24)},setUint8:function(t,n){et.call(this,t,n<<24>>24)}},!0)}else R=function(t){_(this,R,M);var n=E(t);this._b=O.call(new Array(n),0),this[H]=n},F=function(t,n,e){_(this,F,T),_(t,R,T);var r=t[H],i=S(n);if(i<0||i>r)throw B("Wrong offset!");if(e=void 0===e?r-i:x(e),i+e>r)throw B(L);this[K]=t,this[q]=i,this[H]=e},y&&(l(R,X,"_l"),l(F,G,"_b"),l(F,X,"_l"),l(F,$,"_o")),b(F[k],{getInt8:function(t){return h(this,1,t)[0]<<24>>24},getUint8:function(t){return h(this,1,t)[0]},getInt16:function(t){var n=h(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=h(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return o(h(this,4,t,arguments[1]))},getUint32:function(t){return o(h(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(h(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(h(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){p(this,1,t,u,n)},setUint8:function(t,n){p(this,1,t,u,n)},setInt16:function(t,n){p(this,2,t,s,n,arguments[2])},setUint16:function(t,n){p(this,2,t,s,n,arguments[2])},setInt32:function(t,n){p(this,4,t,c,n,arguments[2])},setUint32:function(t,n){p(this,4,t,c,n,arguments[2])},setFloat32:function(t,n){p(this,4,t,f,n,arguments[2])},setFloat64:function(t,n){p(this,8,t,a,n,arguments[2])}});P(R,M),P(F,T),m(F[k],v.VIEW,!0),n[M]=R,n[T]=F},function(t,n,e){"use strict";var r=e(38),i=e(37);t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=i(n);if(n!==e)throw RangeError("Wrong length!");return e}},function(t,n,e){"use strict";var r=e(8);r(r.G+r.W+r.F*!e(225).ABV,{DataView:e(226).DataView})},function(t,n,e){"use strict";e(230)("Int8",1,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};if(e(6)){var i=e(24),o=e(4),u=e(7),s=e(8),c=e(225),a=e(226),f=e(20),l=e(206),h=e(17),p=e(10),d=e(215),y=e(38),g=e(37),v=e(227),m=e(39),b=e(16),w=e(5),_=e(74),S=e(13),x=e(57),E=e(163),A=e(45),I=e(58),O=e(49).f,P=e(165),M=e(19),T=e(26),k=e(173),L=e(36),j=e(208),R=e(194),F=e(129),C=e(166),B=e(193),U=e(189),N=e(186),D=e(11),Y=e(50),V=D.f,z=Y.f,W=o.RangeError,G=o.TypeError,X=o.Uint8Array,$="ArrayBuffer",K="Shared"+$,H="BYTES_PER_ELEMENT",q="prototype",J=Array[q],Z=a.ArrayBuffer,Q=a.DataView,tt=k(0),nt=k(2),et=k(3),rt=k(4),it=k(5),ot=k(6),ut=L(!0),st=L(!1),ct=R.values,at=R.keys,ft=R.entries,lt=J.lastIndexOf,ht=J.reduce,pt=J.reduceRight,dt=J.join,yt=J.sort,gt=J.slice,vt=J.toString,mt=J.toLocaleString,bt=T("iterator"),wt=T("toStringTag"),_t=M("typed_constructor"),St=M("def_constructor"),xt=c.CONSTR,Et=c.TYPED,At=c.VIEW,It="Wrong length!",Ot=k(1,function(t,n){return Lt(j(t,t[St]),n)}),Pt=u(function(){return 1===new X(new Uint16Array([1]).buffer)[0]}),Mt=!!X&&!!X[q].set&&u(function(){new X(1).set({})}),Tt=function(t,n){ -var e=y(t);if(e<0||e%n)throw W("Wrong offset!");return e},kt=function(t){if(S(t)&&Et in t)return t;throw G(t+" is not a typed array!")},Lt=function(t,n){if(!(S(t)&&_t in t))throw G("It is not a typed array constructor!");return new t(n)},jt=function(t,n){return Rt(j(t,t[St]),n)},Rt=function(t,n){for(var e=0,r=n.length,i=Lt(t,r);r>e;)i[e]=n[e++];return i},Ft=function(t,n,e){V(t,n,{get:function(){return this._d[e]}})},Ct=function(t){var n,e,r,i,o,u,s=x(t),c=arguments.length,a=c>1?arguments[1]:void 0,l=void 0!==a,h=P(s);if(void 0!=h&&!E(h)){for(u=h.call(s),r=[],n=0;!(o=u.next()).done;n++)r.push(o.value);s=r}for(l&&c>2&&(a=f(a,arguments[2],2)),n=0,e=g(s.length),i=Lt(this,e);e>n;n++)i[n]=l?a(s[n],n):s[n];return i},Bt=function(){for(var t=0,n=arguments.length,e=Lt(this,n);n>t;)e[t]=arguments[t++];return e},Ut=!!X&&u(function(){mt.call(new X(1))}),Nt=function(){return mt.apply(Ut?gt.call(kt(this)):kt(this),arguments)},Dt={copyWithin:function(t,n){return N.call(kt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return rt(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return U.apply(kt(this),arguments)},filter:function(t){return jt(this,nt(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ut(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return dt.apply(kt(this),arguments)},lastIndexOf:function(t){return lt.apply(kt(this),arguments)},map:function(t){return Ot(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(kt(this),arguments)},reduceRight:function(t){return pt.apply(kt(this),arguments)},reverse:function(){for(var t,n=this,e=kt(n).length,r=Math.floor(e/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return yt.call(kt(this),t)},subarray:function(t,n){var e=kt(this),r=e.length,i=m(t,r);return new(j(e,e[St]))(e.buffer,e.byteOffset+i*e.BYTES_PER_ELEMENT,g((void 0===n?r:m(n,r))-i))}},Yt=function(t,n){return jt(this,gt.call(kt(this),t,n))},Vt=function(t){kt(this);var n=Tt(arguments[1],1),e=this.length,r=x(t),i=g(r.length),o=0;if(i+n>e)throw W(It);for(;o255?255:255&i),o.v[h](e*n+o.o,i,Pt)},M=function(t,n){V(t,n,{get:function(){return E(this,n)},set:function(t){return P(this,n,t)},enumerable:!0})};b?(d=e(function(t,e,r,i){l(t,d,a,"_d");var o,u,s,c,f=0,h=0;if(S(e)){if(!(e instanceof Z||(c=_(e))==$||c==K))return Et in e?Rt(d,e):Ct.call(d,e);o=e,h=Tt(r,n);var y=e.byteLength;if(void 0===i){if(y%n)throw W(It);if(u=y-h,u<0)throw W(It)}else if(u=g(i)*n,u+h>y)throw W(It);s=u/n}else s=v(e),u=s*n,o=new Z(u);for(p(t,"_d",{b:o,o:h,l:u,e:s,v:new Q(o)});f=e.length)return{value:void 0,done:!0};while(!((t=e[n._i++])in n._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,e){"use strict";function r(t,n){var e,s,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(e=i.f(t,n))?u(e,"value")?e.value:void 0!==e.get?e.get.call(f):void 0:c(s=o(t))?r(s,n,f):void 0}var i=e(50),o=e(58),u=e(5),s=e(8),c=e(13),a=e(12);s(s.S,"Reflect",{get:r})},function(t,n,e){"use strict";var r=e(50),i=e(8),o=e(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(o(t),n)}})},function(t,n,e){"use strict";var r=e(8),i=e(58),o=e(12);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){"use strict";var r=e(8),i=e(12),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Reflect",{ownKeys:e(250)})},function(t,n,e){"use strict";var r=e(49),i=e(42),o=e(12),u=e(4).Reflect;t.exports=u&&u.ownKeys||function(t){var n=r.f(o(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){"use strict";var r=e(8),i=e(12),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,e){"use strict";function r(t,n,e){var c,h,p=arguments.length<4?t:arguments[3],d=o.f(f(t),n);if(!d){if(l(h=u(t)))return r(h,n,e,p);d=a(0)}if(s(d,"value")){if(d.writable===!1||!l(p))return!1;if(c=o.f(p,n)){if(c.get||c.set||c.writable===!1)return!1;c.value=e,i.f(p,n,c)}else i.f(p,n,a(0,e));return!0}return void 0!==d.set&&(d.set.call(p,e),!0)}var i=e(11),o=e(50),u=e(58),s=e(5),c=e(8),a=e(17),f=e(12),l=e(13);c(c.S,"Reflect",{set:r})},function(t,n,e){"use strict";var r=e(8),i=e(72);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){"use strict";var r=e(8),i=e(36)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(187)("includes")},function(t,n,e){"use strict";var r=e(8),i=e(256),o=e(57),u=e(37),s=e(21),c=e(174);r(r.P,"Array",{flatMap:function(t){var n,e,r=o(this);return s(t),n=u(r.length),e=c(r,0),i(e,r,r,n,0,1,t,arguments[1]),e}}),e(187)("flatMap")},function(t,n,e){"use strict";function r(t,n,e,a,f,l,h,p){for(var d,y,g=f,v=0,m=!!h&&s(h,p,3);v0)g=r(t,n,d,u(d.length),g,l-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=d}g++}v++}return g}var i=e(44),o=e(13),u=e(37),s=e(20),c=e(26)("isConcatSpreadable");t.exports=r},function(t,n,e){"use strict";var r=e(8),i=e(256),o=e(57),u=e(37),s=e(38),c=e(174);r(r.P,"Array",{flatten:function(){var t=arguments[0],n=o(this),e=u(n.length),r=c(n,0);return i(r,n,n,e,0,void 0===t?1:s(t)),r}}),e(187)("flatten")},function(t,n,e){"use strict";var r=e(8),i=e(127)(!0);r(r.P,"String",{at:function(t){return i(this,t)}})},function(t,n,e){"use strict";var r=e(8),i=e(260),o=e(213);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){"use strict";var r=e(37),i=e(90),o=e(35);t.exports=function(t,n,e,u){var s=String(o(t)),c=s.length,a=void 0===e?" ":String(e),f=r(n);if(f<=c||""==a)return s;var l=f-c,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+s:s+h}},function(t,n,e){"use strict";var r=e(8),i=e(260),o=e(213);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){"use strict";e(82)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,e){"use strict";e(82)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,e){"use strict";var r=e(8),i=e(35),o=e(37),u=e(134),s=e(197),c=RegExp.prototype,a=function(t,n){this._r=t,this._s=n};e(130)(a,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(i(this),!u(t))throw TypeError(t+" is not a regexp!");var n=String(this),e="flags"in c?String(t.flags):s.call(t),r=new RegExp(t.source,~e.indexOf("g")?e:"g"+e);return r.lastIndex=o(t.lastIndex),new a(r,n)}})},function(t,n,e){"use strict";e(28)("asyncIterator")},function(t,n,e){"use strict";e(28)("observable")},function(t,n,e){"use strict";var r=e(8),i=e(250),o=e(32),u=e(50),s=e(164);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=o(t),c=u.f,a=i(r),f={},l=0;a.length>l;)e=c(r,n=a[l++]),void 0!==e&&s(f,n,e);return f}})},function(t,n,e){"use strict";var r=e(8),i=e(269)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){"use strict";var r=e(30),i=e(32),o=e(43).f;t.exports=function(t){return function(n){for(var e,u=i(n),s=r(u),c=s.length,a=0,f=[];c>a;)o.call(u,e=s[a++])&&f.push(t?[e,u[e]]:u[e]);return f}}},function(t,n,e){"use strict";var r=e(8),i=e(269)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){"use strict";var r=e(8),i=e(57),o=e(21),u=e(11);e(6)&&r(r.P+e(272),"Object",{__defineGetter__:function(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},function(t,n,e){"use strict";t.exports=e(24)||!e(7)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e(4)[t]})},function(t,n,e){"use strict";var r=e(8),i=e(57),o=e(21),u=e(11);e(6)&&r(r.P+e(272),"Object",{__defineSetter__:function(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},function(t,n,e){"use strict";var r=e(8),i=e(57),o=e(16),u=e(58),s=e(50).f;e(6)&&r(r.P+e(272),"Object",{__lookupGetter__:function(t){var n,e=i(this),r=o(t,!0);do if(n=s(e,r))return n.get;while(e=u(e))}})},function(t,n,e){"use strict";var r=e(8),i=e(57),o=e(16),u=e(58),s=e(50).f;e(6)&&r(r.P+e(272),"Object",{__lookupSetter__:function(t){var n,e=i(this),r=o(t,!0);do if(n=s(e,r))return n.set;while(e=u(e))}})},function(t,n,e){"use strict";var r=e(8);r(r.P+r.R,"Map",{toJSON:e(277)("Map")})},function(t,n,e){"use strict";var r=e(74),i=e(278);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,n,e){"use strict";var r=e(207);t.exports=function(t,n){var e=[];return r(t,!1,e.push,e,n),e}},function(t,n,e){"use strict";var r=e(8);r(r.P+r.R,"Set",{toJSON:e(277)("Set")})},function(t,n,e){"use strict";e(281)("Map")},function(t,n,e){"use strict";var r=e(8);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},function(t,n,e){"use strict";e(281)("Set")},function(t,n,e){"use strict";e(281)("WeakMap")},function(t,n,e){"use strict";e(281)("WeakSet")},function(t,n,e){"use strict";e(286)("Map")},function(t,n,e){"use strict";var r=e(8),i=e(21),o=e(20),u=e(207);t.exports=function(t){r(r.S,t,{from:function(t){var n,e,r,s,c=arguments[1];return i(this),n=void 0!==c,n&&i(c),void 0==t?new this:(e=[],n?(r=0,s=o(c,arguments[2],2),u(t,!1,function(t){e.push(s(t,r++))})):u(t,!1,e.push,e),new this(e))}})}},function(t,n,e){"use strict";e(286)("Set")},function(t,n,e){"use strict";e(286)("WeakMap")},function(t,n,e){"use strict";e(286)("WeakSet")},function(t,n,e){"use strict";var r=e(8);r(r.G,{global:e(4)})},function(t,n,e){"use strict";var r=e(8);r(r.S,"System",{global:e(4)})},function(t,n,e){"use strict";var r=e(8),i=e(34);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{clamp:function(t,n,e){return Math.min(e,Math.max(n,t))}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,n,e){"use strict";var r=e(8),i=180/Math.PI;r(r.S,"Math",{degrees:function(t){return t*i}})},function(t,n,e){"use strict";var r=e(8),i=e(297),o=e(113);r(r.S,"Math",{fscale:function(t,n,e,r,u){return o(i(t,n,e,r,u))}})},function(t,n){"use strict";t.exports=Math.scale||function(t,n,e,r,i){return 0===arguments.length||t!=t||n!=n||e!=e||r!=r||i!=i?NaN:t===1/0||t===-(1/0)?t:(t-n)*(i-r)/(e-n)+r}},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{iaddh:function(t,n,e,r){var i=t>>>0,o=n>>>0,u=e>>>0;return o+(r>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{isubh:function(t,n,e,r){var i=t>>>0,o=n>>>0,u=e>>>0;return o-(r>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{imulh:function(t,n){var e=65535,r=+t,i=+n,o=r&e,u=i&e,s=r>>16,c=i>>16,a=(s*u>>>0)+(o*u>>>16);return s*c+(a>>16)+((o*c>>>0)+(a&e)>>16)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,n,e){"use strict";var r=e(8),i=Math.PI/180;r(r.S,"Math",{radians:function(t){return t*i}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{scale:e(297)})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{umulh:function(t,n){var e=65535,r=+t,i=+n,o=r&e,u=i&e,s=r>>>16,c=i>>>16,a=(s*u>>>0)+(o*u>>>16);return s*c+(a>>>16)+((o*c>>>0)+(a&e)>>>16)}})},function(t,n,e){"use strict";var r=e(8);r(r.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,n,e){"use strict";var r=e(8),i=e(9),o=e(4),u=e(208),s=e(214);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),e="function"==typeof t;return this.then(e?function(e){return s(n,t()).then(function(){return e})}:t,e?function(e){return s(n,t()).then(function(){throw e})}:t)}})},function(t,n,e){"use strict";var r=e(8),i=e(211),o=e(212);r(r.S,"Promise",{try:function(t){var n=i.f(this),e=o(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=r.key,u=r.set;r.exp({defineMetadata:function(t,n,e,r){u(t,n,i(e),o(r))}})},function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(216),o=e(8),u=e(23)("metadata"),s=u.store||(u.store=new(e(221))),c=function(t,n,e){var r=s.get(t);if(!r){if(!e)return;s.set(t,r=new i)}var o=r.get(n);if(!o){if(!e)return;r.set(n,o=new i)}return o},a=function(t,n,e){var r=c(n,e,!1);return void 0!==r&&r.has(t)},f=function(t,n,e){var r=c(n,e,!1);return void 0===r?void 0:r.get(t)},l=function(t,n,e,r){c(e,r,!0).set(t,n)},h=function(t,n){var e=c(t,n,!1),r=[];return e&&e.forEach(function(t,n){r.push(n)}),r},p=function(t){return void 0===t||"symbol"==("undefined"==typeof t?"undefined":r(t))?t:String(t)},d=function(t){o(o.S,"Reflect",t)};t.exports={store:s,map:c,has:a,get:f,set:l,keys:h,key:p,exp:d}},function(t,n,e){"use strict";var r=e(309),i=e(12),o=r.key,u=r.map,s=r.store;r.exp({deleteMetadata:function(t,n){var e=arguments.length<3?void 0:o(arguments[2]),r=u(i(n),e,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var c=s.get(n);return c.delete(e),!!c.size||s.delete(n)}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=e(58),u=r.has,s=r.get,c=r.key,a=function t(n,e,r){var i=u(n,e,r);if(i)return s(n,e,r);var c=o(e);return null!==c?t(n,c,r):void 0};r.exp({getMetadata:function(t,n){return a(t,i(n),arguments.length<3?void 0:c(arguments[2]))}})},function(t,n,e){"use strict";var r=e(220),i=e(278),o=e(309),u=e(12),s=e(58),c=o.keys,a=o.key,f=function t(n,e){var o=c(n,e),u=s(n);if(null===u)return o;var a=t(u,e);return a.length?o.length?i(new r(o.concat(a))):a:o};o.exp({getMetadataKeys:function(t){return f(u(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=r.get,u=r.key;r.exp({getOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=r.keys,u=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:u(arguments[1]))}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=e(58),u=r.has,s=r.key,c=function t(n,e,r){var i=u(n,e,r);if(i)return!0;var s=o(e);return null!==s&&t(n,s,r)};r.exp({hasMetadata:function(t,n){return c(t,i(n),arguments.length<3?void 0:s(arguments[2]))}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=r.has,u=r.key;r.exp({hasOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,e){"use strict";var r=e(309),i=e(12),o=e(21),u=r.key,s=r.set;r.exp({metadata:function(t,n){return function(e,r){s(t,n,(void 0!==r?i:o)(e),u(r))}}})},function(t,n,e){"use strict";var r=e(8),i=e(210)(),o=e(4).process,u="process"==e(34)(o);r(r.G,{asap:function(t){var n=u&&o.domain;i(n?n.bind(t):t)}})},function(t,n,e){"use strict";var r=e(8),i=e(4),o=e(9),u=e(210)(),s=e(26)("observable"),c=e(21),a=e(12),f=e(206),l=e(215),h=e(10),p=e(207),d=p.RETURN,y=function(t){return null==t?void 0:c(t)},g=function(t){var n=t._c;n&&(t._c=void 0,n())},v=function(t){return void 0===t._o},m=function(t){v(t)||(t._o=void 0,g(t))},b=function(t,n){a(t),this._c=void 0,this._o=t,t=new w(this);try{var e=n(t),r=e;null!=e&&("function"==typeof e.unsubscribe?e=function(){r.unsubscribe()}:c(e),this._c=e)}catch(n){return void t.error(n)}v(this)&&g(this)};b.prototype=l({},{unsubscribe:function(){m(this)}});var w=function(t){this._s=t};w.prototype=l({},{next:function(t){var n=this._s;if(!v(n)){var e=n._o;try{var r=y(e.next);if(r)return r.call(e,t)}catch(t){try{m(n)}finally{throw t}}}},error:function(t){var n=this._s;if(v(n))throw t;var e=n._o;n._o=void 0;try{var r=y(e.error);if(!r)throw t;t=r.call(e,t)}catch(t){try{g(n)}finally{throw t}}return g(n),t},complete:function(t){var n=this._s;if(!v(n)){var e=n._o;n._o=void 0;try{var r=y(e.complete);t=r?r.call(e,t):void 0}catch(t){try{g(n)}finally{throw t}}return g(n),t}}});var _=function(t){f(this,_,"Observable","_f")._f=c(t)};l(_.prototype,{subscribe:function(t){return new b(t,this._f)},forEach:function(t){var n=this;return new(o.Promise||i.Promise)(function(e,r){c(t);var i=n.subscribe({next:function(n){try{return t(n)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e})})}}),l(_,{from:function(t){var n="function"==typeof this?this:_,e=y(a(t)[s]);if(e){var r=a(e.call(t));return r.constructor===n?r:new n(function(t){return r.subscribe(t)})}return new n(function(n){var e=!1;return u(function(){if(!e){try{if(p(t,!1,function(t){if(n.next(t),e)return d})===d)return}catch(t){if(e)throw t;return void n.error(t)}n.complete()}}),function(){e=!0}})},of:function(){for(var t=0,n=arguments.length,e=new Array(n);t2,i=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,e)}};i(i.G+i.B+i.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,n,e){"use strict";var r=e(8),i=e(209);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,e){"use strict";for(var r=e(194),i=e(30),o=e(18),u=e(4),s=e(10),c=e(129),a=e(26),f=a("iterator"),l=a("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),y=0;y=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=b.call(i,"catchLoc"),s=b.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),p(e),T}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;p(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:y(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=v),T}}}("object"===("undefined"==typeof t?"undefined":e(t))?t:"object"===("undefined"==typeof window?"undefined":e(window))?window:"object"===("undefined"==typeof self?"undefined":e(self))?self:void 0)}).call(n,function(){return this}(),e(324)(t))},function(t,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,n,e){"use strict";e(326),t.exports=e(9).RegExp.escape},function(t,n,e){"use strict";var r=e(8),i=e(327)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,n){"use strict";t.exports=function(t,n){var e=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,e)}}},function(t,n,e){"use strict";function r(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function i(t){return t&&t.__esModule?t:{default:t}}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}Object.defineProperty(n,"__esModule",{value:!0}),n.pow=void 0;var s=Object.assign||function(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n={},e=t||{},r=e.peers,i=void 0===r?O:r,c=e.disableValidation,a=e.blocked,f=void 0===a?[]:a,p=e.localStorage,y=void 0!==p&&p,v=e.persist,b=void 0!==v&&v,_=u(e,["peers","disableValidation","blocked","localStorage","persist"]),x=f.reduce(function(t,n){return s({},t,o({},n,!0))},{}),A={config:t,schema:w,isBlocked:function(t){return!!x[t]},getState:function(){return n},setState:function(t){return n=s({},n,t)}},P=s({peers:i,localStorage:y},_);b?(P.localStorage=!1,P.radisk=!0,P.until=P.until||6e4):P.radisk=!1,t.scoreThingsForPeers&&(t.countVotes=!0),A.sorts=(0,h.sorts)(A),A.souls=Object.keys(m).reduce(function(t,n){return(0,l.default)(n,m[n](A),t)},{}),Gun.on("opt",function(t){t.on("in",function(t){var n=this;Promise.all(Object.keys(t).map(function(n){return"put"===n&&t.mesh&&!c?Promise.resolve(A.schema.types(n,t[n],t,null,t,A)):Promise.resolve(t)})).then(function(){n.to.next(t),A.sendMsgNotifications(t)}).catch(function(n){return console.error("Message rejected",n.stack||n,t)})})}),A.gun=Gun(P),!b&&y&&A.gun.on("localStorage:error",function(t){return t.retry({})});var M=s({},d,E,I,g,S);return Object.keys(M).map(function(t){return A[t]=M[t](A)}),t.scoreThingsForPeers&&A.scoreThingsForPeers(),f.forEach(function(t){return A.gun.get(t).put({url:null,body:"[removed]"})}),A};n.default=P},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.and=n.allowFields=n.valFromSoul=n.soulMatchesKey=n.isSoul=n.valIs=n.keyIs=n.TOPIC_NAME_MAX=n.SUBMISSION_BODY_MAX=n.SUBMISSION_TITLE_MAX=n.COMMENT_BODY_MAX=n.DEFAULT_POW_COMPLEXITY=n.PREFIX=void 0;var i=e(330),o=r(i),u=e(335),s=r(u),c=(n.PREFIX="nab",n.DEFAULT_POW_COMPLEXITY=22,n.COMMENT_BODY_MAX=1e4,n.SUBMISSION_TITLE_MAX=300,n.SUBMISSION_BODY_MAX=4e4,n.TOPIC_NAME_MAX=42,n.keyIs=function(t){return function(n){return n===t}});n.valIs=function(t){return function(n,e){return t===e}},n.isSoul=function(t){return function(n,e,r,i,u,s){var c=s.souls[t].isMatch((0,o.default)("#",e)||n);if(c){var a=s.schema[t](n,e,r,i,u,s);return c&&a}}},n.soulMatchesKey=function(t,n){return(0,o.default)("#",n)===t},n.valFromSoul=function(t,n){return function(e,r,i,u,s,c){return r===c.souls[t].isMatch((0,o.default)("#",i)||u)[n]}},n.allowFields=function(){for(var t=arguments.length,n=Array(t),e=0;e>>0}function i(t,n,e){return t[e]=n>>>24&255,t[e+1]=n>>>16&255,t[e+2]=n>>>8&255,t[e+3]=255&n,e+4}var o=e(339);n.EMPTY_BUFFER=[],n.allocBuffer=function(t){for(var n=new Array(t),e=0;e>>0,o=(4294967295&n)>>>0;return e=i(t,r,e),i(t,o,e)},n.readTimestamp=function(t,n){return 4294967296*r(t,n)+r(t,n+4)},n.hash=function(t,n){var e=o();return n&&e.update(n),e.update(t),e.digest()},n.checkComplexity=e(345).checkComplexity},function(t,n,e){"use strict";function r(){return this instanceof r?(v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,void(this.W=new Array(64))):new r}var i=e(340),o=e(343),u=e(344),s=e(341),c=i.sum32,a=i.sum32_4,f=i.sum32_5,l=u.ch32,h=u.maj32,p=u.s0_256,d=u.s1_256,y=u.g0_256,g=u.g1_256,v=o.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];i.inherits(r,v),t.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,n){for(var e=this.W,r=0;r<16;r++)e[r]=t[n+r];for(;r>8,u=255&i;o?e.push(o,u):e.push(u)}else for(r=0;r>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return n>>>0}function u(t,n){for(var e="",r=0;r>>0}return o}function f(t,n){for(var e=new Array(4*t.length),r=0,i=0;r>>24,e[i+1]=o>>>16&255,e[i+2]=o>>>8&255,e[i+3]=255&o):(e[i+3]=o>>>24,e[i+2]=o>>>16&255,e[i+1]=o>>>8&255,e[i]=255&o)}return e}function l(t,n){return t>>>n|t<<32-n}function h(t,n){return t<>>32-n}function p(t,n){return t+n>>>0}function d(t,n,e){return t+n+e>>>0}function y(t,n,e,r){return t+n+e+r>>>0}function g(t,n,e,r,i){return t+n+e+r+i>>>0}function v(t,n,e,r){var i=t[n],o=t[n+1],u=r+o>>>0,s=(u>>0,t[n+1]=u}function m(t,n,e,r){var i=n+r>>>0,o=(i>>0}function b(t,n,e,r){var i=n+r;return i>>>0}function w(t,n,e,r,i,o,u,s){var c=0,a=n;a=a+r>>>0,c+=a>>0,c+=a>>0,c+=a>>0}function _(t,n,e,r,i,o,u,s){var c=n+r+o+s;return c>>>0}function S(t,n,e,r,i,o,u,s,c,a){var f=0,l=n;l=l+r>>>0,f+=l>>0,f+=l>>0,f+=l>>0,f+=l>>0}function x(t,n,e,r,i,o,u,s,c,a){var f=n+r+o+s+a;return f>>>0}function E(t,n,e){var r=n<<32-e|t>>>e;return r>>>0}function A(t,n,e){var r=t<<32-e|n>>>e;return r>>>0}function I(t,n,e){return t>>>e}function O(t,n,e){var r=t<<32-e|n>>>e;return r>>>0}var P=e(341),M=e(342);n.inherits=M,n.toArray=r,n.toHex=i,n.htonl=o,n.toHex32=u,n.zero2=s,n.zero8=c,n.join32=a,n.split32=f,n.rotr32=l,n.rotl32=h,n.sum32=p,n.sum32_3=d,n.sum32_4=y,n.sum32_5=g,n.sum64=v,n.sum64_hi=m,n.sum64_lo=b,n.sum64_4_hi=w,n.sum64_4_lo=_,n.sum64_5_hi=S,n.sum64_5_lo=x,n.rotr64_hi=E,n.rotr64_lo=A,n.shr64_hi=I,n.shr64_lo=O},function(t,n){"use strict";function e(t,n){if(!t)throw new Error(n||"Assertion failed")}t.exports=e,e.equal=function(t,n,e){if(t!=n)throw new Error(e||"Assertion failed: "+t+" != "+n)}},function(t,n){"use strict";"function"==typeof Object.create?t.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,n){t.super_=n;var e=function(){};e.prototype=n.prototype,t.prototype=new e,t.prototype.constructor=t}},function(t,n,e){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var i=e(340),o=e(341);n.BlockHash=r,r.prototype.update=function(t,n){if(t=i.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var e=t.length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-e,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3}function f(t){return h(t,17)^h(t,19)^t>>>10}var l=e(340),h=l.rotr32;n.ft_1=r,n.ch32=i,n.maj32=o,n.p32=u,n.s0_256=s,n.s1_256=c,n.g0_256=a,n.g1_256=f},function(t,n,e){"use strict";var r=e(341);n.checkComplexity=function(t,n){r(n<8*t.length,"Complexity is too high");var e,i=0;for(e=0;e<=n-8;e+=8,i++)if(0!==t[i])return!1;var o=255<<8+e-n;return 0===(t[i]&o)}},function(t,n){"use strict";/*! +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("notabug-peer",[],n):"object"==typeof exports?exports["notabug-peer"]=n():t["notabug-peer"]=n()}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){r(1),t.exports=r(328)},function(t,n,r){(function(t){"use strict";function n(t,n,r){t[n]||Object[e](t,n,{writable:!0,configurable:!0,value:r})}if(r(2),r(323),r(325),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var e="defineProperty";n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(n,function(){return this}())},function(t,n,r){"use strict";r(3),r(51),r(52),r(53),r(54),r(56),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(69),r(71),r(73),r(75),r(78),r(79),r(80),r(84),r(86),r(88),r(91),r(92),r(93),r(94),r(96),r(97),r(98),r(99),r(100),r(101),r(102),r(104),r(105),r(106),r(108),r(109),r(110),r(112),r(114),r(115),r(116),r(117),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(131),r(132),r(136),r(137),r(138),r(139),r(141),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(157),r(158),r(160),r(161),r(167),r(168),r(170),r(171),r(172),r(176),r(177),r(178),r(179),r(180),r(182),r(183),r(184),r(185),r(188),r(190),r(191),r(192),r(194),r(196),r(198),r(199),r(200),r(202),r(203),r(204),r(205),r(216),r(220),r(221),r(223),r(224),r(228),r(229),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(251),r(252),r(253),r(254),r(255),r(257),r(258),r(259),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(270),r(271),r(273),r(274),r(275),r(276),r(279),r(280),r(282),r(283),r(284),r(285),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),t.exports=r(9)},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(4),o=r(5),u=r(6),s=r(8),c=r(18),a=r(22).KEY,f=r(7),l=r(23),h=r(25),p=r(19),v=r(26),y=r(27),d=r(28),g=r(29),m=r(44),x=r(12),b=r(13),w=r(32),S=r(16),_=r(17),E=r(45),A=r(48),O=r(50),I=r(11),P=r(30),M=O.f,j=I.f,k=A.f,T=i.Symbol,L=i.JSON,R=L&&L.stringify,F="prototype",C=v("_hidden"),N=v("toPrimitive"),B={}.propertyIsEnumerable,U=l("symbol-registry"),D=l("symbols"),Y=l("op-symbols"),V=Object[F],W="function"==typeof T,z=i.QObject,q=!z||!z[F]||!z[F].findChild,G=u&&f(function(){return 7!=E(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=M(V,n);e&&delete V[n],j(t,n,r),e&&t!==V&&j(V,n,e)}:j,X=function(t){var n=D[t]=E(T[F]);return n._k=t,n},$=W&&"symbol"==e(T.iterator)?function(t){return"symbol"==("undefined"==typeof t?"undefined":e(t))}:function(t){return t instanceof T},K=function(t,n,r){return t===V&&K(Y,n,r),x(t),n=S(n,!0),x(r),o(D,n)?(r.enumerable?(o(t,C)&&t[C][n]&&(t[C][n]=!1),r=E(r,{enumerable:_(0,!1)})):(o(t,C)||j(t,C,_(1,{})),t[C][n]=!0),G(t,n,r)):j(t,n,r)},H=function(t,n){x(t);for(var r,e=g(n=w(n)),i=0,o=e.length;o>i;)K(t,r=e[i++],n[r]);return t},J=function(t,n){return void 0===n?E(t):H(E(t),n)},Z=function(t){var n=B.call(this,t=S(t,!0));return!(this===V&&o(D,t)&&!o(Y,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,C)&&this[C][t])||n)},Q=function(t,n){if(t=w(t),n=S(n,!0),t!==V||!o(D,n)||o(Y,n)){var r=M(t,n);return!r||!o(D,n)||o(t,C)&&t[C][n]||(r.enumerable=!0),r}},tt=function(t){for(var n,r=k(w(t)),e=[],i=0;r.length>i;)o(D,n=r[i++])||n==C||n==a||e.push(n);return e},nt=function(t){for(var n,r=t===V,e=k(r?Y:w(t)),i=[],u=0;e.length>u;)!o(D,n=e[u++])||r&&!o(V,n)||i.push(D[n]);return i};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function n(r){this===V&&n.call(Y,r),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),G(this,t,_(1,r))};return u&&q&&G(V,t,{configurable:!0,set:n}),X(t)},c(T[F],"toString",function(){return this._k}),O.f=Q,I.f=K,r(49).f=A.f=tt,r(43).f=Z,r(42).f=nt,u&&!r(24)&&c(V,"propertyIsEnumerable",Z,!0),y.f=function(t){return X(v(t))}),s(s.G+s.W+s.F*!W,{Symbol:T});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;rt.length>et;)v(rt[et++]);for(var it=P(v.store),ot=0;it.length>ot;)d(it[ot++]);s(s.S+s.F*!W,"Symbol",{for:function(t){return o(U,t+="")?U[t]:U[t]=T(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var n in U)if(U[n]===t)return n},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!W,"Object",{create:J,defineProperty:K,defineProperties:H,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:nt}),L&&s(s.S+s.F*(!W||f(function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(b(n)||void 0!==t)&&!$(t))return m(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!$(n))return n}),e[1]=n,R.apply(L,e)}}),T[F][N]||r(10)(T[F],N,T[F].valueOf),h(T,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,n){"use strict";var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){"use strict";var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){"use strict";t.exports=!r(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){"use strict";var e=r(4),i=r(9),o=r(10),u=r(18),s=r(20),c="prototype",a=function t(n,r,a){var f,l,h,p,v=n&t.F,y=n&t.G,d=n&t.S,g=n&t.P,m=n&t.B,x=y?e:d?e[r]||(e[r]={}):(e[r]||{})[c],b=y?i:i[r]||(i[r]={}),w=b[c]||(b[c]={});y&&(a=r);for(f in a)l=!v&&x&&void 0!==x[f],h=(l?x:a)[f],p=m&&l?s(h,e):g&&"function"==typeof h?s(Function.call,h):h,x&&u(x,f,h,n&t.U),b[f]!=h&&o(b,f,p),g&&w[f]!=h&&(w[f]=h)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){"use strict";var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,n,r){"use strict";var e=r(11),i=r(17);t.exports=r(6)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){"use strict";var e=r(12),i=r(14),o=r(16),u=Object.defineProperty;n.f=r(6)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){"use strict";var e=r(13);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===("undefined"==typeof t?"undefined":r(t))?null!==t:"function"==typeof t}},function(t,n,r){"use strict";t.exports=!r(6)&&!r(7)(function(){return 7!=Object.defineProperty(r(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";var e=r(13),i=r(4).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){"use strict";var e=r(13);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){"use strict";t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){"use strict";var e=r(4),i=r(10),o=r(5),u=r(19)("src"),s="toString",c=Function[s],a=(""+c).split(s);r(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,s){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(c&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:s?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,s,function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){"use strict";var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){"use strict";var e=r(21);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(19)("meta"),o=r(13),u=r(5),s=r(11).f,c=0,a=Object.isExtensible||function(){return!0},f=!r(7)(function(){return a(Object.preventExtensions({}))}),l=function(t){s(t,i,{value:{i:"O"+ ++c,w:{}}})},h=function(t,n){if(!o(t))return"symbol"==("undefined"==typeof t?"undefined":e(t))?t:("string"==typeof t?"S":"P")+t;if(!u(t,i)){if(!a(t))return"F";if(!n)return"E";l(t)}return t[i].i},p=function(t,n){if(!u(t,i)){if(!a(t))return!0;if(!n)return!1;l(t)}return t[i].w},v=function(t){return f&&y.NEED&&a(t)&&!u(t,i)&&l(t),t},y=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:p,onFreeze:v}},function(t,n,r){"use strict";var e=r(9),i=r(4),o="__core-js_shared__",u=i[o]||(i[o]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(24)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){"use strict";t.exports=!1},function(t,n,r){"use strict";var e=r(11).f,i=r(5),o=r(26)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){"use strict";var e=r(23)("wks"),i=r(19),o=r(4).Symbol,u="function"==typeof o,s=t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))};s.store=e},function(t,n,r){"use strict";n.f=r(26)},function(t,n,r){"use strict";var e=r(4),i=r(9),o=r(24),u=r(27),s=r(11).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||s(n,t,{value:u.f(t)})}},function(t,n,r){"use strict";var e=r(30),i=r(42),o=r(43);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,s=r(t),c=o.f,a=0;s.length>a;)c.call(t,u=s[a++])&&n.push(u);return n}},function(t,n,r){"use strict";var e=r(31),i=r(41);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){"use strict";var e=r(5),i=r(32),o=r(36)(!1),u=r(40)("IE_PROTO");t.exports=function(t,n){var r,s=i(t),c=0,a=[];for(r in s)r!=u&&e(s,r)&&a.push(r);for(;n.length>c;)e(s,r=n[c++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){"use strict";var e=r(33),i=r(35);t.exports=function(t){return e(i(t))}},function(t,n,r){"use strict";var e=r(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){"use strict";var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";var e=r(32),i=r(37),o=r(39);t.exports=function(t){return function(n,r,u){var s,c=e(n),a=i(c.length),f=o(u,a);if(t&&r!=r){for(;a>f;)if(s=c[f++],s!=s)return!0}else for(;a>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}}},function(t,n,r){"use strict";var e=r(38),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},function(t,n){"use strict";var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){"use strict";var e=r(38),i=Math.max,o=Math.min;t.exports=function(t,n){return t=e(t),t<0?i(t+n,0):o(t,n)}},function(t,n,r){"use strict";var e=r(23)("keys"),i=r(19);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){"use strict";n.f=Object.getOwnPropertySymbols},function(t,n){"use strict";n.f={}.propertyIsEnumerable},function(t,n,r){"use strict";var e=r(34);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){"use strict";var e=r(12),i=r(46),o=r(41),u=r(40)("IE_PROTO"),s=function(){},c="prototype",a=function(){var t,n=r(15)("iframe"),e=o.length,i="<",u=">";for(n.style.display="none",r(47).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),a=t.F;e--;)delete a[c][o[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(s[c]=e(t),r=new s,s[c]=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},function(t,n,r){"use strict";var e=r(11),i=r(12),o=r(30);t.exports=r(6)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),s=u.length,c=0;s>c;)e.f(t,r=u[c++],n[r]);return t}},function(t,n,r){"use strict";var e=r(4).document;t.exports=e&&e.documentElement},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(32),o=r(49).f,u={}.toString,s="object"==("undefined"==typeof window?"undefined":e(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==u.call(t)?c(t):o(i(t))}},function(t,n,r){"use strict";var e=r(31),i=r(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){"use strict";var e=r(43),i=r(17),o=r(32),u=r(16),s=r(5),c=r(14),a=Object.getOwnPropertyDescriptor;n.f=r(6)?a:function(t,n){if(t=o(t),n=u(n,!0),c)try{return a(t,n)}catch(t){}if(s(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){"use strict";var e=r(8);e(e.S,"Object",{create:r(45)})},function(t,n,r){"use strict";var e=r(8);e(e.S+e.F*!r(6),"Object",{defineProperty:r(11).f})},function(t,n,r){"use strict";var e=r(8);e(e.S+e.F*!r(6),"Object",{defineProperties:r(46)})},function(t,n,r){"use strict";var e=r(32),i=r(50).f;r(55)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},function(t,n,r){"use strict";var e=r(8),i=r(9),o=r(7);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},function(t,n,r){"use strict";var e=r(57),i=r(58);r(55)("getPrototypeOf",function(){return function(t){return i(e(t))}})},function(t,n,r){"use strict";var e=r(35);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(5),i=r(57),o=r(40)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){"use strict";var e=r(57),i=r(30);r(55)("keys",function(){return function(t){return i(e(t))}})},function(t,n,r){"use strict";r(55)("getOwnPropertyNames",function(){return r(48).f})},function(t,n,r){"use strict";var e=r(13),i=r(22).onFreeze;r(55)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){"use strict";var e=r(13),i=r(22).onFreeze;r(55)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){"use strict";var e=r(13),i=r(22).onFreeze;r(55)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){"use strict";var e=r(13);r(55)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){"use strict";var e=r(13);r(55)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){"use strict";var e=r(13);r(55)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){"use strict";var e=r(8);e(e.S+e.F,"Object",{assign:r(68)})},function(t,n,r){"use strict";var e=r(30),i=r(42),o=r(43),u=r(57),s=r(33),c=Object.assign;t.exports=!c||r(7)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=c({},t)[r]||Object.keys(c({},n)).join("")!=e})?function(t,n){for(var r=u(t),c=arguments.length,a=1,f=i.f,l=o.f;c>a;)for(var h,p=s(arguments[a++]),v=f?e(p).concat(f(p)):e(p),y=v.length,d=0;y>d;)l.call(p,h=v[d++])&&(r[h]=p[h]);return r}:c},function(t,n,r){"use strict";var e=r(8);e(e.S,"Object",{is:r(70)})},function(t,n){"use strict";t.exports=Object.is||function(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(8);e(e.S,"Object",{setPrototypeOf:r(72).set})},function(t,n,r){"use strict";var e=r(13),i=r(12),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{e=r(20)(Function.call,r(50).f(Object.prototype,"__proto__").set,2),e(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n,r){"use strict";var e=r(74),i={};i[r(26)("toStringTag")]="z",i+""!="[object z]"&&r(18)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){"use strict";var e=r(34),i=r(26)("toStringTag"),o="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),i))?r:o?e(n):"Object"==(s=e(n))&&"function"==typeof n.callee?"Arguments":s}},function(t,n,r){"use strict";var e=r(8);e(e.P,"Function",{bind:r(76)})},function(t,n,r){"use strict";var e=r(21),i=r(13),o=r(77),u=[].slice,s={},c=function(t,n,r){if(!(n in s)){for(var e=[],i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){"use strict";var e=r(8),i=r(35),o=r(7),u=r(83),s="["+u+"]",c="​…",a=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),l=function(t,n,r){var i={},s=o(function(){return!!u[t]()||c[t]()!=c}),a=i[t]=s?n(h):u[t];r&&(i[r]=a),e(e.P+e.F*s,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(f,"")),t};t.exports=l},function(t,n){"use strict";t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){"use strict";var e=r(8),i=r(85);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(4).parseFloat,i=r(82).trim;t.exports=1/e(r(83)+"-0")!==-(1/0)?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){"use strict";var e=r(4),i=r(5),o=r(34),u=r(87),s=r(16),c=r(7),a=r(49).f,f=r(50).f,l=r(11).f,h=r(82).trim,p="Number",v=e[p],y=v,d=v.prototype,g=o(r(45)(d))==p,m="trim"in String.prototype,x=function(t){var n=s(t,!1);if("string"==typeof n&&n.length>2){n=m?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(r=n.charCodeAt(2),88===r||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,c=n.slice(2),a=0,f=c.length;ai)return NaN;return parseInt(c,e)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof v&&(g?c(function(){d.valueOf.call(r)}):o(r)!=p)?u(new y(x(n)),r,v):x(n)};for(var b,w=r(6)?a(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)i(y,b=w[S])&&!i(v,b)&&l(v,b,f(y,b));v.prototype=d,d.constructor=v,r(18)(e,p,v)}},function(t,n,r){"use strict";var e=r(13),i=r(72).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(8),i=r(38),o=r(89),u=r(90),s=1..toFixed,c=Math.floor,a=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",h=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=c(e/1e7)},p=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=c(r/t),r=r%t*1e7},v=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call(l,7-r.length)+r}return n},y=function t(n,r,e){return 0===r?e:r%2===1?t(n,r-1,e*n):t(n*n,r/2,e)},d=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(7)(function(){s.call({})})),"Number",{toFixed:function(t){var n,r,e,s,c=o(this,f),a=i(t),g="",m=l;if(a<0||a>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(g="-",c=-c),c>1e-21)if(n=d(c*y(2,69,1))-69,r=n<0?c*y(2,-n,1):c/y(2,n,1),r*=4503599627370496,n=52-n,n>0){for(h(0,r),e=a;e>=7;)h(1e7,0),e-=7;for(h(y(10,e,1),0),e=n-1;e>=23;)p(1<<23),e-=23;p(1<0?(s=m.length,m=g+(s<=a?"0."+u.call(l,a-s)+m:m.slice(0,s-a)+"."+m.slice(s-a))):m=g+m,m}})},function(t,n,r){"use strict";var e=r(34);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){"use strict";var e=r(38),i=r(35);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n,r){"use strict";var e=r(8),i=r(7),o=r(89),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){"use strict";var e=r(8),i=r(4).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Number",{isInteger:r(95)})},function(t,n,r){"use strict";var e=r(13),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n,r){"use strict";var e=r(8);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){"use strict";var e=r(8),i=r(95),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){"use strict";var e=r(8),i=r(85);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){"use strict";var e=r(8),i=r(81);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){"use strict";var e=r(8),i=r(103),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n){"use strict";t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=r(8),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:e})},function(t,n,r){"use strict";var e=r(8),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){"use strict";var e=r(8),i=r(107);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n){"use strict";t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){"use strict";var e=r(8),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){"use strict";var e=r(8),i=r(111);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n){"use strict";var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{fround:r(113)})},function(t,n,r){"use strict";var e=r(107),i=Math.pow,o=i(2,-52),u=i(2,-23),s=i(2,127)*(2-u),c=i(2,-126),a=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),f=e(t);return is||r!=r?f*(1/0):f*r)}},function(t,n,r){"use strict";var e=r(8),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,s=arguments.length,c=0;u0?(e=r/c,o+=e*e):o+=r;return c===1/0?1/0:c*Math.sqrt(o)}})},function(t,n,r){"use strict";var e=r(8),i=Math.imul;e(e.S+e.F*r(7)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,n){var r=65535,e=+t,i=+n,o=r&e,u=r&i;return 0|o*u+((r&e>>>16)*u+o*(r&i>>>16)<<16>>>0)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{log1p:r(103)})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{sign:r(107)})},function(t,n,r){"use strict";var e=r(8),i=r(111),o=Math.exp;e(e.S+e.F*r(7)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){"use strict";var e=r(8),i=r(111),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){"use strict";var e=r(8),i=r(39),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(((n-=65536)>>10)+55296,n%1024+56320))}return r.join("")}})},function(t,n,r){"use strict";var e=r(8),i=r(32),o=r(37);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],s=0;r>s;)u.push(String(n[s++])),s=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(38),i=r(35);t.exports=function(t){return function(n,r){var o,u,s=String(i(n)),c=e(r),a=s.length;return c<0||c>=a?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===a||(u=s.charCodeAt(c+1))<56320||u>57343?t?s.charAt(c):o:t?s.slice(c,c+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,r){"use strict";var e=r(24),i=r(8),o=r(18),u=r(10),s=r(129),c=r(130),a=r(25),f=r(58),l=r(26)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",y="values",d=function(){return this};t.exports=function(t,n,r,g,m,x,b){c(r,n,g);var w,S,_,E=function(t){if(!h&&t in P)return P[t];switch(t){case v:return function(){return new r(this,t)};case y:return function(){return new r(this,t)}}return function(){return new r(this,t)}},A=n+" Iterator",O=m==y,I=!1,P=t.prototype,M=P[l]||P[p]||m&&P[m],j=M||E(m),k=m?O?E("entries"):j:void 0,T="Array"==n?P.entries||M:M;if(T&&(_=f(T.call(new t)),_!==Object.prototype&&_.next&&(a(_,A,!0),e||"function"==typeof _[l]||u(_,l,d))),O&&M&&M.name!==y&&(I=!0,j=function(){return M.call(this)}),e&&!b||!h&&!I&&P[l]||u(P,l,j),s[n]=j,s[A]=d,m)if(w={values:O?j:E(y),keys:x?j:E(v),entries:k},b)for(S in w)S in P||o(P,S,w[S]);else i(i.P+i.F*(h||I),n,w);return w}},function(t,n){"use strict";t.exports={}},function(t,n,r){"use strict";var e=r(45),i=r(17),o=r(25),u={};r(10)(u,r(26)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){"use strict";var e=r(8),i=r(127)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(8),i=r(37),o=r(133),u="endsWith",s=""[u];e(e.P+e.F*r(135)(u),"String",{endsWith:function(t){var n=o(this,t,u),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),a=String(t);return s?s.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,r){"use strict";var e=r(134),i=r(35);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){"use strict";var e=r(13),i=r(34),o=r(26)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){"use strict";var e=r(26)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){"use strict";var e=r(8),i=r(133),o="includes";e(e.P+e.F*r(135)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0); +}})},function(t,n,r){"use strict";var e=r(8);e(e.P,"String",{repeat:r(90)})},function(t,n,r){"use strict";var e=r(8),i=r(37),o=r(133),u="startsWith",s=""[u];e(e.P+e.F*r(135)(u),"String",{startsWith:function(t){var n=o(this,t,u),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return s?s.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(140)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){"use strict";var e=r(8),i=r(7),o=r(35),u=/"/g,s=function(t,n,r,e){var i=String(o(t)),s="<"+n;return""!==r&&(s+=" "+r+'="'+String(e).replace(u,""")+'"'),s+">"+i+""};t.exports=function(t,n){var r={};r[t]=n(s),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n,r){"use strict";r(140)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(140)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(140)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";r(140)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(140)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(140)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){"use strict";r(140)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";r(140)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){"use strict";r(140)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";r(140)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(140)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(140)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(8),i=r(57),o=r(16);e(e.P+e.F*r(7)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){"use strict";var e=r(8),i=r(156);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(7),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){"use strict";var e=Date.prototype,i="Invalid Date",o="toString",u=e[o],s=e.getTime;new Date(NaN)+""!=i&&r(18)(e,o,function(){var t=s.call(this);return t===t?u.call(this):i})},function(t,n,r){"use strict";var e=r(26)("toPrimitive"),i=Date.prototype;e in i||r(10)(i,e,r(159))},function(t,n,r){"use strict";var e=r(12),i=r(16),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),t!=o)}},function(t,n,r){"use strict";var e=r(8);e(e.S,"Array",{isArray:r(44)})},function(t,n,r){"use strict";var e=r(20),i=r(8),o=r(57),u=r(162),s=r(163),c=r(37),a=r(164),f=r(165);i(i.S+i.F*!r(166)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,g=0,m=f(h);if(d&&(y=e(y,v>2?arguments[2]:void 0,2)),void 0==m||p==Array&&s(m))for(n=c(h.length),r=new p(n);n>g;g++)a(r,g,d?y(h[g],g):h[g]);else for(l=m.call(h),r=new p;!(i=l.next()).done;g++)a(r,g,d?u(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(12);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){"use strict";var e=r(129),i=r(26)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(11),i=r(17);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){"use strict";var e=r(74),i=r(26)("iterator"),o=r(129);t.exports=r(9).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(26)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(8),i=r(164);e(e.S+e.F*r(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(8),i=r(32),o=[].join;e(e.P+e.F*(r(33)!=Object||!r(169)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(7);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){"use strict";var e=r(8),i=r(47),o=r(34),u=r(39),s=r(37),c=[].slice;e(e.P+e.F*r(7)(function(){i&&c.call(i)}),"Array",{slice:function(t,n){var r=s(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return c.call(this,t,n);for(var i=u(t,r),a=u(n,r),f=s(a-i),l=new Array(f),h=0;hw;w++)if((h||w in m)&&(y=m[w],d=x(y,w,g),t))if(r)S[w]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:S.push(y)}else if(f)return!1;return l?-1:a||f?f:S}}},function(t,n,r){"use strict";var e=r(175);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){"use strict";var e=r(13),i=r(44),o=r(26)("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(8),i=r(173)(1);e(e.P+e.F*!r(169)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(173)(2);e(e.P+e.F*!r(169)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(173)(3);e(e.P+e.F*!r(169)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(173)(4);e(e.P+e.F*!r(169)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(181);e(e.P+e.F*!r(169)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){"use strict";var e=r(21),i=r(57),o=r(33),u=r(37);t.exports=function(t,n,r,s,c){e(n);var a=i(t),f=o(a),l=u(a.length),h=c?l-1:0,p=c?-1:1;if(r<2)for(;;){if(h in f){s=f[h],h+=p;break}if(h+=p,c?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:l>h;h+=p)h in f&&(s=n(s,f[h],h,a));return s}},function(t,n,r){"use strict";var e=r(8),i=r(181);e(e.P+e.F*!r(169)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(8),i=r(36)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(169)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(32),o=r(38),u=r(37),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(c||!r(169)(s)),"Array",{lastIndexOf:function(t){if(c)return s.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){"use strict";var e=r(8);e(e.P,"Array",{copyWithin:r(186)}),r(187)("copyWithin")},function(t,n,r){"use strict";var e=r(57),i=r(39),o=r(37);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),s=i(t,u),c=i(n,u),a=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===a?u:i(a,u))-c,u-s),l=1;for(c0;)c in r?r[s]=r[c]:delete r[s],s+=l,c+=l;return r}},function(t,n,r){"use strict";var e=r(26)("unscopables"),i=Array.prototype;void 0==i[e]&&r(10)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){"use strict";var e=r(8);e(e.P,"Array",{fill:r(189)}),r(187)("fill")},function(t,n,r){"use strict";var e=r(57),i=r(39),o=r(37);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,s=i(u>1?arguments[1]:void 0,r),c=u>2?arguments[2]:void 0,a=void 0===c?r:i(c,r);a>s;)n[s++]=t;return n}},function(t,n,r){"use strict";var e=r(8),i=r(173)(5),o="find",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(187)(o)},function(t,n,r){"use strict";var e=r(8),i=r(173)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(187)(o)},function(t,n,r){"use strict";r(193)("Array")},function(t,n,r){"use strict";var e=r(4),i=r(11),o=r(6),u=r(26)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(187),i=r(195),o=r(129),u=r(32);t.exports=r(128)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n){"use strict";t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(4),i=r(87),o=r(11).f,u=r(49).f,s=r(134),c=r(197),a=e.RegExp,f=a,l=a.prototype,h=/a/g,p=/a/g,v=new a(h)!==h;if(r(6)&&(!v||r(7)(function(){return p[r(26)("match")]=!1,a(h)!=h||a(p)==p||"/a/i"!=a(h,"i")}))){a=function(t,n){var r=this instanceof a,e=s(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(v?new f(e&&!o?t.source:t,n):f((e=t instanceof a)?t.source:t,e&&o?c.call(t):n),r?this:l,a)};for(var y=(function(t){t in a||o(a,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})}),d=u(f),g=0;d.length>g;)y(d[g++]);l.constructor=a,a.prototype=l,r(18)(e,"RegExp",a)}r(193)("RegExp")},function(t,n,r){"use strict";var e=r(12);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";r(199);var e=r(12),i=r(197),o=r(6),u="toString",s=/./[u],c=function(t){r(18)(RegExp.prototype,u,t,!0)};r(7)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):s.name!=u&&c(function(){return s.call(this)})},function(t,n,r){"use strict";r(6)&&"g"!=/./g.flags&&r(11).f(RegExp.prototype,"flags",{configurable:!0,get:r(197)})},function(t,n,r){"use strict";r(201)("match",1,function(t,n,r){return[function(r){var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){"use strict";var e=r(10),i=r(18),o=r(7),u=r(35),s=r(26);t.exports=function(t,n,r){var c=s(t),a=r(u,c,""[t]),f=a[0],l=a[1];o(function(){var n={};return n[c]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,f),e(RegExp.prototype,c,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n,r){"use strict";r(201)("replace",2,function(t,n,r){return[function(e,i){var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},function(t,n,r){"use strict";r(201)("search",1,function(t,n,r){return[function(r){var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){"use strict";r(201)("split",2,function(t,n,e){var i=r(134),o=e,u=[].push,s="split",c="length",a="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[c]||2!="ab"[s](/(?:ab)*/)[c]||4!="."[s](/(.?)(.?)/)[c]||"."[s](/()()/)[c]>1||""[s](/.?/)[c]){var f=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,s,l,h,p,v=[],y=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===n?4294967295:n>>>0,m=new RegExp(t.source,y+"g");for(f||(e=new RegExp("^"+m.source+"$(?!\\s)",y));(s=m.exec(r))&&(l=s.index+s[0][c],!(l>d&&(v.push(r.slice(d,s.index)),!f&&s[c]>1&&s[0].replace(e,function(){for(p=1;p1&&s.index=g)));)m[a]===s.index&&m[a]++;return d===r[c]?!h&&m.test("")||v.push(""):v.push(r.slice(d)),v[c]>g?v.slice(0,g):v}}else"0"[s](void 0,0)[c]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(r,i){var o=t(this),u=void 0==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},e]})},function(t,n,r){"use strict";var e,i,o,u,s=r(24),c=r(4),a=r(20),f=r(74),l=r(8),h=r(13),p=r(21),v=r(206),y=r(207),d=r(208),g=r(209).set,m=r(210)(),x=r(211),b=r(212),w=r(213),S=r(214),_="Promise",E=c.TypeError,A=c.process,O=A&&A.versions,I=O&&O.v8||"",P=c[_],M="process"==f(A),j=function(){},k=i=x.f,T=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[r(26)("species")]=function(t){t(j,j)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof n&&0!==I.indexOf("6.6")&&w.indexOf("Chrome/66")===-1}catch(t){}}(),L=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},R=function(t,n){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,s=i?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{s?(i||(2==t._h&&N(t),t._h=1),s===!0?r=e:(f&&f.enter(),r=s(e),f&&(f.exit(),u=!0)),r===n.promise?a(E("Promise-chain cycle")):(o=L(r))?o.call(r,c,a):c(r)):a(e)}catch(t){f&&!u&&f.exit(),a(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&F(t)})}},F=function(t){g.call(c,function(){var n,r,e,i=t._v,o=C(t);if(o&&(n=b(function(){M?A.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(e=c.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=M||C(t)?2:1),t._a=void 0,o&&n.e)throw n.v})},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){g.call(c,function(){var n;M?A.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},B=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),R(n,!0))},U=function t(n){var r,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===n)throw E("Promise can't be resolved itself");(r=L(n))?m(function(){var i={_w:e,_d:!1};try{r.call(n,a(t,i,1),a(B,i,1))}catch(t){B.call(i,t)}}):(e._v=n,e._s=1,R(e,!1))}catch(t){B.call({_w:e,_d:!1},t)}}};T||(P=function(t){v(this,P,_,"_h"),p(t),e.call(this);try{t(a(U,this,1),a(B,this,1))}catch(t){B.call(this,t)}},e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=r(215)(P.prototype,{then:function(t,n){var r=k(d(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=a(U,t,1),this.reject=a(B,t,1)},x.f=k=function(t){return t===P||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!T,{Promise:P}),r(25)(P,_),r(193)(_),u=r(9)[_],l(l.S+l.F*!T,_,{reject:function(t){var n=k(this),r=n.reject;return r(t),n.promise}}),l(l.S+l.F*(s||!T),_,{resolve:function(t){return S(s&&this===u?P:this,t)}}),l(l.S+l.F*!(T&&r(166)(function(t){P.all(t).catch(j)})),_,{all:function(t){var n=this,r=k(n),e=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,u=1;y(t,!1,function(t){var s=o++,c=!1;r.push(void 0),u++,n.resolve(t).then(function(t){c||(c=!0,r[s]=t,--u||e(r))},i)}),--u||e(r)});return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=k(n),e=r.reject,i=b(function(){y(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i.e&&e(i.v),r.promise}})},function(t,n){"use strict";t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){"use strict";var e=r(20),i=r(162),o=r(163),u=r(12),s=r(37),c=r(165),a={},f={},l=t.exports=function(t,n,r,l,h){var p,v,y,d,g=h?function(){return t}:c(t),m=e(r,l,n?2:1),x=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=s(t.length);p>x;x++)if(d=n?m(u(v=t[x])[0],v[1]):m(t[x]),d===a||d===f)return d}else for(y=g.call(t);!(v=y.next()).done;)if(d=i(y,m,v.value,n),d===a||d===f)return d};l.BREAK=a,l.RETURN=f},function(t,n,r){"use strict";var e=r(12),i=r(21),o=r(26)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},function(t,n,r){"use strict";var e,i,o,u=r(20),s=r(77),c=r(47),a=r(15),f=r(4),l=f.process,h=f.setImmediate,p=f.clearImmediate,v=f.MessageChannel,y=f.Dispatch,d=0,g={},m="onreadystatechange",x=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},b=function(t){x.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return g[++d]=function(){s("function"==typeof t?t:Function(t),n)},e(d),d},p=function(t){delete g[t]},"process"==r(34)(l)?e=function(t){l.nextTick(u(x,t,1))}:y&&y.now?e=function(t){y.now(u(x,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=b,e=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(e=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):e=m in a("script")?function(t){c.appendChild(a("script"))[m]=function(){c.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){"use strict";var e=r(4),i=r(209).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,s=e.Promise,c="process"==r(34)(u);t.exports=function(){var t,n,r,a=function(){var e,i;for(c&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(c)r=function(){u.nextTick(a)};else if(!o||e.navigator&&e.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);r=function(){f.then(a)}}else r=function(){i.call(e,a)};else{var l=!0,h=document.createTextNode("");new o(a).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n,r){"use strict";function e(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=i(n),this.reject=i(r)}var i=r(21);t.exports.f=function(t){return new e(t)}},function(t,n){"use strict";t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){"use strict";var e=r(4),i=e.navigator;t.exports=i&&i.userAgent||""},function(t,n,r){"use strict";var e=r(12),i=r(13),o=r(211);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t),u=r.resolve;return u(n),r.promise}},function(t,n,r){"use strict";var e=r(18);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},function(t,n,r){"use strict";var e=r(217),i=r(218),o="Map";t.exports=r(219)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(i(this,o),t);return n&&n.v},set:function(t,n){return e.def(i(this,o),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(11).f,i=r(45),o=r(215),u=r(20),s=r(206),c=r(207),a=r(128),f=r(195),l=r(193),h=r(6),p=r(22).fastKey,v=r(218),y=h?"_s":"size",d=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,a){var f=t(function(t,e){s(t,f,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[y]=0,void 0!=e&&c(e,r,t[a],t)});return o(f.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var r=v(this,n),e=d(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[y]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!d(v(this,n),t)}}),h&&e(f.prototype,"size",{get:function(){return v(this,n)[y]}}),f},def:function(t,n,r){var e,i,o=d(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:d,setStrong:function(t,n,r){a(t,n,function(t,r){this._t=v(t,n),this._k=r,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?f(0,r.k):"values"==n?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(13);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,r){"use strict";var e=r(4),i=r(8),o=r(18),u=r(215),s=r(22),c=r(207),a=r(206),f=r(13),l=r(7),h=r(166),p=r(25),v=r(87);t.exports=function(t,n,r,y,d,g){var m=e[t],x=m,b=d?"set":"add",w=x&&x.prototype,S={},_=function(t){var n=w[t];o(w,t,"delete"==t?function(t){return!(g&&!f(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof x&&(g||w.forEach&&!l(function(){(new x).entries().next()}))){var E=new x,A=E[b](g?{}:-0,1)!=E,O=l(function(){E.has(1)}),I=h(function(t){new x(t)}),P=!g&&l(function(){for(var t=new x,n=5;n--;)t[b](n,n);return!t.has(-0)});I||(x=n(function(n,r){a(n,x,t);var e=v(new m,n,x);return void 0!=r&&c(r,d,e[b],e),e}),x.prototype=w,w.constructor=x),(O||P)&&(_("delete"),_("has"),d&&_("get")),(P||A)&&_(b),g&&w.clear&&delete w.clear}else x=y.getConstructor(n,t,d,b),u(x.prototype,r),s.NEED=!0;return p(x,t),S[t]=x,i(i.G+i.W+i.F*(x!=m),S),g||y.setStrong(x,t,d),x}},function(t,n,r){"use strict";var e=r(217),i=r(218),o="Set";t.exports=r(219)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,o),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(173)(0),o=r(18),u=r(22),s=r(68),c=r(222),a=r(13),f=r(7),l=r(218),h="WeakMap",p=u.getWeak,v=Object.isExtensible,y=c.ufstore,d={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(a(t)){var n=p(t);return n===!0?y(l(this,h)).get(t):n?n[this._i]:void 0}},set:function(t,n){return c.def(l(this,h),t,n)}},x=t.exports=r(219)(h,g,m,c,!0,!0);f(function(){return 7!=(new x).set((Object.freeze||Object)(d),7).get(d)})&&(e=c.getConstructor(g,h),s(e.prototype,m),u.NEED=!0,i(["delete","has","get","set"],function(t){var n=x.prototype,r=n[t];o(n,t,function(n,i){if(a(n)&&!v(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},function(t,n,r){"use strict";var e=r(215),i=r(22).getWeak,o=r(12),u=r(13),s=r(206),c=r(207),a=r(173),f=r(5),l=r(218),h=a(5),p=a(6),v=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,n){return h(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t(function(t,e){s(t,a,n,"_i"),t._t=n,t._i=v++,t._l=void 0,void 0!=e&&c(e,r,t[o],t)});return e(a.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return r===!0?y(l(this,n)).delete(t):r&&f(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return r===!0?y(l(this,n)).has(t):r&&f(r,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return e===!0?y(t).set(n,r):e[t._i]=r,t},ufstore:y}},function(t,n,r){"use strict";var e=r(222),i=r(218),o="WeakSet";r(219)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,o),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(8),i=r(225),o=r(226),u=r(12),s=r(39),c=r(37),a=r(13),f=r(4).ArrayBuffer,l=r(208),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&f.isView,y=h.prototype.slice,d=i.VIEW,g="ArrayBuffer";e(e.G+e.W+e.F*(f!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,g,{isView:function(t){return v&&v(t)||a(t)&&d in t}}),e(e.P+e.U+e.F*r(7)(function(){return!new h(2).slice(1,void 0).byteLength}),g,{slice:function(t,n){if(void 0!==y&&void 0===n)return y.call(u(this),t);for(var r=u(this).byteLength,e=s(t,r),i=s(void 0===n?r:n,r),o=new(l(this,h))(c(i-e)),a=new p(this),f=new p(o),v=0;e>1,f=23===n?Y(2,-24)-Y(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=D(t),t!=t||t===B?(i=t!=t?1:0,e=c):(e=V(W(t)/z),t*(o=Y(2,-e))<1&&(e--,o*=2),t+=e+a>=1?f/o:f*Y(2,1-a),t*o>=2&&(e++,o/=2),e+a>=c?(i=0,e=c):e+a>=1?(i=(t*o-1)*Y(2,n),e+=a):(i=t*Y(2,a-1)*Y(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,s-=8);return u[--l]|=128*h,u}function i(t,n,r){var e,i=8*r-n-1,o=(1<>1,s=i-7,c=r-1,a=t[c--],f=127&a;for(a>>=7;s>0;f=256*f+t[c],c--,s-=8);for(e=f&(1<<-s)-1,f>>=-s,s+=n;s>0;e=256*e+t[c],c--,s-=8);if(0===f)f=1-u;else{if(f===o)return e?NaN:a?-B:B;e+=Y(2,n),f-=u}return(a?-1:1)*e*Y(2,f-n)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function u(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function a(t){return e(t,52,8)}function f(t){return e(t,23,4)}function l(t,n,r){O(t[k],n,{get:function(){return this[r]}})}function h(t,n,r,e){var i=+r,o=E(i);if(o+n>t[K])throw N(L);var u=t[$]._b,s=o+t[H],c=u.slice(s,s+n);return e?c:c.reverse()}function p(t,n,r,e,i,o){var u=+r,s=E(u);if(s+n>t[K])throw N(L);for(var c=t[$]._b,a=s+t[H],f=e(+i),l=0;ltt;)(J=Q[tt++])in R||m(R,J,U[J]);d||(Z.constructor=R)}var nt=new F(new R(2)),rt=F[k].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||x(F[k],{setInt8:function(t,n){rt.call(this,t,n<<24>>24)},setUint8:function(t,n){rt.call(this,t,n<<24>>24)}},!0)}else R=function(t){w(this,R,M);var n=E(t);this._b=I.call(new Array(n),0),this[K]=n},F=function(t,n,r){w(this,F,j),w(t,R,j);var e=t[K],i=S(n);if(i<0||i>e)throw N("Wrong offset!");if(r=void 0===r?e-i:_(r),i+r>e)throw N(T);this[$]=t,this[H]=i,this[K]=r},y&&(l(R,G,"_l"),l(F,q,"_b"),l(F,G,"_l"),l(F,X,"_o")),x(F[k],{getInt8:function(t){return h(this,1,t)[0]<<24>>24},getUint8:function(t){return h(this,1,t)[0]},getInt16:function(t){var n=h(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=h(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return o(h(this,4,t,arguments[1]))},getUint32:function(t){return o(h(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(h(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(h(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){p(this,1,t,u,n)},setUint8:function(t,n){p(this,1,t,u,n)},setInt16:function(t,n){p(this,2,t,s,n,arguments[2])},setUint16:function(t,n){p(this,2,t,s,n,arguments[2])},setInt32:function(t,n){p(this,4,t,c,n,arguments[2])},setUint32:function(t,n){p(this,4,t,c,n,arguments[2])},setFloat32:function(t,n){p(this,4,t,f,n,arguments[2])},setFloat64:function(t,n){p(this,8,t,a,n,arguments[2])}});P(R,M),P(F,j),m(F[k],g.VIEW,!0),n[M]=R,n[j]=F},function(t,n,r){"use strict";var e=r(38),i=r(37);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){"use strict";var e=r(8);e(e.G+e.W+e.F*!r(225).ABV,{DataView:r(226).DataView})},function(t,n,r){"use strict";r(230)("Int8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};if(r(6)){var i=r(24),o=r(4),u=r(7),s=r(8),c=r(225),a=r(226),f=r(20),l=r(206),h=r(17),p=r(10),v=r(215),y=r(38),d=r(37),g=r(227),m=r(39),x=r(16),b=r(5),w=r(74),S=r(13),_=r(57),E=r(163),A=r(45),O=r(58),I=r(49).f,P=r(165),M=r(19),j=r(26),k=r(173),T=r(36),L=r(208),R=r(194),F=r(129),C=r(166),N=r(193),B=r(189),U=r(186),D=r(11),Y=r(50),V=D.f,W=Y.f,z=o.RangeError,q=o.TypeError,G=o.Uint8Array,X="ArrayBuffer",$="Shared"+X,K="BYTES_PER_ELEMENT",H="prototype",J=Array[H],Z=a.ArrayBuffer,Q=a.DataView,tt=k(0),nt=k(2),rt=k(3),et=k(4),it=k(5),ot=k(6),ut=T(!0),st=T(!1),ct=R.values,at=R.keys,ft=R.entries,lt=J.lastIndexOf,ht=J.reduce,pt=J.reduceRight,vt=J.join,yt=J.sort,dt=J.slice,gt=J.toString,mt=J.toLocaleString,xt=j("iterator"),bt=j("toStringTag"),wt=M("typed_constructor"),St=M("def_constructor"),_t=c.CONSTR,Et=c.TYPED,At=c.VIEW,Ot="Wrong length!",It=k(1,function(t,n){return Tt(L(t,t[St]),n)}),Pt=u(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Mt=!!G&&!!G[H].set&&u(function(){new G(1).set({})}),jt=function(t,n){ +var r=y(t);if(r<0||r%n)throw z("Wrong offset!");return r},kt=function(t){if(S(t)&&Et in t)return t;throw q(t+" is not a typed array!")},Tt=function(t,n){if(!(S(t)&&wt in t))throw q("It is not a typed array constructor!");return new t(n)},Lt=function(t,n){return Rt(L(t,t[St]),n)},Rt=function(t,n){for(var r=0,e=n.length,i=Tt(t,e);e>r;)i[r]=n[r++];return i},Ft=function(t,n,r){V(t,n,{get:function(){return this._d[r]}})},Ct=function(t){var n,r,e,i,o,u,s=_(t),c=arguments.length,a=c>1?arguments[1]:void 0,l=void 0!==a,h=P(s);if(void 0!=h&&!E(h)){for(u=h.call(s),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);s=e}for(l&&c>2&&(a=f(a,arguments[2],2)),n=0,r=d(s.length),i=Tt(this,r);r>n;n++)i[n]=l?a(s[n],n):s[n];return i},Nt=function(){for(var t=0,n=arguments.length,r=Tt(this,n);n>t;)r[t]=arguments[t++];return r},Bt=!!G&&u(function(){mt.call(new G(1))}),Ut=function(){return mt.apply(Bt?dt.call(kt(this)):kt(this),arguments)},Dt={copyWithin:function(t,n){return U.call(kt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return B.apply(kt(this),arguments)},filter:function(t){return Lt(this,nt(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ut(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return vt.apply(kt(this),arguments)},lastIndexOf:function(t){return lt.apply(kt(this),arguments)},map:function(t){return It(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(kt(this),arguments)},reduceRight:function(t){return pt.apply(kt(this),arguments)},reverse:function(){for(var t,n=this,r=kt(n).length,e=Math.floor(r/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return yt.call(kt(this),t)},subarray:function(t,n){var r=kt(this),e=r.length,i=m(t,e);return new(L(r,r[St]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:m(n,e))-i))}},Yt=function(t,n){return Lt(this,dt.call(kt(this),t,n))},Vt=function(t){kt(this);var n=jt(arguments[1],1),r=this.length,e=_(t),i=d(e.length),o=0;if(i+n>r)throw z(Ot);for(;o255?255:255&i),o.v[h](r*n+o.o,i,Pt)},M=function(t,n){V(t,n,{get:function(){return E(this,n)},set:function(t){return P(this,n,t)},enumerable:!0})};x?(v=r(function(t,r,e,i){l(t,v,a,"_d");var o,u,s,c,f=0,h=0;if(S(r)){if(!(r instanceof Z||(c=w(r))==X||c==$))return Et in r?Rt(v,r):Ct.call(v,r);o=r,h=jt(e,n);var y=r.byteLength;if(void 0===i){if(y%n)throw z(Ot);if(u=y-h,u<0)throw z(Ot)}else if(u=d(i)*n,u+h>y)throw z(Ot);s=u/n}else s=g(r),u=s*n,o=new Z(u);for(p(t,"_d",{b:o,o:h,l:u,e:s,v:new Q(o)});f=r.length)return{value:void 0,done:!0};while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){"use strict";function e(t,n){var r,s,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=i.f(t,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(f):void 0:c(s=o(t))?e(s,n,f):void 0}var i=r(50),o=r(58),u=r(5),s=r(8),c=r(13),a=r(12);s(s.S,"Reflect",{get:e})},function(t,n,r){"use strict";var e=r(50),i=r(8),o=r(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){"use strict";var e=r(8),i=r(58),o=r(12);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){"use strict";var e=r(8),i=r(12),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Reflect",{ownKeys:r(250)})},function(t,n,r){"use strict";var e=r(49),i=r(42),o=r(12),u=r(4).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){"use strict";var e=r(8),i=r(12),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){"use strict";function e(t,n,r){var c,h,p=arguments.length<4?t:arguments[3],v=o.f(f(t),n);if(!v){if(l(h=u(t)))return e(h,n,r,p);v=a(0)}if(s(v,"value")){if(v.writable===!1||!l(p))return!1;if(c=o.f(p,n)){if(c.get||c.set||c.writable===!1)return!1;c.value=r,i.f(p,n,c)}else i.f(p,n,a(0,r));return!0}return void 0!==v.set&&(v.set.call(p,r),!0)}var i=r(11),o=r(50),u=r(58),s=r(5),c=r(8),a=r(17),f=r(12),l=r(13);c(c.S,"Reflect",{set:e})},function(t,n,r){"use strict";var e=r(8),i=r(72);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){"use strict";var e=r(8),i=r(36)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(187)("includes")},function(t,n,r){"use strict";var e=r(8),i=r(256),o=r(57),u=r(37),s=r(21),c=r(174);e(e.P,"Array",{flatMap:function(t){var n,r,e=o(this);return s(t),n=u(e.length),r=c(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),r(187)("flatMap")},function(t,n,r){"use strict";function e(t,n,r,a,f,l,h,p){for(var v,y,d=f,g=0,m=!!h&&s(h,p,3);g0)d=e(t,n,v,u(v.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError();t[d]=v}d++}g++}return d}var i=r(44),o=r(13),u=r(37),s=r(20),c=r(26)("isConcatSpreadable");t.exports=e},function(t,n,r){"use strict";var e=r(8),i=r(256),o=r(57),u=r(37),s=r(38),c=r(174);e(e.P,"Array",{flatten:function(){var t=arguments[0],n=o(this),r=u(n.length),e=c(n,0);return i(e,n,n,r,0,void 0===t?1:s(t)),e}}),r(187)("flatten")},function(t,n,r){"use strict";var e=r(8),i=r(127)(!0);e(e.P,"String",{at:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(8),i=r(260),o=r(213);e(e.P+e.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){"use strict";var e=r(37),i=r(90),o=r(35);t.exports=function(t,n,r,u){var s=String(o(t)),c=s.length,a=void 0===r?" ":String(r),f=e(n);if(f<=c||""==a)return s;var l=f-c,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+s:s+h}},function(t,n,r){"use strict";var e=r(8),i=r(260),o=r(213);e(e.P+e.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){"use strict";r(82)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,r){"use strict";r(82)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,r){"use strict";var e=r(8),i=r(35),o=r(37),u=r(134),s=r(197),c=RegExp.prototype,a=function(t,n){this._r=t,this._s=n};r(130)(a,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),e(e.P,"String",{matchAll:function(t){if(i(this),!u(t))throw TypeError(t+" is not a regexp!");var n=String(this),r="flags"in c?String(t.flags):s.call(t),e=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return e.lastIndex=o(t.lastIndex),new a(e,n)}})},function(t,n,r){"use strict";r(28)("asyncIterator")},function(t,n,r){"use strict";r(28)("observable")},function(t,n,r){"use strict";var e=r(8),i=r(250),o=r(32),u=r(50),s=r(164);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),c=u.f,a=i(e),f={},l=0;a.length>l;)r=c(e,n=a[l++]),void 0!==r&&s(f,n,r);return f}})},function(t,n,r){"use strict";var e=r(8),i=r(269)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){"use strict";var e=r(30),i=r(32),o=r(43).f;t.exports=function(t){return function(n){for(var r,u=i(n),s=e(u),c=s.length,a=0,f=[];c>a;)o.call(u,r=s[a++])&&f.push(t?[r,u[r]]:u[r]);return f}}},function(t,n,r){"use strict";var e=r(8),i=r(269)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";var e=r(8),i=r(57),o=r(21),u=r(11);r(6)&&e(e.P+r(272),"Object",{__defineGetter__:function(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},function(t,n,r){"use strict";t.exports=r(24)||!r(7)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete r(4)[t]})},function(t,n,r){"use strict";var e=r(8),i=r(57),o=r(21),u=r(11);r(6)&&e(e.P+r(272),"Object",{__defineSetter__:function(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},function(t,n,r){"use strict";var e=r(8),i=r(57),o=r(16),u=r(58),s=r(50).f;r(6)&&e(e.P+r(272),"Object",{__lookupGetter__:function(t){var n,r=i(this),e=o(t,!0);do if(n=s(r,e))return n.get;while(r=u(r))}})},function(t,n,r){"use strict";var e=r(8),i=r(57),o=r(16),u=r(58),s=r(50).f;r(6)&&e(e.P+r(272),"Object",{__lookupSetter__:function(t){var n,r=i(this),e=o(t,!0);do if(n=s(r,e))return n.set;while(r=u(r))}})},function(t,n,r){"use strict";var e=r(8);e(e.P+e.R,"Map",{toJSON:r(277)("Map")})},function(t,n,r){"use strict";var e=r(74),i=r(278);t.exports=function(t){return function(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,n,r){"use strict";var e=r(207);t.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},function(t,n,r){"use strict";var e=r(8);e(e.P+e.R,"Set",{toJSON:r(277)("Set")})},function(t,n,r){"use strict";r(281)("Map")},function(t,n,r){"use strict";var e=r(8);t.exports=function(t){e(e.S,t,{of:function(){for(var t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},function(t,n,r){"use strict";r(281)("Set")},function(t,n,r){"use strict";r(281)("WeakMap")},function(t,n,r){"use strict";r(281)("WeakSet")},function(t,n,r){"use strict";r(286)("Map")},function(t,n,r){"use strict";var e=r(8),i=r(21),o=r(20),u=r(207);t.exports=function(t){e(e.S,t,{from:function(t){var n,r,e,s,c=arguments[1];return i(this),n=void 0!==c,n&&i(c),void 0==t?new this:(r=[],n?(e=0,s=o(c,arguments[2],2),u(t,!1,function(t){r.push(s(t,e++))})):u(t,!1,r.push,r),new this(r))}})}},function(t,n,r){"use strict";r(286)("Set")},function(t,n,r){"use strict";r(286)("WeakMap")},function(t,n,r){"use strict";r(286)("WeakSet")},function(t,n,r){"use strict";var e=r(8);e(e.G,{global:r(4)})},function(t,n,r){"use strict";var e=r(8);e(e.S,"System",{global:r(4)})},function(t,n,r){"use strict";var e=r(8),i=r(34);e(e.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{clamp:function(t,n,r){return Math.min(r,Math.max(n,t))}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,n,r){"use strict";var e=r(8),i=180/Math.PI;e(e.S,"Math",{degrees:function(t){return t*i}})},function(t,n,r){"use strict";var e=r(8),i=r(297),o=r(113);e(e.S,"Math",{fscale:function(t,n,r,e,u){return o(i(t,n,r,e,u))}})},function(t,n){"use strict";t.exports=Math.scale||function(t,n,r,e,i){return 0===arguments.length||t!=t||n!=n||r!=r||e!=e||i!=i?NaN:t===1/0||t===-(1/0)?t:(t-n)*(i-e)/(r-n)+e}},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{iaddh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o+(e>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{isubh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o-(e>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{imulh:function(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,s=e>>16,c=i>>16,a=(s*u>>>0)+(o*u>>>16);return s*c+(a>>16)+((o*c>>>0)+(a&r)>>16)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,n,r){"use strict";var e=r(8),i=Math.PI/180;e(e.S,"Math",{radians:function(t){return t*i}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{scale:r(297)})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{umulh:function(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,s=e>>>16,c=i>>>16,a=(s*u>>>0)+(o*u>>>16);return s*c+(a>>>16)+((o*c>>>0)+(a&r)>>>16)}})},function(t,n,r){"use strict";var e=r(8);e(e.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,n,r){"use strict";var e=r(8),i=r(9),o=r(4),u=r(208),s=r(214);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(n,t()).then(function(){return r})}:t,r?function(r){return s(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){"use strict";var e=r(8),i=r(211),o=r(212);e(e.S,"Promise",{try:function(t){var n=i.f(this),r=o(t);return(r.e?n.reject:n.resolve)(r.v),n.promise}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=e.key,u=e.set;e.exp({defineMetadata:function(t,n,r,e){u(t,n,i(r),o(e))}})},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(216),o=r(8),u=r(23)("metadata"),s=u.store||(u.store=new(r(221))),c=function(t,n,r){var e=s.get(t);if(!e){if(!r)return;s.set(t,e=new i)}var o=e.get(n);if(!o){if(!r)return;e.set(n,o=new i)}return o},a=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},f=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},l=function(t,n,r,e){c(r,e,!0).set(t,n)},h=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},p=function(t){return void 0===t||"symbol"==("undefined"==typeof t?"undefined":e(t))?t:String(t)},v=function(t){o(o.S,"Reflect",t)};t.exports={store:s,map:c,has:a,get:f,set:l,keys:h,key:p,exp:v}},function(t,n,r){"use strict";var e=r(309),i=r(12),o=e.key,u=e.map,s=e.store;e.exp({deleteMetadata:function(t,n){var r=arguments.length<3?void 0:o(arguments[2]),e=u(i(n),r,!1);if(void 0===e||!e.delete(t))return!1;if(e.size)return!0;var c=s.get(n);return c.delete(r),!!c.size||s.delete(n)}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=r(58),u=e.has,s=e.get,c=e.key,a=function t(n,r,e){var i=u(n,r,e);if(i)return s(n,r,e);var c=o(r);return null!==c?t(n,c,e):void 0};e.exp({getMetadata:function(t,n){return a(t,i(n),arguments.length<3?void 0:c(arguments[2]))}})},function(t,n,r){"use strict";var e=r(220),i=r(278),o=r(309),u=r(12),s=r(58),c=o.keys,a=o.key,f=function t(n,r){var o=c(n,r),u=s(n);if(null===u)return o;var a=t(u,r);return a.length?o.length?i(new e(o.concat(a))):a:o};o.exp({getMetadataKeys:function(t){return f(u(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=e.get,u=e.key;e.exp({getOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=e.keys,u=e.key;e.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:u(arguments[1]))}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=r(58),u=e.has,s=e.key,c=function t(n,r,e){var i=u(n,r,e);if(i)return!0;var s=o(r);return null!==s&&t(n,s,e)};e.exp({hasMetadata:function(t,n){return c(t,i(n),arguments.length<3?void 0:s(arguments[2]))}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=e.has,u=e.key;e.exp({hasOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,r){"use strict";var e=r(309),i=r(12),o=r(21),u=e.key,s=e.set;e.exp({metadata:function(t,n){return function(r,e){s(t,n,(void 0!==e?i:o)(r),u(e))}}})},function(t,n,r){"use strict";var e=r(8),i=r(210)(),o=r(4).process,u="process"==r(34)(o);e(e.G,{asap:function(t){var n=u&&o.domain;i(n?n.bind(t):t)}})},function(t,n,r){"use strict";var e=r(8),i=r(4),o=r(9),u=r(210)(),s=r(26)("observable"),c=r(21),a=r(12),f=r(206),l=r(215),h=r(10),p=r(207),v=p.RETURN,y=function(t){return null==t?void 0:c(t)},d=function(t){var n=t._c;n&&(t._c=void 0,n())},g=function(t){return void 0===t._o},m=function(t){g(t)||(t._o=void 0,d(t))},x=function(t,n){a(t),this._c=void 0,this._o=t,t=new b(this);try{var r=n(t),e=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){e.unsubscribe()}:c(r),this._c=r)}catch(n){return void t.error(n)}g(this)&&d(this)};x.prototype=l({},{unsubscribe:function(){m(this)}});var b=function(t){this._s=t};b.prototype=l({},{next:function(t){var n=this._s;if(!g(n)){var r=n._o;try{var e=y(r.next);if(e)return e.call(r,t)}catch(t){try{m(n)}finally{throw t}}}},error:function(t){var n=this._s;if(g(n))throw t;var r=n._o;n._o=void 0;try{var e=y(r.error);if(!e)throw t;t=e.call(r,t)}catch(t){try{d(n)}finally{throw t}}return d(n),t},complete:function(t){var n=this._s;if(!g(n)){var r=n._o;n._o=void 0;try{var e=y(r.complete);t=e?e.call(r,t):void 0}catch(t){try{d(n)}finally{throw t}}return d(n),t}}});var w=function(t){f(this,w,"Observable","_f")._f=c(t)};l(w.prototype,{subscribe:function(t){return new x(t,this._f)},forEach:function(t){var n=this;return new(o.Promise||i.Promise)(function(r,e){c(t);var i=n.subscribe({next:function(n){try{return t(n)}catch(t){e(t),i.unsubscribe()}},error:e,complete:r})})}}),l(w,{from:function(t){var n="function"==typeof this?this:w,r=y(a(t)[s]);if(r){var e=a(r.call(t));return e.constructor===n?e:new n(function(t){return e.subscribe(t)})}return new n(function(n){var r=!1;return u(function(){if(!r){try{if(p(t,!1,function(t){if(n.next(t),r)return v})===v)return}catch(t){if(r)throw t;return void n.error(t)}n.complete()}}),function(){r=!0}})},of:function(){for(var t=0,n=arguments.length,r=new Array(n);t2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*s,{setTimeout:c(e.setTimeout),setInterval:c(e.setInterval)})},function(t,n,r){"use strict";var e=r(8),i=r(209);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){"use strict";for(var e=r(194),i=r(30),o=r(18),u=r(4),s=r(10),c=r(129),a=r(26),f=a("iterator"),l=a("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),y=0;y=0;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=x.call(i,"catchLoc"),s=x.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&x.call(e,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),p(r),j}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;p(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:y(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=g),j}}}("object"===("undefined"==typeof t?"undefined":r(t))?t:"object"===("undefined"==typeof window?"undefined":r(window))?window:"object"===("undefined"==typeof self?"undefined":r(self))?self:void 0)}).call(n,function(){return this}(),r(324)(t))},function(t,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,n,r){"use strict";r(326),t.exports=r(9).RegExp.escape},function(t,n,r){"use strict";var e=r(8),i=r(327)(/[\\^$*+?.()|[\]{}]/g,"\\$&");e(e.S,"RegExp",{escape:function(t){return i(t)}})},function(t,n){"use strict";t.exports=function(t,n){var r=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,r)}}},function(t,n,r){"use strict";function e(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n.default=t,n}function i(t){return t&&t.__esModule?t:{default:t}}function o(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function u(t,n){var r={};for(var e in t)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}Object.defineProperty(n,"__esModule",{value:!0}),n.pow=void 0;var s=Object.assign||function(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n={},r=t||{},e=r.peers,i=void 0===e?I:e,c=r.disableValidation,a=r.blocked,f=void 0===a?[]:a,p=r.localStorage,y=void 0!==p&&p,g=r.persist,x=void 0!==g&&g,w=u(r,["peers","disableValidation","blocked","localStorage","persist"]),_=f.reduce(function(t,n){return s({},t,o({},n,!0))},{}),A={config:t,schema:b,isBlocked:function(t){return!!_[t]},getState:function(){return n},setState:function(t){return n=s({},n,t)}},P=s({peers:i,localStorage:y},w);x?(P.localStorage=!1,P.radisk=!0,P.until=P.until||1e3):P.radisk=!1,t.scoreThingsForPeers&&(t.countVotes=!0),A.sorts=(0,h.sorts)(A),A.souls=Object.keys(m).reduce(function(t,n){return(0,l.default)(n,m[n](A),t)},{}),Gun.on("opt",function(t){t.on("in",function(t){var n=this;Promise.all(Object.keys(t).map(function(n){return"put"===n&&t.mesh&&!c?Promise.resolve(A.schema.types(n,t[n],t,null,t,A)):Promise.resolve(t)})).then(function(){n.to.next(t),A.sendMsgNotifications(t)}).catch(function(n){return console.error("Message rejected",n.stack||n,t)})})}),A.gun=Gun(P),!x&&y&&A.gun.on("localStorage:error",function(t){return t.retry({})});var M=s({},v,E,O,d,S);return Object.keys(M).map(function(t){return A[t]=M[t](A)}),t.scoreThingsForPeers&&A.scoreThingsForPeers(),f.forEach(function(t){return A.gun.get(t).put({url:null,body:"[removed]"})}),A};n.default=P},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.and=n.allowFields=n.valFromSoul=n.soulMatchesKey=n.isSoul=n.valIs=n.keyIs=n.TOPIC_NAME_MAX=n.SUBMISSION_BODY_MAX=n.SUBMISSION_TITLE_MAX=n.COMMENT_BODY_MAX=n.DEFAULT_POW_COMPLEXITY=n.PREFIX=void 0;var i=r(330),o=e(i),u=r(335),s=e(u),c=(n.PREFIX="nab",n.DEFAULT_POW_COMPLEXITY=22,n.COMMENT_BODY_MAX=1e4,n.SUBMISSION_TITLE_MAX=300,n.SUBMISSION_BODY_MAX=4e4,n.TOPIC_NAME_MAX=42,n.keyIs=function(t){return function(n){return n===t}});n.valIs=function(t){return function(n,r){return t===r}},n.isSoul=function(t){return function(n,r,e,i,u,s){var c=s.souls[t].isMatch((0,o.default)("#",r)||n);if(c){var a=s.schema[t](n,r,e,i,u,s);return c&&a}}},n.soulMatchesKey=function(t,n){return(0,o.default)("#",n)===t},n.valFromSoul=function(t,n){return function(r,e,i,u,s,c){return e===c.souls[t].isMatch((0,o.default)("#",i)||u)[n]}},n.allowFields=function(){for(var t=arguments.length,n=Array(t),r=0;r>>0}function i(t,n,r){return t[r]=n>>>24&255,t[r+1]=n>>>16&255,t[r+2]=n>>>8&255,t[r+3]=255&n,r+4}var o=r(339);n.EMPTY_BUFFER=[],n.allocBuffer=function(t){for(var n=new Array(t),r=0;r>>0,o=(4294967295&n)>>>0;return r=i(t,e,r),i(t,o,r)},n.readTimestamp=function(t,n){return 4294967296*e(t,n)+e(t,n+4)},n.hash=function(t,n){var r=o();return n&&r.update(n),r.update(t),r.digest()},n.checkComplexity=r(345).checkComplexity},function(t,n,r){"use strict";function e(){return this instanceof e?(g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,void(this.W=new Array(64))):new e}var i=r(340),o=r(343),u=r(344),s=r(341),c=i.sum32,a=i.sum32_4,f=i.sum32_5,l=u.ch32,h=u.maj32,p=u.s0_256,v=u.s1_256,y=u.g0_256,d=u.g1_256,g=o.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];i.inherits(e,g),t.exports=e,e.blockSize=512,e.outSize=256,e.hmacStrength=192,e.padLength=64,e.prototype._update=function(t,n){for(var r=this.W,e=0;e<16;e++)r[e]=t[n+e];for(;e>8,u=255&i;o?r.push(o,u):r.push(u)}else for(e=0;e>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return n>>>0}function u(t,n){for(var r="",e=0;e>>0}return o}function f(t,n){for(var r=new Array(4*t.length),e=0,i=0;e>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function l(t,n){return t>>>n|t<<32-n}function h(t,n){return t<>>32-n}function p(t,n){return t+n>>>0}function v(t,n,r){return t+n+r>>>0}function y(t,n,r,e){return t+n+r+e>>>0}function d(t,n,r,e,i){return t+n+r+e+i>>>0}function g(t,n,r,e){var i=t[n],o=t[n+1],u=e+o>>>0,s=(u>>0,t[n+1]=u}function m(t,n,r,e){var i=n+e>>>0,o=(i>>0}function x(t,n,r,e){var i=n+e;return i>>>0}function b(t,n,r,e,i,o,u,s){var c=0,a=n;a=a+e>>>0,c+=a>>0,c+=a>>0,c+=a>>0}function w(t,n,r,e,i,o,u,s){var c=n+e+o+s;return c>>>0}function S(t,n,r,e,i,o,u,s,c,a){var f=0,l=n;l=l+e>>>0,f+=l>>0,f+=l>>0,f+=l>>0,f+=l>>0}function _(t,n,r,e,i,o,u,s,c,a){var f=n+e+o+s+a;return f>>>0}function E(t,n,r){var e=n<<32-r|t>>>r;return e>>>0}function A(t,n,r){var e=t<<32-r|n>>>r;return e>>>0}function O(t,n,r){return t>>>r}function I(t,n,r){var e=t<<32-r|n>>>r;return e>>>0}var P=r(341),M=r(342);n.inherits=M,n.toArray=e,n.toHex=i,n.htonl=o,n.toHex32=u,n.zero2=s,n.zero8=c,n.join32=a,n.split32=f,n.rotr32=l,n.rotl32=h,n.sum32=p,n.sum32_3=v,n.sum32_4=y,n.sum32_5=d,n.sum64=g,n.sum64_hi=m,n.sum64_lo=x,n.sum64_4_hi=b,n.sum64_4_lo=w,n.sum64_5_hi=S,n.sum64_5_lo=_,n.rotr64_hi=E,n.rotr64_lo=A,n.shr64_hi=O,n.shr64_lo=I},function(t,n){"use strict";function r(t,n){if(!t)throw new Error(n||"Assertion failed")}t.exports=r,r.equal=function(t,n,r){if(t!=n)throw new Error(r||"Assertion failed: "+t+" != "+n)}},function(t,n){"use strict";"function"==typeof Object.create?t.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,n,r){"use strict";function e(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var i=r(340),o=r(341);n.BlockHash=e,e.prototype.update=function(t,n){if(t=i.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-r,this.endian);for(var e=0;e>>24&255,e[i++]=t>>>16&255,e[i++]=t>>>8&255,e[i++]=255&t}else for(e[i++]=255&t,e[i++]=t>>>8&255,e[i++]=t>>>16&255,e[i++]=t>>>24&255,e[i++]=0,e[i++]=0,e[i++]=0,e[i++]=0,o=8;o>>3}function f(t){return h(t,17)^h(t,19)^t>>>10}var l=r(340),h=l.rotr32;n.ft_1=e,n.ch32=i,n.maj32=o,n.p32=u,n.s0_256=s,n.s1_256=c,n.g0_256=a,n.g1_256=f},function(t,n,r){"use strict";var e=r(341);n.checkComplexity=function(t,n){e(n<8*t.length,"Complexity is too high");var r,i=0;for(r=0;r<=n-8;r+=8,i++)if(0!==t[i])return!1;var o=255<<8+r-n;return 0===(t[i]&o)}},function(t,n){"use strict";/*! * bloom.js - bloom filter for bcoin * Copyright (c) 2014-2015, Fedor Indutny (MIT License) * Copyright (c) 2014-2016, Christopher Jeffrey (MIT License). * https://github.com/indutny/bcoin */ -function e(t,n,e){this.filter=new Uint32Array(Math.ceil(t/32)),this.size=t,this.n=n,this.tweak=e}function r(t,n){var e,r,i,o=65535&t,u=65535&n,s=t>>>16,c=n>>>16;return r=o*u,i=s*u+c*o&65535,i+=r>>>16,r&=65535,e=i<<16|r,e<0&&(e+=4294967296),e}function i(t,n){var e=t+n&4294967295;return e<0&&(e+=4294967296),e}function o(t,n){return t<>>32-n}function u(t,n){var e,u,s,c,a=3432918353,f=461845907,l=15,h=13,p=5,d=3864292196,y=n;for(e=0;e+4<=t.length;e+=4)u=t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24,u=r(u,a),u=o(u,l),u=r(u,f),y^=u,y=o(y,h),y=r(y,p),y=i(y,d);if(e!==t.length){for(s=0,c=t.length-1;c>=e;c--)s=s<<8|t[c];s=r(s,a),s=o(s,l),s<0&&(s+=4294967296),s=r(s,f),y^=s}return y^=t.length,y^=y>>>16,y=r(y,2246822507),y^=y>>>13,y=r(y,3266489909),y^=y>>>16,y<0&&(y+=4294967296),y}t.exports=e,e.prototype.hash=function(t,n){return u(t,i(r(n,4221880213),this.tweak))%this.size},e.prototype.reset=function(){this.filter.fill(0)},e.prototype.add=function(t){for(var n=0;n>5;this.filter[i]|=r}},e.prototype.test=function(t){for(var n=0;n>5;if(0===(this.filter[i]&r))return!1}return!0}},function(t,n,e){"use strict";function r(){}var i=e(338),o=8,u=o+8;t.exports=r,r.prototype._genNonce=function(t){for(var n=Date.now(),e=i.writeTimestamp(t,n,0),r=e+4*((t.length-e)/4|0);e>>0,e);for(;e>>0},r.prototype.solve=function(t,n){for(var e=i.allocBuffer(u);;){this._genNonce(e);var r=i.hash(e,n);if(i.checkComplexity(r,t))return e}}},function(t,n,e){"use strict";function r(t){function n(){return new u(t.size,t.n,4294967296*Math.random()>>>0)}this.blooms=[n(),n()],this.complexity=t.complexity,this.validity=t.validity||a,this.prefix=t.prefix||o.EMPTY_BUFFER}var i=e(337),o=i.utils,u=i.Bloom,s=8,c=32,a=6e4;t.exports=r,r.prototype.check=function(t,n){var e=this.prefix;if(t.lengthc)return!1;var r=o.readTimestamp(t,0),i=Date.now();if(Math.abs(r-i)>this.validity)return!1;for(var u=0;u0?c=1:o<0&&(c=-1),-1*(c*s+u/45e3)}),best:(0,o.default)(function(n){var e=t.getVoteCount(n,"up"),r=t.getVoteCount(n,"down"),i=e+r;if(0===i)return 0;var o=1.281551565545,u=e/i,s=u+1/(2*i)*o*o,c=o*Math.sqrt(u*(1-u)/i+o*o/(4*i*i)),a=1+1/i*o*o;return-1*((s-c)/a)}),controversial:(0,o.default)(function(n){var e=t.getVoteCount(n,"up"),r=t.getVoteCount(n,"down");if(e<=0||r<=0)return 0;var i=e+r,o=e>r?r/e:e/r;return-1*Math.pow(i,o)})}}},function(t,n,e){"use strict";var r=e(331),i=r(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,e){var r=t(n),i=t(e);return ri?1:0})});t.exports=i},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}Object.defineProperty(n,"__esModule",{value:!0}),n.scoreThingsForPeers=n.onChangeListingOff=n.onChangeListing=n.onChangeThingOff=n.onChangeThing=n.sendMsgNotifications=n.sendVoteNotifications=n.sendChangeNotifications=n.onMsg=n.onVote=n.onChangeOff=n.onChange=n.unwatchCollection=n.watchCollection=n.unwatchThing=n.watchThing=n.countVote=n.getDayStr=void 0;var u=e(354),s=r(u),c=e(358),a=r(c),f=e(334),l=r(f),h=e(363),p=r(h),d=e(365),y=r(d),g=e(366),v=r(g),m=(n.getDayStr=(0,s.default)(function(t,n){var e=new Date(n||(new Date).getTime()),r=e.getUTCFullYear(),i=e.getUTCMonth()+1,o=e.getUTCDate();return r+"/"+i+"/"+o}),n.countVote=(0,s.default)(function(t,n,e,r){if(r){var i=t.souls.thing.soul({thingid:n});t.setState((0,a.default)(["things",n,"votes",e],t.getVoteCount(n,e)+1,t.getState())),t.sendVoteNotifications(n),t.sendChangeNotifications(i)}}),(0,s.default)(function(t,n){var e=n.id,r=n.timestamp,i=o(n,["id","timestamp"]),u=t.getState(),s=t.souls.thing.get({thingid:e}),c=(0,l.default)(["replyTo","#"],i),f=(0,l.default)(["op","#"],i),h=c?t.souls.thing.isMatch(c).thingid:null,d=f?t.souls.thing.isMatch(f).thingid:null,g=(0,p.default)({},["things",e,"votes"],u),v=t.getTimestamp(e);v&&t.config.countVotes||(t.config.countVotes||["up","down","comment"].forEach(function(t){var n=(0,y.default)(g[t]||0,"votes"+t+"count",i);n&&(g[t]=n)}),t.setState((0,a.default)(["things",e],{id:e,timestamp:r,chain:s,replyToId:h,opId:d,votes:g},u)),t.sendChangeNotifications(t.souls.thing.soul({thingid:e})),t.config.countVotes&&r?(s.get("allcomments").map().once(t.countVote(e,"comment")),s.get("votesup").map().once(t.countVote(e,"up")),s.get("votesdown").map().once(t.countVote(e,"down"))):t.sendVoteNotifications(e))}));n.watchThing=m;n.unwatchThing=(0,s.default)(function(t,n){var e=t.getState(),r=(0,l.default)(["things",n,"chain"],e);return t.setState((0,a.default)(["things",n],null,e)),r&&r.off&&r.off()}),n.watchCollection=(0,s.default)(function(t,n){var e=t.getState();if((0,l.default)(["collections",n],e))return null;var r=t.gun.get(n);t.setState((0,a.default)(["collections",n,"chain"],r,e));var i=function(e){return e&&e.id?(t.setState((0,a.default)(["collections",n,"things",e.id],!0,t.getState())),t.watchThing(e)):null};return r.map().on(i)}),n.unwatchCollection=(0,s.default)(function(t,n){var e=t.getState(),r=(0,l.default)(["collections",n,"chain"],e);return t.setState((0,a.default)(["collections",n],null,e)),r&&r.off&&r.off()}),n.onChange=(0,s.default)(function(t,n,e){var r=t.getState(),o=(0,p.default)([],["changeSubscriptions",n||null],r);o.indexOf(e)===-1&&t.setState((0,a.default)(["changeSubscriptions",n||null],[].concat(i(o),[e]),r))}),n.onChangeOff=(0,s.default)(function(t,n,e){var r=t.getState(),i=(0,p.default)([],["changeSubscriptions",n||null],r).filter(function(t){return t!==e});t.setState((0,a.default)(["changeSubscriptions",n||null],i,r))}),n.onVote=(0,s.default)(function(t,n,e){var r=t.getState(),o=(0,p.default)([],["voteSubscriptions",n||null],r);o.indexOf(e)===-1&&t.setState((0,a.default)(["voteSubscriptions",n||null],[].concat(i(o),[e]),r))}),n.onMsg=function(t){return function(n){var e=t.getState(),r=(0,p.default)([],["msgSubscriptions"],e);r.indexOf(n)===-1&&t.setState((0,a.default)(["msgSubscriptions"],[].concat(i(r),[n]),e))}},n.sendChangeNotifications=(0,s.default)(function(t,n){(0,p.default)([],["changeSubscriptions",n],t.getState()).forEach(function(t){return t()}),(0,p.default)([],["changeSubscriptions",null],t.getState()).forEach(function(t){return t()})}),n.sendVoteNotifications=(0,s.default)(function(t,n){(0,p.default)([],["voteSubscriptions",n],t.getState()).forEach(function(t){return t(n)}),(0,p.default)([],["voteSubscriptions",null],t.getState()).forEach(function(t){return t(n)})}),n.sendMsgNotifications=(0,s.default)(function(t,n){(0,p.default)([],["msgSubscriptions"],t.getState()).forEach(function(t){return t(n)})}),n.onChangeThing=(0,s.default)(function(t,n,e){var r=t.souls.thing.soul({thingid:n});t.gun.get(r).once(t.watchThing),t.onChange(t.souls.thing.soul({thingid:n}),e)}),n.onChangeThingOff=(0,s.default)(function(t,n,e){return t.onChangeOff(t.souls.thing.soul({thingid:n}),e)}),n.onChangeListing=(0,s.default)(function(t,n,e){return t.getListingSouls(n).map(function(n){return t.onChange(n,e)})}),n.onChangeListingOff=(0,s.default)(function(t,n,e){return t.getListingSouls(n).map(function(n){return t.onChangeOff(n,e)})}),n.scoreThingsForPeers=function(t){return function(){var n={},e=function(n){return(0,v.default)(function(){var e=t.souls.thing.get({thingid:n}),r={};["up","down","comment"].forEach(function(e){var i=t.getVoteCount(n,e);i&&(r["votes"+e+"count"]=i)}),Object.keys(r).length&&e.put(r)},100,{trailing:!0})};t.onMsg(function(n){Object.keys(n).forEach(function(e){if("get"===e&&n.mesh&&"mem"!==n.how){var r=(0,l.default)([e,"#"],n);(t.souls.topic.isMatch(r)||t.souls.topicDay.isMatch(r)||t.souls.domain.isMatch(r)||t.souls.url.isMatch(r)||t.souls.thingComments.isMatch(r))&&t.watchCollection(r)}})}),t.onVote(null,function(t){return(n[t]||(n[t]=e(t)))()})}}},function(t,n,e){"use strict";var r=e(332),i=e(355),o=r(function(t){return i(t.length,t)});t.exports=o},function(t,n,e){"use strict";var r=e(356),i=e(332),o=e(331),u=e(357),s=o(function(t,n){return 1===t?i(n):r(t,u(t,[],n))});t.exports=s},function(t,n){"use strict";function e(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,e){return n.apply(this,arguments)};case 3:return function(t,e,r){return n.apply(this,arguments)};case 4:return function(t,e,r,i){return n.apply(this,arguments)};case 5:return function(t,e,r,i,o){return n.apply(this,arguments)};case 6:return function(t,e,r,i,o,u){return n.apply(this,arguments)};case 7:return function(t,e,r,i,o,u,s){return n.apply(this,arguments)};case 8:return function(t,e,r,i,o,u,s,c){return n.apply(this,arguments)};case 9:return function(t,e,r,i,o,u,s,c,a){return n.apply(this,arguments)};case 10:return function(t,e,r,i,o,u,s,c,a,f){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}t.exports=e},function(t,n,e){"use strict";function r(t,n,e){return function(){for(var u=[],s=0,c=t,a=0;a=arguments.length)?f=n[a]:(f=arguments[s],s+=1),u[a]=f,o(f)||(c-=1),a+=1}return c<=0?e.apply(this,u):i(c,r(t,u,e))}}var i=e(356),o=e(333);t.exports=r},function(t,n,e){"use strict";var r=e(350),i=e(359),o=e(360),u=e(361),s=e(349),c=e(362),a=r(function t(n,e,r){if(0===n.length)return e;var a=n[0];if(n.length>1){var f=!c(r)&&i(a,r)?r[a]:u(n[1])?[]:{};e=t(Array.prototype.slice.call(n,1),e,f)}if(u(a)&&o(r)){var l=[].concat(r);return l[a]=e,l}return s(a,e,r)});t.exports=a},function(t,n){"use strict";function e(t,n){return Object.prototype.hasOwnProperty.call(n,t)}t.exports=e},function(t,n){"use strict";t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){"use strict";t.exports=Number.isInteger||function(t){return t<<0===t}},function(t,n,e){"use strict";var r=e(332),i=r(function(t){return null==t});t.exports=i},function(t,n,e){"use strict";var r=e(350),i=e(364),o=e(334),u=r(function(t,n,e){return i(t,o(n,e))});t.exports=u},function(t,n,e){"use strict";var r=e(331),i=r(function(t,n){return null==n||n!==n?t:n});t.exports=i},function(t,n,e){"use strict";var r=e(350),i=e(359),o=r(function(t,n,e){return null!=e&&i(n,e)?e[n]:t});t.exports=o},function(t,n,e){"use strict";function r(t,n,e){function r(n){var e=m,r=b;return m=b=void 0,E=n,_=t.apply(r,e)}function f(t){return E=t,S=setTimeout(p,n),A?r(t):_}function l(t){var e=t-x,r=t-E,i=n-e;return I?a(i,w-r):i}function h(t){var e=t-x,r=t-E;return void 0===x||e>=n||e<0||I&&r>=w}function p(){var t=o();return h(t)?d(t):void(S=setTimeout(p,l(t)))}function d(t){return S=void 0,O&&m?r(t):(m=b=void 0,_)}function y(){void 0!==S&&clearTimeout(S),E=0,m=x=b=S=void 0}function g(){return void 0===S?_:d(o())}function v(){var t=o(),e=h(t);if(m=arguments,b=this,x=t,e){if(void 0===S)return f(x);if(I)return S=setTimeout(p,n),r(x)}return void 0===S&&(S=setTimeout(p,n)),_}var m,b,w,_,S,x,E=0,A=!1,I=!1,O=!0;if("function"!=typeof t)throw new TypeError(s);return n=u(n)||0,i(e)&&(A=!!e.leading,I="maxWait"in e,w=I?c(u(e.maxWait)||0,n):w,O="trailing"in e?!!e.trailing:O),v.cancel=y,v.flush=g,v}var i=e(367),o=e(368),u=e(371),s="Expected a function",c=Math.max,a=Math.min;t.exports=r},function(t,n){"use strict";function e(t){var n="undefined"==typeof t?"undefined":r(t);return null!=t&&("object"==n||"function"==n)}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=e},function(t,n,e){"use strict";var r=e(369),i=function(){return r.Date.now()};t.exports=i},function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(370),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,u=i||o||Function("return this")();t.exports=u},function(t,n){(function(n){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="object"==("undefined"==typeof n?"undefined":e(n))&&n&&n.Object===Object&&n;t.exports=r}).call(n,function(){return this}())},function(t,n,e){"use strict";function r(t){if("number"==typeof t)return t;if(o(t))return u;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var e=a.test(t);return e||f.test(t)?l(t.slice(2),e?2:8):c.test(t)?u:+t}var i=e(367),o=e(372),u=NaN,s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,n,e){"use strict";function r(t){return"symbol"==("undefined"==typeof t?"undefined":i(t))||u(t)&&o(t)==s}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=e(373),u=e(377),s="[object Symbol]";t.exports=r},function(t,n,e){"use strict";function r(t){return null==t?void 0===t?c:s:a&&a in Object(t)?o(t):u(t)}var i=e(374),o=e(375),u=e(376),s="[object Null]",c="[object Undefined]",a=i?i.toStringTag:void 0;t.exports=r},function(t,n,e){"use strict";var r=e(369),i=r.Symbol;t.exports=i},function(t,n,e){"use strict";function r(t){var n=u.call(t,c),e=t[c];try{t[c]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(n?t[c]=e:delete t[c]),i}var i=e(374),o=Object.prototype,u=o.hasOwnProperty,s=o.toString,c=i?i.toStringTag:void 0;t.exports=r},function(t,n){"use strict";function e(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=e},function(t,n){"use strict";function e(t){return null!=t&&"object"==("undefined"==typeof t?"undefined":r(t))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=e},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.vote=n.chat=n.comment=n.submit=n.putThing=void 0;var i=Object.assign||function(t){for(var n=1;n=0)return this.dispatch("[CIRCULAR:"+c+"]");if(e.push(n),"undefined"!=typeof o&&o.isBuffer&&o.isBuffer(n))return r("buffer:"),r(n);if("object"===s||"function"===s){var a=Object.keys(n);t.unorderedObjects&&(a=a.sort()),t.respectType===!1||y(n)||a.splice(0,0,"prototype","__proto__","constructor"),t.excludeKeys&&(a=a.filter(function(n){return!t.excludeKeys(n)})),r("object:"+a.length+":");var f=this;return a.forEach(function(e){f.dispatch(e),r(":"),t.excludeValues||f.dispatch(n[e]),r(",")})}if(!this["_"+s]){if(t.ignoreUnknown)return r("["+s+"]");throw new Error('Unknown object type "'+s+'"')}this["_"+s](n)},_array:function(n,i){i="undefined"!=typeof i?i:t.unorderedArrays!==!1;var o=this;if(r("array:"+n.length+":"),!i||n.length<=1)return n.forEach(function(t){return o.dispatch(t)});var u=[],s=n.map(function(n){var r=new m,i=e.slice(),o=v(t,r,i);return o.dispatch(n),u=u.concat(i.slice(e.length)),r.read().toString()});return e=e.concat(u),s.sort(),this._array(s,!1)},_date:function(t){return r("date:"+t.toJSON())},_symbol:function(t){return r("symbol:"+t.toString())},_error:function(t){return r("error:"+t.toString())},_boolean:function(t){return r("bool:"+t.toString())},_string:function(t){r("string:"+t.length+":"),r(t)},_function:function(n){r("fn:"),y(n)?this.dispatch("[native]"):this.dispatch(n.toString()),t.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(n.name)),t.respectFunctionProperties&&this._object(n)},_number:function(t){return r("number:"+t.toString())},_xml:function(t){return r("xml:"+t.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(t){return r("regex:"+t.toString())},_uint8array:function(t){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return r("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return r("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return r("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return r("url:"+t.toString(),"utf8")},_map:function(n){r("map:");var e=Array.from(n);return this._array(e,t.unorderedSets!==!1)},_set:function(n){r("set:");var e=Array.from(n);return this._array(e,t.unorderedSets!==!1)},_blob:function(){if(t.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function m(){return{buf:"",write:function(t){this.buf+=t},end:function(t){this.buf+=t},read:function(){return this.buf}}}var b=t("crypto");e=n.exports=p,e.sha1=function(t){return p(t)},e.keys=function(t){return p(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},e.MD5=function(t){return p(t,{algorithm:"md5",encoding:"hex"})},e.keysMD5=function(t){return p(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var w=b.getHashes?b.getHashes().slice():["sha1","md5"];w.push("passthrough");var _=["buffer","hex","binary","base64"];e.writeToStream=function(t,n,e){return"undefined"==typeof e&&(e=n,n={}),n=d(t,n),v(n,e).dispatch(t)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5f1a2fc7.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(t,n,e){(function(t,n,r,i,o,u,s,c,a){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function n(t){var n=t.charCodeAt(0);return n===o||n===l?62:n===u||n===h?63:n0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;c="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,a=new i(3*t.length/4-c),u=c>0?t.length-4:t.length;var l=0;for(r=0,o=0;r>16),e((65280&s)>>8),e(255&s);return 2===c?(s=n(t.charAt(r))<<2|n(t.charAt(r+1))>>4,e(255&s)):1===c&&(s=n(t.charAt(r))<<10|n(t.charAt(r+1))<<4|n(t.charAt(r+2))>>2,e(s>>8&255),e(255&s)),a}function r(t){function n(t){return f.charAt(t)}function e(t){return n(t>>18&63)+n(t>>12&63)+n(t>>6&63)+n(63&t)}var r,i,o,u=t.length%3,s="";for(r=0,o=t.length-u;r>2),s+=n(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=n(i>>10),s+=n(i>>4&63),s+=n(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),u="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),a="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=e,t.fromByteArray=r}("undefined"==typeof e?this.base64js={}:e)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(t,n,e){(function(n,r,i,o,s,c,a,f,l){function i(t,n,e){if(!(this instanceof i))return new i(t,n,e);var r="undefined"==typeof t?"undefined":u(t);if("base64"===n&&"string"===r)for(t=C(t);t.length%4!==0;)t+="=";var o;if("number"===r)o=U(t);else if("string"===r)o=i.byteLength(t,n);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");o=U(t.length)}var s;i._useTypedArrays?s=i._augment(new Uint8Array(o)):(s=this,s.length=o,s._isBuffer=!0);var c;if(i._useTypedArrays&&"number"==typeof t.byteLength)s._set(t);else if(D(t))for(c=0;co&&(r=o)):r=o;var u=n.length;J(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var s=0;sr)&&(e=r);for(var i="",o=n;o=i)){var o;return e?(o=t[n],n+1=i)){var o;return e?(n+2>>0)):(n+1>>0),o}}function I(t,n,e,r){r||(J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1=i)){var o=E(t,n,e,!0),u=32768&o;return u?(65535-o+1)*-1:o}}function O(t,n,e,r){r||(J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3=i)){var o=A(t,n,e,!0),u=2147483648&o;return u?(4294967295-o+1)*-1:o}}function P(t,n,e,r){return r||(J("boolean"==typeof e,"missing or invalid endian"),J(n+3=o))for(var u=0,s=Math.min(o-e,2);u>>8*(r?u:1-u)}function k(t,n,e,r,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==e&&null!==e,"missing offset"),J(e+3=o))for(var u=0,s=Math.min(o-e,4);u>>8*(r?u:3-u)&255}function L(t,n,e,r,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==e&&null!==e,"missing offset"),J(e+1=o||(n>=0?T(t,n,e,r,i):T(t,65535+n+1,e,r,i))}function j(t,n,e,r,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==e&&null!==e,"missing offset"),J(e+3=o||(n>=0?k(t,n,e,r,i):k(t,4294967295+n+1,e,r,i))}function R(t,n,e,r,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==e&&null!==e,"missing offset"),J(e+3=o||Q.write(t,n,e,r,23,4)}function F(t,n,e,r,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==e&&null!==e,"missing offset"),J(e+7=o||Q.write(t,n,e,r,52,8)}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function B(t,n,e){return"number"!=typeof t?e:(t=~~t,t>=n?n:t>=0?t:(t+=n,t>=0?t:0))}function U(t){return t=~~Math.ceil(+t),t<0?0:t}function N(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function D(t){return N(t)||i.isBuffer(t)||t&&"object"==("undefined"==typeof t?"undefined":u(t))&&"number"==typeof t.length}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t){for(var n=[],e=0;e=55296&&r<=57343&&e++;for(var o=encodeURIComponent(t.slice(i,e+1)).substr(1).split("%"),u=0;u>8,r=n%256,i.push(r),i.push(e);return i}function G(t){return Z.toByteArray(t)}function X(t,n,e,r){for(var i=0;i=n.length||i>=t.length);i++)n[i+e]=t[i];return i}function $(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function K(t,n){J("number"==typeof t,"cannot write a non-number as a number"),J(t>=0,"specified a negative value for writing an unsigned value"),J(t<=n,"value is larger than maximum value for type"),J(Math.floor(t)===t,"value has a fractional component")}function H(t,n,e){J("number"==typeof t,"cannot write a non-number as a number"),J(t<=n,"value larger than maximum allowed value"),J(t>=e,"value smaller than minimum allowed value"),J(Math.floor(t)===t,"value has a fractional component")}function q(t,n,e){J("number"==typeof t,"cannot write a non-number as a number"),J(t<=n,"value larger than maximum allowed value"),J(t>=e,"value smaller than minimum allowed value")}function J(t,n){if(!t)throw new Error(n||"Failed assertion")}var Z=t("base64-js"),Q=t("ieee754");e.Buffer=i,e.SlowBuffer=i,e.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var t=new ArrayBuffer(0),n=new Uint8Array(t);return n.foo=function(){return 42},42===n.foo()&&"function"==typeof n.subarray}catch(t){return!1}}(),i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},i.byteLength=function(t,n){var e;switch(t+="",n||"utf8"){case"hex":e=t.length/2;break;case"utf8":case"utf-8":e=V(t).length;break;case"ascii":case"binary":case"raw":e=t.length;break;case"base64":e=G(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":e=2*t.length;break;default:throw new Error("Unknown encoding")}return e},i.concat=function(t,n){if(J(N(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new i(0);if(1===t.length)return t[0];var e;if("number"!=typeof n)for(n=0,e=0;eo&&(e=o)):e=o,r=String(r||"utf8").toLowerCase();var u;switch(r){case"hex":u=h(this,t,n,e);break;case"utf8":case"utf-8":u=p(this,t,n,e);break;case"ascii":u=d(this,t,n,e);break;case"binary":u=y(this,t,n,e);break;case"base64":u=g(this,t,n,e);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":u=v(this,t,n,e);break;default:throw new Error("Unknown encoding")}return u},i.prototype.toString=function(t,n,e){var r=this;if(t=String(t||"utf8").toLowerCase(),n=Number(n)||0,e=void 0!==e?Number(e):e=r.length,e===n)return"";var i;switch(t){case"hex":i=S(r,n,e);break;case"utf8":case"utf-8":i=b(r,n,e);break;case"ascii":i=w(r,n,e);break;case"binary":i=_(r,n,e);break;case"base64":i=m(r,n,e);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=x(r,n,e);break;default:throw new Error("Unknown encoding")}return i},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(t,n,e,r){var o=this;if(e||(e=0),r||0===r||(r=this.length),n||(n=0),r!==e&&0!==t.length&&0!==o.length){J(r>=e,"sourceEnd < sourceStart"),J(n>=0&&n=0&&e=0&&r<=o.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-n=this.length))return this[t]},i.prototype.readUInt16LE=function(t,n){return E(this,t,!0,n)},i.prototype.readUInt16BE=function(t,n){return E(this,t,!1,n)},i.prototype.readUInt32LE=function(t,n){return A(this,t,!0,n)},i.prototype.readUInt32BE=function(t,n){return A(this,t,!1,n)},i.prototype.readInt8=function(t,n){if(n||(J(void 0!==t&&null!==t,"missing offset"),J(t=this.length)){var e=128&this[t];return e?(255-this[t]+1)*-1:this[t]}},i.prototype.readInt16LE=function(t,n){return I(this,t,!0,n)},i.prototype.readInt16BE=function(t,n){return I(this,t,!1,n)},i.prototype.readInt32LE=function(t,n){return O(this,t,!0,n)},i.prototype.readInt32BE=function(t,n){return O(this,t,!1,n)},i.prototype.readFloatLE=function(t,n){return P(this,t,!0,n)},i.prototype.readFloatBE=function(t,n){return P(this,t,!1,n)},i.prototype.readDoubleLE=function(t,n){return M(this,t,!0,n)},i.prototype.readDoubleBE=function(t,n){return M(this,t,!1,n)},i.prototype.writeUInt8=function(t,n,e){e||(J(void 0!==t&&null!==t,"missing value"),J(void 0!==n&&null!==n,"missing offset"),J(n=this.length||(this[n]=t)},i.prototype.writeUInt16LE=function(t,n,e){T(this,t,n,!0,e)},i.prototype.writeUInt16BE=function(t,n,e){T(this,t,n,!1,e)},i.prototype.writeUInt32LE=function(t,n,e){k(this,t,n,!0,e)},i.prototype.writeUInt32BE=function(t,n,e){k(this,t,n,!1,e)},i.prototype.writeInt8=function(t,n,e){e||(J(void 0!==t&&null!==t,"missing value"),J(void 0!==n&&null!==n,"missing offset"),J(n=this.length||(t>=0?this.writeUInt8(t,n,e):this.writeUInt8(255+t+1,n,e))},i.prototype.writeInt16LE=function(t,n,e){L(this,t,n,!0,e)},i.prototype.writeInt16BE=function(t,n,e){L(this,t,n,!1,e)},i.prototype.writeInt32LE=function(t,n,e){j(this,t,n,!0,e)},i.prototype.writeInt32BE=function(t,n,e){j(this,t,n,!1,e)},i.prototype.writeFloatLE=function(t,n,e){R(this,t,n,!0,e)},i.prototype.writeFloatBE=function(t,n,e){R(this,t,n,!1,e)},i.prototype.writeDoubleLE=function(t,n,e){F(this,t,n,!0,e)},i.prototype.writeDoubleBE=function(t,n,e){F(this,t,n,!1,e)},i.prototype.fill=function(t,n,e){if(t||(t=0),n||(n=0),e||(e=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),J("number"==typeof t&&!isNaN(t),"value is not a number"),J(e>=n,"end < start"),e!==n&&0!==this.length){J(n>=0&&n=0&&e<=this.length,"end out of bounds");for(var r=n;r"},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i._useTypedArrays)return new i(this).buffer;for(var t=new Uint8Array(this.length),n=0,e=t.length;nw?n=t(n):n.length>5]|=128<>>9<<4)+14]=n;for(var e=1732584193,r=-271733879,i=-1732584194,o=271733878,u=0;u>16)+(n>>16)+(e>>16);return r<<16|65535&e}function m(t,n){return t<>>32-n}var b=t("./helpers");n.exports=function(t){return b.hash(t,l,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,n,e){(function(t,e,r,i,o,u,s,c,a){!function(){var t,e,r=this;t=function(t){for(var n,n,e=new Array(t),r=0;r>>((3&r)<<3)&255;return e},r.crypto&&crypto.getRandomValues&&(e=function(t){var n=new Uint8Array(t);return crypto.getRandomValues(n),n}),n.exports=e||t}()}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(t,n,e){(function(e,r,i,o,u,s,c,a,f){function l(t,n){t[n>>5]|=128<<24-n%32,t[(n+64>>9<<4)+15]=n;for(var e=Array(80),r=1732584193,i=-271733879,o=-1732584194,u=271733878,s=-1009589776,c=0;c>16)+(n>>16)+(e>>16);return r<<16|65535&e}function y(t,n){return t<>>32-n}var g=t("./helpers");n.exports=function(t){return g.hash(t,l,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(t,n,e){(function(e,r,i,o,u,s,c,a,f){var l=t("./helpers"),h=function(t,n){var e=(65535&t)+(65535&n),r=(t>>16)+(n>>16)+(e>>16);return r<<16|65535&e},p=function(t,n){return t>>>n|t<<32-n},d=function(t,n){return t>>>n},y=function(t,n,e){return t&n^~t&e},g=function(t,n,e){return t&n^t&e^n&e},v=function(t){return p(t,2)^p(t,13)^p(t,22)},m=function(t){return p(t,6)^p(t,11)^p(t,25)},b=function(t){return p(t,7)^p(t,18)^d(t,3)},w=function(t){return p(t,17)^p(t,19)^d(t,10)},_=function t(n,e){var r,i,o,u,s,c,a,f,l,p,d,_,t=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),S=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);n[e>>5]|=128<<24-e%32,n[(e+64>>9<<4)+15]=e;for(var l=0;l0)){var r=e.shift();r()}},!0),function(t){e.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(t,n,e){(function(t,n,r,i,o,u,s,c,a){e.read=function(t,n,e,r,i){var o,u,s=8*i-r-1,c=(1<>1,f=-7,l=e?i-1:0,h=e?-1:1,p=t[n+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[n+l],l+=h,f-=8);for(u=o&(1<<-f)-1,o>>=-f,f+=r;f>0;u=256*u+t[n+l],l+=h,f-=8);if(0===o)o=1-a;else{if(o===c)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,r),o-=a}return(p?-1:1)*u*Math.pow(2,o-r)},e.write=function(t,n,e,r,i,o){var u,s,c,a=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,y=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-u))<1&&(u--,c*=2),n+=u+l>=1?h/c:h*Math.pow(2,1-l),n*c>=2&&(u++,c/=2),u+l>=f?(s=0,u=f):u+l>=1?(s=(n*c-1)*Math.pow(2,i),u+=l):(s=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[e+p]=255&s,p+=d,s/=256,i-=8);for(u=u<0;t[e+p]=255&u,p+=d,u/=256,a-=8);t[e+p-d]|=128*y}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})},function(t,n,e){"use strict";(function(){var n;n=e(381),e(382),e(385),e(383),e(386),t.exports=n}).call(void 0)},function(t,n){"use strict";(function(){var n,e,r,i,o={}.hasOwnProperty;e=/^(?:(?:([^:\/?\#]+:)\/+|(\/\/))(?:([a-z0-9-\._~%]+)(?::([a-z0-9-\._~%]+))?@)?(([a-z0-9-\._~%!$&'()*+,;=]+)(?::([0-9]+))?)?)?([^?\#]*?)(\?[^\#]*)?(\#.*)?$/,i=function(t,n){return i.URL.parse(t,n)},i.URL=n=function(){function t(t){var n,e,i;for(n in r)o.call(r,n)&&(e=r[n],this[n]=null!=(i=t[n])?i:e);this.host||(this.host=this.hostname&&this.port?""+this.hostname+":"+this.port:this.hostname?this.hostname:""),this.origin||(this.origin=this.protocol?""+this.protocol+"//"+this.host:""),this.isAbsolutePathRelative=!this.host&&"/"===this.pathname.charAt(0),this.isPathRelative=!this.host&&"/"!==this.pathname.charAt(0),this.isRelative=this.isSchemeRelative||this.isAbsolutePathRelative||this.isPathRelative,this.isAbsolute=!this.isRelative}return t.parse=function(t){var n,r,o;return n=t.toString().match(e),r=n[8]||"",o=n[1],new i.URL({protocol:o,username:n[3],password:n[4],hostname:n[6],port:n[7],pathname:o&&"/"!==r.charAt(0)?"/"+r:r,search:n[9],hash:n[10],isSchemeRelative:null!=n[2]})},t}(),r={protocol:"",username:"",password:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:"",origin:"",isSchemeRelative:!1},t.exports=i}).call(void 0)},function(t,n,e){"use strict";(function(){var t,n,r,i,o=[].slice;i=e(381),e(383),t=i.URL,r=t.parse,n=function(){var t,n,e,r,i,u;for(r=arguments[0],e=arguments[1],n=3<=arguments.length?o.call(arguments,2):[],i=0,u=n.length;i) is neither absolute nor absolute path relative.");for(o=t.pathname.split("/").slice(1),s=u.pathname.split("/").slice(1),r=c=0,a=s.length;c(f=r+1)&&ff&&I.push("'"+this.terminals_[x]+"'");M=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(m==l?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:g,expected:I})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+m);switch(_[0]){case 1:e.push(m),r.push(p.yytext),i.push(p.yylloc),e.push(_[1]),m=null,b?(m=b,b=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,g=p.yylloc,a>0&&a--);break;case 2:if(E=this.productions_[_[1]][1],P.$=r[r.length-E],P._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},v&&(P._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),S=this.performAction.apply(P,[u,c,s,d.yy,_[1],r,i].concat(h)),"undefined"!=typeof S)return S;E&&(e=e.slice(0,-1*E*2),r=r.slice(0,-1*E),i=i.slice(0,-1*E)),e.push(this.productions_[_[1]][0]),r.push(P.$),i.push(P._$),A=o[e[e.length-2]][e[e.length-1]],e.push(A);break;case 3:return!0}}return!0}},c=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;on[0].length)){if(n=e,r=o,this.options.backtrack_lexer){if(t=this.test_match(e,i[o]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1&&t):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:return"LITERAL";case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return t}();return s.lexer=c,t.prototype=s,s.Parser=t,new t}();n.parser=r,n.Parser=r.Parser,n.parse=function(){return r.parse.apply(r,arguments)}},function(t,n){"use strict";function e(t){return function(n,e){return{displayName:t,props:n,children:e||[]}}}t.exports={Root:e("Root"),Concat:e("Concat"),Literal:e("Literal"),Splat:e("Splat"),Param:e("Param"),Optional:e("Optional")}},function(t,n,e){"use strict";function r(t){this.captures=t.captures,this.re=t.re}var i=e(395),o=/[\-{}\[\]+?.,\\\^$|#\s]/g;r.prototype.match=function(t){var n=this.re.exec(t),e={};if(n)return this.captures.forEach(function(t,r){"undefined"==typeof n[r+1]?e[t]=void 0:e[t]=decodeURIComponent(n[r+1])}),e};var u=i({Concat:function(t){return t.children.reduce(function(t,n){var e=this.visit(n);return{re:t.re+e.re,captures:t.captures.concat(e.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(t){return{re:t.props.value.replace(o,"\\$&"),captures:[]}},Splat:function(t){return{re:"([^?]*?)",captures:[t.props.name]}},Param:function(t){return{re:"([^\\/\\?]+)",captures:[t.props.name]}},Optional:function(t){var n=this.visit(t.children[0]);return{re:"(?:"+n.re+")?",captures:n.captures}},Root:function(t){var n=this.visit(t.children[0]);return new r({re:new RegExp("^"+n.re+"(?=\\?|$)"),captures:n.captures})}});t.exports=u},function(t,n,e){"use strict";function r(t){return i.forEach(function(n){if("undefined"==typeof t[n])throw new Error("No handler defined for "+n.displayName)}),{visit:function(t,n){return this.handlers[t.displayName].call(this,t,n)},handlers:t}}var i=Object.keys(e(393));t.exports=r},function(t,n,e){"use strict";var r=e(395),i=r({Concat:function(t,n){var e=t.children.map(function(t){return this.visit(t,n)}.bind(this));return!e.some(function(t){return t===!1})&&e.join("")},Literal:function(t){return decodeURI(t.props.value)},Splat:function(t,n){return!!n[t.props.name]&&n[t.props.name]},Param:function(t,n){return!!n[t.props.name]&&n[t.props.name]},Optional:function(t,n){var e=this.visit(t.children[0],n);return e?e:""},Root:function(t,n){n=n||{};var e=this.visit(t.children[0],n);return!!e&&encodeURI(e)}});t.exports=i},function(t,n,e){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}Object.defineProperty(n,"__esModule",{value:!0}),n.thingData=n.things=n.thingVotes=n.thing=n.thingComments=n.thingAllComments=n.domain=n.url=n.topics=n.topicDays=n.topicDay=n.topic=n.types=void 0;var o=e(330),u=r(o),s=e(329),c=e(379),a=r(c),f=e(337),l=r(f),h=(n.types=(0,s.allowFields)((0,s.isSoul)("topicDay"),(0,s.isSoul)("topicDays"),(0,s.isSoul)("topics"),(0,s.isSoul)("topic"),(0,s.isSoul)("domain"),(0,s.isSoul)("url"),(0,s.isSoul)("thingData"),(0,s.isSoul)("thingVotes"),(0,s.isSoul)("thingAllComments"),(0,s.isSoul)("thingComments"),(0,s.isSoul)("thing"),(0,s.isSoul)("things")),n.topic=(0,s.allowFields)((0,s.and)((0,s.keyIs)("name"),(0,s.valFromSoul)("topic","topicname")),(0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.topicDay=(0,s.allowFields)((0,s.and)((0,s.keyIs)("name"),(0,s.valFromSoul)("topicDay","topicname")),(0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.topicDays=(0,s.allowFields)((0,s.and)((0,s.keyIs)("name"),(0,s.valFromSoul)("topicDays","topicname")),(0,s.and)((0,s.isSoul)("topicDay"),s.soulMatchesKey)),n.topics=(0,s.allowFields)((0,s.and)((0,s.isSoul)("topic"),s.soulMatchesKey)),n.url=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.domain=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.thingAllComments=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.thingComments=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.thing=(0,s.allowFields)((0,s.and)((0,s.keyIs)("id"),(0,s.valFromSoul)("thing","thingid")),(0,s.and)((0,s.keyIs)("data"),(0,s.isSoul)("thingData")),(0,s.and)((0,s.keyIs)("topic"),(0,s.isSoul)("topic")),(0,s.and)((0,s.keyIs)("domain"),(0,s.isSoul)("domain")),(0,s.and)((0,s.keyIs)("url"),(0,s.isSoul)("url")),(0,s.and)((0,s.keyIs)("comments"),(0,s.isSoul)("thingComments")),(0,s.and)((0,s.keyIs)("allcomments"),(0,s.isSoul)("thingAllComments")),(0,s.and)((0,s.keyIs)("votesup"),(0,s.isSoul)("thingVotes")),(0,s.and)((0,s.keyIs)("votesdown"),(0,s.isSoul)("thingVotes")),(0,s.and)((0,s.keyIs)("op"),(0,s.isSoul)("thing")),(0,s.and)((0,s.keyIs)("replyTo"),(0,s.isSoul)("thing")),(0,s.keyIs)("timestamp")),n.thingVotes=function(n,e,r,i,o,u){var c=s.DEFAULT_POW_COMPLEXITY,a=u.souls.thingVotes.isMatch(e["#"]||n);return Object.keys(e).map(function(r){if("#"!==r&&"_"!==r){var i=e[r],o=new l.default.Verifier({size:1024,n:16,complexity:c,prefix:n,validity:1/0}),u=t.hasOwnProperty("from")?t.from(i,"hex"):new t(i,"hex");o.check(u,c)||(console.warn("invalid vote",n,i),delete e[r])}}),!!a},n.things=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),(0,s.allowFields)((0,s.keyIs)("kind"),(0,s.keyIs)("title"),(0,s.keyIs)("topic"),(0,s.keyIs)("body"),(0,s.keyIs)("author"),(0,s.keyIs)("authorId"),(0,s.keyIs)("opId"),(0,s.keyIs)("replyToId"),(0,s.keyIs)("domain"),(0,s.keyIs)("url"),(0,s.keyIs)("timestamp"))),p=function(t,n,e,r,o,s){return h(t,n,e,r,o,s).then(function(){var e=(n._,i(n,["_"]));if(delete e["#"],s.isBlocked(t))n.url=null,n.body="[removed]",Object.keys(n).forEach(function(t){"url"!==t&&"body"!==t&&"_"!==t&&"#"!==t&&delete n[t]});else if(Object.keys(e).length){var r=(0,a.default)(e,{unorderedSets:!0}),c=s.souls.thingData.isMatch((0,u.default)("#",n)||t);r!==c.thingid&&(console.warn("thing data mismatch",r,c.thingid,o,e),Object.keys(n).forEach(function(t){"_"!==t&&"#"!==t&&delete n[t]}))}return n})};n.thingData=p}).call(n,e(398).Buffer)},function(t,n,e){(function(t){/*! +function r(t,n,r){this.filter=new Uint32Array(Math.ceil(t/32)),this.size=t,this.n=n,this.tweak=r}function e(t,n){var r,e,i,o=65535&t,u=65535&n,s=t>>>16,c=n>>>16;return e=o*u,i=s*u+c*o&65535,i+=e>>>16,e&=65535,r=i<<16|e,r<0&&(r+=4294967296),r}function i(t,n){var r=t+n&4294967295;return r<0&&(r+=4294967296),r}function o(t,n){return t<>>32-n}function u(t,n){var r,u,s,c,a=3432918353,f=461845907,l=15,h=13,p=5,v=3864292196,y=n;for(r=0;r+4<=t.length;r+=4)u=t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24,u=e(u,a),u=o(u,l),u=e(u,f),y^=u,y=o(y,h),y=e(y,p),y=i(y,v);if(r!==t.length){for(s=0,c=t.length-1;c>=r;c--)s=s<<8|t[c];s=e(s,a),s=o(s,l),s<0&&(s+=4294967296),s=e(s,f),y^=s}return y^=t.length,y^=y>>>16,y=e(y,2246822507),y^=y>>>13,y=e(y,3266489909),y^=y>>>16,y<0&&(y+=4294967296),y}t.exports=r,r.prototype.hash=function(t,n){return u(t,i(e(n,4221880213),this.tweak))%this.size},r.prototype.reset=function(){this.filter.fill(0)},r.prototype.add=function(t){for(var n=0;n>5;this.filter[i]|=e}},r.prototype.test=function(t){for(var n=0;n>5;if(0===(this.filter[i]&e))return!1}return!0}},function(t,n,r){"use strict";function e(){}var i=r(338),o=8,u=o+8;t.exports=e,e.prototype._genNonce=function(t){for(var n=Date.now(),r=i.writeTimestamp(t,n,0),e=r+4*((t.length-r)/4|0);r>>0,r);for(;r>>0},e.prototype.solve=function(t,n){for(var r=i.allocBuffer(u);;){this._genNonce(r);var e=i.hash(r,n);if(i.checkComplexity(e,t))return r}}},function(t,n,r){"use strict";function e(t){function n(){return new u(t.size,t.n,4294967296*Math.random()>>>0)}this.blooms=[n(),n()],this.complexity=t.complexity,this.validity=t.validity||a,this.prefix=t.prefix||o.EMPTY_BUFFER}var i=r(337),o=i.utils,u=i.Bloom,s=8,c=32,a=6e4;t.exports=e,e.prototype.check=function(t,n){var r=this.prefix;if(t.lengthc)return!1;var e=o.readTimestamp(t,0),i=Date.now();if(Math.abs(e-i)>this.validity)return!1;for(var u=0;u0?c=1:o<0&&(c=-1),-1*(c*s+u/45e3)}),best:(0,o.default)(function(n){var r=t.getVoteCount(n,"up"),e=t.getVoteCount(n,"down"),i=r+e;if(0===i)return 0;var o=1.281551565545,u=r/i,s=u+1/(2*i)*o*o,c=o*Math.sqrt(u*(1-u)/i+o*o/(4*i*i)),a=1+1/i*o*o;return-1*((s-c)/a)}),controversial:(0,o.default)(function(n){var r=t.getVoteCount(n,"up"),e=t.getVoteCount(n,"down");if(r<=0||e<=0)return 0;var i=r+e,o=r>e?e/r:r/e;return-1*Math.pow(i,o)})}}},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,r){var e=t(n),i=t(r);return ei?1:0})});t.exports=i},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}Object.defineProperty(n,"__esModule",{value:!0}),n.scoreThingsForPeers=n.onChangeListingOff=n.onChangeListing=n.onChangeThingOff=n.onChangeThing=n.sendMsgNotifications=n.sendVoteNotifications=n.sendChangeNotifications=n.onMsg=n.onVote=n.onChangeOff=n.onChange=n.unwatchCollection=n.watchCollection=n.unwatchThing=n.watchThing=n.countVote=n.getDayStr=void 0;var u=r(354),s=r(663),c=e(s),a=(n.getDayStr=(0,u.curry)(function(t,n){var r=new Date(n||(new Date).getTime()),e=r.getUTCFullYear(),i=r.getUTCMonth()+1,o=r.getUTCDate();return e+"/"+i+"/"+o}),n.countVote=(0,u.curry)(function(t,n,r,e){if(e){var i=t.souls.thing.soul({thingid:n});t.setState((0,u.assocPath)(["things",n,"votes",r],t.getVoteCount(n,r)+1,t.getState())),t.sendVoteNotifications(n),t.sendChangeNotifications(i)}}),(0,u.curry)(function(t,n){var r=n.id,e=n.timestamp,i=o(n,["id","timestamp"]),s=t.getState(),c=!1,a=t.souls.thing.get({thingid:r}),f=(0,u.path)(["replyTo","#"],i),l=(0,u.path)(["op","#"],i),h=f?t.souls.thing.isMatch(f).thingid:null,p=l?t.souls.thing.isMatch(l).thingid:null,v=(0,u.pathOr)({},["things",r,"votes"],s),y=t.getTimestamp(r),d=i.lastActive||e;y&&t.config.countVotes||(t.config.countVotes||["up","down","comment"].forEach(function(t){var n=(0,u.propOr)(v[t]||0,"votes"+t+"count",i);n&&(v[t]=n)}),s=(0,u.assocPath)(["things",r],(0,u.merge)((0,u.pathOr)({},["things",r],s),{id:r,timestamp:e,lastActive:d,chain:a,replyToId:h,opId:p,votes:v}),s),h&&(s=(0,u.assocPath)(["things",h,"replies",r],!0,s)),p&&t.getLastActive(p)=arguments.length)?f=n[a]:(f=arguments[s],s+=1),u[a]=f,o(f)||(c-=1),a+=1}return c<=0?r.apply(this,u):i(c,e(t,u,r))}}var i=r(363),o=r(333);t.exports=e},function(t,n,r){"use strict";var e=r(361),i=r(350),o=i(function(t,n,r){if(n>=r.length||n<-r.length)return r;var i=n<0?r.length:0,o=i+n,u=e(r);return u[o]=t(r[o]),u});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(370),u=e(i(["all"],o,function(t,n){for(var r=0;r=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){"use strict";function r(t){return"function"==typeof t["@@transducer/step"]}t.exports=r},function(t,n,r){"use strict";var e=r(331),i=r(371),o=r(372),u=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=i(this.xf["@@transducer/step"](t,!1))),t},t}(),s=e(function(t,n){return new u(t,n)});t.exports=s},function(t,n){"use strict";function r(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}t.exports=r},function(t,n){"use strict";t.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}}},function(t,n,r){"use strict";var e=r(332),i=r(362),o=r(374),u=r(375),s=r(387),c=e(function(t){return i(s(o,0,u("length",t)),function(){for(var n=0,r=t.length;nt?n:t});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(376),o=r(330),u=e(function(t,n){return i(o(t),n)});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(377),u=r(378),s=r(383),c=r(362),a=r(384),f=e(i(["fantasy-land/map","map"],s,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return c(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return u(function(r,e){return r[e]=t(n[e]),r},{},a(n));default:return o(t,n)}}));t.exports=f},function(t,n){"use strict";function r(t,n){for(var r=0,e=n.length,i=Array(e);r0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))});t.exports=s},function(t,n){"use strict";function r(t){return"[object String]"===Object.prototype.toString.call(t)}t.exports=r},function(t,n){"use strict";function r(t){return new e(t)}var e=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();t.exports=r},function(t,n,r){"use strict";var e=r(363),i=r(331),o=i(function(t,n){return e(t.length,function(){return t.apply(n,arguments)})});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(372),o=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},t}(),u=e(function(t,n){return new o(t,n)});t.exports=u},function(t,n,r){"use strict";var e=r(332),i=r(385),o=r(386),u=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){return arguments.propertyIsEnumerable("length")}(),a=function(t,n){for(var r=0;r=0;)n=s[r],i(n,t)&&!a(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)},l=e(f);t.exports=l},function(t,n){"use strict";function r(t,n){return Object.prototype.hasOwnProperty.call(n,t)}t.exports=r},function(t,n,r){"use strict";var e=r(385),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(t){return"[object Arguments]"===i.call(t)}:function(t){return e("callee",t)}};t.exports=o},function(t,n,r){"use strict";var e=r(350),i=r(378),o=e(i);t.exports=o},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return t&&n});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(390),u=e(i(["any"],o,function(t,n){for(var r=0;r=0?e:0);ri?1:0});t.exports=i},function(t,n,r){"use strict";var e=r(350),i=r(385),o=r(368),u=r(403),s=r(349),c=r(404),a=e(function t(n,r,e){if(0===n.length)return r;var a=n[0];if(n.length>1){var f=!c(e)&&i(a,e)?e[a]:u(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,f)}if(u(a)&&o(e)){var l=[].concat(e);return l[a]=r,l}return s(a,r,e)});t.exports=a},function(t,n){"use strict";t.exports=Number.isInteger||function(t){return t<<0===t}},function(t,n,r){"use strict";var e=r(332),i=e(function(t){return null==t});t.exports=i},function(t,n,r){"use strict";var e=r(332),i=r(406),o=e(function(t){return i(2,t)});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){switch(t){case 0:return function(){return n.call(this)};case 1:return function(t){return n.call(this,t)};case 2:return function(t,r){return n.call(this,t,r)};case 3:return function(t,r,e){return n.call(this,t,r,e)};case 4:return function(t,r,e,i){return n.call(this,t,r,e,i)};case 5:return function(t,r,e,i,o){return n.call(this,t,r,e,i,o)};case 6:return function(t,r,e,i,o,u){return n.call(this,t,r,e,i,o,u)};case 7:return function(t,r,e,i,o,u,s){return n.call(this,t,r,e,i,o,u,s)};case 8:return function(t,r,e,i,o,u,s,c){return n.call(this,t,r,e,i,o,u,s,c)};case 9:return function(t,r,e,i,o,u,s,c,a){return n.call(this,t,r,e,i,o,u,s,c,a)};case 10:return function(t,r,e,i,o,u,s,c,a,f){return n.call(this,t,r,e,i,o,u,s,c,a,f)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(408),o=r(388),u=r(409),s=e(function(t,n){return i(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:u(o)(t,n)});t.exports=s},function(t,n){"use strict";function r(t){return"[object Function]"===Object.prototype.toString.call(t)}t.exports=r},function(t,n,r){"use strict";var e=r(332),i=r(410),o=e(function(t){return i(t.length,t)});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(378),o=r(392),u=r(362),s=r(376),c=e(function(t,n){var r=u(t,n);return u(t,function(){return i(o,s(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});t.exports=c},function(t,n,r){"use strict";var e=r(412),i=e(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});t.exports=i},function(t,n,r){"use strict";var e=r(332),i=r(362),o=e(function(t){return i(t.length,t)});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(414),u=r(415),s=r(376),c=e(i(["fantasy-land/chain","chain"],u,function(t,n){return"function"==typeof n?function(r){return t(n(r))(r)}:o(!1)(s(t,n))}));t.exports=c},function(t,n,r){"use strict";function e(t){return function n(r){for(var e,o,u,s=[],c=0,a=r.length;cn)throw new Error("min must not be greater than max in clamp(min, max, value)");return rn?n:r});t.exports=i},function(t,n,r){"use strict";var e=r(420),i=r(332),o=i(function(t){return null!=t&&"function"==typeof t.clone?t.clone():e(t,[],[],!0)});t.exports=o},function(t,n,r){"use strict";function e(t,n,r,u){var s=function(i){for(var o=n.length,s=0;s":e(r,i)},l=function(t,n){return u(function(n){return s(n)+": "+r(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+u(r,t).join(", ")+"))";case"[object Array]":return"["+u(r,t).concat(l(t,f(function(t){return/^\d+$/.test(t)},a(t)))).join(", ")+"]";case"[object Boolean]":return"object"===("undefined"==typeof t?"undefined":i(t))?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):s(c(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===("undefined"==typeof t?"undefined":i(t))?"new Number("+r(t.valueOf())+")":1/t===-(1/0)?"-0":t.toString(10);case"[object String]":return"object"===("undefined"==typeof t?"undefined":i(t))?"new String("+r(t.valueOf())+")":s(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var h=t.toString();if("[object Object]"!==h)return h}return"{"+l(t,a(t)).join(", ")+"}"}}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(440),u=r(377),s=r(448),c=r(449),a=r(384),f=r(450);t.exports=e},function(t,n,r){"use strict";function e(t,n){return i(n,t,0)>=0}var i=r(441);t.exports=e},function(t,n,r){"use strict";function e(t,n,r){var e,u;if("function"==typeof t.indexOf)switch("undefined"==typeof n?"undefined":i(n)){case"number":if(0===n){for(e=1/n;r=0;){if(r[p]===t)return u[p]===n;p-=1}switch(s){case"Map":return t.size===n.size&&e(t.entries(),n.entries(),r.concat([t]),u.concat([n]));case"Set":return t.size===n.size&&e(t.values(),n.values(),r.concat([t]),u.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var v=l(t);if(v.length!==l(n).length)return!1;var y=r.concat([t]),d=u.concat([n]);for(p=v.length-1;p>=0;){var g=v[p];if(!a(g,n)||!i(n[g],t[g],y,d))return!1;p-=1}return!0}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=r(444),s=r(445),c=r(446),a=r(385),f=r(447),l=r(384),h=r(422);t.exports=i},function(t,n){"use strict";function r(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}t.exports=r},function(t,n){"use strict";function r(t,n,r){for(var e=0,i=r.length;e10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:i(o(t,function(t,r,e,i,o,u,s,c,a,f){switch(arguments.length){case 1:return new n(t);case 2:return new n(t,r);case 3:return new n(t,r,e);case 4:return new n(t,r,e,i);case 5:return new n(t,r,e,i,o);case 6:return new n(t,r,e,i,o,u);case 7:return new n(t,r,e,i,o,u,s);case 8:return new n(t,r,e,i,o,u,s,c);case 9:return new n(t,r,e,i,o,u,s,c,a);case 10:return new n(t,r,e,i,o,u,s,c,a,f)}}))});t.exports=u},function(t,n,r){"use strict";var e=r(440),i=r(331),o=i(e);t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(377),o=r(362),u=r(374),s=r(375),c=r(387),a=e(function(t,n){return o(c(u,0,s("length",n)),function(){var r=arguments,e=this;return t.apply(e,i(function(t){return t.apply(e,r)},n))})});t.exports=a},function(t,n,r){"use strict";var e=r(462),i=e(function(t,n){return t+1},0);t.exports=i},function(t,n,r){"use strict";var e=r(364),i=r(367),o=r(385),u=r(378),s=r(463),c=e(4,[],i([],s,function(t,n,r,e){return u(function(e,i){var u=r(i);return e[u]=t(o(u,e)?e[u]:n,i),e},{},e)}));t.exports=c},function(t,n,r){"use strict";var e=r(364),i=r(385),o=r(372),u=function(){function t(t,n,r,e){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=e,this.inputs={}}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(i(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},t}(),s=e(4,[],function(t,n,r,e){return new u(t,n,r,e)});t.exports=s},function(t,n,r){"use strict";var e=r(359),i=e(-1);t.exports=i},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return null==n||n!==n?t:n});t.exports=i},function(t,n,r){"use strict";var e=r(350),i=e(function(t,n,r){var e=t(n),i=t(r);return e>i?-1:e0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)},t}(),u=e(function(t,n){return new o(t,n)});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(477),u=r(480),s=e(i([],u,o));t.exports=s},function(t,n,r){"use strict";function e(t,n){return i(t=0&&this.i>=this.n?i(r):r},t}(),s=e(function(t,n){return new u(t,n)});t.exports=s},function(t,n,r){"use strict";var e=r(331),i=r(372),o=function(){function t(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t}(),u=e(function(t,n){return new o(t,n)});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(482),u=r(483),s=e(i([],u,o));t.exports=s},function(t,n,r){"use strict";function e(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return i(0,r+1,n)}var i=r(431);t.exports=e},function(t,n,r){"use strict";var e=r(331),i=r(378),o=r(372),u=function(){function t(t,n){this.f=t,this.retained=[],this.xf=n}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.retain(t,n):this.flush(t,n)},t.prototype.flush=function(t,n){return t=i(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},t.prototype.retain=function(t,n){return this.retained.push(n),t},t}(),s=e(function(t,n){return new u(t,n)});t.exports=s},function(t,n,r){"use strict";var e=r(332),i=r(367),o=r(485),u=r(486),s=r(442),c=e(i([],o(s),u(s)));t.exports=c},function(t,n,r){"use strict";var e=r(331),i=r(372),o=function(){function t(t,n){this.xf=n,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,n){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,n)&&(r=!0):this.seenFirstValue=!0,this.lastValue=n,r?t:this.xf["@@transducer/step"](t,n)},t}(),u=e(function(t,n){return new o(t,n)});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(485),u=r(487),s=e(i([],o,function(t,n){var r=[],e=1,i=n.length;if(0!==i)for(r[0]=n[0];e=0?n.length-t:0,n)});t.exports=o},function(t,n,r){"use strict";var e=r(350),i=r(442),o=e(function(t,n,r){return i(t(n),t(r))});t.exports=o},function(t,n,r){"use strict";var e=r(350),i=r(442),o=e(function(t,n,r){return i(n[t],r[t])});t.exports=o},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(331),o=i(function t(n,r){var i,o,u,s={};for(o in r)i=n[o],u="undefined"==typeof i?"undefined":e(i),s[o]="function"===u?i(r[o]):i&&"object"===u?t(i,r[o]):r[o];return s});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(500),u=e(i(["find"],o,function(t,n){for(var r=0,e=n.length;r=0;){if(t(n[r]))return n[r];r-=1}}));t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(372),o=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t},t}(),u=e(function(t,n){return new o(t,n)});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(506),u=e(i([],o,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}));t.exports=u},function(t,n,r){"use strict";var e=r(331),i=r(372),o=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},t}(),u=e(function(t,n){return new o(t,n)});t.exports=u},function(t,n,r){"use strict";var e=r(332),i=r(414),o=e(i(!0));t.exports=o},function(t,n,r){"use strict";var e=r(332),i=r(362),o=e(function(t){return i(t.length,function(n,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=n,t.apply(this,e)})});t.exports=o},function(t,n,r){"use strict";var e=r(430),i=r(331),o=i(e("forEach",function(t,n){for(var r=n.length,e=0;en});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return t>=n});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(385),o=e(i);t.exports=o},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return t in n});t.exports=i},function(t,n,r){"use strict";var e=r(488),i=e(0);t.exports=i},function(t,n,r){"use strict";var e=r(350),i=r(362),o=e(function(t,n,r){return i(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})});t.exports=o},function(t,n,r){"use strict";var e=r(359),i=e(1);t.exports=i},function(t,n,r){"use strict";var e=r(462),i=e(function(t,n){return n},null);t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(441),o=r(368),u=e(function(t,n){return"function"!=typeof n.indexOf||o(n)?i(n,t,0):n.indexOf(t)});t.exports=u},function(t,n,r){"use strict";var e=r(431),i=e(0,-1);t.exports=i},function(t,n,r){"use strict";var e=r(445),i=r(350),o=r(453),u=i(function(t,n,r){return o(function(n){return e(t,n,r)},n)});t.exports=u},function(t,n,r){"use strict";var e=r(350),i=e(function(t,n,r){t=t=0?t:r.length;var e=Array.prototype.slice.call(r,0);return e.splice(t,0,n),e});t.exports=i},function(t,n,r){"use strict";var e=r(350),i=e(function(t,n,r){return t=t=0?t:r.length,[].concat(Array.prototype.slice.call(r,0,t),n,Array.prototype.slice.call(r,t))});t.exports=i},function(t,n,r){"use strict";var e=r(440),i=r(331),o=r(453),u=r(508),s=r(528),c=i(function(t,n){var r,i;return t.length>n.length?(r=t,i=n):(r=n,i=t),s(o(u(e)(r),i))});t.exports=c},function(t,n,r){"use strict";var e=r(335),i=r(529),o=i(e);t.exports=o},function(t,n,r){"use strict";var e=r(530),i=r(331),o=i(function(t,n){for(var r,i,o=new e,u=[],s=0;s=0;){if(o(n[r],t))return r;r-=1}return-1}return n.lastIndexOf(t)});t.exports=u},function(t,n,r){"use strict";var e=r(332),i=r(547),o=e(function(t){return null!=t&&i(t.length)?t.length:NaN});t.exports=o},function(t,n){"use strict";function r(t){return"[object Number]"===Object.prototype.toString.call(t)}t.exports=r},function(t,n,r){"use strict";var e=r(331),i=r(376),o=e(function(t,n){return function(r){return function(e){return i(function(t){return n(t,e)},r(t(e)))}}});t.exports=o},function(t,n,r){"use strict";var e=r(332),i=r(548),o=r(488),u=r(472),s=e(function(t){return i(o(t),u(t))});t.exports=s},function(t,n,r){"use strict";var e=r(332),i=r(402),o=r(548),u=r(334),s=e(function(t){return o(u(t),i(t))});t.exports=s},function(t,n,r){"use strict";var e=r(332),i=r(349),o=r(548),u=r(330),s=e(function(t){return o(u(t),i(t))});t.exports=s},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return t=0;)o=t(r[e],o[0]),i[e]=o[1],e-=1;return[i,o[0]]});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(378),o=r(384),u=e(function(t,n){return i(function(r,e){return r[e]=t(n[e],e,n),r},{},o(n))});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return n.match(t)||[]});t.exports=i},function(t,n,r){"use strict";var e=r(331),i=r(403),o=e(function(t,n){return i(t)?!i(n)||n<1?NaN:(t%n+n)%n:NaN});t.exports=o},function(t,n,r){"use strict";var e=r(350),i=e(function(t,n,r){return t(r)>t(n)?r:n});t.exports=i},function(t,n,r){"use strict";var e=r(332),i=r(561),o=e(function(t){return i(t)/t.length});t.exports=o},function(t,n,r){"use strict";var e=r(359),i=r(387),o=i(e,0);t.exports=o},function(t,n,r){"use strict";var e=r(332),i=r(560),o=e(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return i(Array.prototype.slice.call(t,0).sort(function(t,n){return tn?1:0}).slice(e,e+r))});t.exports=o},function(t,n,r){"use strict";var e=r(564),i=r(438),o=e(function(){return i(arguments)});t.exports=o},function(t,n,r){"use strict";var e=r(363),i=r(331),o=r(385),u=i(function(t,n){var r={};return e(n.length,function(){var e=t.apply(this,arguments); +return o(e,r)||(r[e]=n.apply(this,arguments)),r[e]})});t.exports=u},function(t,n,r){"use strict";var e=r(534),i=r(331),o=i(function(t,n){return e({},t,n)});t.exports=o},function(t,n,r){"use strict";var e=r(534),i=r(332),o=i(function(t){return e.apply(null,[{}].concat(t))});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(568),o=e(function(t,n){return i(function(t,n,r){return n},t,n)});t.exports=o},function(t,n,r){"use strict";var e=r(350),i=r(454),o=r(569),u=e(function t(n,r,e){return o(function(r,e,o){return i(e)&&i(o)?t(n,e,o):n(r,e,o)},r,e)});t.exports=u},function(t,n,r){"use strict";var e=r(350),i=r(385),o=e(function(t,n,r){var e,o={};for(e in n)i(e,n)&&(o[e]=i(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)i(e,r)&&!i(e,o)&&(o[e]=r[e]);return o});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(568),o=e(function(t,n){return i(function(t,n,r){return r},t,n)});t.exports=o},function(t,n,r){"use strict";var e=r(350),i=r(568),o=e(function(t,n,r){return i(function(n,r,e){return t(r,e)},n,r)});t.exports=o},function(t,n,r){"use strict";var e=r(350),i=r(569),o=e(function(t,n,r){return i(function(n,r,e){return t(r,e)},n,r)});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){return n0&&t(i(n,r))});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){for(var r={},e=0;e=0;)n=t(r[e],n),e-=1;return n});t.exports=i},function(t,n,r){"use strict";var e=r(364),i=r(378),o=r(371),u=e(4,[],function(t,n,r,e){return i(function(r,e){return t(r,e)?n(r,e):o(r)},r,e)});t.exports=u},function(t,n,r){"use strict";var e=r(332),i=r(371),o=e(i);t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(356),o=r(612),u=e(function(t,n){return o(i(t),n)});t.exports=u},function(t,n,r){"use strict";var e=r(331),i=e(function(t,n){var r,e=Number(n),i=0;if(e<0||isNaN(e))throw new RangeError("n must be a non-negative number");for(r=new Array(e);i=0&&t(n[r]);)r-=1;return i(r+1,1/0,n)});t.exports=o},function(t,n,r){"use strict";var e=r(331),i=r(367),o=r(629),u=r(431),s=e(i(["takeWhile"],o,function(t,n){for(var r=0,e=n.length;r=n||r<0||O&&e>=b}function p(){var t=o();return h(t)?v(t):void(S=setTimeout(p,l(t)))}function v(t){return S=void 0,I&&m?e(t):(m=x=void 0,w)}function y(){void 0!==S&&clearTimeout(S),E=0,m=_=x=S=void 0}function d(){return void 0===S?w:v(o())}function g(){var t=o(),r=h(t);if(m=arguments,x=this,_=t,r){if(void 0===S)return f(_);if(O)return S=setTimeout(p,n),e(_)}return void 0===S&&(S=setTimeout(p,n)),w}var m,x,b,w,S,_,E=0,A=!1,O=!1,I=!0;if("function"!=typeof t)throw new TypeError(s);return n=u(n)||0,i(r)&&(A=!!r.leading,O="maxWait"in r,b=O?c(u(r.maxWait)||0,n):b,I="trailing"in r?!!r.trailing:I),g.cancel=y,g.flush=d,g}var i=r(664),o=r(665),u=r(668),s="Expected a function",c=Math.max,a=Math.min;t.exports=e},function(t,n){"use strict";function r(t){var n="undefined"==typeof t?"undefined":e(t);return null!=t&&("object"==n||"function"==n)}var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=r},function(t,n,r){"use strict";var e=r(666),i=function(){return e.Date.now()};t.exports=i},function(t,n,r){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(667),o="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,u=i||o||Function("return this")();t.exports=u},function(t,n){(function(n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e="object"==("undefined"==typeof n?"undefined":r(n))&&n&&n.Object===Object&&n;t.exports=e}).call(n,function(){return this}())},function(t,n,r){"use strict";function e(t){if("number"==typeof t)return t;if(o(t))return u;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var r=a.test(t);return r||f.test(t)?l(t.slice(2),r?2:8):c.test(t)?u:+t}var i=r(664),o=r(669),u=NaN,s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=e},function(t,n,r){"use strict";function e(t){return"symbol"==("undefined"==typeof t?"undefined":i(t))||u(t)&&o(t)==s}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(670),u=r(674),s="[object Symbol]";t.exports=e},function(t,n,r){"use strict";function e(t){return null==t?void 0===t?c:s:a&&a in Object(t)?o(t):u(t)}var i=r(671),o=r(672),u=r(673),s="[object Null]",c="[object Undefined]",a=i?i.toStringTag:void 0;t.exports=e},function(t,n,r){"use strict";var e=r(666),i=e.Symbol;t.exports=i},function(t,n,r){"use strict";function e(t){var n=u.call(t,c),r=t[c];try{t[c]=void 0;var e=!0}catch(t){}var i=s.call(t);return e&&(n?t[c]=r:delete t[c]),i}var i=r(671),o=Object.prototype,u=o.hasOwnProperty,s=o.toString,c=i?i.toStringTag:void 0;t.exports=e},function(t,n){"use strict";function r(t){return i.call(t)}var e=Object.prototype,i=e.toString;t.exports=r},function(t,n){"use strict";function r(t){return null!=t&&"object"==("undefined"==typeof t?"undefined":e(t))}var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=r},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.vote=n.chat=n.comment=n.submit=n.putThing=void 0;var i=Object.assign||function(t){for(var n=1;n=0)return this.dispatch("[CIRCULAR:"+c+"]");if(r.push(n),"undefined"!=typeof o&&o.isBuffer&&o.isBuffer(n))return e("buffer:"),e(n);if("object"===s||"function"===s){var a=Object.keys(n);t.unorderedObjects&&(a=a.sort()),t.respectType===!1||y(n)||a.splice(0,0,"prototype","__proto__","constructor"),t.excludeKeys&&(a=a.filter(function(n){return!t.excludeKeys(n)})),e("object:"+a.length+":");var f=this;return a.forEach(function(r){f.dispatch(r),e(":"),t.excludeValues||f.dispatch(n[r]),e(",")})}if(!this["_"+s]){if(t.ignoreUnknown)return e("["+s+"]");throw new Error('Unknown object type "'+s+'"')}this["_"+s](n)},_array:function(n,i){i="undefined"!=typeof i?i:t.unorderedArrays!==!1;var o=this;if(e("array:"+n.length+":"),!i||n.length<=1)return n.forEach(function(t){return o.dispatch(t)});var u=[],s=n.map(function(n){var e=new m,i=r.slice(),o=g(t,e,i);return o.dispatch(n),u=u.concat(i.slice(r.length)),e.read().toString()});return r=r.concat(u),s.sort(),this._array(s,!1)},_date:function(t){return e("date:"+t.toJSON())},_symbol:function(t){return e("symbol:"+t.toString())},_error:function(t){return e("error:"+t.toString())},_boolean:function(t){return e("bool:"+t.toString())},_string:function(t){e("string:"+t.length+":"),e(t)},_function:function(n){e("fn:"),y(n)?this.dispatch("[native]"):this.dispatch(n.toString()),t.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(n.name)),t.respectFunctionProperties&&this._object(n)},_number:function(t){return e("number:"+t.toString())},_xml:function(t){return e("xml:"+t.toString())},_null:function(){return e("Null")},_undefined:function(){return e("Undefined")},_regexp:function(t){return e("regex:"+t.toString())},_uint8array:function(t){return e("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return e("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return e("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return e("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return e("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return e("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return e("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return e("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return e("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return e("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return e("url:"+t.toString(),"utf8")},_map:function(n){e("map:");var r=Array.from(n);return this._array(r,t.unorderedSets!==!1)},_set:function(n){e("set:");var r=Array.from(n);return this._array(r,t.unorderedSets!==!1)},_blob:function(){if(t.ignoreUnknown)return e("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return e("domwindow")},_process:function(){return e("process")},_timer:function(){return e("timer")},_pipe:function(){return e("pipe")},_tcp:function(){return e("tcp")},_udp:function(){return e("udp")},_tty:function(){return e("tty")},_statwatcher:function(){return e("statwatcher")},_securecontext:function(){return e("securecontext")},_connection:function(){return e("connection")},_zlib:function(){return e("zlib")},_context:function(){return e("context")},_nodescript:function(){return e("nodescript")},_httpparser:function(){return e("httpparser")},_dataview:function(){return e("dataview")},_signal:function(){return e("signal")},_fsevent:function(){return e("fsevent")},_tlswrap:function(){return e("tlswrap")}}}function m(){return{buf:"",write:function(t){this.buf+=t},end:function(t){this.buf+=t},read:function(){return this.buf}}}var x=t("crypto");r=n.exports=p,r.sha1=function(t){return p(t)},r.keys=function(t){return p(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(t){return p(t,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(t){return p(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var b=x.getHashes?x.getHashes().slice():["sha1","md5"];b.push("passthrough");var w=["buffer","hex","binary","base64"];r.writeToStream=function(t,n,r){return"undefined"==typeof r&&(r=n,n={}),n=v(t,n),g(n,r).dispatch(t)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5f1a2fc7.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(t,n,r){(function(t,n,e,i,o,u,s,c,a){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function n(t){var n=t.charCodeAt(0);return n===o||n===l?62:n===u||n===h?63:n0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;c="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,a=new i(3*t.length/4-c),u=c>0?t.length-4:t.length;var l=0;for(e=0,o=0;e>16),r((65280&s)>>8),r(255&s);return 2===c?(s=n(t.charAt(e))<<2|n(t.charAt(e+1))>>4,r(255&s)):1===c&&(s=n(t.charAt(e))<<10|n(t.charAt(e+1))<<4|n(t.charAt(e+2))>>2,r(s>>8&255),r(255&s)),a}function e(t){function n(t){return f.charAt(t)}function r(t){return n(t>>18&63)+n(t>>12&63)+n(t>>6&63)+n(63&t)}var e,i,o,u=t.length%3,s="";for(e=0,o=t.length-u;e>2),s+=n(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=n(i>>10),s+=n(i>>4&63),s+=n(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),u="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),a="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=e}("undefined"==typeof r?this.base64js={}:r)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(t,n,r){(function(n,e,i,o,s,c,a,f,l){function i(t,n,r){if(!(this instanceof i))return new i(t,n,r);var e="undefined"==typeof t?"undefined":u(t);if("base64"===n&&"string"===e)for(t=C(t);t.length%4!==0;)t+="=";var o;if("number"===e)o=B(t);else if("string"===e)o=i.byteLength(t,n);else{if("object"!==e)throw new Error("First argument needs to be a number, array or string.");o=B(t.length)}var s;i._useTypedArrays?s=i._augment(new Uint8Array(o)):(s=this,s.length=o,s._isBuffer=!0);var c;if(i._useTypedArrays&&"number"==typeof t.byteLength)s._set(t);else if(D(t))for(c=0;co&&(e=o)):e=o;var u=n.length;J(u%2===0,"Invalid hex string"),e>u/2&&(e=u/2);for(var s=0;se)&&(r=e);for(var i="",o=n;o=i)){var o;return r?(o=t[n],n+1=i)){var o;return r?(n+2>>0)):(n+1>>0),o}}function O(t,n,r,e){e||(J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1=i)){var o=E(t,n,r,!0),u=32768&o;return u?(65535-o+1)*-1:o}}function I(t,n,r,e){e||(J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3=i)){var o=A(t,n,r,!0),u=2147483648&o;return u?(4294967295-o+1)*-1:o}}function P(t,n,r,e){return e||(J("boolean"==typeof r,"missing or invalid endian"),J(n+3=o))for(var u=0,s=Math.min(o-r,2);u>>8*(e?u:1-u)}function k(t,n,r,e,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3=o))for(var u=0,s=Math.min(o-r,4);u>>8*(e?u:3-u)&255}function T(t,n,r,e,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+1=o||(n>=0?j(t,n,r,e,i):j(t,65535+n+1,r,e,i))}function L(t,n,r,e,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3=o||(n>=0?k(t,n,r,e,i):k(t,4294967295+n+1,r,e,i))}function R(t,n,r,e,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+3=o||Q.write(t,n,r,e,23,4)}function F(t,n,r,e,i){i||(J(void 0!==n&&null!==n,"missing value"),J("boolean"==typeof e,"missing or invalid endian"),J(void 0!==r&&null!==r,"missing offset"),J(r+7=o||Q.write(t,n,r,e,52,8)}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function N(t,n,r){return"number"!=typeof t?r:(t=~~t,t>=n?n:t>=0?t:(t+=n,t>=0?t:0))}function B(t){return t=~~Math.ceil(+t),t<0?0:t}function U(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function D(t){return U(t)||i.isBuffer(t)||t&&"object"==("undefined"==typeof t?"undefined":u(t))&&"number"==typeof t.length}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t){for(var n=[],r=0;r=55296&&e<=57343&&r++;for(var o=encodeURIComponent(t.slice(i,r+1)).substr(1).split("%"),u=0;u>8,e=n%256,i.push(e),i.push(r);return i}function q(t){return Z.toByteArray(t)}function G(t,n,r,e){for(var i=0;i=n.length||i>=t.length);i++)n[i+r]=t[i];return i}function X(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function $(t,n){J("number"==typeof t,"cannot write a non-number as a number"),J(t>=0,"specified a negative value for writing an unsigned value"),J(t<=n,"value is larger than maximum value for type"),J(Math.floor(t)===t,"value has a fractional component")}function K(t,n,r){J("number"==typeof t,"cannot write a non-number as a number"),J(t<=n,"value larger than maximum allowed value"),J(t>=r,"value smaller than minimum allowed value"),J(Math.floor(t)===t,"value has a fractional component")}function H(t,n,r){J("number"==typeof t,"cannot write a non-number as a number"),J(t<=n,"value larger than maximum allowed value"),J(t>=r,"value smaller than minimum allowed value")}function J(t,n){if(!t)throw new Error(n||"Failed assertion")}var Z=t("base64-js"),Q=t("ieee754");r.Buffer=i,r.SlowBuffer=i,r.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var t=new ArrayBuffer(0),n=new Uint8Array(t);return n.foo=function(){return 42},42===n.foo()&&"function"==typeof n.subarray}catch(t){return!1}}(),i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},i.byteLength=function(t,n){var r;switch(t+="",n||"utf8"){case"hex":r=t.length/2;break;case"utf8":case"utf-8":r=V(t).length;break;case"ascii":case"binary":case"raw":r=t.length;break;case"base64":r=q(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*t.length;break;default:throw new Error("Unknown encoding")}return r},i.concat=function(t,n){if(J(U(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new i(0);if(1===t.length)return t[0];var r;if("number"!=typeof n)for(n=0,r=0;ro&&(r=o)):r=o,e=String(e||"utf8").toLowerCase();var u;switch(e){case"hex":u=h(this,t,n,r);break;case"utf8":case"utf-8":u=p(this,t,n,r);break;case"ascii":u=v(this,t,n,r);break;case"binary":u=y(this,t,n,r);break;case"base64":u=d(this,t,n,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":u=g(this,t,n,r);break;default:throw new Error("Unknown encoding")}return u},i.prototype.toString=function(t,n,r){var e=this;if(t=String(t||"utf8").toLowerCase(),n=Number(n)||0,r=void 0!==r?Number(r):r=e.length,r===n)return"";var i;switch(t){case"hex":i=S(e,n,r);break;case"utf8":case"utf-8":i=x(e,n,r);break;case"ascii":i=b(e,n,r);break;case"binary":i=w(e,n,r);break;case"base64":i=m(e,n,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=_(e,n,r);break;default:throw new Error("Unknown encoding")}return i},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(t,n,r,e){var o=this;if(r||(r=0),e||0===e||(e=this.length),n||(n=0),e!==r&&0!==t.length&&0!==o.length){J(e>=r,"sourceEnd < sourceStart"),J(n>=0&&n=0&&r=0&&e<=o.length,"sourceEnd out of bounds"),e>this.length&&(e=this.length),t.length-n=this.length))return this[t]},i.prototype.readUInt16LE=function(t,n){return E(this,t,!0,n)},i.prototype.readUInt16BE=function(t,n){return E(this,t,!1,n)},i.prototype.readUInt32LE=function(t,n){return A(this,t,!0,n)},i.prototype.readUInt32BE=function(t,n){return A(this,t,!1,n)},i.prototype.readInt8=function(t,n){if(n||(J(void 0!==t&&null!==t,"missing offset"),J(t=this.length)){var r=128&this[t];return r?(255-this[t]+1)*-1:this[t]}},i.prototype.readInt16LE=function(t,n){return O(this,t,!0,n)},i.prototype.readInt16BE=function(t,n){return O(this,t,!1,n)},i.prototype.readInt32LE=function(t,n){return I(this,t,!0,n)},i.prototype.readInt32BE=function(t,n){return I(this,t,!1,n)},i.prototype.readFloatLE=function(t,n){return P(this,t,!0,n)},i.prototype.readFloatBE=function(t,n){return P(this,t,!1,n)},i.prototype.readDoubleLE=function(t,n){return M(this,t,!0,n)},i.prototype.readDoubleBE=function(t,n){return M(this,t,!1,n)},i.prototype.writeUInt8=function(t,n,r){r||(J(void 0!==t&&null!==t,"missing value"),J(void 0!==n&&null!==n,"missing offset"),J(n=this.length||(this[n]=t)},i.prototype.writeUInt16LE=function(t,n,r){j(this,t,n,!0,r)},i.prototype.writeUInt16BE=function(t,n,r){j(this,t,n,!1,r)},i.prototype.writeUInt32LE=function(t,n,r){k(this,t,n,!0,r)},i.prototype.writeUInt32BE=function(t,n,r){k(this,t,n,!1,r)},i.prototype.writeInt8=function(t,n,r){r||(J(void 0!==t&&null!==t,"missing value"),J(void 0!==n&&null!==n,"missing offset"),J(n=this.length||(t>=0?this.writeUInt8(t,n,r):this.writeUInt8(255+t+1,n,r))},i.prototype.writeInt16LE=function(t,n,r){T(this,t,n,!0,r)},i.prototype.writeInt16BE=function(t,n,r){T(this,t,n,!1,r)},i.prototype.writeInt32LE=function(t,n,r){L(this,t,n,!0,r)},i.prototype.writeInt32BE=function(t,n,r){L(this,t,n,!1,r)},i.prototype.writeFloatLE=function(t,n,r){R(this,t,n,!0,r)},i.prototype.writeFloatBE=function(t,n,r){R(this,t,n,!1,r)},i.prototype.writeDoubleLE=function(t,n,r){F(this,t,n,!0,r)},i.prototype.writeDoubleBE=function(t,n,r){F(this,t,n,!1,r)},i.prototype.fill=function(t,n,r){if(t||(t=0),n||(n=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),J("number"==typeof t&&!isNaN(t),"value is not a number"),J(r>=n,"end < start"),r!==n&&0!==this.length){J(n>=0&&n=0&&r<=this.length,"end out of bounds");for(var e=n;e"},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i._useTypedArrays)return new i(this).buffer;for(var t=new Uint8Array(this.length),n=0,r=t.length;nb?n=t(n):n.length>5]|=128<>>9<<4)+14]=n;for(var r=1732584193,e=-271733879,i=-1732584194,o=271733878,u=0;u>16)+(n>>16)+(r>>16);return e<<16|65535&r}function m(t,n){return t<>>32-n}var x=t("./helpers");n.exports=function(t){return x.hash(t,l,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,n,r){(function(t,r,e,i,o,u,s,c,a){!function(){var t,r,e=this;t=function(t){for(var n,n,r=new Array(t),e=0;e>>((3&e)<<3)&255;return r},e.crypto&&crypto.getRandomValues&&(r=function(t){var n=new Uint8Array(t);return crypto.getRandomValues(n),n}),n.exports=r||t}()}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(t,n,r){(function(r,e,i,o,u,s,c,a,f){function l(t,n){t[n>>5]|=128<<24-n%32,t[(n+64>>9<<4)+15]=n;for(var r=Array(80),e=1732584193,i=-271733879,o=-1732584194,u=271733878,s=-1009589776,c=0;c>16)+(n>>16)+(r>>16);return e<<16|65535&r}function y(t,n){return t<>>32-n}var d=t("./helpers");n.exports=function(t){return d.hash(t,l,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(t,n,r){(function(r,e,i,o,u,s,c,a,f){var l=t("./helpers"),h=function(t,n){var r=(65535&t)+(65535&n),e=(t>>16)+(n>>16)+(r>>16);return e<<16|65535&r},p=function(t,n){return t>>>n|t<<32-n},v=function(t,n){return t>>>n},y=function(t,n,r){return t&n^~t&r},d=function(t,n,r){return t&n^t&r^n&r},g=function(t){return p(t,2)^p(t,13)^p(t,22)},m=function(t){return p(t,6)^p(t,11)^p(t,25)},x=function(t){return p(t,7)^p(t,18)^v(t,3)},b=function(t){return p(t,17)^p(t,19)^v(t,10)},w=function t(n,r){var e,i,o,u,s,c,a,f,l,p,v,w,t=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),S=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),_=new Array(64);n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var l=0;l0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(t,n,r){(function(t,n,e,i,o,u,s,c,a){r.read=function(t,n,r,e,i){var o,u,s=8*i-e-1,c=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[n+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[n+l],l+=h,f-=8);for(u=o&(1<<-f)-1,o>>=-f,f+=e;f>0;u=256*u+t[n+l],l+=h,f-=8);if(0===o)o=1-a;else{if(o===c)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,e),o-=a}return(p?-1:1)*u*Math.pow(2,o-e)},r.write=function(t,n,r,e,i,o){var u,s,c,a=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,v=e?1:-1,y=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-u))<1&&(u--,c*=2),n+=u+l>=1?h/c:h*Math.pow(2,1-l),n*c>=2&&(u++,c/=2),u+l>=f?(s=0,u=f):u+l>=1?(s=(n*c-1)*Math.pow(2,i),u+=l):(s=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[r+p]=255&s,p+=v,s/=256,i-=8);for(u=u<0;t[r+p]=255&u,p+=v,u/=256,a-=8);t[r+p-v]|=128*y}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})},function(t,n,r){"use strict";(function(){var n;n=r(678),r(679),r(682),r(680),r(683),t.exports=n}).call(void 0)},function(t,n){"use strict";(function(){var n,r,e,i,o={}.hasOwnProperty;r=/^(?:(?:([^:\/?\#]+:)\/+|(\/\/))(?:([a-z0-9-\._~%]+)(?::([a-z0-9-\._~%]+))?@)?(([a-z0-9-\._~%!$&'()*+,;=]+)(?::([0-9]+))?)?)?([^?\#]*?)(\?[^\#]*)?(\#.*)?$/,i=function(t,n){return i.URL.parse(t,n)},i.URL=n=function(){function t(t){var n,r,i;for(n in e)o.call(e,n)&&(r=e[n],this[n]=null!=(i=t[n])?i:r);this.host||(this.host=this.hostname&&this.port?""+this.hostname+":"+this.port:this.hostname?this.hostname:""),this.origin||(this.origin=this.protocol?""+this.protocol+"//"+this.host:""),this.isAbsolutePathRelative=!this.host&&"/"===this.pathname.charAt(0),this.isPathRelative=!this.host&&"/"!==this.pathname.charAt(0),this.isRelative=this.isSchemeRelative||this.isAbsolutePathRelative||this.isPathRelative,this.isAbsolute=!this.isRelative}return t.parse=function(t){var n,e,o;return n=t.toString().match(r),e=n[8]||"",o=n[1],new i.URL({protocol:o,username:n[3],password:n[4],hostname:n[6],port:n[7],pathname:o&&"/"!==e.charAt(0)?"/"+e:e,search:n[9],hash:n[10],isSchemeRelative:null!=n[2]})},t}(),e={protocol:"",username:"",password:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:"",origin:"",isSchemeRelative:!1},t.exports=i}).call(void 0)},function(t,n,r){"use strict";(function(){var t,n,e,i,o=[].slice;i=r(678),r(680),t=i.URL,e=t.parse,n=function(){var t,n,r,e,i,u;for(e=arguments[0],r=arguments[1],n=3<=arguments.length?o.call(arguments,2):[],i=0,u=n.length;i) is neither absolute nor absolute path relative.");for(o=t.pathname.split("/").slice(1),s=u.pathname.split("/").slice(1),e=c=0,a=s.length;c(f=e+1)&&ff&&O.push("'"+this.terminals_[_]+"'");M=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(m==l?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:d,expected:O})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(w[0]){case 1:r.push(m),e.push(p.yytext),i.push(p.yylloc),r.push(w[1]),m=null,x?(m=x,x=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,d=p.yylloc,a>0&&a--);break;case 2:if(E=this.productions_[w[1]][1],P.$=e[e.length-E],P._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},g&&(P._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),S=this.performAction.apply(P,[u,c,s,v.yy,w[1],e,i].concat(h)),"undefined"!=typeof S)return S;E&&(r=r.slice(0,-1*E*2),e=e.slice(0,-1*E),i=i.slice(0,-1*E)),r.push(this.productions_[w[1]][0]),e.push(P.$),i.push(P._$),A=o[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0}},c=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var e=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var r,e,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),e=t[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,r,e;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;on[0].length)){if(n=r,e=o,this.options.backtrack_lexer){if(t=this.test_match(r,i[o]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[e]),t!==!1&&t):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,r,e){switch(r){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:return"LITERAL";case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return t}();return s.lexer=c,t.prototype=s,s.Parser=t,new t}();n.parser=e,n.Parser=e.Parser,n.parse=function(){return e.parse.apply(e,arguments)}},function(t,n){"use strict";function r(t){return function(n,r){return{displayName:t,props:n,children:r||[]}}}t.exports={Root:r("Root"),Concat:r("Concat"),Literal:r("Literal"),Splat:r("Splat"),Param:r("Param"),Optional:r("Optional")}},function(t,n,r){"use strict";function e(t){this.captures=t.captures,this.re=t.re}var i=r(691),o=/[\-{}\[\]+?.,\\\^$|#\s]/g;e.prototype.match=function(t){var n=this.re.exec(t),r={};if(n)return this.captures.forEach(function(t,e){"undefined"==typeof n[e+1]?r[t]=void 0:r[t]=decodeURIComponent(n[e+1])}),r};var u=i({Concat:function(t){return t.children.reduce(function(t,n){var r=this.visit(n);return{re:t.re+r.re,captures:t.captures.concat(r.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(t){return{re:t.props.value.replace(o,"\\$&"),captures:[]}},Splat:function(t){return{re:"([^?]*?)",captures:[t.props.name]}},Param:function(t){return{re:"([^\\/\\?]+)",captures:[t.props.name]}},Optional:function(t){var n=this.visit(t.children[0]);return{re:"(?:"+n.re+")?",captures:n.captures}},Root:function(t){var n=this.visit(t.children[0]);return new e({re:new RegExp("^"+n.re+"(?=\\?|$)"),captures:n.captures})}});t.exports=u},function(t,n,r){"use strict";function e(t){return i.forEach(function(n){if("undefined"==typeof t[n])throw new Error("No handler defined for "+n.displayName)}),{visit:function(t,n){return this.handlers[t.displayName].call(this,t,n)},handlers:t}}var i=Object.keys(r(689));t.exports=e},function(t,n,r){"use strict";var e=r(691),i=e({Concat:function(t,n){var r=t.children.map(function(t){return this.visit(t,n)}.bind(this));return!r.some(function(t){return t===!1})&&r.join("")},Literal:function(t){return decodeURI(t.props.value)},Splat:function(t,n){return!!n[t.props.name]&&n[t.props.name]},Param:function(t,n){return!!n[t.props.name]&&n[t.props.name]},Optional:function(t,n){var r=this.visit(t.children[0],n);return r?r:""},Root:function(t,n){n=n||{};var r=this.visit(t.children[0],n);return!!r&&encodeURI(r)}});t.exports=i},function(t,n,r){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}function i(t,n){var r={};for(var e in t)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}Object.defineProperty(n,"__esModule",{value:!0}),n.thingData=n.things=n.thingVotes=n.thing=n.thingComments=n.thingAllComments=n.domain=n.url=n.topics=n.topicDays=n.topicDay=n.topic=n.types=void 0;var o=r(330),u=e(o),s=r(329),c=r(676),a=e(c),f=r(337),l=e(f),h=(n.types=(0,s.allowFields)((0,s.isSoul)("topicDay"),(0,s.isSoul)("topicDays"),(0,s.isSoul)("topics"),(0,s.isSoul)("topic"),(0,s.isSoul)("domain"),(0,s.isSoul)("url"),(0,s.isSoul)("thingData"),(0,s.isSoul)("thingVotes"),(0,s.isSoul)("thingAllComments"),(0,s.isSoul)("thingComments"),(0,s.isSoul)("thing"),(0,s.isSoul)("things")),n.topic=(0,s.allowFields)((0,s.and)((0,s.keyIs)("name"),(0,s.valFromSoul)("topic","topicname")),(0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.topicDay=(0,s.allowFields)((0,s.and)((0,s.keyIs)("name"),(0,s.valFromSoul)("topicDay","topicname")),(0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.topicDays=(0,s.allowFields)((0,s.and)((0,s.keyIs)("name"),(0,s.valFromSoul)("topicDays","topicname")),(0,s.and)((0,s.isSoul)("topicDay"),s.soulMatchesKey)),n.topics=(0,s.allowFields)((0,s.and)((0,s.isSoul)("topic"),s.soulMatchesKey)),n.url=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.domain=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.thingAllComments=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.thingComments=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),n.thing=(0,s.allowFields)((0,s.and)((0,s.keyIs)("id"),(0,s.valFromSoul)("thing","thingid")),(0,s.and)((0,s.keyIs)("data"),(0,s.isSoul)("thingData")),(0,s.and)((0,s.keyIs)("topic"),(0,s.isSoul)("topic")),(0,s.and)((0,s.keyIs)("domain"),(0,s.isSoul)("domain")),(0,s.and)((0,s.keyIs)("url"),(0,s.isSoul)("url")),(0,s.and)((0,s.keyIs)("comments"),(0,s.isSoul)("thingComments")),(0,s.and)((0,s.keyIs)("allcomments"),(0,s.isSoul)("thingAllComments")),(0,s.and)((0,s.keyIs)("votesup"),(0,s.isSoul)("thingVotes")),(0,s.and)((0,s.keyIs)("votesdown"),(0,s.isSoul)("thingVotes")),(0,s.and)((0,s.keyIs)("op"),(0,s.isSoul)("thing")),(0,s.and)((0,s.keyIs)("replyTo"),(0,s.isSoul)("thing")),(0,s.keyIs)("timestamp")),n.thingVotes=function(n,r,e,i,o,u){var c=s.DEFAULT_POW_COMPLEXITY,a=u.souls.thingVotes.isMatch(r["#"]||n);return Object.keys(r).map(function(e){if("#"!==e&&"_"!==e){var i=r[e],o=new l.default.Verifier({size:1024,n:16,complexity:c,prefix:n,validity:1/0}),u=t.hasOwnProperty("from")?t.from(i,"hex"):new t(i,"hex");o.check(u,c)||(console.warn("invalid vote",n,i),delete r[e])}}),!!a},n.things=(0,s.allowFields)((0,s.and)((0,s.isSoul)("thing"),s.soulMatchesKey)),(0,s.allowFields)((0,s.keyIs)("kind"),(0,s.keyIs)("title"),(0,s.keyIs)("topic"),(0,s.keyIs)("body"),(0,s.keyIs)("author"),(0,s.keyIs)("authorId"),(0,s.keyIs)("opId"),(0,s.keyIs)("replyToId"),(0,s.keyIs)("domain"),(0,s.keyIs)("url"),(0,s.keyIs)("timestamp"))),p=function(t,n,r,e,o,s){return h(t,n,r,e,o,s).then(function(){var r=(n._,i(n,["_"]));if(delete r["#"],s.isBlocked(t))n.url=null,n.body="[removed]",Object.keys(n).forEach(function(t){"url"!==t&&"body"!==t&&"_"!==t&&"#"!==t&&delete n[t]});else if(Object.keys(r).length){var e=(0,a.default)(r,{unorderedSets:!0}),c=s.souls.thingData.isMatch((0,u.default)("#",n)||t);e!==c.thingid&&(console.warn("thing data mismatch",e,c.thingid,o,r),Object.keys(n).forEach(function(t){"_"!==t&&"#"!==t&&delete n[t]}))}return n})};n.thingData=p}).call(n,r(694).Buffer)},function(t,n,r){(function(t){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -"use strict";function r(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,n){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),u.alloc(+t)}function v(t,n){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(r)return G(t).length;n=(""+n).toLowerCase(),r=!0}}function m(t,n,e){var r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,n>>>=0,e<=n)return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,n,e);case"utf8":case"utf-8":return M(this,n,e);case"ascii":return k(this,n,e);case"latin1":case"binary":return L(this,n,e);case"base64":return P(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,n,e);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function w(t,n,e,r,i){if(0===t.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof n&&(n=u.from(n,r)),u.isBuffer(n))return 0===n.length?-1:_(t,n,e,r,i);if("number"==typeof n)return n&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):_(t,[n],e,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,n,e,r,i){function o(t,n){return 1===u?t[n]:t.readUInt16BE(n*u)}var u=1,s=t.length,c=n.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||n.length<2)return-1;u=2,s/=2,c/=2,e/=2}var a;if(i){var f=-1;for(a=e;as&&(e=s-c),a=e;a>=0;a--){for(var l=!0,h=0;hi&&(r=i)):r=i;var o=n.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var u=0;u239?4:o>223?3:o>191?2:1;if(i+s<=e){var c,a,f,l;switch(s){case 1:o<128&&(u=o);break;case 2:c=t[i+1],128===(192&c)&&(l=(31&o)<<6|63&c,l>127&&(u=l));break;case 3:c=t[i+1],a=t[i+2],128===(192&c)&&128===(192&a)&&(l=(15&o)<<12|(63&c)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:c=t[i+1],a=t[i+2],f=t[i+3],128===(192&c)&&128===(192&a)&&128===(192&f)&&(l=(15&o)<<18|(63&c)<<12|(63&a)<<6|63&f,l>65535&&l<1114112&&(u=l))}}null===u?(u=65533,s=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=s}return T(r)}function T(t){var n=t.length;if(n<=tt)return String.fromCharCode.apply(String,t);for(var e="",r=0;rr)&&(e=r);for(var i="",o=n;oe)throw new RangeError("Trying to access beyond buffer length")}function C(t,n,e,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||nt.length)throw new RangeError("Index out of range")}function B(t,n,e,r){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(r?i:1-i)}function U(t,n,e,r){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(r?i:3-i)&255}function N(t,n,e,r,i,o){if(e+r>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function D(t,n,e,r,i){return i||N(t,n,e,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,n,e,r,23,4),e+4}function Y(t,n,e,r,i){return i||N(t,n,e,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,n,e,r,52,8),e+8}function V(t){if(t=z(t).replace(nt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,n){n=n||1/0;for(var e,r=t.length,i=null,o=[],u=0;u55295&&e<57344){if(!i){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(u+1===r){(n-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function X(t){for(var n=[],e=0;e>8,i=e%256,o.push(i),o.push(r);return o}function K(t){return J.toByteArray(V(t))}function H(t,n,e,r){for(var i=0;i=n.length||i>=t.length);++i)n[i+e]=t[i];return i}function q(t){return t!==t}var J=e(399),Z=e(400),Q=e(401);n.Buffer=u,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,n,e){return s(null,t,n,e)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,n,e){return a(null,t,n,e)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,n){if(!u.isBuffer(t)||!u.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,r=n.length,i=0,o=Math.min(e,r);i0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},u.prototype.compare=function(t,n,e,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),n<0||e>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&n>=e)return 0;if(r>=i)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,s=e-n,c=Math.min(o,s),a=this.slice(r,i),f=t.slice(n,e),l=0;li)&&(e=i),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,t,n,e);case"utf8":case"utf-8":return x(this,t,n,e);case"ascii":return E(this,t,n,e);case"latin1":case"binary":return A(this,t,n,e);case"base64":return I(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;u.prototype.slice=function(t,n){var e=this.length;t=~~t,n=void 0===n?e:~~n,t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),n0&&(i*=256);)r+=this[t+--n]*i;return r},u.prototype.readUInt8=function(t,n){return n||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,n){return n||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,n){return n||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,n){return n||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,n){return n||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||F(t,n,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*n)),r},u.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||F(t,n,this.length);for(var r=n,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*n)),o},u.prototype.readInt8=function(t,n){return n||F(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},u.prototype.readInt16LE=function(t,n){n||F(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt16BE=function(t,n){n||F(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt32LE=function(t,n){return n||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,n){return n||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,n){return n||F(t,4,this.length),Z.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,n){return n||F(t,4,this.length),Z.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,n){return n||F(t,8,this.length),Z.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,n){return n||F(t,8,this.length),Z.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,n,e,r){if(t=+t,n|=0,e|=0,!r){var i=Math.pow(2,8*e)-1;C(this,t,n,e,i,0)}var o=1,u=0;for(this[n]=255&t;++u=0&&(u*=256);)this[n+o]=t/u&255;return n+e},u.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},u.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):B(this,t,n,!0),n+2},u.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):B(this,t,n,!1),n+2},u.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):U(this,t,n,!0),n+4},u.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):U(this,t,n,!1),n+4},u.prototype.writeIntLE=function(t,n,e,r){if(t=+t,n|=0,!r){var i=Math.pow(2,8*e-1);C(this,t,n,e,i-1,-i)}var o=0,u=1,s=0;for(this[n]=255&t;++o>0)-s&255;return n+e},u.prototype.writeIntBE=function(t,n,e,r){if(t=+t,n|=0,!r){var i=Math.pow(2,8*e-1);C(this,t,n,e,i-1,-i)}var o=e-1,u=1,s=0;for(this[n+o]=255&t;--o>=0&&(u*=256);)t<0&&0===s&&0!==this[n+o+1]&&(s=1),this[n+o]=(t/u>>0)-s&255;return n+e},u.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},u.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):B(this,t,n,!0),n+2},u.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):B(this,t,n,!1),n+2},u.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):U(this,t,n,!0),n+4},u.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||C(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):U(this,t,n,!1),n+4},u.prototype.writeFloatLE=function(t,n,e){return D(this,t,n,!0,e)},u.prototype.writeFloatBE=function(t,n,e){return D(this,t,n,!1,e)},u.prototype.writeDoubleLE=function(t,n,e){return Y(this,t,n,!0,e)},u.prototype.writeDoubleBE=function(t,n,e){return Y(this,t,n,!1,e)},u.prototype.copy=function(t,n,e,r){if(e||(e=0),r||0===r||(r=this.length),n>=t.length&&(n=t.length),n||(n=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-n=0;--i)t[i+n]=this[i+e];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var o;if("number"==typeof t)for(o=n;o0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=n);var r=e===n?0:4-e%4;return[e,r]}function r(t){var n=e(t),r=n[0],i=n[1];return 3*(r+i)/4-i}function i(t,n,e){return 3*(n+e)/4-e}function o(t){for(var n,r=e(t),o=r[0],u=r[1],s=new l(i(t,o,u)),c=0,a=u>0?o-4:o,h=0;h>16&255,s[c++]=n>>8&255,s[c++]=255&n;return 2===u&&(n=f[t.charCodeAt(h)]<<2|f[t.charCodeAt(h+1)]>>4,s[c++]=255&n),1===u&&(n=f[t.charCodeAt(h)]<<10|f[t.charCodeAt(h+1)]<<4|f[t.charCodeAt(h+2)]>>2,s[c++]=n>>8&255,s[c++]=255&n),s}function u(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function s(t,n,e){for(var r,i=[],o=n;oc?c:u+o));return 1===r?(n=t[e-1],i.push(a[n>>2]+a[n<<4&63]+"==")):2===r&&(n=(t[e-2]<<8)+t[e-1],i.push(a[n>>10]+a[n>>4&63]+a[n<<2&63]+"=")),i.join("")}n.byteLength=r,n.toByteArray=o,n.fromByteArray=c;for(var a=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=h.length;p>1,f=-7,l=e?i-1:0,h=e?-1:1,p=t[n+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[n+l],l+=h,f-=8);for(u=o&(1<<-f)-1,o>>=-f,f+=r;f>0;u=256*u+t[n+l],l+=h,f-=8);if(0===o)o=1-a;else{if(o===c)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,r),o-=a}return(p?-1:1)*u*Math.pow(2,o-r)},n.write=function(t,n,e,r,i,o){var u,s,c,a=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,y=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-u))<1&&(u--,c*=2),n+=u+l>=1?h/c:h*Math.pow(2,1-l),n*c>=2&&(u++,c/=2),u+l>=f?(s=0,u=f):u+l>=1?(s=(n*c-1)*Math.pow(2,i),u+=l):(s=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[e+p]=255&s,p+=d,s/=256,i-=8);for(u=u<0;t[e+p]=255&u,p+=d,u/=256,a-=8);t[e+p-d]|=128*y}},function(t,n){"use strict";var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.onLogin=n.isLoggedIn=n.user=n.login=n.signup=void 0;var i=e(354),o=r(i);n.signup=(0,o.default)(function(t,n,e){return new Promise(function(r,i){if(t&&t.gun&&t.gun.user){var o=t.user();o.create(n,e,function(u){u.err?(i(u.err),o.leave(),t.gun.user().leave()):r(t.login(n,e))})}else i("SEA is not loaded")})}),n.login=(0,o.default)(function(t,n,e){return new Promise(function(r,i){if(t&&t.gun&&t.gun.user){var o=t.user();o.auth(n,e,function(n){return n.err?i(n.err):r(t.user().is)})}else i("SEA is not loaded")}).then(function(n){return t._onLogin&&t._onLogin(n),n})}),n.user=function(t){return function(){return t.gun.user()}},n.isLoggedIn=function(t){return function(){return t.gun&&t.gun.user&&t.user().is}},n.onLogin=function(t){return function(n){return t._onLogin=n}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.getCollectionsArray=n.getCollections=n.getCollection=n.getScore=n.getVoteCount=n.getTimestamp=void 0;var i=Object.assign||function(t){for(var n=1;n0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))});t.exports=s},function(t,n){"use strict";function e(t){return"[object String]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){"use strict";function e(t){return new r(t)}var r=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();t.exports=e},function(t,n,e){"use strict";var r=e(356),i=e(331),o=i(function(t,n){return r(t.length,function(){return t.apply(n,arguments)})});t.exports=o},function(t,n,e){"use strict";var r=e(414),i=e(332),o=e(415),u=i(r("tail",o(1,1/0)));t.exports=u},function(t,n,e){"use strict";function r(t,n){return function(){var e=arguments.length;if(0===e)return n();var r=arguments[e-1];return i(r)||"function"!=typeof r[t]?n.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,e-1))}}var i=e(360);t.exports=r},function(t,n,e){"use strict";var r=e(414),i=e(350),o=i(r("slice",function(t,n,e){return Array.prototype.slice.call(e,t,n)}));t.exports=o},function(t,n,e){"use strict";var r=e(332),i=e(410),o=r(function(t){return i(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});t.exports=o},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}Object.defineProperty(n,"__esModule",{value:!0}),n.unwatchListing=n.watchListing=n.getListingIds=n.getListingSouls=void 0;var o=Object.assign||function(t){for(var n=1;n=0;)n=s[e],i(n,t)&&!a(r,n)&&(r[r.length]=n),e-=1;return r}:function(t){return Object(t)!==t?[]:Object.keys(t)},l=r(f);t.exports=l},function(t,n,e){"use strict";var r=e(359),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(t){return"[object Arguments]"===i.call(t)}:function(t){return r("callee",t)}};t.exports=o},function(t,n,e){"use strict";var r=e(331),i=r(function(t,n){return t<=n});t.exports=i}])}); \ No newline at end of file +"use strict";function e(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,n){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),u.alloc(+t)}function g(t,n){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var e=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(e)return q(t).length;n=(""+n).toLowerCase(),e=!0}}function m(t,n,r){var e=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,n>>>=0,r<=n)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,n,r);case"utf8":case"utf-8":return M(this,n,r);case"ascii":return k(this,n,r);case"latin1":case"binary":return T(this,n,r);case"base64":return P(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,n,r);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function x(t,n,r){var e=t[n];t[n]=t[r],t[r]=e}function b(t,n,r,e,i){if(0===t.length)return-1;if("string"==typeof r?(e=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=u.from(n,e)),u.isBuffer(n))return 0===n.length?-1:w(t,n,r,e,i);if("number"==typeof n)return n&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):w(t,[n],r,e,i);throw new TypeError("val must be string, number or Buffer")}function w(t,n,r,e,i){function o(t,n){return 1===u?t[n]:t.readUInt16BE(n*u)}var u=1,s=t.length,c=n.length;if(void 0!==e&&(e=String(e).toLowerCase(),"ucs2"===e||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||n.length<2)return-1;u=2,s/=2,c/=2,r/=2}var a;if(i){var f=-1;for(a=r;as&&(r=s-c),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(e=i)):e=i;var o=n.length;if(o%2!==0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u239?4:o>223?3:o>191?2:1;if(i+s<=r){var c,a,f,l;switch(s){case 1:o<128&&(u=o);break;case 2:c=t[i+1],128===(192&c)&&(l=(31&o)<<6|63&c,l>127&&(u=l));break;case 3:c=t[i+1],a=t[i+2],128===(192&c)&&128===(192&a)&&(l=(15&o)<<12|(63&c)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:c=t[i+1],a=t[i+2],f=t[i+3],128===(192&c)&&128===(192&a)&&128===(192&f)&&(l=(15&o)<<18|(63&c)<<12|(63&a)<<6|63&f,l>65535&&l<1114112&&(u=l))}}null===u?(u=65533,s=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|1023&u),e.push(u),i+=s}return j(e)}function j(t){var n=t.length;if(n<=tt)return String.fromCharCode.apply(String,t);for(var r="",e=0;ee)&&(r=e);for(var i="",o=n;or)throw new RangeError("Trying to access beyond buffer length")}function C(t,n,r,e,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||nt.length)throw new RangeError("Index out of range")}function N(t,n,r,e){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(e?i:1-i)}function B(t,n,r,e){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(e?i:3-i)&255}function U(t,n,r,e,i,o){if(r+e>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,n,r,e,i){return i||U(t,n,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,n,r,e,23,4),r+4}function Y(t,n,r,e,i){return i||U(t,n,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,n,r,e,52,8),r+8}function V(t){if(t=W(t).replace(nt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,n){n=n||1/0;for(var r,e=t.length,i=null,o=[],u=0;u55295&&r<57344){if(!i){if(r>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(u+1===e){(n-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(n-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((n-=1)<0)break;o.push(r)}else if(r<2048){if((n-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){for(var n=[],r=0;r>8,i=r%256,o.push(i),o.push(e);return o}function $(t){return J.toByteArray(V(t))}function K(t,n,r,e){for(var i=0;i=n.length||i>=t.length);++i)n[i+r]=t[i];return i}function H(t){return t!==t}var J=r(695),Z=r(696),Q=r(697);n.Buffer=u,n.SlowBuffer=d,n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:e(),n.kMaxLength=i(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,n,r){return s(null,t,n,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,n,r){return a(null,t,n,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,n){if(!u.isBuffer(t)||!u.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,e=n.length,i=0,o=Math.min(r,e);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,n,r,e,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),n<0||r>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&n>=r)return 0;if(e>=i)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,e>>>=0,i>>>=0,this===t)return 0;for(var o=i-e,s=r-n,c=Math.min(o,s),a=this.slice(e,i),f=t.slice(n,r),l=0;li)&&(r=i),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return S(this,t,n,r);case"utf8":case"utf-8":return _(this,t,n,r);case"ascii":return E(this,t,n,r);case"latin1":case"binary":return A(this,t,n,r);case"base64":return O(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;u.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n0&&(i*=256);)e+=this[t+--n]*i;return e},u.prototype.readUInt8=function(t,n){return n||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,n){return n||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,n){return n||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,n){return n||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,n){return n||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,n,r){t|=0,n|=0,r||F(t,n,this.length);for(var e=this[t],i=1,o=0;++o=i&&(e-=Math.pow(2,8*n)),e},u.prototype.readIntBE=function(t,n,r){t|=0,n|=0,r||F(t,n,this.length);for(var e=n,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*n)),o},u.prototype.readInt8=function(t,n){return n||F(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},u.prototype.readInt16LE=function(t,n){n||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,n){n||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,n){return n||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,n){return n||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,n){return n||F(t,4,this.length),Z.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,n){return n||F(t,4,this.length),Z.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,n){return n||F(t,8,this.length),Z.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,n){return n||F(t,8,this.length),Z.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,n,r,e){if(t=+t,n|=0,r|=0,!e){var i=Math.pow(2,8*r)-1;C(this,t,n,r,i,0)}var o=1,u=0;for(this[n]=255&t;++u=0&&(u*=256);)this[n+o]=t/u&255;return n+r},u.prototype.writeUInt8=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},u.prototype.writeUInt16LE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):N(this,t,n,!0),n+2},u.prototype.writeUInt16BE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):N(this,t,n,!1),n+2},u.prototype.writeUInt32LE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):B(this,t,n,!0),n+4},u.prototype.writeUInt32BE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):B(this,t,n,!1),n+4},u.prototype.writeIntLE=function(t,n,r,e){if(t=+t,n|=0,!e){var i=Math.pow(2,8*r-1);C(this,t,n,r,i-1,-i)}var o=0,u=1,s=0;for(this[n]=255&t;++o>0)-s&255;return n+r},u.prototype.writeIntBE=function(t,n,r,e){if(t=+t,n|=0,!e){var i=Math.pow(2,8*r-1);C(this,t,n,r,i-1,-i)}var o=r-1,u=1,s=0;for(this[n+o]=255&t;--o>=0&&(u*=256);)t<0&&0===s&&0!==this[n+o+1]&&(s=1),this[n+o]=(t/u>>0)-s&255;return n+r},u.prototype.writeInt8=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},u.prototype.writeInt16LE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):N(this,t,n,!0),n+2},u.prototype.writeInt16BE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):N(this,t,n,!1),n+2},u.prototype.writeInt32LE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):B(this,t,n,!0),n+4},u.prototype.writeInt32BE=function(t,n,r){return t=+t,n|=0,r||C(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):B(this,t,n,!1),n+4},u.prototype.writeFloatLE=function(t,n,r){return D(this,t,n,!0,r)},u.prototype.writeFloatBE=function(t,n,r){return D(this,t,n,!1,r)},u.prototype.writeDoubleLE=function(t,n,r){return Y(this,t,n,!0,r)},u.prototype.writeDoubleBE=function(t,n,r){return Y(this,t,n,!1,r)},u.prototype.copy=function(t,n,r,e){if(r||(r=0),e||0===e||(e=this.length),n>=t.length&&(n=t.length),n||(n=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-n=0;--i)t[i+n]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var o;if("number"==typeof t)for(o=n;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=n);var e=r===n?0:4-r%4;return[r,e]}function e(t){var n=r(t),e=n[0],i=n[1];return 3*(e+i)/4-i}function i(t,n,r){return 3*(n+r)/4-r}function o(t){for(var n,e=r(t),o=e[0],u=e[1],s=new l(i(t,o,u)),c=0,a=u>0?o-4:o,h=0;h>16&255,s[c++]=n>>8&255,s[c++]=255&n;return 2===u&&(n=f[t.charCodeAt(h)]<<2|f[t.charCodeAt(h+1)]>>4,s[c++]=255&n),1===u&&(n=f[t.charCodeAt(h)]<<10|f[t.charCodeAt(h+1)]<<4|f[t.charCodeAt(h+2)]>>2,s[c++]=n>>8&255,s[c++]=255&n),s}function u(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function s(t,n,r){for(var e,i=[],o=n;oc?c:u+o));return 1===e?(n=t[r-1],i.push(a[n>>2]+a[n<<4&63]+"==")):2===e&&(n=(t[r-2]<<8)+t[r-1],i.push(a[n>>10]+a[n>>4&63]+a[n<<2&63]+"=")),i.join("")}n.byteLength=e,n.toByteArray=o,n.fromByteArray=c;for(var a=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=h.length;p>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[n+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[n+l],l+=h,f-=8);for(u=o&(1<<-f)-1,o>>=-f,f+=e;f>0;u=256*u+t[n+l],l+=h,f-=8);if(0===o)o=1-a;else{if(o===c)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,e),o-=a}return(p?-1:1)*u*Math.pow(2,o-e)},n.write=function(t,n,r,e,i,o){var u,s,c,a=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,v=e?1:-1,y=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-u))<1&&(u--,c*=2),n+=u+l>=1?h/c:h*Math.pow(2,1-l),n*c>=2&&(u++,c/=2),u+l>=f?(s=0,u=f):u+l>=1?(s=(n*c-1)*Math.pow(2,i),u+=l):(s=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[r+p]=255&s,p+=v,s/=256,i-=8);for(u=u<0;t[r+p]=255&u,p+=v,u/=256,a-=8);t[r+p-v]|=128*y}},function(t,n){"use strict";var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.onLogin=n.isLoggedIn=n.user=n.login=n.signup=void 0;var i=r(412),o=e(i);n.signup=(0,o.default)(function(t,n,r){return new Promise(function(e,i){if(t&&t.gun&&t.gun.user){var o=t.user();o.create(n,r,function(u){u.err?(i(u.err),o.leave(),t.gun.user().leave()):e(t.login(n,r))})}else i("SEA is not loaded")})}),n.login=(0,o.default)(function(t,n,r){return new Promise(function(e,i){if(t&&t.gun&&t.gun.user){var o=t.user();o.auth(n,r,function(n){return n.err?i(n.err):e(t.user().is)})}else i("SEA is not loaded")}).then(function(n){return t._onLogin&&t._onLogin(n),n})}),n.user=function(t){return function(){return t.gun.user()}},n.isLoggedIn=function(t){return function(){return t.gun&&t.gun.user&&t.user().is}},n.onLogin=function(t){return function(n){return t._onLogin=n}}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.getCollectionsArray=n.getCollections=n.getCollection=n.getScore=n.getOpId=n.getVoteCount=n.getLastActive=n.getTimestamp=void 0;var i=Object.assign||function(t){for(var n=1;n= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } -var getDayStr = exports.getDayStr = (0, _curry2.default)(function (peer, timestamp) { +var getDayStr = exports.getDayStr = (0, _ramda.curry)(function (peer, timestamp) { var d = new Date(timestamp || new Date().getTime()); var year = d.getUTCFullYear(); var month = d.getUTCMonth() + 1; @@ -43,42 +25,64 @@ var getDayStr = exports.getDayStr = (0, _curry2.default)(function (peer, timesta return year + "/" + month + "/" + dayNum; }); -var countVote = exports.countVote = (0, _curry2.default)(function (peer, id, kind, vote) { +var countVote = exports.countVote = (0, _ramda.curry)(function (peer, id, kind, vote) { if (!vote) return; var soul = peer.souls.thing.soul({ thingid: id }); - peer.setState((0, _assocPath2.default)(["things", id, "votes", kind], peer.getVoteCount(id, kind) + 1, peer.getState())); + peer.setState((0, _ramda.assocPath)(["things", id, "votes", kind], peer.getVoteCount(id, kind) + 1, peer.getState())); peer.sendVoteNotifications(id); peer.sendChangeNotifications(soul); }); -var watchThing = (0, _curry2.default)(function (peer, _ref) { +var watchThing = (0, _ramda.curry)(function (peer, _ref) { var id = _ref.id, timestamp = _ref.timestamp, thing = _objectWithoutProperties(_ref, ["id", "timestamp"]); var state = peer.getState(); + var updatedActive = false; var chain = peer.souls.thing.get({ thingid: id }); - var replyToSoul = (0, _path2.default)(["replyTo", "#"], thing); - var opSoul = (0, _path2.default)(["op", "#"], thing); + var replyToSoul = (0, _ramda.path)(["replyTo", "#"], thing); + var opSoul = (0, _ramda.path)(["op", "#"], thing); var replyToId = replyToSoul ? peer.souls.thing.isMatch(replyToSoul).thingid : null; var opId = opSoul ? peer.souls.thing.isMatch(opSoul).thingid : null; - var votes = (0, _pathOr2.default)({}, ["things", id, "votes"], state); + var votes = (0, _ramda.pathOr)({}, ["things", id, "votes"], state); var existingTimestamp = peer.getTimestamp(id); + var lastActive = thing.lastActive || timestamp; if (existingTimestamp && peer.config.countVotes) return; if (!peer.config.countVotes) { ["up", "down", "comment"].forEach(function (kind) { - var voteCount = (0, _propOr2.default)(votes[kind] || 0, "votes" + kind + "count", thing); + var voteCount = (0, _ramda.propOr)(votes[kind] || 0, "votes" + kind + "count", thing); if (voteCount) votes[kind] = voteCount; }); } - peer.setState((0, _assocPath2.default)(["things", id], { id: id, timestamp: timestamp, chain: chain, replyToId: replyToId, opId: opId, votes: votes }, state)); + state = (0, _ramda.assocPath)(["things", id], (0, _ramda.merge)((0, _ramda.pathOr)({}, ["things", id], state), { id: id, timestamp: timestamp, lastActive: lastActive, chain: chain, replyToId: replyToId, opId: opId, votes: votes }), state); + + if (replyToId) { + state = (0, _ramda.assocPath)(["things", replyToId, "replies", id], true, state); + } + + if (opId && peer.getLastActive(opId) < timestamp) { + state = (0, _ramda.assocPath)(["things", opId, "lastActive"], timestamp, state); + updatedActive = true; + } + + peer.setState(state); peer.sendChangeNotifications(peer.souls.thing.soul({ thingid: id })); + if (updatedActive) { + peer.sendVoteNotifications(opId); + } + if (peer.config.countVotes && timestamp) { - chain.get("allcomments").map().once(peer.countVote(id, "comment")); + chain.get("allcomments").map().once(function (comment) { + if (peer.getLastActive(id) < comment.timestamp) { + peer.setState((0, _ramda.assocPath)(["things", id, "lastActive"], comment.timestamp, peer.getState())); + } + peer.countVote(id, "comment")(comment); + }); chain.get("votesup").map().once(peer.countVote(id, "up")); chain.get("votesdown").map().once(peer.countVote(id, "down")); } else { @@ -87,21 +91,21 @@ var watchThing = (0, _curry2.default)(function (peer, _ref) { }); exports.watchThing = watchThing; -var unwatchThing = exports.unwatchThing = (0, _curry2.default)(function (peer, id) { +var unwatchThing = exports.unwatchThing = (0, _ramda.curry)(function (peer, id) { var state = peer.getState(); - var chain = (0, _path2.default)(["things", id, "chain"], state); - peer.setState((0, _assocPath2.default)(["things", id], null, state)); + var chain = (0, _ramda.path)(["things", id, "chain"], state); + peer.setState((0, _ramda.assocPath)(["things", id], null, state)); return chain && chain.off && chain.off(); }); -var watchCollection = exports.watchCollection = (0, _curry2.default)(function (peer, soul) { +var watchCollection = exports.watchCollection = (0, _ramda.curry)(function (peer, soul) { var state = peer.getState(); - if ((0, _path2.default)(["collections", soul], state)) return null; + if ((0, _ramda.path)(["collections", soul], state)) return null; var chain = peer.gun.get(soul); - peer.setState((0, _assocPath2.default)(["collections", soul, "chain"], chain, state)); + peer.setState((0, _ramda.assocPath)(["collections", soul, "chain"], chain, state)); var onThing = function onThing(thing) { if (!thing || !thing.id) return null; - peer.setState((0, _assocPath2.default)(["collections", soul, "things", thing.id], true, peer.getState())); + peer.setState((0, _ramda.assocPath)(["collections", soul, "things", thing.id], true, peer.getState())); return peer.watchThing(thing); }; @@ -113,85 +117,85 @@ var watchCollection = exports.watchCollection = (0, _curry2.default)(function (p return chain.map().on(onThing); }); -var unwatchCollection = exports.unwatchCollection = (0, _curry2.default)(function (peer, soul) { +var unwatchCollection = exports.unwatchCollection = (0, _ramda.curry)(function (peer, soul) { var state = peer.getState(); - var chain = (0, _path2.default)(["collections", soul, "chain"], state); - peer.setState((0, _assocPath2.default)(["collections", soul], null, state)); + var chain = (0, _ramda.path)(["collections", soul, "chain"], state); + peer.setState((0, _ramda.assocPath)(["collections", soul], null, state)); return chain && chain.off && chain.off(); }); -var onChange = exports.onChange = (0, _curry2.default)(function (peer, soul, fn) { +var onChange = exports.onChange = (0, _ramda.curry)(function (peer, soul, fn) { var state = peer.getState(); - var subs = (0, _pathOr2.default)([], ["changeSubscriptions", soul || null], state); + var subs = (0, _ramda.pathOr)([], ["changeSubscriptions", soul || null], state); if (subs.indexOf(fn) !== -1) return; - peer.setState((0, _assocPath2.default)(["changeSubscriptions", soul || null], [].concat(_toConsumableArray(subs), [fn]), state)); + peer.setState((0, _ramda.assocPath)(["changeSubscriptions", soul || null], [].concat(_toConsumableArray(subs), [fn]), state)); }); -var onChangeOff = exports.onChangeOff = (0, _curry2.default)(function (peer, soul, fn) { +var onChangeOff = exports.onChangeOff = (0, _ramda.curry)(function (peer, soul, fn) { var state = peer.getState(); - var subs = (0, _pathOr2.default)([], ["changeSubscriptions", soul || null], state).filter(function (f) { + var subs = (0, _ramda.pathOr)([], ["changeSubscriptions", soul || null], state).filter(function (f) { return f !== fn; }); - peer.setState((0, _assocPath2.default)(["changeSubscriptions", soul || null], subs, state)); + peer.setState((0, _ramda.assocPath)(["changeSubscriptions", soul || null], subs, state)); }); -var onVote = exports.onVote = (0, _curry2.default)(function (peer, soul, fn) { +var onVote = exports.onVote = (0, _ramda.curry)(function (peer, soul, fn) { var state = peer.getState(); - var subs = (0, _pathOr2.default)([], ["voteSubscriptions", soul || null], state); + var subs = (0, _ramda.pathOr)([], ["voteSubscriptions", soul || null], state); if (subs.indexOf(fn) !== -1) return; - peer.setState((0, _assocPath2.default)(["voteSubscriptions", soul || null], [].concat(_toConsumableArray(subs), [fn]), state)); + peer.setState((0, _ramda.assocPath)(["voteSubscriptions", soul || null], [].concat(_toConsumableArray(subs), [fn]), state)); }); var onMsg = exports.onMsg = function onMsg(peer) { return function (fn) { var state = peer.getState(); - var subs = (0, _pathOr2.default)([], ["msgSubscriptions"], state); + var subs = (0, _ramda.pathOr)([], ["msgSubscriptions"], state); if (subs.indexOf(fn) !== -1) return; - peer.setState((0, _assocPath2.default)(["msgSubscriptions"], [].concat(_toConsumableArray(subs), [fn]), state)); + peer.setState((0, _ramda.assocPath)(["msgSubscriptions"], [].concat(_toConsumableArray(subs), [fn]), state)); }; }; -var sendChangeNotifications = exports.sendChangeNotifications = (0, _curry2.default)(function (peer, soul) { - (0, _pathOr2.default)([], ["changeSubscriptions", soul], peer.getState()).forEach(function (fn) { +var sendChangeNotifications = exports.sendChangeNotifications = (0, _ramda.curry)(function (peer, soul) { + (0, _ramda.pathOr)([], ["changeSubscriptions", soul], peer.getState()).forEach(function (fn) { return fn(); }); - (0, _pathOr2.default)([], ["changeSubscriptions", null], peer.getState()).forEach(function (fn) { + (0, _ramda.pathOr)([], ["changeSubscriptions", null], peer.getState()).forEach(function (fn) { return fn(); }); }); -var sendVoteNotifications = exports.sendVoteNotifications = (0, _curry2.default)(function (peer, id) { - (0, _pathOr2.default)([], ["voteSubscriptions", id], peer.getState()).forEach(function (fn) { +var sendVoteNotifications = exports.sendVoteNotifications = (0, _ramda.curry)(function (peer, id) { + (0, _ramda.pathOr)([], ["voteSubscriptions", id], peer.getState()).forEach(function (fn) { return fn(id); }); - (0, _pathOr2.default)([], ["voteSubscriptions", null], peer.getState()).forEach(function (fn) { + (0, _ramda.pathOr)([], ["voteSubscriptions", null], peer.getState()).forEach(function (fn) { return fn(id); }); }); -var sendMsgNotifications = exports.sendMsgNotifications = (0, _curry2.default)(function (peer, msg) { - (0, _pathOr2.default)([], ["msgSubscriptions"], peer.getState()).forEach(function (fn) { +var sendMsgNotifications = exports.sendMsgNotifications = (0, _ramda.curry)(function (peer, msg) { + (0, _ramda.pathOr)([], ["msgSubscriptions"], peer.getState()).forEach(function (fn) { return fn(msg); }); }); -var onChangeThing = exports.onChangeThing = (0, _curry2.default)(function (peer, id, fn) { +var onChangeThing = exports.onChangeThing = (0, _ramda.curry)(function (peer, id, fn) { var soul = peer.souls.thing.soul({ thingid: id }); peer.gun.get(soul).once(peer.watchThing); peer.onChange(peer.souls.thing.soul({ thingid: id }), fn); }); -var onChangeThingOff = exports.onChangeThingOff = (0, _curry2.default)(function (peer, id, fn) { +var onChangeThingOff = exports.onChangeThingOff = (0, _ramda.curry)(function (peer, id, fn) { return peer.onChangeOff(peer.souls.thing.soul({ thingid: id }), fn); }); -var onChangeListing = exports.onChangeListing = (0, _curry2.default)(function (peer, params, fn) { +var onChangeListing = exports.onChangeListing = (0, _ramda.curry)(function (peer, params, fn) { return peer.getListingSouls(params).map(function (soul) { return peer.onChange(soul, fn); }); }); -var onChangeListingOff = exports.onChangeListingOff = (0, _curry2.default)(function (peer, params, fn) { +var onChangeListingOff = exports.onChangeListingOff = (0, _ramda.curry)(function (peer, params, fn) { return peer.getListingSouls(params).map(function (soul) { return peer.onChangeOff(soul, fn); }); @@ -211,6 +215,7 @@ var scoreThingsForPeers = exports.scoreThingsForPeers = function scoreThingsForP } }); if (Object.keys(counts).length) { + counts.lastActive = peer.getLastActive(id); thing.put(counts); } }, 100, { trailing: true }); @@ -219,8 +224,8 @@ var scoreThingsForPeers = exports.scoreThingsForPeers = function scoreThingsForP peer.onMsg(function (msg) { Object.keys(msg).forEach(function (key) { if (key === "get" && msg.mesh && msg.how !== "mem") { - var soul = (0, _path2.default)([key, "#"], msg); - if (peer.souls.topic.isMatch(soul) || peer.souls.topicDay.isMatch(soul) || peer.souls.domain.isMatch(soul) || peer.souls.url.isMatch(soul) || peer.souls.thingComments.isMatch(soul)) { + var soul = (0, _ramda.path)([key, "#"], msg); + if (peer.souls.topic.isMatch(soul) || peer.souls.topicDay.isMatch(soul) || peer.souls.domain.isMatch(soul) || peer.souls.url.isMatch(soul) || peer.souls.thingAllComments.isMatch(soul)) { peer.watchCollection(soul); } } diff --git a/package.json b/package.json index 0ef224a..c0d0cd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notabug-peer", - "version": "0.3.0", + "version": "0.4.0", "description": "notabug network peer", "main": "./index.js", "scripts": { diff --git a/src/accessors.js b/src/accessors.js index e359f96..f7f8e0b 100644 --- a/src/accessors.js +++ b/src/accessors.js @@ -4,9 +4,15 @@ import pathOr from "ramda/src/pathOr"; export const getTimestamp = peer => id => pathOr(0, ["things", id, "timestamp"], peer.getState()); +export const getLastActive = peer => id => + pathOr(peer.getTimestamp(id), ["things", id, "lastActive"], peer.getState()); + export const getVoteCount = peer => (id, type) => pathOr(0, ["things", id, "votes", type], peer.getState()); +export const getOpId = peer => id => + pathOr(id, ["things", id, "opId"], peer.getState()); + export const getScore = peer => id => peer.getVoteCount(id, "up") - peer.getVoteCount(id, "down"); diff --git a/src/listing.js b/src/listing.js index cb7a238..8018329 100644 --- a/src/listing.js +++ b/src/listing.js @@ -1,9 +1,4 @@ -import compose from "ramda/src/compose"; -import filter from "ramda/src/filter"; -import identity from "ramda/src/identity"; -import lte from "ramda/src/lte"; -import slice from "ramda/src/slice"; - +import { compose, filter, identity, lte, slice, pathOr } from "ramda"; import { PREFIX } from "./etc"; export const getListingSouls = peer => params => { @@ -11,7 +6,7 @@ export const getListingSouls = peer => params => { let dayStrings; if (replyToId) { - return [`${PREFIX}/things/${replyToId}/comments`]; + return [`${PREFIX}/things/${peer.getOpId(replyToId)}/allcomments`]; } else if (url) { return [`${PREFIX}/urls/${url}`]; } else if (domain) { @@ -40,10 +35,23 @@ export const getListingSouls = peer => params => { )); }; +const getReplies = (peer, params) => { + const { limit, sort="hot", replyToId, count=0, threshold=null } = (params || {}); + return compose( + limit ? slice(count, count+limit) : identity, + peer.sorts[sort], + threshold === null ? identity : filter(compose(lte(threshold), peer.getScore)), + Object.keys, + pathOr({}, ["things", replyToId, "replies"]) + )(peer.getState()); +} + export const getListingIds = peer => params => { const { limit, sort="hot", count=0, threshold=null } = (params || {}); if (!peer.sorts[sort]) throw new Error(`Unknown sort: ${sort}`); + if (params.replyToId) return getReplies(peer, params); + return compose( limit ? slice(count, count+limit) : identity, peer.sorts[sort], diff --git a/src/notabug.js b/src/notabug.js index 62c4be5..e4716b3 100644 --- a/src/notabug.js +++ b/src/notabug.js @@ -32,7 +32,7 @@ const notabug = (config={}) => { if (persist) { gunConfig.localStorage = false; gunConfig.radisk = true; - gunConfig.until = gunConfig.until || 60000; + gunConfig.until = gunConfig.until || 1000; } else { gunConfig.radisk = false; } diff --git a/src/sorts.js b/src/sorts.js index 212c30a..a7a08eb 100644 --- a/src/sorts.js +++ b/src/sorts.js @@ -3,6 +3,7 @@ import sortBy from "ramda/src/sortBy"; export const sorts = peer => ({ new: sortBy(id => -1 * peer.getTimestamp(id)), old: sortBy(id => peer.getTimestamp(id)), + active: sortBy(id => -1 * peer.getLastActive(id)), top: sortBy(id => -1 * peer.getScore(id)), comments: sortBy(id => -1 * peer.getVoteCount(id, "comment")), hot: sortBy(id => { diff --git a/src/watch.js b/src/watch.js index 99410dd..34d32f1 100644 --- a/src/watch.js +++ b/src/watch.js @@ -1,8 +1,4 @@ -import curry from "ramda/src/curry"; -import assocPath from "ramda/src/assocPath"; -import path from "ramda/src/path"; -import pathOr from "ramda/src/pathOr"; -import propOr from "ramda/src/propOr"; +import { curry, assocPath, path, pathOr, propOr, merge } from "ramda"; import debounce from "lodash/debounce"; export const getDayStr = curry((peer, timestamp) => { @@ -26,7 +22,8 @@ export const countVote = curry((peer, id, kind, vote) => { }); export const watchThing = curry((peer, { id, timestamp, ...thing }) => { - const state = peer.getState(); + let state = peer.getState(); + let updatedActive = false; const chain = peer.souls.thing.get({ thingid: id }); const replyToSoul = path(["replyTo", "#"], thing); const opSoul = path(["op", "#"], thing); @@ -34,10 +31,10 @@ export const watchThing = curry((peer, { id, timestamp, ...thing }) => { const opId = opSoul ? peer.souls.thing.isMatch(opSoul).thingid : null; const votes = pathOr({}, ["things", id, "votes"], state); const existingTimestamp = peer.getTimestamp(id); + const lastActive = thing.lastActive || timestamp; if (existingTimestamp && peer.config.countVotes) return; - if (!peer.config.countVotes) { ["up", "down", "comment"].forEach(kind => { const voteCount = propOr(votes[kind] || 0, `votes${kind}count`, thing); @@ -45,11 +42,42 @@ export const watchThing = curry((peer, { id, timestamp, ...thing }) => { }); } - peer.setState(assocPath(["things", id], { id, timestamp, chain, replyToId, opId, votes }, state)); + state = assocPath( + ["things", id], + merge( + pathOr({}, ["things", id], state), + { id, timestamp, lastActive, chain, replyToId, opId, votes }, + ), + state + ); + + if (replyToId) { + state = assocPath(["things", replyToId, "replies", id], true, state); + } + + if (opId && peer.getLastActive(opId) < timestamp) { + state = assocPath(["things", opId, "lastActive"], timestamp, state); + updatedActive = true; + } + + peer.setState(state); peer.sendChangeNotifications(peer.souls.thing.soul({ thingid: id })); + if (updatedActive) { + peer.sendVoteNotifications(opId); + } + if (peer.config.countVotes && timestamp) { - chain.get("allcomments").map().once(peer.countVote(id, "comment")); + chain.get("allcomments").map().once(comment => { + if (peer.getLastActive(id) < comment.timestamp) { + peer.setState(assocPath( + ["things", id, "lastActive"], + comment.timestamp, + peer.getState() + )); + } + peer.countVote(id, "comment")(comment); + }); chain.get("votesup").map().once(peer.countVote(id, "up")); chain.get("votesdown").map().once(peer.countVote(id, "down")); } else { @@ -164,6 +192,7 @@ export const scoreThingsForPeers = peer => () => { } }); if (Object.keys(counts).length) { + counts.lastActive = peer.getLastActive(id); thing.put(counts); } }, @@ -180,7 +209,7 @@ export const scoreThingsForPeers = peer => () => { peer.souls.topicDay.isMatch(soul) || peer.souls.domain.isMatch(soul) || peer.souls.url.isMatch(soul) || - peer.souls.thingComments.isMatch(soul) + peer.souls.thingAllComments.isMatch(soul) ) { peer.watchCollection(soul); }