sandpit
Version:
A playground for creative coding using JavaScript and the canvas element
1 lines • 208 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sandpit=e()}(this,function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e(function(t){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)}),r={}.hasOwnProperty,i=function(t,e){return r.call(t,e)},o=function(t){try{return!!t()}catch(t){return!0}},a=!o(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),s=e(function(t){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)}),u=(s.version,"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}),c=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=function(t){return"object"===(void 0===t?"undefined":u(t))?null!==t:"function"==typeof t},f=function(t){if(!h(t))throw TypeError(t+" is not an object!");return t},d=n.document,p=h(d)&&h(d.createElement),v=function(t){return p?d.createElement(t):{}},y=!a&&!o(function(){return 7!=Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a}),g=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m=Object.defineProperty,_={f:a?Object.defineProperty:function(t,e,n){if(f(t),e=g(e,!0),f(n),y)try{return m(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=a?function(t,e,n){return _.f(t,e,b(1,n))}:function(t,e,n){return t[e]=n,t},x=0,E=Math.random(),A=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++x+E).toString(36))},S=e(function(t){var e=A("src"),r=Function.toString,o=(""+r).split("toString");s.inspectSource=function(t){return r.call(t)},(t.exports=function(t,r,a,s){var u="function"==typeof a;u&&(i(a,"name")||w(a,"name",r)),t[r]!==a&&(u&&(i(a,e)||w(a,e,t[r]?""+t[r]:o.join(String(r)))),t===n?t[r]=a:s?t[r]?t[r]=a:w(t,r,a):(delete t[r],w(t,r,a)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||r.call(this)})}),k=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},O=function(t,e,n){if(k(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},M=function t(e,r,i){var o,a,u,c,l=e&t.F,h=e&t.G,f=e&t.P,d=e&t.B,p=h?n:e&t.S?n[r]||(n[r]={}):(n[r]||{}).prototype,v=h?s:s[r]||(s[r]={}),y=v.prototype||(v.prototype={});for(o in h&&(i=r),i)u=((a=!l&&p&&void 0!==p[o])?p:i)[o],c=d&&a?O(u,n):f&&"function"==typeof u?O(Function.call,u):u,p&&S(p,o,u,e&t.U),v[o]!=u&&w(v,o,c),f&&y[o]!=u&&(y[o]=u)};n.core=s,M.F=1,M.G=2,M.S=4,M.P=8,M.B=16,M.W=32,M.U=64,M.R=128;var C=M,R=e(function(t){var e=A("meta"),n=_.f,r=0,a=Object.isExtensible||function(){return!0},s=!o(function(){return a(Object.preventExtensions({}))}),c=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!h(t))return"symbol"==(void 0===t?"undefined":u(t))?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!a(t))return"F";if(!n)return"E";c(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!a(t))return!0;if(!n)return!1;c(t)}return t[e].w},onFreeze:function(t){return s&&l.NEED&&a(t)&&!i(t,e)&&c(t),t}}}),T=(R.KEY,R.NEED,R.fastKey,R.getWeak,R.onFreeze,n["__core-js_shared__"]||(n["__core-js_shared__"]={})),j=function(t){return T[t]||(T[t]={})},F=e(function(t){var e=j("wks"),r=n.Symbol,i="function"==typeof r;(t.exports=function(t){return e[t]||(e[t]=i&&r[t]||(i?r:A)("Symbol."+t))}).store=e}),P=_.f,I=F("toStringTag"),L=function(t,e,n){t&&!i(t=n?t:t.prototype,I)&&P(t,I,{configurable:!0,value:e})},N={f:F},B=_.f,D=function(t){var e=s.Symbol||(s.Symbol=n.Symbol||{});"_"==t.charAt(0)||t in e||B(e,t,{value:N.f(t)})},z={}.toString,G=function(t){return z.call(t).slice(8,-1)},U=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==G(t)?t.split(""):Object(t)},V=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},H=function(t){return U(V(t))},W=Math.ceil,X=Math.floor,Y=function(t){return isNaN(t=+t)?0:(t>0?X:W)(t)},q=Math.min,Q=function(t){return t>0?q(Y(t),9007199254740991):0},K=Math.max,J=Math.min,Z=function(t,e){return(t=Y(t))<0?K(t+e,0):J(t,e)},$=function(t){return function(e,n,r){var i,o=H(e),a=Q(o.length),s=Z(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},tt=j("keys"),et=function(t){return tt[t]||(tt[t]=A(t))},nt=$(!1),rt=et("IE_PROTO"),it=function(t,e){var n,r=H(t),o=0,a=[];for(n in r)n!=rt&&i(r,n)&&a.push(n);for(;e.length>o;)i(r,n=e[o++])&&(~nt(a,n)||a.push(n));return a},ot="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),at=Object.keys||function(t){return it(t,ot)},st={f:Object.getOwnPropertySymbols},ut={f:{}.propertyIsEnumerable},ct=Array.isArray||function(t){return"Array"==G(t)},lt=a?Object.defineProperties:function(t,e){f(t);for(var n,r=at(e),i=r.length,o=0;i>o;)_.f(t,n=r[o++],e[n]);return t},ht=n.document,ft=ht&&ht.documentElement,dt=et("IE_PROTO"),pt=function(){},vt=function(){var t,e=v("iframe"),n=ot.length;for(e.style.display="none",ft.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),vt=t.F;n--;)delete vt.prototype[ot[n]];return vt()},yt=Object.create||function(t,e){var n;return null!==t?(pt.prototype=f(t),n=new pt,pt.prototype=null,n[dt]=t):n=vt(),void 0===e?n:lt(n,e)},gt=ot.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return it(t,gt)}},_t=mt.f,bt={}.toString,wt="object"==("undefined"==typeof window?"undefined":u(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xt={f:function(t){return wt&&"[object Window]"==bt.call(t)?function(t){try{return _t(t)}catch(t){return wt.slice()}}(t):_t(H(t))}},Et=Object.getOwnPropertyDescriptor,At={f:a?Et:function(t,e){if(t=H(t),e=g(e,!0),y)try{return Et(t,e)}catch(t){}if(i(t,e))return b(!ut.f.call(t,e),t[e])}},St=R.KEY,kt=At.f,Ot=_.f,Mt=xt.f,Ct=n.Symbol,Rt=n.JSON,Tt=Rt&&Rt.stringify,jt=F("_hidden"),Ft=F("toPrimitive"),Pt={}.propertyIsEnumerable,It=j("symbol-registry"),Lt=j("symbols"),Nt=j("op-symbols"),Bt=Object.prototype,Dt="function"==typeof Ct,zt=n.QObject,Gt=!zt||!zt.prototype||!zt.prototype.findChild,Ut=a&&o(function(){return 7!=yt(Ot({},"a",{get:function(){return Ot(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=kt(Bt,e);r&&delete Bt[e],Ot(t,e,n),r&&t!==Bt&&Ot(Bt,e,r)}:Ot,Vt=function(t){var e=Lt[t]=yt(Ct.prototype);return e._k=t,e},Ht=Dt&&"symbol"==u(Ct.iterator)?function(t){return"symbol"==(void 0===t?"undefined":u(t))}:function(t){return t instanceof Ct},Wt=function(t,e,n){return t===Bt&&Wt(Nt,e,n),f(t),e=g(e,!0),f(n),i(Lt,e)?(n.enumerable?(i(t,jt)&&t[jt][e]&&(t[jt][e]=!1),n=yt(n,{enumerable:b(0,!1)})):(i(t,jt)||Ot(t,jt,b(1,{})),t[jt][e]=!0),Ut(t,e,n)):Ot(t,e,n)},Xt=function(t,e){f(t);for(var n,r=function(t){var e=at(t),n=st.f;if(n)for(var r,i=n(t),o=ut.f,a=0;i.length>a;)o.call(t,r=i[a++])&&e.push(r);return e}(e=H(e)),i=0,o=r.length;o>i;)Wt(t,n=r[i++],e[n]);return t},Yt=function(t){var e=Pt.call(this,t=g(t,!0));return!(this===Bt&&i(Lt,t)&&!i(Nt,t))&&(!(e||!i(this,t)||!i(Lt,t)||i(this,jt)&&this[jt][t])||e)},qt=function(t,e){if(t=H(t),e=g(e,!0),t!==Bt||!i(Lt,e)||i(Nt,e)){var n=kt(t,e);return!n||!i(Lt,e)||i(t,jt)&&t[jt][e]||(n.enumerable=!0),n}},Qt=function(t){for(var e,n=Mt(H(t)),r=[],o=0;n.length>o;)i(Lt,e=n[o++])||e==jt||e==St||r.push(e);return r},Kt=function(t){for(var e,n=t===Bt,r=Mt(n?Nt:H(t)),o=[],a=0;r.length>a;)!i(Lt,e=r[a++])||n&&!i(Bt,e)||o.push(Lt[e]);return o};Dt||(S((Ct=function(){if(this instanceof Ct)throw TypeError("Symbol is not a constructor!");var t=A(arguments.length>0?arguments[0]:void 0);return a&&Gt&&Ut(Bt,t,{configurable:!0,set:function e(n){this===Bt&&e.call(Nt,n),i(this,jt)&&i(this[jt],t)&&(this[jt][t]=!1),Ut(this,t,b(1,n))}}),Vt(t)}).prototype,"toString",function(){return this._k}),At.f=qt,_.f=Wt,mt.f=xt.f=Qt,ut.f=Yt,st.f=Kt,a&&S(Bt,"propertyIsEnumerable",Yt,!0),N.f=function(t){return Vt(F(t))}),C(C.G+C.W+C.F*!Dt,{Symbol:Ct});for(var Jt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Zt=0;Jt.length>Zt;)F(Jt[Zt++]);for(var $t=at(F.store),te=0;$t.length>te;)D($t[te++]);C(C.S+C.F*!Dt,"Symbol",{for:function(t){return i(It,t+="")?It[t]:It[t]=Ct(t)},keyFor:function(t){if(!Ht(t))throw TypeError(t+" is not a symbol!");for(var e in It)if(It[e]===t)return e},useSetter:function(){Gt=!0},useSimple:function(){Gt=!1}}),C(C.S+C.F*!Dt,"Object",{create:function(t,e){return void 0===e?yt(t):Xt(yt(t),e)},defineProperty:Wt,defineProperties:Xt,getOwnPropertyDescriptor:qt,getOwnPropertyNames:Qt,getOwnPropertySymbols:Kt}),Rt&&C(C.S+C.F*(!Dt||o(function(){var t=Ct();return"[null]"!=Tt([t])||"{}"!=Tt({a:t})||"{}"!=Tt(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(h(e)||void 0!==t)&&!Ht(t))return ct(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ht(e))return e}),r[1]=e,Tt.apply(Rt,r)}}),Ct.prototype[Ft]||w(Ct.prototype,Ft,Ct.prototype.valueOf),L(Ct,"Symbol"),L(Math,"Math",!0),L(n.JSON,"JSON",!0),C(C.S,"Object",{create:yt}),C(C.S+C.F*!a,"Object",{defineProperty:_.f}),C(C.S+C.F*!a,"Object",{defineProperties:lt});var ee=function(t,e){var n=(s.Object||{})[t]||Object[t],r={};r[t]=e(n),C(C.S+C.F*o(function(){n(1)}),"Object",r)},ne=At.f;ee("getOwnPropertyDescriptor",function(){return function(t,e){return ne(H(t),e)}});var re=function(t){return Object(V(t))},ie=et("IE_PROTO"),oe=Object.prototype,ae=Object.getPrototypeOf||function(t){return t=re(t),i(t,ie)?t[ie]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?oe:null};ee("getPrototypeOf",function(){return function(t){return ae(re(t))}}),ee("keys",function(){return function(t){return at(re(t))}}),ee("getOwnPropertyNames",function(){return xt.f});var se=R.onFreeze;ee("freeze",function(t){return function(e){return t&&h(e)?t(se(e)):e}});var ue=R.onFreeze;ee("seal",function(t){return function(e){return t&&h(e)?t(ue(e)):e}});var ce=R.onFreeze;ee("preventExtensions",function(t){return function(e){return t&&h(e)?t(ce(e)):e}}),ee("isFrozen",function(t){return function(e){return!h(e)||!!t&&t(e)}}),ee("isSealed",function(t){return function(e){return!h(e)||!!t&&t(e)}}),ee("isExtensible",function(t){return function(e){return!!h(e)&&(!t||t(e))}});var le=Object.assign,he=!le||o(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=le({},t)[n]||Object.keys(le({},e)).join("")!=r})?function(t,e){for(var n=re(t),r=arguments.length,i=1,o=st.f,a=ut.f;r>i;)for(var s,u=U(arguments[i++]),c=o?at(u).concat(o(u)):at(u),l=c.length,h=0;l>h;)a.call(u,s=c[h++])&&(n[s]=u[s]);return n}:le;C(C.S+C.F,"Object",{assign:he});var fe=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};C(C.S,"Object",{is:fe});var de=function(t,e){if(f(t),!h(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},pe={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=O(Function.call,At.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return de(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:de};C(C.S,"Object",{setPrototypeOf:pe.set});var ve=F("toStringTag"),ye="Arguments"==G(function(){return arguments}()),ge=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ve))?n:ye?G(e):"Object"==(r=G(e))&&"function"==typeof e.callee?"Arguments":r},me={};me[F("toStringTag")]="z",me+""!="[object z]"&&S(Object.prototype,"toString",function(){return"[object "+ge(this)+"]"},!0);var _e=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)},be=[].slice,we={},xe=Function.bind||function(t){var e=k(this),n=be.call(arguments,1),r=function r(){var i=n.concat(be.call(arguments));return this instanceof r?function(t,e,n){if(!(e in we)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";we[e]=Function("F,a","return new F("+r.join(",")+")")}return we[e](t,n)}(e,i.length,i):_e(e,i,t)};return h(e.prototype)&&(r.prototype=e.prototype),r};C(C.P,"Function",{bind:xe});var Ee=_.f,Ae=Function.prototype,Se=/^\s*function ([^ (]*)/;"name"in Ae||a&&Ee(Ae,"name",{configurable:!0,get:function(){try{return(""+this).match(Se)[1]}catch(t){return""}}});var ke=F("hasInstance"),Oe=Function.prototype;ke in Oe||_.f(Oe,ke,{value:function(t){if("function"!=typeof this||!h(t))return!1;if(!h(this.prototype))return t instanceof this;for(;t=ae(t);)if(this.prototype===t)return!0;return!1}});var Me="\t\n\v\f\r \u2028\u2029\ufeff",Ce="["+Me+"]",Re=RegExp("^"+Ce+Ce+"*"),Te=RegExp(Ce+Ce+"*$"),je=function(t,e,n){var r={},i=o(function(){return!!Me[t]()||"
"!="
"[t]()}),a=r[t]=i?e(Fe):Me[t];n&&(r[n]=a),C(C.P+C.F*i,"String",r)},Fe=je.trim=function(t,e){return t=String(V(t)),1&e&&(t=t.replace(Re,"")),2&e&&(t=t.replace(Te,"")),t},Pe=je,Ie=n.parseInt,Le=Pe.trim,Ne=/^[-+]?0[xX]/,Be=8!==Ie(Me+"08")||22!==Ie(Me+"0x16")?function(t,e){var n=Le(String(t),3);return Ie(n,e>>>0||(Ne.test(n)?16:10))}:Ie;C(C.G+C.F*(parseInt!=Be),{parseInt:Be});var De=n.parseFloat,ze=Pe.trim,Ge=1/De(Me+"-0")!=-1/0?function(t){var e=ze(String(t),3),n=De(e);return 0===n&&"-"==e.charAt(0)?-0:n}:De;C(C.G+C.F*(parseFloat!=Ge),{parseFloat:Ge});var Ue=pe.set,Ve=function(t,e,n){var r,i=e.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&h(r)&&Ue&&Ue(t,r),t},He=mt.f,We=At.f,Xe=_.f,Ye=Pe.trim,qe=n.Number,Qe=qe,Ke=qe.prototype,Je="Number"==G(yt(Ke)),Ze="trim"in String.prototype,$e=function(t){var e=g(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=Ze?e.trim():Ye(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,s=e.slice(2),u=0,c=s.length;u<c;u++)if((a=s.charCodeAt(u))<48||a>i)return NaN;return parseInt(s,r)}}return+e};if(!qe(" 0o1")||!qe("0b1")||qe("+0x1")){qe=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof qe&&(Je?o(function(){Ke.valueOf.call(n)}):"Number"!=G(n))?Ve(new Qe($e(e)),n,qe):$e(e)};for(var tn,en=a?He(Qe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),nn=0;en.length>nn;nn++)i(Qe,tn=en[nn])&&!i(qe,tn)&&Xe(qe,tn,We(Qe,tn));qe.prototype=Ke,Ke.constructor=qe,S(n,"Number",qe)}var rn=function(t,e){if("number"!=typeof t&&"Number"!=G(t))throw TypeError(e);return+t},on=function(t){var e=String(V(this)),n="",r=Y(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},an=1..toFixed,sn=Math.floor,un=[0,0,0,0,0,0],cn="Number.toFixed: incorrect invocation!",ln=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*un[n],un[n]=r%1e7,r=sn(r/1e7)},hn=function(t){for(var e=6,n=0;--e>=0;)n+=un[e],un[e]=sn(n/t),n=n%t*1e7},fn=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==un[t]){var n=String(un[t]);e=""===e?n:e+on.call("0",7-n.length)+n}return e},dn=function t(e,n,r){return 0===n?r:n%2==1?t(e,n-1,r*e):t(e*e,n/2,r)};C(C.P+C.F*(!!an&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o(function(){an.call({})})),"Number",{toFixed:function(t){var e,n,r,i,o=rn(this,cn),a=Y(t),s="",u="0";if(a<0||a>20)throw RangeError(cn);if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(s="-",o=-o),o>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*dn(2,69,1))-69)<0?o*dn(2,-e,1):o/dn(2,e,1),n*=4503599627370496,(e=52-e)>0){for(ln(0,n),r=a;r>=7;)ln(1e7,0),r-=7;for(ln(dn(10,r,1),0),r=e-1;r>=23;)hn(1<<23),r-=23;hn(1<<r),ln(1,1),hn(2),u=fn()}else ln(0,n),ln(1<<-e,0),u=fn()+on.call("0",a);return u=a>0?s+((i=u.length)<=a?"0."+on.call("0",a-i)+u:u.slice(0,i-a)+"."+u.slice(i-a)):s+u}});var pn=1..toPrecision;C(C.P+C.F*(o(function(){return"1"!==pn.call(1,void 0)})||!o(function(){pn.call({})})),"Number",{toPrecision:function(t){var e=rn(this,"Number#toPrecision: incorrect invocation!");return void 0===t?pn.call(e):pn.call(e,t)}}),C(C.S,"Number",{EPSILON:Math.pow(2,-52)});var vn=n.isFinite;C(C.S,"Number",{isFinite:function(t){return"number"==typeof t&&vn(t)}});var yn=Math.floor,gn=function(t){return!h(t)&&isFinite(t)&&yn(t)===t};C(C.S,"Number",{isInteger:gn}),C(C.S,"Number",{isNaN:function(t){return t!=t}});var mn=Math.abs;C(C.S,"Number",{isSafeInteger:function(t){return gn(t)&&mn(t)<=9007199254740991}}),C(C.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),C(C.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991}),C(C.S+C.F*(Number.parseFloat!=Ge),"Number",{parseFloat:Ge}),C(C.S+C.F*(Number.parseInt!=Be),"Number",{parseInt:Be});var _n=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},bn=Math.sqrt,wn=Math.acosh;C(C.S+C.F*!(wn&&710==Math.floor(wn(Number.MAX_VALUE))&&wn(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:_n(t-1+bn(t-1)*bn(t+1))}});var xn=Math.asinh;C(C.S+C.F*!(xn&&1/xn(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var En=Math.atanh;C(C.S+C.F*!(En&&1/En(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var An=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1};C(C.S,"Math",{cbrt:function(t){return An(t=+t)*Math.pow(Math.abs(t),1/3)}}),C(C.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var Sn=Math.exp;C(C.S,"Math",{cosh:function(t){return(Sn(t=+t)+Sn(-t))/2}});var kn=Math.expm1,On=!kn||kn(10)>22025.465794806718||kn(10)<22025.465794806718||-2e-17!=kn(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:kn;C(C.S+C.F*(On!=Math.expm1),"Math",{expm1:On});var Mn=Math.pow,Cn=Mn(2,-52),Rn=Mn(2,-23),Tn=Mn(2,127)*(2-Rn),jn=Mn(2,-126),Fn=Math.fround||function(t){var e,n,r=Math.abs(t),i=An(t);return r<jn?i*(r/jn/Rn+1/Cn-1/Cn)*jn*Rn:(n=(e=(1+Rn/Cn)*r)-(e-r))>Tn||n!=n?i*(1/0):i*n};C(C.S,"Math",{fround:Fn});var Pn=Math.abs;C(C.S,"Math",{hypot:function(t,e){for(var n,r,i=0,o=0,a=arguments.length,s=0;o<a;)s<(n=Pn(arguments[o++]))?(i=i*(r=s/n)*r+1,s=n):i+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}});var In=Math.imul;C(C.S+C.F*o(function(){return-5!=In(4294967295,5)||2!=In.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}}),C(C.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}}),C(C.S,"Math",{log1p:_n}),C(C.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}}),C(C.S,"Math",{sign:An});var Ln=Math.exp;C(C.S+C.F*o(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(On(t)-On(-t))/2:(Ln(t-1)-Ln(-t-1))*(Math.E/2)}});var Nn=Math.exp;C(C.S,"Math",{tanh:function(t){var e=On(t=+t),n=On(-t);return e==1/0?1:n==1/0?-1:(e-n)/(Nn(t)+Nn(-t))}}),C(C.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}});var Bn=String.fromCharCode,Dn=String.fromCodePoint;C(C.S+C.F*(!!Dn&&1!=Dn.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],Z(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?Bn(e):Bn(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}}),C(C.S,"String",{raw:function(t){for(var e=H(t.raw),n=Q(e.length),r=arguments.length,i=[],o=0;n>o;)i.push(String(e[o++])),o<r&&i.push(String(arguments[o]));return i.join("")}}),Pe("trim",function(t){return function(){return t(this,3)}});var zn=function(t){return function(e,n){var r,i,o=String(V(e)),a=Y(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Gn={},Un={};w(Un,F("iterator"),function(){return this});var Vn=function(t,e,n){t.prototype=yt(Un,{next:b(1,n)}),L(t,e+" Iterator")},Hn=F("iterator"),Wn=!([].keys&&"next"in[].keys()),Xn=function(){return this},Yn=function(t,e,n,r,o,a,s){Vn(n,e,r);var u,c,l,h=function(t){if(!Wn&&t in v)return v[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},f=e+" Iterator",d="values"==o,p=!1,v=t.prototype,y=v[Hn]||v["@@iterator"]||o&&v[o],g=!Wn&&y||h(o),m=o?d?h("entries"):g:void 0,_="Array"==e&&v.entries||y;if(_&&(l=ae(_.call(new t)))!==Object.prototype&&l.next&&(L(l,f,!0),i(l,Hn)||w(l,Hn,Xn)),d&&y&&"values"!==y.name&&(p=!0,g=function(){return y.call(this)}),(Wn||p||!v[Hn])&&w(v,Hn,g),Gn[e]=g,Gn[f]=Xn,o)if(u={values:d?g:h("values"),keys:a?g:h("keys"),entries:m},s)for(c in u)c in v||S(v,c,u[c]);else C(C.P+C.F*(Wn||p),e,u);return u},qn=zn(!0);Yn(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=qn(e,n),this._i+=t.length,{value:t,done:!1})});var Qn=zn(!1);C(C.P,"String",{codePointAt:function(t){return Qn(this,t)}});var Kn=F("match"),Jn=function(t){var e;return h(t)&&(void 0!==(e=t[Kn])?!!e:"RegExp"==G(t))},Zn=function(t,e,n){if(Jn(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(V(t))},$n=F("match"),tr=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[$n]=!1,!"/./"[t](e)}catch(t){}}return!0},er="".endsWith;C(C.P+C.F*tr("endsWith"),"String",{endsWith:function(t){var e=Zn(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=Q(e.length),i=void 0===n?r:Math.min(Q(n),r),o=String(t);return er?er.call(e,o,i):e.slice(i-o.length,i)===o}});C(C.P+C.F*tr("includes"),"String",{includes:function(t){return!!~Zn(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}}),C(C.P,"String",{repeat:on});var nr="".startsWith;C(C.P+C.F*tr("startsWith"),"String",{startsWith:function(t){var e=Zn(this,t,"startsWith"),n=Q(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return nr?nr.call(e,r,n):e.slice(n,n+r.length)===r}});var rr=/"/g,ir=function(t,e,n,r){var i=String(V(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(r).replace(rr,""")+'"'),o+">"+i+"</"+e+">"},or=function(t,e){var n={};n[t]=e(ir),C(C.P+C.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)};or("anchor",function(t){return function(e){return t(this,"a","name",e)}}),or("big",function(t){return function(){return t(this,"big","","")}}),or("blink",function(t){return function(){return t(this,"blink","","")}}),or("bold",function(t){return function(){return t(this,"b","","")}}),or("fixed",function(t){return function(){return t(this,"tt","","")}}),or("fontcolor",function(t){return function(e){return t(this,"font","color",e)}}),or("fontsize",function(t){return function(e){return t(this,"font","size",e)}}),or("italics",function(t){return function(){return t(this,"i","","")}}),or("link",function(t){return function(e){return t(this,"a","href",e)}}),or("small",function(t){return function(){return t(this,"small","","")}}),or("strike",function(t){return function(){return t(this,"strike","","")}}),or("sub",function(t){return function(){return t(this,"sub","","")}}),or("sup",function(t){return function(){return t(this,"sup","","")}}),C(C.S,"Date",{now:function(){return(new Date).getTime()}}),C(C.P+C.F*o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=re(this),n=g(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}});var ar=Date.prototype.getTime,sr=Date.prototype.toISOString,ur=function(t){return t>9?t:"0"+t},cr=o(function(){return"0385-07-25T07:06:39.999Z"!=sr.call(new Date(-5e13-1))})||!o(function(){sr.call(new Date(NaN))})?function(){if(!isFinite(ar.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+ur(t.getUTCMonth()+1)+"-"+ur(t.getUTCDate())+"T"+ur(t.getUTCHours())+":"+ur(t.getUTCMinutes())+":"+ur(t.getUTCSeconds())+"."+(n>99?n:"0"+ur(n))+"Z"}:sr;C(C.P+C.F*(Date.prototype.toISOString!==cr),"Date",{toISOString:cr});var lr=Date.prototype,hr=lr.toString,fr=lr.getTime;new Date(NaN)+""!="Invalid Date"&&S(lr,"toString",function(){var t=fr.call(this);return t==t?hr.call(this):"Invalid Date"});var dr=F("toPrimitive"),pr=Date.prototype;dr in pr||w(pr,dr,function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return g(f(this),"number"!=t)}),C(C.S,"Array",{isArray:ct});var vr=function(t,e,n,r){try{return r?e(f(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&f(i.call(t)),e}},yr=F("iterator"),gr=Array.prototype,mr=function(t){return void 0!==t&&(Gn.Array===t||gr[yr]===t)},_r=function(t,e,n){e in t?_.f(t,e,b(0,n)):t[e]=n},br=F("iterator"),wr=s.getIteratorMethod=function(t){if(void 0!=t)return t[br]||t["@@iterator"]||Gn[ge(t)]},xr=F("iterator"),Er=!1;try{[7][xr]().return=function(){Er=!0}}catch(t){}var Ar=function(t,e){if(!e&&!Er)return!1;var n=!1;try{var r=[7],i=r[xr]();i.next=function(){return{done:n=!0}},r[xr]=function(){return i},t(r)}catch(t){}return n};C(C.S+C.F*!Ar(function(t){}),"Array",{from:function(t){var e,n,r,i,o=re(t),a="function"==typeof this?this:Array,s=arguments.length,u=s>1?arguments[1]:void 0,c=void 0!==u,l=0,h=wr(o);if(c&&(u=O(u,s>2?arguments[2]:void 0,2)),void 0==h||a==Array&&mr(h))for(n=new a(e=Q(o.length));e>l;l++)_r(n,l,c?u(o[l],l):o[l]);else for(i=h.call(o),n=new a;!(r=i.next()).done;l++)_r(n,l,c?vr(i,u,[r.value,l],!0):r.value);return n.length=l,n}}),C(C.S+C.F*o(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)_r(n,t,arguments[t++]);return n.length=e,n}});var Sr=function(t,e){return!!t&&o(function(){e?t.call(null,function(){},1):t.call(null)})},kr=[].join;C(C.P+C.F*(U!=Object||!Sr(kr)),"Array",{join:function(t){return kr.call(H(this),void 0===t?",":t)}});var Or=[].slice;C(C.P+C.F*o(function(){ft&&Or.call(ft)}),"Array",{slice:function(t,e){var n=Q(this.length),r=G(this);if(e=void 0===e?n:e,"Array"==r)return Or.call(this,t,e);for(var i=Z(t,n),o=Z(e,n),a=Q(o-i),s=new Array(a),u=0;u<a;u++)s[u]="String"==r?this.charAt(i+u):this[i+u];return s}});var Mr=[].sort,Cr=[1,2,3];C(C.P+C.F*(o(function(){Cr.sort(void 0)})||!o(function(){Cr.sort(null)})||!Sr(Mr)),"Array",{sort:function(t){return void 0===t?Mr.call(re(this)):Mr.call(re(this),k(t))}});var Rr=F("species"),Tr=function(t,e){return new(function(t){var e;return ct(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!ct(e.prototype)||(e=void 0),h(e)&&null===(e=e[Rr])&&(e=void 0)),void 0===e?Array:e}(t))(e)},jr=function(t,e){var n=1==t,r=2==t,i=3==t,o=4==t,a=6==t,s=5==t||a,u=e||Tr;return function(e,c,l){for(var h,f,d=re(e),p=U(d),v=O(c,l,3),y=Q(p.length),g=0,m=n?u(e,y):r?u(e,0):void 0;y>g;g++)if((s||g in p)&&(f=v(h=p[g],g,d),t))if(n)m[g]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return g;case 2:m.push(h)}else if(o)return!1;return a?-1:i||o?o:m}},Fr=jr(0),Pr=Sr([].forEach,!0);C(C.P+C.F*!Pr,"Array",{forEach:function(t){return Fr(this,t,arguments[1])}});var Ir=jr(1);C(C.P+C.F*!Sr([].map,!0),"Array",{map:function(t){return Ir(this,t,arguments[1])}});var Lr=jr(2);C(C.P+C.F*!Sr([].filter,!0),"Array",{filter:function(t){return Lr(this,t,arguments[1])}});var Nr=jr(3);C(C.P+C.F*!Sr([].some,!0),"Array",{some:function(t){return Nr(this,t,arguments[1])}});var Br=jr(4);C(C.P+C.F*!Sr([].every,!0),"Array",{every:function(t){return Br(this,t,arguments[1])}});var Dr=function(t,e,n,r,i){k(e);var o=re(t),a=U(o),s=Q(o.length),u=i?s-1:0,c=i?-1:1;if(n<2)for(;;){if(u in a){r=a[u],u+=c;break}if(u+=c,i?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;i?u>=0:s>u;u+=c)u in a&&(r=e(r,a[u],u,o));return r};C(C.P+C.F*!Sr([].reduce,!0),"Array",{reduce:function(t){return Dr(this,t,arguments.length,arguments[1],!1)}}),C(C.P+C.F*!Sr([].reduceRight,!0),"Array",{reduceRight:function(t){return Dr(this,t,arguments.length,arguments[1],!0)}});var zr=$(!1),Gr=[].indexOf,Ur=!!Gr&&1/[1].indexOf(1,-0)<0;C(C.P+C.F*(Ur||!Sr(Gr)),"Array",{indexOf:function(t){return Ur?Gr.apply(this,arguments)||0:zr(this,t,arguments[1])}});var Vr=[].lastIndexOf,Hr=!!Vr&&1/[1].lastIndexOf(1,-0)<0;C(C.P+C.F*(Hr||!Sr(Vr)),"Array",{lastIndexOf:function(t){if(Hr)return Vr.apply(this,arguments)||0;var e=H(this),n=Q(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,Y(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}});var Wr=[].copyWithin||function(t,e){var n=re(this),r=Q(n.length),i=Z(t,r),o=Z(e,r),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?r:Z(a,r))-o,r-i),u=1;for(o<i&&i<o+s&&(u=-1,o+=s-1,i+=s-1);s-- >0;)o in n?n[i]=n[o]:delete n[i],i+=u,o+=u;return n},Xr=F("unscopables"),Yr=Array.prototype;void 0==Yr[Xr]&&w(Yr,Xr,{});var qr=function(t){Yr[Xr][t]=!0};C(C.P,"Array",{copyWithin:Wr}),qr("copyWithin");var Qr=function(t){for(var e=re(this),n=Q(e.length),r=arguments.length,i=Z(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:Z(o,n);a>i;)e[i++]=t;return e};C(C.P,"Array",{fill:Qr}),qr("fill");var Kr=jr(5),Jr=!0;"find"in[]&&Array(1).find(function(){Jr=!1}),C(C.P+C.F*Jr,"Array",{find:function(t){return Kr(this,t,arguments.length>1?arguments[1]:void 0)}}),qr("find");var Zr=jr(6),$r=!0;"findIndex"in[]&&Array(1).findIndex(function(){$r=!1}),C(C.P+C.F*$r,"Array",{findIndex:function(t){return Zr(this,t,arguments.length>1?arguments[1]:void 0)}}),qr("findIndex");var ti=F("species"),ei=function(t){var e=n[t];a&&e&&!e[ti]&&_.f(e,ti,{configurable:!0,get:function(){return this}})};ei("Array");var ni=function(t,e){return{value:e,done:!!t}},ri=Yn(Array,"Array",function(t,e){this._t=H(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,ni(1)):ni(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");Gn.Arguments=Gn.Array,qr("keys"),qr("values"),qr("entries");var ii=function(){var t=f(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},oi=_.f,ai=mt.f,si=n.RegExp,ui=si,ci=si.prototype,li=/a/g,hi=/a/g,fi=new si(li)!==li;if(a&&(!fi||o(function(){return hi[F("match")]=!1,si(li)!=li||si(hi)==hi||"/a/i"!=si(li,"i")}))){si=function(t,e){var n=this instanceof si,r=Jn(t),i=void 0===e;return!n&&r&&t.constructor===si&&i?t:Ve(fi?new ui(r&&!i?t.source:t,e):ui((r=t instanceof si)?t.source:t,r&&i?ii.call(t):e),n?this:ci,si)};for(var di=function(t){t in si||oi(si,t,{configurable:!0,get:function(){return ui[t]},set:function(e){ui[t]=e}})},pi=ai(ui),vi=0;pi.length>vi;)di(pi[vi++]);ci.constructor=si,si.prototype=ci,S(n,"RegExp",si)}ei("RegExp"),a&&"g"!=/./g.flags&&_.f(RegExp.prototype,"flags",{configurable:!0,get:ii});var yi=/./.toString,gi=function(t){S(RegExp.prototype,"toString",t,!0)};o(function(){return"/a/b"!=yi.call({source:"a",flags:"b"})})?gi(function(){var t=f(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?ii.call(t):void 0)}):"toString"!=yi.name&&gi(function(){return yi.call(this)});var mi=function(t,e,n){var r=F(t),i=n(V,r,""[t]),a=i[0],s=i[1];o(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(S(String.prototype,t,a),w(RegExp.prototype,r,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)}))};mi("match",1,function(t,e,n){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]}),mi("replace",2,function(t,e,n){return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]}),mi("search",1,function(t,e,n){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]}),mi("split",2,function(t,e,n){var r=Jn,i=n,o=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];n=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!r(t))return i.call(n,t,e);var s,u,c,l,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,v=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,d+"g");for(a||(s=new RegExp("^"+y.source+"$(?!\\s)",d));(u=y.exec(n))&&!((c=u.index+u[0].length)>p&&(f.push(n.slice(p,u.index)),!a&&u.length>1&&u[0].replace(s,function(){for(h=1;h<arguments.length-2;h++)void 0===arguments[h]&&(u[h]=void 0)}),u.length>1&&u.index<n.length&&o.apply(f,u.slice(1)),l=u[0].length,p=c,f.length>=v));)y.lastIndex===u.index&&y.lastIndex++;return p===n.length?!l&&y.test("")||f.push(""):f.push(n.slice(p)),f.length>v?f.slice(0,v):f}}else"0".split(void 0,0).length&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]});var _i,bi,wi,xi=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t},Ei=e(function(t){var e={},n={},r=t.exports=function(t,r,i,o,a){var s,u,c,l,h=a?function(){return t}:wr(t),d=O(i,o,r?2:1),p=0;if("function"!=typeof h)throw TypeError(t+" is not iterable!");if(mr(h)){for(s=Q(t.length);s>p;p++)if((l=r?d(f(u=t[p])[0],u[1]):d(t[p]))===e||l===n)return l}else for(c=h.call(t);!(u=c.next()).done;)if((l=vr(c,d,u.value,r))===e||l===n)return l};r.BREAK=e,r.RETURN=n}),Ai=F("species"),Si=function(t,e){var n,r=f(t).constructor;return void 0===r||void 0==(n=f(r)[Ai])?e:k(n)},ki=n.process,Oi=n.setImmediate,Mi=n.clearImmediate,Ci=n.MessageChannel,Ri=n.Dispatch,Ti=0,ji={},Fi=function(){var t=+this;if(ji.hasOwnProperty(t)){var e=ji[t];delete ji[t],e()}},Pi=function(t){Fi.call(t.data)};Oi&&Mi||(Oi=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return ji[++Ti]=function(){_e("function"==typeof t?t:Function(t),e)},_i(Ti),Ti},Mi=function(t){delete ji[t]},"process"==G(ki)?_i=function(t){ki.nextTick(O(Fi,t,1))}:Ri&&Ri.now?_i=function(t){Ri.now(O(Fi,t,1))}:Ci?(wi=(bi=new Ci).port2,bi.port1.onmessage=Pi,_i=O(wi.postMessage,wi,1)):n.addEventListener&&"function"==typeof postMessage&&!n.importScripts?(_i=function(t){n.postMessage(t+"","*")},n.addEventListener("message",Pi,!1)):_i="onreadystatechange"in v("script")?function(t){ft.appendChild(v("script")).onreadystatechange=function(){ft.removeChild(this),Fi.call(t)}}:function(t){setTimeout(O(Fi,t,1),0)});var Ii={set:Oi,clear:Mi},Li=Ii.set,Ni=n.MutationObserver||n.WebKitMutationObserver,Bi=n.process,Di=n.Promise,zi="process"==G(Bi),Gi=function(){var t,e,r,i=function(){var n,i;for(zi&&(n=Bi.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(zi)r=function(){Bi.nextTick(i)};else if(!Ni||n.navigator&&n.navigator.standalone)if(Di&&Di.resolve){var o=Di.resolve();r=function(){o.then(i)}}else r=function(){Li.call(n,i)};else{var a=!0,s=document.createTextNode("");new Ni(i).observe(s,{characterData:!0}),r=function(){s.data=a=!a}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}};var Ui,Vi,Hi,Wi,Xi={f:function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=k(e),this.reject=k(n)}(t)}},Yi=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},qi=function(t,e){if(f(t),h(e)&&e.constructor===t)return e;var n=Xi.f(t);return(0,n.resolve)(e),n.promise},Qi=function(t,e,n){for(var r in e)S(t,r,e[r],n);return t},Ki=Ii.set,Ji=Gi(),Zi=n.TypeError,$i=n.process,to=n.Promise,eo="process"==ge($i),no=function(){},ro=Vi=Xi.f,io=!!function(){try{var t=to.resolve(1),e=(t.constructor={})[F("species")]=function(t){t(no,no)};return(eo||"function"==typeof PromiseRejectionEvent)&&t.then(no)instanceof e}catch(t){}}(),oo=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},ao=function(t,e){if(!t._n){t._n=!0;var n=t._c;Ji(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{a?(i||(2==t._h&&co(t),t._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?u(Zi("Promise-chain cycle")):(o=oo(n))?o.call(n,s,u):s(n)):u(r)}catch(t){u(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&so(t)})}},so=function(t){Ki.call(n,function(){var e,r,i,o=t._v,a=uo(t);if(a&&(e=Yi(function(){eo?$i.emit("unhandledRejection",o,t):(r=n.onunhandledrejection)?r({promise:t,reason:o}):(i=n.console)&&i.error&&i.error("Unhandled promise rejection",o)}),t._h=eo||uo(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},uo=function(t){return 1!==t._h&&0===(t._a||t._c).length},co=function(t){Ki.call(n,function(){var e;eo?$i.emit("rejectionHandled",t):(e=n.onrejectionhandled)&&e({promise:t,reason:t._v})})},lo=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),ao(e,!0))},ho=function t(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw Zi("Promise can't be resolved itself");(n=oo(e))?Ji(function(){var i={_w:r,_d:!1};try{n.call(e,O(t,i,1),O(lo,i,1))}catch(t){lo.call(i,t)}}):(r._v=e,r._s=1,ao(r,!1))}catch(t){lo.call({_w:r,_d:!1},t)}}};io||(to=function(t){xi(this,to,"Promise","_h"),k(t),Ui.call(this);try{t(O(ho,this,1),O(lo,this,1))}catch(t){lo.call(this,t)}},(Ui=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Qi(to.prototype,{then:function(t,e){var n=ro(Si(this,to));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=eo?$i.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&ao(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Hi=function(){var t=new Ui;this.promise=t,this.resolve=O(ho,t,1),this.reject=O(lo,t,1)},Xi.f=ro=function(t){return t===to||t===Wi?new Hi(t):Vi(t)}),C(C.G+C.W+C.F*!io,{Promise:to}),L(to,"Promise"),ei("Promise"),Wi=s.Promise,C(C.S+C.F*!io,"Promise",{reject:function(t){var e=ro(this);return(0,e.reject)(t),e.promise}}),C(C.S+C.F*!io,"Promise",{resolve:function(t){return qi(this,t)}}),C(C.S+C.F*!(io&&Ar(function(t){to.all(t).catch(no)})),"Promise",{all:function(t){var e=this,n=ro(e),r=n.resolve,i=n.reject,o=Yi(function(){var n=[],o=0,a=1;Ei(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=ro(e),r=n.reject,i=Yi(function(){Ei(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}});var fo=function(t,e){if(!h(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},po=_.f,vo=R.fastKey,yo=a?"_s":"size",go=function(t,e){var n,r=vo(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n},mo={getConstructor:function(t,e,n,r){var i=t(function(t,o){xi(t,i,e,"_i"),t._t=e,t._i=yt(null),t._f=void 0,t._l=void 0,t[yo]=0,void 0!=o&&Ei(o,n,t[r],t)});return Qi(i.prototype,{clear:function(){for(var t=fo(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[yo]=0},delete:function(t){var n=fo(this,e),r=go(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[yo]--}return!!r},forEach:function(t){fo(this,e);for(var n,r=O(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!go(fo(this,e),t)}}),a&&po(i.prototype,"size",{get:function(){return fo(this,e)[yo]}}),i},def:function(t,e,n){var r,i,o=go(t,e);return o?o.v=n:(t._l=o={i:i=vo(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[yo]++,"F"!==i&&(t._i[i]=o)),t},getEntry:go,setStrong:function(t,e,n){Yn(t,e,function(t,n){this._t=fo(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?ni(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,ni(1))},n?"entries":"values",!n,!0),ei(e)}},_o=function(t,e,r,i,a,s){var u=n[t],c=u,l=a?"set":"add",f=c&&c.prototype,d={},p=function(t){var e=f[t];S(f,t,"delete"==t?function(t){return!(s&&!h(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(s&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return s&&!h(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof c&&(s||f.forEach&&!o(function(){(new c).entries().next()}))){var v=new c,y=v[l](s?{}:-0,1)!=v,g=o(function(){v.has(1)}),m=Ar(function(t){new c(t)}),_=!s&&o(function(){for(var t=new c,e=5;e--;)t[l](e,e);return!t.has(-0)});m||((c=e(function(e,n){xi(e,c,t);var r=Ve(new u,e,c);return void 0!=n&&Ei(n,a,r[l],r),r})).prototype=f,f.constructor=c),(g||_)&&(p("delete"),p("has"),a&&p("get")),(_||y)&&p(l),s&&f.clear&&delete f.clear}else c=i.getConstructor(e,t,a,l),Qi(c.prototype,r),R.NEED=!0;return L(c,t),d[t]=c,C(C.G+C.W+C.F*(c!=u),d),s||i.setStrong(c,t,a),c},bo=_o("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=mo.getEntry(fo(this,"Map"),t);return e&&e.v},set:function(t,e){return mo.def(fo(this,"Map"),0===t?0:t,e)}},mo,!0),wo=_o("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return mo.def(fo(this,"Set"),t=0===t?0:t,t)}},mo),xo=R.getWeak,Eo=jr(5),Ao=jr(6),So=0,ko=function(t){return t._l||(t._l=new Oo)},Oo=function(){this.a=[]},Mo=function(t,e){return Eo(t.a,function(t){return t[0]===e})};Oo.prototype={get:function(t){var e=Mo(this,t);if(e)return e[1]},has:function(t){return!!Mo(this,t)},set:function(t,e){var n=Mo(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=Ao(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}};var Co={getConstructor:function(t,e,n,r){var o=t(function(t,i){xi(t,o,e,"_i"),t._t=e,t._i=So++,t._l=void 0,void 0!=i&&Ei(i,n,t[r],t)});return Qi(o.prototype,{delete:function(t){if(!h(t))return!1;var n=xo(t);return!0===n?ko(fo(this,e)).delete(t):n&&i(n,this._i)&&delete n[this._i]},has:function(t){if(!h(t))return!1;var n=xo(t);return!0===n?ko(fo(this,e)).has(t):n&&i(n,this._i)}}),o},def:function(t,e,n){var r=xo(f(e),!0);return!0===r?ko(t).set(e,n):r[t._i]=n,t},ufstore:ko},Ro=e(function(t){var e,n=jr(0),r=R.getWeak,i=Object.isExtensible,a=Co.ufstore,s={},u=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},c={get:function(t){if(h(t)){var e=r(t);return!0===e?a(fo(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return Co.def(fo(this,"WeakMap"),t,e)}},l=t.exports=_o("WeakMap",u,c,Co,!0,!0);o(function(){return 7!=(new l).set((Object.freeze||Object)(s),7).get(s)})&&(e=Co.getConstructor(u,"WeakMap"),he(e.prototype,c),R.NEED=!0,n(["delete","has","get","set"],function(t){var n=l.prototype,r=n[t];S(n,t,function(n,o){if(h(n)&&!i(n)){this._f||(this._f=new e);var a=this._f[t](n,o);return"set"==t?this:a}return r.call(this,n,o)})}))});_o("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return Co.def(fo(this,"WeakSet"),t,!0)}},Co,!1,!0);for(var To,jo=A("typed_array"),Fo=A("view"),Po=!(!n.ArrayBuffer||!n.DataView),Io=Po,Lo=0,No="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");Lo<9;)(To=n[No[Lo++]])?(w(To.prototype,jo,!0),w(To.prototype,Fo,!0)):Io=!1;var Bo={ABV:Po,CONSTR:Io,TYPED:jo,VIEW:Fo},Do=function(t){if(void 0===t)return 0;var e=Y(t),n=Q(e);if(e!==n)throw RangeError("Wrong length!");return n},zo=e(function(t,e){var r=mt.f,i=_.f,s="prototype",u="Wrong index!",c=n.ArrayBuffer,l=n.DataView,h=n.Math,f=n.RangeError,d=n.Infinity,p=c,v=h.abs,y=h.pow,g=h.floor,m=h.log,b=h.LN2,x=a?"_b":"buffer",E=a?"_l":"byteLength",A=a?"_o":"byteOffset";function S(t,e,n){var r,i,o,a=new Array(n),s=8*n-e-1,u=(1<<s)-1,c=u>>1,l=23===e?y(2,-24)-y(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for((t=v(t))!=t||t===d?(i=t!=t?1:0,r=u):(r=g(m(t)/b),t*(o=y(2,-r))<1&&(r--,o*=2),(t+=r+c>=1?l/o:l*y(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*y(2,e),r+=c):(i=t*y(2,c-1)*y(2,e),r=0));e>=8;a[h++]=255&i,i/=256,e-=8);for(r=r<<e|i,s+=e;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a}function k(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-d:d;r+=y(2,e),l-=a}return(c?-1:1)*r*y(2,l-e)}function O(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function M(t){return[255&t]}function C(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function T(t){return S(t,52,8)}function j(t){return S(t,23,4)}function F(t,e,n){i(t[s],e,{get:function(){return this[n]}})}function P(t,e,n,r){var i=Do(+n);if(i+e>t[E])throw f(u);var o=t[x]._b,a=i+t[A],s=o.slice(a,a+e);return r?s:s.reverse()}function I(t,e,n,r,i,o){var a=Do(+n);if(a+e>t[E])throw f(u);for(var s=t[x]._b,c=a+t[A],l=r(+i),h=0;h<e;h++)s[c+h]=l[o?h:e-h-1]}if(Bo.ABV){if(!o(function(){c(1)})||!o(function(){new c(-1)})||o(function(){return new c,new c(1.5),new c(NaN),"ArrayBuffer"!=c.name})){for(var N,B=(c=function(t){return xi(this,c),new p(Do(t))})[s]=p[s],D=r(p),z=0;D.length>z;)(N=D[z++])in c||w(c,N,p[N]);B.constructor=c}var G=new l(new c(2)),U=l[s].setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||Qi(l[s],{setInt8:function(t,e){U.call(this,t,e<<24>>24)},setUint8:function(t,e){U.call(this,t,e<<24>>24)}},!0)}else c=function(t){xi(this,c,"ArrayBuffer");var e=Do(t);this._b=Qr.call(new Array(e),0),this[E]=e},l=function(t,e,n){xi(this,l,"DataView"),xi(t,c,"DataView");var r=t[E],i=Y(e);if(i<0||i>r)throw f("Wrong offset!");if(i+(n=void 0===n?r-i:Q(n))>r)throw f("Wrong length!");this[x]=t,this[A]=i,this[E]=n},a&&(F(c,"byteLength","_l"),F(l,"buffer","_b"),F(l,"byteLength","_l"),F(l,"byteOffset","_o")),Qi(l[s],{getInt8:function(t){return P(this,1,t)[0]<<24>>24},getUint8:function(t){return P(this,1,t)[0]},getInt16:function(t){var e=P(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=P(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return O(P(this,4,t,arguments[1]))},getUint32:function(t){return O(P(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return k(P(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return k(P(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){I(this,1,t,M,e)},setUint8:function(t,e){I(this,1,t,M,e)},setInt16:function(t,e){I(this,2,t,C,e,arguments[2])},setUint16:function(t,e){I(this,2,t,C,e,arguments[2])},setInt32:function(t,e){I(this,4,t,R,e,arguments[2])},setUint32:function(t,e){I(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){I(this,4,t,j,e,arguments[2])},setFloat64:function(t,e){I(this,8,t,T,e,arguments[2])}});L(c,"ArrayBuffer"),L(l,"DataView"),w(l[s],Bo.VIEW,!0),e.ArrayBuffer=c,e.DataView=l}),Go=n.ArrayBuffer,Uo=zo.ArrayBuffer,Vo=zo.DataView,Ho=Bo.ABV&&Go.isView,Wo=Uo.prototype.slice,Xo=Bo.VIEW;C(C.G+C.W+C.F*(Go!==Uo),{ArrayBuffer:Uo}),C(C.S+C.F*!Bo.CONSTR,"ArrayBuffer",{isView:function(t){return Ho&&Ho(t)||h(t)&&Xo in t}}),C(C.P+C.U+C.F*o(function(){return!new Uo(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==Wo&&void 0===e)return Wo.call(f(this),t);for(var n=f(this).byteLength,r=Z(t,n),i=Z(void 0===e?n:e,n),o=new(Si(this,Uo))(Q(i-r)),a=new Vo(this),s=new Vo(o),u=0;r<i;)s.setUint8(u++,a.getUint8(r++));return o}}),ei("ArrayBuffer"),C(C.G+C.W+C.F*!Bo.ABV,{DataView:zo.DataView});var Yo=e(function(t){if(a){var e=n,r=o,s=C,c=Bo,l=zo,f=O,d=xi,p=b,v=w,y=Qi,m=Y,x=Q,E=Do,S=Z,k=g,M=i,R=ge,T=h,j=re,P=mr,I=yt,L=ae,N=mt.f,B=wr,D=A,z=F,G=jr,U=$,V=Si,H=ri,W=Gn,X=Ar,q=ei,K=Qr,J=Wr,tt=_,et=At,nt=tt.f,rt=et.f,it=e.RangeError,ot=e.TypeError,at=e.Uint8Array,st=Array.prototype,ut=l.ArrayBuffer,ct=l.DataView,lt=G(0),ht=G(2),ft=G(3),dt=G(4),pt=G(5),vt=G(6),gt=U(!0),_t=U(!1),bt=H.values,wt=H.keys,xt=H.entries,Et=st.lastIndexOf,St=st.reduce,kt=st.reduceRight,Ot=st.join,Mt=st.sort,Ct=st.slice,Rt=st.toString,Tt=st.toLocaleString,jt=z("iterator"),Ft=z("toStringTag"),Pt=D("typed_constructor"),It=D("def_constructor"),Lt=c.CONSTR,Nt=c.TYPED,Bt=c.VIEW,Dt=G(1,function(t,e){return Ht(V