1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-12 03:16:16 +01:00
LocalCDN-Firefox-Chrome-Brave/resources/ethjs/0.4.0/ethjs.min.jsm

13 lines
135 KiB
JavaScript
Raw Normal View History

2021-04-23 18:13:28 +02:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Eth",[],e):"object"==typeof exports?exports.Eth=e():t.Eth=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,e,r){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=122)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var r=e.slice(1),n=t[e[0]];return function(t,e,i){n.apply(this,[t,e,i].concat(r))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e){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,e){var r=t.exports={version:"2.5.6"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(43)("wks"),i=r(47),o=r(0).Symbol,u="function"==typeof o,s=t.exports=function(t){return n[t]||(n[t]=u&&o[t]||(u?o:i)("Symbol."+t))};s.store=n},function(t,e,r){"use strict";(function(t,n){function i(){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(e){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,r){if(o()<r)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r),e.__proto__=t.prototype):(null===e&&(e=new t(r)),e.length=r),e}function t(e,r,n){if(!(t.TYPED_ARRAY_SUPPORT||this instanceof t))return new t(e,r,n);if("number"==typeof e){if("string"==typeof r)throw Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,r,n)}function s(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,r,n):"string"==typeof e?c(t,e,r):d(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(0>t)throw new RangeError('"size" argument must not be negative')}function h(t,e,r,n){return a(e),e>0&&void 0!==r?"string"==typeof n?u(t,e).fill(r,n):u(t,e).fill(r):u(t,e)}function f(e,r){if(a(r),e=u(e,0>r?0:0|m(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;++n)e[n]=0;return e}function c(e,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|g(r,n);e=u(e,i);var o=e.write(r,n);return o!==i&&(e=e.slice(0,o)),e}function l(t,e){var r=0>e.length?0:0|m(e.length);t=u(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function p(e,r,n,i){if(0>n||n>r.byteLength)throw new RangeError("'offset' is out of bounds");if(n+(i||0)>r.byteLength)throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===i?new Uint8Array(r):void 0===i?new Uint8Array(r,n):new Uint8Array(r,n,i),t.TYPED_ARRAY_SUPPORT?(e=r,e.__proto__=t.prototype):e=l(e,r),e}function d(e,r){if(t.isBuffer(r)){var n=0|m(r.length);return e=u(e,n),0===e.length?e:(r.copy(e,0,0,n),e)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(e,0):l(e,r);if("Buffer"===r.type&&X(r.data))return l(e,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function v(e){return+e!=e&&(e=0),t.alloc(+e)}function g(e,r){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof
this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;r.length>n;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;e.length>n;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;e>i;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;n.length>o;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&r.length>o;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;r.length>o;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,u=0;i.length>u;u++)e=(0|n.words[u])-(0|i.words[u])+o,o=e>>26,this.words[u]=67108863&e;for(;0!==o&&n.length>u;u++)e=(0|n.words[u])+o,o=e>>26,this.words[u]=67108863&e;if(0===o&&n.length>u&&n!==this)for(;n.length>u;u++)this.words[u]=n.words[u];return this.length=Math.max(this.length,u),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var S=function(t,e,r){var n,i,o,u=t.words,s=e.words,a=r.words,h=0,f=0|u[0],c=8191&f,l=f>>>13,p=0|u[1],d=8191&p,m=p>>>13,v=0|u[2],g=8191&v,y=v>>>13,w=0|u[3],b=8191&w,M=w>>>13,_=0|u[4],x=8191&_,E=_>>>13,S=0|u[5],A=8191&S,T=S>>>13,j=0|u[6],k=8191&j,B=j>>>13,O=0|u[7],P=8191&O,R=O>>>13,D=0|u[8],I=8191&D,C=D>>>13,L=0|u[9],N=8191&L,Q=L>>>13,F=0|s[0],U=8191&F,q=F>>>13,H=0|s[1],Y=8191&H,z=H>>>13,J=0|s[2],Z=8191&J,K=J>>>13,G=0|s[3],W=8191&G,V=G>>>13,$=0|s[4],X=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,ut=it>>>13,st=0|s[7],at=8191&st,ht=st>>>13,ft=0|s[8],ct=8191&ft,lt=ft>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,U),i=Math.imul(c,q),i=i+Math.imul(l,U)|0,o=Math.imul(l,q);var vt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(d,U),i=Math.imul(d,q),i=i+Math.imul(m,U)|0,o=Math.imul(m,q),n=n+Math.imul(c,Y)|0,i=i+Math.imul(c,z)|0,i=i+Math.imul(l,Y)|0,o=o+Math.imul(l,z)|0;var gt=(h+n|0)+((8191&i)<<13)|0;h=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),i=Math.imul(g,q),i=i+Math.imul(y,U)|0,o=Math.imul(y,q),n=n+Math.imul(d,Y)|0,i=i+Math.imul(d,z)|0,i=i+M
var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new w(t)},i(w,y),w.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},w.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},w.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)<0?i.cmpn(0)<0&&(o=i.iadd(this.m)):o=i.isub(this.m),o._forceRed(this)},w.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),u=i;return i.cmp(this.m)<0?i.cmpn(0)<0&&(u=i.iadd(this.m)):u=i.isub(this.m),u._forceRed(this)},w.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}}(void 0===t||t,this)}).call(e,r(120)(t))},function(t,e,r){t.exports=!r(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e,r){(function(e,r){/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.5.5
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2016
* @license MIT
*/
!function(n){"use strict";function i(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;50>n;++n)this.s[n]=0}var o="object"==typeof e&&e.versions&&e.versions.node;o&&(n=r);for(var u=!n.JS_SHA3_TEST&&"object"==typeof t&&t.exports,s="0123456789abcdef".split(""),a=[31,7936,2031616,520093696],h=[1,256,65536,16777216],f=[6,1536,393216,100663296],c=[0,8,16,24],l=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],p=[224,256,384,512],d=[128,256],m=["hex","buffer","arrayBuffer","array"],v=function(t,e,r){return function(n){return new i(t,e,t).update(n)[r]()}},g=function(t,e,r){return function(n,o){return new i(t,e,o).update(n)[r]()}},y=function(t,e){var r=v(t,e,"hex");r.create=function(){return new i(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;m.length>n;++n){var o=m[n];r[o]=v(t,e,o)}return r},w=function(t,e){var r=g(t,e,"hex");r.create=function(r){return new i(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;m.length>n;++n){var o=m[n];r[o]=g(t,e,o)}return r},b=[{name:"keccak",padding:h,bits:p,createMethod:y},{name:"sha3",padding:f,bits:p,createMethod:y},{name:"shake",padding:a,bits:d,createMethod:w}],M={},_=0;b.length>_;++_)for(var x=b[_],E=x.bits,S=0;E.length>S;++S)M[x.name+"_"+E[S]]=x.createMethod(E[S],x.padding);i.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor==n.ArrayBuffer&&(t=new Uint8Array(t));for(var r,i,o=t.length,u=this.blocks,s=this.byteCount,a=this.blockCount,h=0,f=this.s;o>h;){if(this.reset)for(this.reset=!1,u[0]=this.block,r=1;a+1>r;++r)u[r]=0;if(e)for(r=this.start;o>h&&s>r;++h)u[r>>2]|=t[h]<<c[3&r++];else for(r=this.start;o>h&&s>r;++h)i=t.charCodeAt(h),128>i?u[r>>2]|=i<<c[3&r++]:2048>i?(u[r>>2]|=(192|i>>6)<<c[3&r++],u[r>>2]|=(128|63&i)<<c[3&r++]):55296>i||i>=57344?(u[r>>2]|=(224|i>>12)<<c[3&r++],u[r>>2]|=(128|i>>6&63)<<c[3&r++],u[r>>2]|=(128|63&i)<<c[3&r++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++h)),u[r>>2]|=(240|i>>18)<<c[3&r++],u[r>>2]|=(128|i>>12&63)<<c[3&r++],u[r>>2]|=(128|i>>6&63)<<c[3&r++],u[r>>2]|=(128|63&i)<<c[3&r++]);if(this.lastByteIndex=r,s>r)this.start=r;else{for(this.start=r-s,this.block=u[a],r=0;a>r;++r)f[r]^=u[r];A(f),this.reset=!0}}return this},i.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex==this.byteCount)for(t[0]=t[r],e=1;r+1>e;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;r>e;++e)n[e]^=t[e];A(n)},i.prototype.toString=i.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,u=0,a="";n>u;){for(o=0;e>o&&n>u;++o,++u)t=r[o],a+=s[t>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];u%e==0&&(A(r),o=0)}return i&&(t=r[o],i>0&&(a+=s[t>>4&15]+s[15&t]),i>1&&(a+=s[t>>12&15]+s[t>>8&15]),i>2&&(a+=s[t>>20&15]+s[t>>16&15])),a},i.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,u=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var a=new Uint32Array(t);n>u;){for(o=0;e>o&&n>u;++o,++u)a[u]=r[o];u%e==0&&A(r)}return i&&(a[o]=r[o],t=t.slice(0,s)),t},i.prototype.buffer=i.prototype.arrayBuffer,i.prototype.digest=i.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,u=0,s=0,a=[];i>s;){for(u=0;r>u&&i>s;++u,++s)t=s<<2,e=n[u],a[t]=255&e,a[t+1]=e>>8&255,a[t+2]=e>>16&255,a[t+3]=e>>24&255;s%r==0&&A(n)}return o&&(t=s<<2,e=n[u],o>0&&(a[t]=255&e),o>1&&(a[t+1]=e>>8&255),o>2&&(a[t+2]=e>>16&255)),a};var A=function(t){var e,r,n,i,o,u
if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),i=n.navigator;t.exports=i&&i.userAgent||""},function(t,e,r){var n=r(35),i=r(2)("iterator"),o=r(10);t.exports=r(1).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){"use strict";var n=r(64),i=r(74),o=r(10),u=r(28);t.exports=r(39)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return t&&t.length>r?"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]]):(this._t=void 0,i(1))},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(5);n(n.S+n.F,"Object",{assign:r(76)})},function(t,e,r){var n=r(29),i=r(24);r(83)("keys",function(){return function(t){return i(n(t))}})},function(t,e){},function(t,e,r){"use strict";var n,i,o,u,s=r(22),a=r(0),h=r(15),f=r(35),c=r(5),l=r(9),p=r(13),d=r(65),m=r(67),v=r(44),g=r(45).set,y=r(75)(),w=r(23),b=r(40),M=r(90),_=r(41),x="Promise",E=a.TypeError,S=a.process,A=S&&S.versions,T=A&&A.v8||"",j=a[x],k="process"==f(S),B=function(){},O=i=w.f,P=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[r(2)("species")]=function(t){t(B,B)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(B)instanceof e&&0!==T.indexOf("6.6")&&M.indexOf("Chrome/66")===-1}catch(n){}}(),R=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,i=1==t._s,o=0,u=function(e){var r,o,u,s=i?e.ok:e.fail,a=e.resolve,h=e.reject,f=e.domain;try{s?(i||(2==t._h&&L(t),t._h=1),s===!0?r=n:(f&&f.enter(),r=s(n),f&&(f.exit(),u=!0)),r===e.promise?h(E("Promise-chain cycle")):(o=R(r))?o.call(r,a,h):a(r)):h(n)}catch(c){f&&!u&&f.exit(),h(c)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){g.call(a,function(){var e,r,n,i=t._v,o=C(t);if(o&&(e=b(function(){k?S.emit("unhandledRejection",i,t):(r=a.onunhandledrejection)?r({promise:t,reason:i}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=k||C(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(a,function(){var e;k?S.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},Q=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw E("Promise can't be resolved itself");(e=R(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,h(Q,n,1),h(N,n,1))}catch(i){N.call(n,i)}}):(r._v=t,r._s=1,D(r,!1))}catch(n){N.call({_w:r,_d:!1},n)}}};P||(j=function(t){d(this,j,x,"_h"),p(t),n.call(this);try{t(h(Q,this,1),h(N,this,1))}catch(e){N.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(84)(j.prototype,{then:function(t,e){var r=O(v(this,j));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=k?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&D(this,!1),r.promise},"catch":function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=h(Q,t,1),this.reject=h(N,t,1)},w.f=O=function(t){return t===j||t===u?new o(t):i(t)}),c(c.G+c.W+c.F*!P,{Promise:j}),r(25)(j,x),r(86)(x),u=r(1)[x],c(c.S+c.F*!P,x,{reject:function(t){var e=O(this),r=e.reject;return r(t),e.promise}}),c(c.S+c.F*(s||!P),x,{resolve:function(t){return _(s&&this===u?j:this,t)}}),c(c.S+c.F*!(P&&r(73)(function(t){j.all(t)["catch"](B)})),x,{all:function(t){var e=this,r=O(e),n=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,u=1;m(t,!1,function(t){var s=o++,a=!1;r.push(void 0),u++,e.resolve(t).then(function(t){a||(a=!0,r[s]=t,--u||n(r))},i)}),--u||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=O(e),n=r.reject,i=b(function(){m(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(t,e,r){"use strict";var n=r(87)(!0);r(39)(String,"String",fun
}}}function o(t){if(c===clearTimeout)return clearTimeout(t);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function u(){m&&p&&(m=!1,p.length?d=p.concat(d):v=-1,d.length&&s())}function s(){if(!m){var t=i(u);m=!0;for(var e=d.length;e;){for(p=d,d=[];++v<e;)p&&p[v].run();v=-1,e=d.length}p=null,m=!1,o(t)}}function a(t,e){this.fun=t,this.array=e}function h(){}var f,c,l=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(t){c=n}}();var p,d=[],m=!1,v=-1;l.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var r=1;arguments.length>r;r++)e[r-1]=arguments[r];d.push(new a(t,e)),1!==d.length||m||i(s)},a.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=h,l.addListener=h,l.once=h,l.off=h,l.removeListener=h,l.removeAllListeners=h,l.emit=h,l.prependListener=h,l.prependOnceListener=h,l.listeners=function(t){return[]},l.binding=function(t){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(117),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(u){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,u=Object.create(o.prototype),s=new p(n||[]);return u._invoke=h(t,r,s),u}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}function i(){}function o(){}function u(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function a(t){function e(r,i,o,u){var s=n(t[r],t,i);if("throw"!==s.type){var a=s.arg,h=a.value;return h&&"object"==typeof h&&y.call(h,"__await")?Promise.resolve(h.__await).then(function(t){e("next",t,o,u)},function(t){e("throw",t,o,u)}):Promise.resolve(h).then(function(t){a.value=t,o(a)},u)}u(s.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function h(t,e,r){var i=S;return function(o,u){if(i===T)throw Error("Generator is already running");if(i===j){if("throw"===o)throw u;return m()}for(r.method=o,r.arg=u;;){var s=r.delegate;if(s){var a=f(s,r);if(a){if(a===k)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===S)throw i=j,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=T;var h=n(t,e,r);if("normal"===h.type){if(i=r.done?j:A,h.arg===k)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(i=j,r.method="throw",r.arg=h.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===v){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=v,f(t,e),"throw"===e.method))return k;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,k;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=v),e.delegate=null,k):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,k)}function c(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(c,this),this.reset(!0)}function d(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n