(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t){},"000e687100360508b435":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return"@@redux-saga/"+e},i=r("CANCEL_PROMISE"),o=r("CHANNEL_END"),a=r("IO"),s=r("MATCH"),c=r("MULTICAST"),u=r("SAGA_ACTION"),f=r("SELF_CANCELLATION"),l=r("TASK"),h=r("TASK_CANCEL"),d=r("TERMINATE"),p=r("LOCATION");t.CANCEL=i,t.CHANNEL_END_TYPE=o,t.IO=a,t.MATCH=s,t.MULTICAST=c,t.SAGA_ACTION=u,t.SAGA_LOCATION=p,t.SELF_CANCELLATION=f,t.TASK=l,t.TASK_CANCEL=h,t.TERMINATE=d},"0026f92d1d6e2f16086a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){e=e.toLowerCase(),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t.handleEvent||t)},e.prototype.removeEventListener=function(e,t){if(e=e.toLowerCase(),this.listeners[e]){var n=this.listeners[e].indexOf(t.handleEvent||t);n<0||this.listeners[e].splice(n,1)}},e.prototype.dispatchEvent=function(e){var t=e.type.toLowerCase();if(e.target=this,this.listeners[t])for(var n=0,r=this.listeners[t];n=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~o.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},i.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!==typeof e)throw Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null===e||void 0===e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)this.field(e,t[i]);return this}if(null===t||void 0===t)throw new Error(".field(name, val) val can not be empty");return"boolean"===typeof t&&(t=""+t),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},i.prototype.withCredentials=function(e){return void 0==e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!==typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var i in e)this._data[i]=e[i];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},i.prototype.sortQuery=function(e){return this._sort="undefined"===typeof e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"===typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.trace("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},"03cd621b235d9b32ac8d":function(e,t,n){var r=n("3b7f6bf30786f314561c"),i=n("dc10a1e1660f93ecd0a2"),o=n("51c14598f89e3eb6cfa8"),a=n("1937cc08a794fd21695c"),s=n("2e95f5634638146423a4"),c=n("a07bfecaef33297c14e6"),u=n("04eccab3696f5aa8fba7"),f=n("ae1411e1c1534aa5a5ba"),l=n("963ef19800ff2c1c6bbc").Buffer;e.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var d,p=r(e);if(4===h)d=function(e,t){var n=e.modulus.byteLength(),r=t.length,u=o("sha1").update(l.alloc(0)).digest(),f=u.length,h=2*f;if(r>n-h-2)throw new Error("message too long");var d=l.alloc(n-r-h-2),p=n-f-1,b=i(f),m=s(l.concat([u,d,l.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,f));return new c(l.concat([l.alloc(1),g,m],n))}(p,t);else if(1===h)d=function(e,t,n){var r,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");r=n?l.alloc(a-o-3,255):function(e){var t,n=l.allocUnsafe(e),r=0,o=i(2*e),a=0;for(;r=0)throw new Error("data too long for modulus")}return n?f(d,p):u(d,p)}},"044f282f6141fc605782":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"04d6e2d4983bf78bb6b9":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return r(e.querySelectorAll(t))};var r=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},"04eccab3696f5aa8fba7":function(e,t,n){var r=n("a07bfecaef33297c14e6"),i=n("963ef19800ff2c1c6bbc").Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},"051b1b23f17c989a74a9":function(e,t,n){var r=n("97e544c2b5273ff09282"),i=n("963ef19800ff2c1c6bbc").Buffer,o=n("f242a5dcbaaf8744166d"),a=n("53ead306b62e35ae6518"),s=n("3fdffe01d41ecf60dece"),c=i.from("Bitcoin seed","utf8"),u=78,f={private:76066276,public:76067358};function l(e){this.versions=e||f,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function h(e,t,n){var r=i.allocUnsafe(u);r.writeUInt32BE(t,0),r.writeUInt8(e.depth,4);var o=e.depth?e.parentFingerprint:0;return r.writeUInt32BE(o,5),r.writeUInt32BE(e.index,9),e.chainCode.copy(r,13),n.copy(r,45),r}function d(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("ripemd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){r.equal(e.length,32,"Private key must be 32 bytes."),r(!0===s.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=i.from(s.publicKeyCreate(e,!0)),this._identifier=d(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){r(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),r(!0===s.publicKeyVerify(e),"Invalid public key"),this._publicKey=i.from(s.publicKeyConvert(e,!0)),this._identifier=d(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?a.encode(h(this,this.versions.private,i.concat([i.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return a.encode(h(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),n=this;return t.forEach(function(e,t){if(0!==t){var i=e.length>1&&"'"===e[e.length-1],o=parseInt(e,10);r(o<2147483648,"Invalid index"),i&&(o+=2147483648),n=n.deriveChild(o)}else r(/^[mM]{1}/.test(e),'Path must start with "m" or "M"')}),n},l.prototype.deriveChild=function(e){var t,n=e>=2147483648,a=i.allocUnsafe(4);if(a.writeUInt32BE(e,0),n){r(this.privateKey,"Could not derive hardened child key");var c=this.privateKey,u=i.alloc(1,0);c=i.concat([u,c]),t=i.concat([c,a])}else t=i.concat([this.publicKey,a]);var f=o.createHmac("sha512",this.chainCode).update(t).digest(),h=f.slice(0,32),d=f.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=i.from(s.privateKeyTweakAdd(i.from(this.privateKey),h))}catch(t){return this.deriveChild(e+1)}else try{p.publicKey=i.from(s.publicKeyTweakAdd(i.from(this.publicKey),h,!0))}catch(t){return this.deriveChild(e+1)}return p.chainCode=d,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return i.from(s.ecdsaSign(e,this.privateKey).signature)},l.prototype.verify=function(e,t){return s.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),Uint8Array.from(this.publicKey))},l.prototype.wipePrivateData=function(){return this._privateKey&&o.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var n=o.createHmac("sha512",c).update(e).digest(),r=n.slice(0,32),i=n.slice(32),a=new l(t);return a.chainCode=i,a.privateKey=r,a},l.fromExtendedKey=function(e,t){var n=new l(t=t||f),i=a.decode(e),o=i.readUInt32BE(0);r(o===t.private||o===t.public,"Version mismatch: does not match private or public"),n.depth=i.readUInt8(4),n.parentFingerprint=i.readUInt32BE(5),n.index=i.readUInt32BE(9),n.chainCode=i.slice(13,45);var s=i.slice(45);return 0===s.readUInt8(0)?(r(o===t.private,"Version mismatch: version does not match private"),n.privateKey=s.slice(1)):(r(o===t.public,"Version mismatch: version does not match public"),n.publicKey=s),n},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=2147483648,e.exports=l},"052cc19da31196a61489":function(e,t,n){"use strict";const{Buffer:r}=n("4de17b50d35d24f9c74a"),i=n("28e0dc130b48033271cd");function o(e,t){if(!t)throw new Error("requires an encoded buffer");const n=a(e),i=r.from(n.code);return function(e,t){a(e).decode(t.toString())}(n.name,t),r.concat([i,t])}function a(e){let t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw new Error("Unsupported encoding");t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}(t=e.exports=o).encode=function(e,t){const n=a(e);return o(n.name,r.from(n.encode(t)))},t.decode=function(e){r.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);"string"===typeof(e=e.substring(1,e.length))&&(e=r.from(e));const n=a(t);return r.from(n.decode(e.toString()))},t.isEncoded=function(e){r.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;const t=e.substring(0,1);try{const e=a(t);return e.name}catch(e){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes))},"0593db4731582dee8516":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("6abbb2abeca81d71dece");function i(e){return{type:r.d,contracts:e}}function o(e){return{type:r.a,addresses:e}}},"05a41144585a26282a2a":function(e,t,n){"use strict";var r;var i=n("c42d4b9e9f9d6b9f82c0").codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){f||(f=e),e&&h.forEach(c),o||(h.forEach(c),l(f))})});return t.reduce(u)}},"060c048a564741154f2e":function(e,t,n){const r=n("f8aaf930fa1c896782a6"),i=n("f1353034748a5a2e3e90"),o=n("f7412b5753686967dda7"),{incrementHexInt:a}=n("d79de885a4df56e19d04");e.exports=class extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){const t=e,n=a(e),i=await o({provider:this.provider,fromBlock:n,toBlock:t}),s=r(i,e=>e.transactions);this.addResults(s)}}},"0610821415057bf7a005":function(e,t,n){"use strict";var r=n("8e6d34d5e2b1c9c449c0");t.__esModule=!0,t.default=t.onceSupported=t.optionsSupported=void 0;var i=r(n("c2f6cf857090a00f2a1f")),o=!1;t.optionsSupported=o;var a=!1;t.onceSupported=a;try{var s={get passive(){return t.optionsSupported=o=!0},get once(){return t.onceSupported=a=t.optionsSupported=o=!0}};i.default&&(window.addEventListener("test",s,s),window.removeEventListener("test",s,!0))}catch(e){}var c=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!a){var i=r.once,s=r.capture,c=n;!a&&i&&(c=n.__once||function e(r){this.removeEventListener(t,e,s),n.call(this,r)},n.__once=c),e.addEventListener(t,c,o?r:s)}e.addEventListener(t,n,r)};t.default=c},"061439ba973faa7d748f":function(e,t,n){"use strict";var r={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var a,s,c,u,f,l,h,d=r.PriorityQueue.make();for(d.push(t,0);!d.empty();)for(c in s=(a=d.pop()).value,u=a.cost,f=e[s]||{})f.hasOwnProperty(c)&&(l=u+f[c],h=o[c],("undefined"===typeof o[c]||h>l)&&(o[c]=l,d.push(c,l),i[c]=s));if("undefined"!==typeof n&&"undefined"===typeof o[n]){var p=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},"0640cc12111fce289e8d":function(e,t,n){e.exports=n("bbe9f7943ac66579457a").PassThrough},"06663a6a46465faa3b16":function(e,t,n){"use strict";const r=n("969fb4d02b86c0a7de5c"),i=new Map;for(const e in r){const t=r[e];i.set(t,e)}e.exports=Object.freeze(i)},"06c6d4a33eeb930d663a":function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=(i=n("051b1b23f17c989a74a9"))&&"object"===r(i)&&"default"in i?i.default:i,a=n("d86499a133fa8ee11478"),s=n("4de17b50d35d24f9c74a"),c=a.publicToAddress,u=a.toChecksumAddress,f=5;t.generateAddresses=function(e,t){var n=e.publicKey,r=e.chainCode,i=e.path,a=new o;a.publicKey=new s.Buffer(n,"hex"),a.chainCode=new s.Buffer(r,"hex");for(var l=[],h=t;h7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},d=function(e){var t="";e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x"+t.join("")},isHex:function(e){return(r.isString(e)||r.isNumber(e))&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},isHexStrict:m,leftPad:function(e,t,n){var r=/^0x/i.test(e)||"number"===typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(i).join(n||"0")+e},rightPad:function(e,t,n){var r=/^0x/i.test(e)||"number"===typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+e+new Array(i).join(n||"0")},toTwosComplement:function(e){return"0x"+f(e).toTwos(256).toString(16,64)},sha3:g}},"08fcf280e252407ebd08":function(e,t,n){var r=n("82e88871334746c2f656"),i=n("963ef19800ff2c1c6bbc").Buffer,o=n("27bdb30bc120dc809e8f");function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s1)return function(e,n){for(var r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-u>=0;)t^=7973<0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)o(c,this,t);else{var u=c.length,f=b(c,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"09e0f174370244ede159":function(e,t,n){},"09f10e9b7b9d8bd96a7b":function(e,t,n){(function(r,i){var o;!function(){"use strict";var a="input is invalid type",s="object"===typeof window,c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var u=!s&&"object"===typeof self;!c.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node?c=i:u&&(c=self);var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,l=n("8d79a051c62e24e12733"),h=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],m=[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],g=[224,256,384,512],y=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var _=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},A=function(e,t,n){return function(r,i){return new N(e,t,i).update(r)[n]()}},E=function(e,t,n){return function(t,r,i,o){return T["cshake"+e].update(t,r,i,o)[n]()}},k=function(e,t,n){return function(t,r,i,o){return T["kmac"+e].update(t,r,i,o)[n]()}},S=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function j(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!h||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,f=0,l=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=r-s,this.block=o[u],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!h||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t===0&&(D(n),o=0)}return i&&(e=n[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n===0&&D(r)}return o&&(e=s<<2,t=r[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},j.prototype=new N,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var D=function(e){var t,n,r,i,o,a,s,c,u,f,l,h,d,p,b,g,y,v,w,_,A,E,k,S,x,M,T,C,I,R,O,P,B,L,N,j,D,U,F,z,H,q,K,V,W,G,Y,X,Z,J,Q,$,ee,te,ne,re,ie,oe,ae,se,ce,ue,fe;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|u>>>31),n=o^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|l>>>31),n=s^(l<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(h<<1|d>>>31),n=u^(d<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=l^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,X=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,P=e[45]<<29|e[44]>>>3,B=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,x=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~g&v,e[1]=b^~y&w,e[10]=S^~M&C,e[11]=x^~T&I,e[20]=L^~j&U,e[21]=N^~D&F,e[30]=V^~G&X,e[31]=W^~Y&Z,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=g^~v&_,e[3]=y^~w&A,e[12]=M^~C&R,e[13]=T^~I&O,e[22]=j^~U&z,e[23]=D^~F&H,e[32]=G^~X&J,e[33]=Y^~Z&Q,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&E,e[5]=w^~A&k,e[14]=C^~R&P,e[15]=I^~O&B,e[24]=U^~z&q,e[25]=F^~H&K,e[34]=X^~J&$,e[35]=Z^~Q&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&fe,e[6]=_^~E&p,e[7]=A^~k&b,e[16]=R^~P&S,e[17]=O^~B&x,e[26]=z^~q&L,e[27]=H^~K&N,e[36]=J^~$&V,e[37]=Q^~ee&W,e[46]=se^~ue&te,e[47]=ce^~fe&ne,e[8]=E^~p&g,e[9]=k^~b&y,e[18]=P^~S&M,e[19]=B^~x&T,e[28]=q^~L&j,e[29]=K^~N&D,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=ue^~te&re,e[49]=fe^~ne&ie,e[0]^=m[r],e[1]^=m[r+1]};if(f)e.exports=T;else{for(I=0;I=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,f=new Uint8Array(a);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var h=0,d=a-1;(0!==l||h>>0,f[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=h,n++}if(" "!==e[n]){for(var p=a-o;p!==a&&0===f[p];)p++;var b=r.allocUnsafe(i+(a-p));b.fill(0,0,i);for(var m=i;p!==a;)b[m++]=f[p++];return b}}}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,n++;for(var u=(a-o)*f+1>>>0,l=new Uint8Array(u);o!==a;){for(var h=t[o],d=0,p=u-1;(0!==h||d>>0,l[p]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=d,o++}for(var b=u-i;b!==u&&0===l[b];)b++;for(var m=c.repeat(n);b=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},E=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},k=function(e){return"object"===("undefined"===typeof e?"undefined":g(e))&&e.constructor===Object},S=Object.freeze([]),x=Object.freeze({});function M(e){return"function"===typeof e}function T(e){return e.displayName||e.name||"Component"}function C(e){return e&&"string"===typeof e.styledComponentId}var I="undefined"!==typeof e&&e.env.SC_ATTR||"data-styled",R="undefined"!==typeof window&&"HTMLElement"in window,O="boolean"===typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1,P={};var B=function(e){function t(n){y(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o0&&-1!==n.slice(0,t).indexOf(K)&&n.slice(t-K.length,t)!==K?"."+q:e};U.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(K)>0&&(n[0]=n[0].replace(V,W))},H,z]),D.use([H,z]);function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(j,""),o=t&&n?n+" "+t+" { "+i+" }":i;return q=r,K=t,V=new RegExp("\\"+K+"\\b","g"),U(n||!t?"":t,o)}var Y=function(){return n.nc},X=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},Z=function(e,t){e[t]=Object.create(null)},J=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},Q=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},$=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n"+e()+""}},ie=function(e,t){return function(){var n,r=((n={})[I]=Q(t),n["data-styled-version"]="4.2.0",n),i=Y();return i&&(r.nonce=i),c.a.createElement("style",w({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},oe=function(e){return function(){return Object.keys(e)}},ae=function(e){return document.createTextNode(te(e))},se=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=te(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=w({},e[n]);return t}(r),n=Object.create(null);for(var o in i)n[o]=[i[o][0]];return e(t,n)},css:a,getIds:oe(i),hasNameForId:J(r),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),X(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",Z(r,e))},sealed:!1,styleTag:null,toElement:ie(a,r),toHTML:re(a,r)}},ce=function(e,t,n,r,i){if(R&&!n){var o=function(e,t,n){var r=document.createElement("style");r.setAttribute(I,""),r.setAttribute("data-styled-version","4.2.0");var i=Y();if(i&&r.setAttribute("nonce",i),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new B(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return O?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,o=!1,a=function(t){var i=r[t];return void 0!==i?i:(r[t]=ae(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new B(5)},css:s,getIds:oe(r),hasNameForId:J(n),insertMarker:a,insertRules:function(e,r,s){for(var c=a(e),u=[],f=r.length,l=0;l0&&(o=!0,t().insertRules(e+"-import",u))},removeRules:function(a){var s=r[a];if(void 0!==s){var c=ae(a);e.replaceChild(c,s),r[a]=c,Z(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:ie(s,n),toHTML:re(s,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),Z(n,e),r[e])},c=function(){var t=$(e).cssRules,n="";for(var o in r){n+=te(o);for(var a=r[o],s=ne(i,a),c=s-i[a];c0&&(a=!0,t().insertRules(r+"-import",p)),i[f]+=d,X(n,r,u)},removeRules:function(s){var c=r[s];if(void 0!==c){var u=i[c];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}($(e),ne(i,c)-1,u),i[c]=0,Z(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(c,n),toHTML:re(c,n)}}(o,i)}return se()},ue=/\s+/,fe=void 0;fe=R?O?40:1e3:-1;var le=0,he=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ce(t.target,n?n.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!R||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+I+'][data-styled-version="4.2.0"]'),i=r.length;if(!i)return this;for(var o=0;o0&&void 0!==arguments[0]&&arguments[0];he=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),i=0;i1?t-1:0),r=1;r=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var Ae=52,Ee=function(e){return String.fromCharCode(e+(e>25?39:97))};function ke(e){var t="",n=void 0;for(n=e;n>Ae;n=Math.floor(n/Ae))t=Ee(n%Ae)+t;return Ee(n%Ae)+t}function Se(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:x,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Re=/[[\].#*$><+~=|^:(),"'`-]+/g,Oe=/(^-|-$)/g;function Pe(e){return e.replace(Re,"-").replace(Oe,"")}function Be(e){return"string"===typeof e&&!0}var Le={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ne={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},je=((xe={})[l.ForwardRef]={$$typeof:!0,render:!0},xe),De=Object.defineProperty,Ue=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,ze=void 0===Fe?function(){return[]}:Fe,He=Object.getOwnPropertyDescriptor,qe=Object.getPrototypeOf,Ke=Object.prototype,Ve=Array.prototype;function We(e,t,n){if("string"!==typeof t){var r=qe(t);r&&r!==Ke&&We(e,r,n);for(var i=Ve.concat(Ue(t),ze(t)),o=je[e.$$typeof]||Le,a=je[t.$$typeof]||Le,s=i.length,c=void 0,u=void 0;s--;)if(u=i[s],!Ne[u]&&(!n||!n[u])&&(!a||!a[u])&&(!o||!o[u])&&(c=He(t,u)))try{De(e,u,c)}catch(e){}return e}return e}var Ge=Object(s.createContext)(),Ye=Ge.Consumer,Xe=function(e){function t(n){y(this,t);var r=E(this,e.call(this,n));return r.getContext=d()(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return _(t,e),t.prototype.render=function(){return this.props.children?c.a.createElement(Ge.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return c.a.createElement(Ge.Provider,{value:t},c.a.Children.only(this.props.children))},t.prototype.getTheme=function(e,t){if(M(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":g(e)))throw new B(8);return w({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),Ze=(function(){function e(){y(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new B(2);return c.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new B(3)}}(),Object(s.createContext)()),Je=Ze.Consumer,Qe=function(e){function t(n){y(this,t);var r=E(this,e.call(this,n));return r.getContext=d()(r.getContext),r}return _(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new B(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return c.a.createElement(Ze.Provider,{value:this.getContext(n,r)},t)},t}(s.Component),$e=(new Set,{});var et=function(e){function t(){y(this,t);var n=E(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return _(t,e),t.prototype.render=function(){return c.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():c.a.createElement(Ye,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,c=void 0;c=n.isStatic?this.generateAndInjectStyles(x,this.props):void 0!==e?this.generateAndInjectStyles(Ie(this.props,e,r),this.props):this.generateAndInjectStyles(this.props.theme||x,this.props);var u=this.props.as||this.attrs.as||a,f=Be(u),l={},h=w({},this.attrs,this.props),d=void 0;for(d in h)"forwardedComponent"!==d&&"as"!==d&&"suppressClassNameWarning"!==d&&("forwardedRef"===d?l.ref=h[d]:f&&!b()(d)||(l[d]=h[d]));return this.props.style&&this.attrs.style&&(l.style=w({},this.attrs.style,this.props.style)),l.className=Array.prototype.concat(i,this.props.className,o,this.attrs.className,c).filter(Boolean).join(" "),Object(s.createElement)(u,l)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=w({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in M(n)&&(n=n(i),o=!0),n)a=n[s],o||!M(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||C(a)||(a=a(i)),r.attrs[s]=a,i[s]=a}),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(x,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(s.Component);function tt(e,t,n){var r=C(e),i=!Be(e),o=t.displayName,a=void 0===o?function(e){return Be(e)?"styled."+e:"Styled("+T(e)+")"}(e):o,s=t.componentId,u=void 0===s?function(e,t,n){var r="string"!==typeof t?"sc":Pe(t),i=($e[r]||0)+1;$e[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(Ce,t.displayName,t.parentComponentId):s,f=t.ParentComponent,l=void 0===f?et:f,h=t.attrs,d=void 0===h?S:h,p=t.displayName&&t.componentId?Pe(t.displayName)+"-"+t.componentId:t.componentId||u,b=r&&e.attrs?Array.prototype.concat(e.attrs,d).filter(Boolean):d,m=new Ce(r?e.componentStyle.rules.concat(n):n,b,p),g=c.a.forwardRef(function(e,t){return c.a.createElement(l,w({},e,{forwardedComponent:g,forwardedRef:t}))});return g.attrs=b,g.componentStyle=m,g.displayName=a,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,g.styledComponentId=p,g.target=r?e.target:e,g.withComponent=function(e){var r=t.componentId,i=A(t,["componentId"]),o=r&&r+"-"+(Be(e)?e:Pe(T(e)));return tt(e,w({},i,{attrs:b,componentId:o,ParentComponent:l}),n)},g.toString=function(){return"."+g.styledComponentId},i&&We(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var nt=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;if(!Object(l.isValidElementType)(n))throw new B(1,String(n));var i=function(){return t(n,r,we.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,w({},r,i))},i.attrs=function(i){return e(t,n,w({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){nt[e]=nt(e)});var rt=function(){function e(t,n){y(this,e),this.rules=t,this.componentId=n,this.isStatic=Se(t,S),de.master.hasId(n)||de.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=G(ve(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function it(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},"0be84dece156fb18c9d7":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[c>>>5]|=128<>>9<<4)]=c;var p=s._ff,b=s._gg,m=s._hh,g=s._ii;for(d=0;d>>0,f=f+v>>>0,l=l+w>>>0,h=h+_>>>0}return r.endian([u,f,l,h])})._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<>>32-o)+t},s._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+t},s._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<>>32-o)+t},s._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<>>32-o)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},"0c51f40ed0c4e449be74":function(e,t,n){const r=n("e5a243b0d2e9e9bd500e"),i=n("bf305c26d9ed1aafa3de")();function o(e){this.currentProvider=e}function a(e){return function(){var t=[].slice.call(arguments),n=t.pop();this.sendAsync({method:e,params:t},n)}}function s(e,t){return function(){var n=[].slice.call(arguments),r=n.pop();n.length=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},"0ed153c0204cf00dc96c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("edf12d6afa8a5efa7276"),i=n("7edf15301b1c1eea8d3a"),o=3e5,a={jsonrpc:"2.0",id:0};function s(e){return{fromBlock:u(e.fromBlock),toBlock:u(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function c(e){const t={fromBlock:f(e.fromBlock),toBlock:f(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function u(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return r.IntNumber(0);if(i.isHexString(e))return i.intNumberFromHexString(e);throw new Error(`Invalid block option: ${e}`)}function f(e){return"latest"===e?e:i.hexStringFromIntNumber(e)}function l(){return Object.assign(Object.assign({},a),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},a),{result:[]})}t.FilterPolyfill=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=r.IntNumber(1),this.provider=e}async newFilter(e){const t=s(e),n=this.makeFilterId(),r=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",r),this.logFilters.set(n,t),this.setFilterTimeout(n),i.hexStringFromIntNumber(n)}async newBlockFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),i.hexStringFromIntNumber(e)}async newPendingTransactionFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),i.hexStringFromIntNumber(e)}uninstallFilter(e){const t=i.intNumberFromHexString(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){const t=i.intNumberFromHexString(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(l())}async getFilterLogs(e){const t=i.intNumberFromHexString(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_getLogs",params:[c(n)]})):l()}makeFilterId(){return r.IntNumber(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(e,r)=>e?n(e):Array.isArray(r)||null==r?n(new Error(`unexpected response received: ${JSON.stringify(r)}`)):void t(r))})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){const t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return l();const o=await this.getCurrentBlockHeight(),s="latest"===t.toBlock?o:t.toBlock;if(n>o)return h();if(n>t.toBlock)return h();console.log(`Fetching logs from ${n} to ${s} for filter ${e}`);const u=await this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_getLogs",params:[c(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(u.result)){const t=u.result.map(e=>i.intNumberFromHexString(e.blockNumber||"0x0")),o=Math.max(...t);if(o&&o>n){const t=r.IntNumber(o+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return u}async getBlockFilterChanges(e){const t=this.cursors.get(e);if(!t)return l();const n=await this.getCurrentBlockHeight();if(t>n)return h();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);const o=(await Promise.all(i.range(t,n+1).map(e=>this.getBlockHashByNumber(r.IntNumber(e))))).filter(e=>!!e),s=r.IntNumber(t+o.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${s}`),this.cursors.set(e,s),Object.assign(Object.assign({},a),{result:o})}async getPendingTransactionFilterChanges(e){return Promise.resolve(h())}async setInitialCursorPosition(e,t){const n=await this.getCurrentBlockHeight(),r="number"===typeof t&&t>n?t:n;return this.cursors.set(e,r),r}setFilterTimeout(e){const t=this.timeouts.get(e);t&&window.clearTimeout(t);const n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},o);this.timeouts.set(e,n)}async getCurrentBlockHeight(){const{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_blockNumber",params:[]}));return i.intNumberFromHexString(i.ensureHexString(e))}async getBlockHashByNumber(e){const t=await this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_getBlockByNumber",params:[i.hexStringFromIntNumber(e),!1]}));return t.result&&"string"===typeof t.result.hash?i.ensureHexString(t.result.hash):null}},t.filterFromParam=s},"0ef1fc4d89e68e9dca36":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("a28fc3c963a1d4d1a2e5"),i=n("acdc23cee8dd048fac82"),o=function(e){return e.theme||i.b},a=function(){return Object(r.a)(o,function(e){return e.darkMode})}},"0ef2d2bcfd2f568d82ae":function(e,t,n){"use strict";var r=n("8e6d34d5e2b1c9c449c0");t.__esModule=!0,t.default=function(e){return"window"in e&&e.window===e?e:(0,i.default)(e)&&e.defaultView||!1};var i=r(n("fe065dd5da03105139c9"));e.exports=t.default},"0efece4c8cb91e128a85":function(e,t,n){"use strict";e.exports=n("82c3e6e6e3fe41af700d")},"0f213c68e263a20dae10":function(e,t){e.exports=function(e){return(t,n,r,i)=>{let o;const a=new Promise(e=>{o=e});let s,c;e(t,n,async()=>{c=!0,r(e=>{s=e,o()}),await a}).then(async()=>{c?(await a,s(null)):i(null)}).catch(e=>{s?s(e):i(e)})}}},"0f29a1925f6bdf1729f9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n("8af190b70a6bc55c6f1b")),i=u(n("8a2d1b95e05b6a321e74")),o=n("d7dd51e1bf6bfc2c9c3d"),a=n("999b8422c18ed8d20c8d"),s=n("771ac8d3f39d68e91f97"),c=u(n("c780dee00d7495ff9921"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:a(e,t,n)};return r.unlisten=o.listen(s),s(o.location,o.action,!0),r}var i,o,s;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(n,r.PureComponent),i=n,(o=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return r.default.createElement(a.Router,{history:t},n)}}])&&h(i.prototype,o),s&&h(i,s),n}();n.propTypes={store:i.default.shape({getState:i.default.func.isRequired,subscribe:i.default.func.isRequired}).isRequired,history:i.default.shape({action:i.default.string.isRequired,listen:i.default.func.isRequired,location:i.default.object.isRequired,push:i.default.func.isRequired}).isRequired,basename:i.default.string,children:i.default.oneOfType([i.default.func,i.default.node]),onLocationChanged:i.default.func.isRequired};var u=function(e){var t=e.context||o.ReactReduxContext;if(null==t)throw"Please upgrade to react-redux v6";return r.default.createElement(t.Consumer,null,function(t){var i=t.store;return r.default.createElement(n,l({store:i},e))})};return u.propTypes={context:i.default.object},(0,o.connect)(null,function(e){return{onLocationChanged:function(t,n,r){return e((0,s.onLocationChanged)(t,n,r))}}})(u)};t.default=m},"0f580c41ac367a80ba16":function(e,t,n){"use strict";var r=n("4960a7fd8d0b5271852b");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>0}const m={BTC:r,ETH:i,ETH_MSG:o};e.exports={signReqResolver:m,aes256_decrypt:function(e,t){const n=a.from(f),r=new s.ModeOfOperation.cbc(t,n);return a.from(r.decrypt(e))},aes256_encrypt:function(e,t){const n=a.from(f),r=new s.ModeOfOperation.cbc(t,n),i=e.length%16===0?e:s.padding.pkcs7.pad(e);return a.from(r.encrypt(i))},parseDER:function(e){if(48!==e[0]||2!==e[2])return null;let t=3;const n={r:null,s:null},r=e[t];if(t++,n.r=e.slice(t,t+r),2!==e[t+=r])return null;const i=e[++t];return t++,n.s=e.slice(t,t+i),n},checksum:b,parseLattice1Response:function(e){const t={err:null,data:null},n=a.from(e,"hex");let r=0;const i=n.readUInt8(r);if(r++,i!==d)return t.err="Incorrect protocol version. Please update your SDK",t;const o=n.readUInt8(r);if(r++,0!==o)return t.err="Incorrect response from Lattice1",t;n.readUInt32BE(r),r+=4;const s=n.readUInt16BE(r);r+=2;const c=n.slice(r,r+s);r+=s;const u=c.readUInt8(0);return u!==l.RESP_SUCCESS?(t.err=`Error from device: ${h[u]?h[u]:"Unknown Error"}`,t.responseCode=u,t):(t.data=c.slice(1,c.length),n.readUInt32BE(r)!==b(n.slice(0,n.length-4))?(t.err="Invalid checksum from device response",t.data=null,t):t)},getP256KeyPair:function(e){return p.keyFromPrivate(e,"hex")},getP256KeyPairFromPub:function(e){return p.keyFromPublic(e,"hex")},toPaddedDER:function(e){const t=a.alloc(74);return a.from(e.toDER()).copy(t),t}}},"0f750a9492a8eb1eb554":function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n("4de17b50d35d24f9c74a").Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var u=1;u>>26,l=67108863&c,h=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=h;d++){var p=u-d|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[d])+l)/67108864|0,l=67108863&a}n.words[u]=0|l,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=f[e],d=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(e);n=(p=p.idivn(d)).isZero()?b+n:u[h-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),f=this.clone();if(c){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),u[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,b=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,v=0|a[3],w=8191&v,_=v>>>13,A=0|a[4],E=8191&A,k=A>>>13,S=0|a[5],x=8191&S,M=S>>>13,T=0|a[6],C=8191&T,I=T>>>13,R=0|a[7],O=8191&R,P=R>>>13,B=0|a[8],L=8191&B,N=B>>>13,j=0|a[9],D=8191&j,U=j>>>13,F=0|s[0],z=8191&F,H=F>>>13,q=0|s[1],K=8191&q,V=q>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],le=8191&fe,he=fe>>>13,de=0|s[9],pe=8191&de,be=de>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(u+(r=Math.imul(l,z))|0)+((8191&(i=(i=Math.imul(l,H))+Math.imul(h,z)|0))<<13)|0;u=((o=Math.imul(h,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(b,z)|0,o=Math.imul(b,H);var ge=(u+(r=r+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(h,K)|0))<<13)|0;u=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(y,z)|0,o=Math.imul(y,H),r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0;var ye=(u+(r=r+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,G)|0))<<13)|0;u=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ve=(u+(r=r+Math.imul(l,Z)|0)|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(h,Z)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(r=r+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,$)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(M,z)|0,o=Math.imul(M,H),r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(r=r+Math.imul(l,ne)|0)|0)+((8191&(i=(i=i+Math.imul(l,re)|0)+Math.imul(h,ne)|0))<<13)|0;u=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0;var Ae=(u+(r=r+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(h,oe)|0))<<13)|0;u=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(P,z)|0,o=Math.imul(P,H),r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ee=(u+(r=r+Math.imul(l,ce)|0)|0)+((8191&(i=(i=i+Math.imul(l,ue)|0)+Math.imul(h,ce)|0))<<13)|0;u=((o=o+Math.imul(h,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(N,z)|0,o=Math.imul(N,H),r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0;var ke=(u+(r=r+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;u=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,H))+Math.imul(U,z)|0,o=Math.imul(U,H),r=r+Math.imul(L,K)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Se=(u+(r=r+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(h,pe)|0))<<13)|0;u=((o=o+Math.imul(h,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,K),i=(i=Math.imul(D,V))+Math.imul(U,K)|0,o=Math.imul(U,V),r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,J)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,ue)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,he)|0;var xe=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(D,G),i=(i=Math.imul(D,Y))+Math.imul(U,G)|0,o=Math.imul(U,Y),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,r=r+Math.imul(w,le)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,he)|0;var Me=(u+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,Z),i=(i=Math.imul(D,J))+Math.imul(U,Z)|0,o=Math.imul(U,J),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,he)|0;var Te=(u+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(U,$)|0,o=Math.imul(U,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,r=r+Math.imul(x,le)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,he)|0;var Ce=(u+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,ue)|0,r=r+Math.imul(C,le)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,he)|0;var Ie=(u+(r=r+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,he)|0;var Re=(u+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(D,ce),i=(i=Math.imul(D,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),r=r+Math.imul(L,le)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,he)|0;var Oe=(u+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(P,pe)|0))<<13)|0;u=((o=o+Math.imul(P,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,le),i=(i=Math.imul(D,he))+Math.imul(U,le)|0,o=Math.imul(U,he);var Pe=(u+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,be)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Be=(u+(r=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,be))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,be))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=me,c[1]=ge,c[2]=ye,c[3]=ve,c[4]=we,c[5]=_e,c[6]=Ae,c[7]=Ee,c[8]=ke,c[9]=Se,c[10]=xe,c[11]=Me,c[12]=Te,c[13]=Ce,c[14]=Ie,c[15]=Re,c[16]=Oe,c[17]=Pe,c[18]=Be,0!==u&&(c[19]=u,n.length++),n};function p(e,t,n){return(new b).mulp(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(d=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},b.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==f||u>=i);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;l--){var h=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,l);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);s&&(s.words[l]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),l=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(l)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0===(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var l=0,h=1;0===(n.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(n.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(y,g),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var l=this.pow(f,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=a;0!==d.cmp(s);){for(var b=d,m=0;0!==b.cmp(s);m++)b=b.redSqr();r(m=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var l=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4===++s||0===r&&0===f)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n("f586cf5b9f4b7719b2c1")(e))},"0fde0385e5fa3b2d9e59":function(e,t,n){(function(t){var r=n("d3df5bc4c4cd92c1bffc").strict;e.exports=function(e){if(r(e)){var n=t.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}return t.from(e)}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"0fdfb47490e52d808e46":function(e,t,n){"use strict";const r=n("fe04f3dffedf971443f1"),i=n("aa05151b7ba9a2d36c5a");function o(e){i.call(this,e),this.enc="pem"}r(o,i),e.exports=o,o.prototype.encode=function(e,t){const n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let e=0;e"undefined"===typeof t?null:t)}},"11abfd16c046ca2e4177":function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;s(n("8a2d1b95e05b6a321e74"));var r=s(n("442a938a1deb7b295738")),i=s(n("fd23ab03a1691ca81318")),o=s(n("8af190b70a6bc55c6f1b")),a=s(n("5f91333870c355d2b6da"));n("e004da710c9e11bf4181");function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,["classNames"]));return o.default.createElement(a.default,c({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(o.default.Component);f.defaultProps={classNames:""},f.propTypes={};var l=f;t.default=l,e.exports=t.default},"11e13b10760641dccfa4":function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},t.rip=function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.pc1=function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c>>r[c]&1;for(c=s;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>o[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length=0;){for(var o=n[0],a=0;a{const r=setTimeout(n,e);r.unref&&t&&r.unref()})}e.exports=class extends i{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");const t=e.pollingInterval||20*o,n=e.retryTimeout||t/10,r=void 0===e.keepEventLoopActive||e.keepEventLoopActive,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=r,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await a(this._pollingInterval,!this._keepEventLoopActive)}catch(e){const t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${e.stack}`);try{this.emit("error",t)}catch(e){console.error(t)}await a(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){const e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){const e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);const t=await r(t=>this._provider.sendAsync(e,t))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\n${t.error}`);return t.result}}},"12ba4fef039ee145f0aa":function(e,t,n){"use strict";e.exports=n("d8280c05257ef9350d6e")},"12bf018be191a72d7268":function(e,t,n){"use strict";(function(t){function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(e=u.call(this)).type=d,e._resetDefaults(),e.deserialize(t),e}return n=p,(r=[{key:"deserialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.creds&&(this.creds=e.creds),e.accounts&&(this.accounts=e.accounts),e.walletUID&&(this.walletUID=e.walletUID),e.name&&(this.name=e.name),e.network&&(this.network=e.network),Promise.resolve()}},{key:"serialize",value:function(){return Promise.resolve({creds:this.creds,accounts:this.accounts,walletUID:this.walletUID,name:this.name,network:this.network})}},{key:"isUnlocked",value:function(){return this._hasCreds()&&this._hasSession()}},{key:"setHdPath",value:function(){console.warn("setHdPath not implemented.")}},{key:"unlock",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise(function(n,r){e._getCreds().then(function(t){return t&&(e.creds.deviceID=t.deviceID,e.creds.password=t.password),e._initSession()}).then(function(){return e._connect(t)}).then(function(){return n("Unlocked")}).catch(function(e){return r(Error(e))})})}},{key:"addAccounts",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new Promise(function(n,r){e.unlock().then(function(){return e._fetchAddresses(t,e.unlockedAccount)}).then(function(r){var o;return e.accounts.splice(e.unlockedAccount,t),(o=e.accounts).splice.apply(o,[e.unlockedAccount,0].concat(i(r))),n(e.accounts)}).catch(function(e){return r(e)})})}},{key:"getAccounts",value:function(){return Promise.resolve(this.accounts?this.accounts.slice():[].slice())}},{key:"signTransaction",value:function(e,n){var r=this;return new Promise(function(i,o){r._unlockAndFindAccount(e).then(function(e){var t={chainId:n.getChainId(),nonce:Number("0x".concat(n.nonce.toString("hex")))||0,gasPrice:Number("0x".concat(n.gasPrice.toString("hex"))),gasLimit:Number("0x".concat(n.gasLimit.toString("hex"))),to:"0x".concat(n.to.toString("hex")),value:Number("0x".concat(n.value.toString("hex"))),data:0===n.data.length?null:"0x".concat(n.data.toString("hex")),signerPath:[2147483692,2147483708,2147483648,0,e]};return r._signTxData(t)}).then(function(e){return e.sig&&e.sig.v&&e.sig.r&&e.sig.s?(n.v=e.sig.v,n.r=t.from(e.sig.r,"hex"),n.s=t.from(e.sig.s,"hex"),i(n)):o(Error("No signature returned"))}).catch(function(e){return o(Error(e))})})}},{key:"signMessage",value:function(e,t){return console.warn("NOTE: signMessage is currently a proxy for signPersonalMessage!"),this.signPersonalMessage(e,t)}},{key:"signPersonalMessage",value:function(e,t){var n=this;return new Promise(function(r,i){n._unlockAndFindAccount(e).then(function(e){var o={currency:"ETH_MSG",data:{protocol:"signPersonal",payload:t,signerPath:[2147483692,2147483708,2147483648,0,e]}};if(!n._hasSession())return i("No SDK session started. Cannot sign transaction.");n.sdkSession.sign(o,function(e,t){if(e)return i(e);if(!t.sig)return i("No signature returned");var n=(t.sig.v-27).toString(16);return n.length<2&&(n="0".concat(n)),r("0x".concat(t.sig.r).concat(t.sig.s).concat(n))})})})}},{key:"exportAccount",value:function(e){return Promise.reject(Error("exportAccount not supported by this device"))}},{key:"removeAccount",value:function(e){this.forgetDevice()}},{key:"getFirstPage",value:function(){return this.page=0,this._getPage(1)}},{key:"getNextPage",value:function(){return this.getFirstPage()}},{key:"getPreviousPage",value:function(){return this.getFirstPage()}},{key:"setAccountToUnlock",value:function(e){this.unlockedAccount=parseInt(e,10)}},{key:"forgetDevice",value:function(){this._resetDefaults()}},{key:"_unlockAndFindAccount",value:function(e){var t=this;return new Promise(function(n,r){t.unlock(!1).then(function(){return t.getAccounts()}).then(function(t){var i=null;return t.forEach(function(t,n){e.toLowerCase()===t.toLowerCase()&&(i=n)}),null===i?r("Signer not present"):n(i)}).catch(function(e){return r(e)})})}},{key:"_resetDefaults",value:function(){this.accounts=[],this.isLocked=!0,this.creds={deviceID:null,password:null},this.walletUID=null,this.sdkSession=null,this.page=0,this.unlockedAccount=0,this.network=null}},{key:"_getCreds",value:function(){var e=this;return new Promise(function(t,n){if(e._hasCreds())return t();var r=e.name?e.name:"Unknown",i="https://wallet.gridplus.io";e.network&&"mainnet"!==e.network&&(i="https://gridplus-web-wallet-dev.herokuapp.com");var o="".concat(i,"?keyring=").concat(r);e.network&&(o+="&network=".concat(e.network)),window.open(o).postMessage("GET_LATTICE_CREDS",i),window.addEventListener("message",function(e){if(e.origin===i)try{var r=JSON.parse(e.data);return r.deviceID&&r.password?t(r):n(Error("Invalid credentials returned from Lattice."))}catch(e){return n(e)}},!1)})}},{key:"_connect",value:function(e){var t=this;return new Promise(function(n,r){t.sdkSession.connect(t.creds.deviceID,function(i){if(i)return r(i);var o=t.sdkSession.getActiveWallet();if(!o||!o.uid)return r("No active wallet");var a=o.uid.toString("hex");if(a!=t.walletUID){if(!1===e)return r("Wallet has changed! Please reconnect.");t.accounts=[],t.walletUID=a}return n()})})}},{key:"_initSession",value:function(){var e=this;return new Promise(function(t,n){if(e._hasSession())return t();try{var r="https://signing.gridpl.us";e.network&&"mainnet"!==e.network&&(r="https://signing.staging-gridpl.us");var i={name:e.name,baseUrl:r,crypto:f,timeout:12e4,privKey:e._genSessionKey(),network:e.network};return e.sdkSession=new h.Client(i),t()}catch(e){return n(e)}})}},{key:"_fetchAddresses",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Promise(function(r,i){if(!e._hasSession())return i("No SDK session started. Cannot fetch addresses.");if(n>e.accounts.length)return i("Requested address is out of bounds. You may only request index <".concat(e.accounts.length));if(e.accounts.length>n)return r(e.accounts.slice(n,t));var o={currency:"ETH",startPath:[2147483692,2147483708,2147483648,0,n],n:t};e.sdkSession.getAddresses(o,function(e,t){return e?i(Error("Error getting addresses: ".concat(e))):t.length<1?i("No addresses returned"):r(t)})})}},{key:"_signTxData",value:function(e){var t=this;return new Promise(function(n,r){if(!t._hasSession())return r("No SDK session started. Cannot sign transaction.");t.sdkSession.sign({currency:"ETH",data:e},function(e,t){return e?r(e):t.tx?n(t):r("No transaction payload returned.")})})}},{key:"_getPage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new Promise(function(n,r){e.page+=t,e.page<=0&&(e.page=1);var i=5*(e.page-1);e.page;e.unlock().then(function(){return e._fetchAddresses(1,0)}).then(function(e){var t=[];return e.forEach(function(e,n){t.push({address:e,balance:null,index:i+n})}),n(t)}).catch(function(e){return r(e)})})}},{key:"_hasCreds",value:function(){return null!==this.creds.deviceID&&null!==this.creds.password&&this.name}},{key:"_hasSession",value:function(){return this.sdkSession&&this.walletUID}},{key:"_genSessionKey",value:function(){if(!this._hasCreds())throw new Error("No credentials -- cannot create session key!");var e=t.concat([t.from(this.creds.password),t.from(this.creds.deviceID),t.from(this.name)]);return f.createHash("sha256").update(e).digest()}}])&&a(n.prototype,r),o&&a(n,o),p}();p.type=d,e.exports=p}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"12d61cddbc672738e4ba":function(e,t,n){"use strict";var r=n("963ef19800ff2c1c6bbc").Buffer,i=n("51c14598f89e3eb6cfa8"),o=n("a07bfecaef33297c14e6"),a=n("347ed30c1425cbc1450a").ec,s=n("f3d394a5d1dda6700f76"),c=new a("secp256k1"),u=c.curve;function f(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var n=new o(t);if(n.cmp(u.p)>=0)return null;var r=(n=n.toRed(u.red)).redSqr().redIMul(n).redIAdd(u.b).redSqrt();return 3===e!==r.isOdd()&&(r=r.redNeg()),c.keyPair({pub:{x:n,y:r}})}(t,e.slice(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){var r=new o(t),i=new o(n);if(r.cmp(u.p)>=0||i.cmp(u.p)>=0)return null;if(r=r.toRed(u.red),i=i.toRed(u.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;var a=r.redSqr().redIMul(r);return i.redSqr().redISub(a.redIAdd(u.b)).isZero()?c.keyPair({pub:{x:r,y:i}}):null}(t,e.slice(1,33),e.slice(33,65));default:return null}}t.privateKeyVerify=function(e){var t=new o(e);return t.cmp(u.n)<0&&!t.isZero()},t.privateKeyExport=function(e,t){var n=new o(e);if(n.cmp(u.n)>=0||n.isZero())throw new Error(s.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return r.from(c.keyFromPrivate(e).getPublic(t,!0))},t.privateKeyNegate=function(e){var t=new o(e);return t.isZero()?r.alloc(32):u.n.sub(t).umod(u.n).toArrayLike(r,"be",32)},t.privateKeyModInverse=function(e){var t=new o(e);if(t.cmp(u.n)>=0||t.isZero())throw new Error(s.EC_PRIVATE_KEY_RANGE_INVALID);return t.invm(u.n).toArrayLike(r,"be",32)},t.privateKeyTweakAdd=function(e,t){var n=new o(t);if(n.cmp(u.n)>=0)throw new Error(s.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(n.iadd(new o(e)),n.cmp(u.n)>=0&&n.isub(u.n),n.isZero())throw new Error(s.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return n.toArrayLike(r,"be",32)},t.privateKeyTweakMul=function(e,t){var n=new o(t);if(n.cmp(u.n)>=0||n.isZero())throw new Error(s.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return n.imul(new o(e)),n.cmp(u.n)&&(n=n.umod(u.n)),n.toArrayLike(r,"be",32)},t.publicKeyCreate=function(e,t){var n=new o(e);if(n.cmp(u.n)>=0||n.isZero())throw new Error(s.EC_PUBLIC_KEY_CREATE_FAIL);return r.from(c.keyFromPrivate(e).getPublic(t,!0))},t.publicKeyConvert=function(e,t){var n=f(e);if(null===n)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);return r.from(n.getPublic(t,!0))},t.publicKeyVerify=function(e){return null!==f(e)},t.publicKeyTweakAdd=function(e,t,n){var i=f(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new o(t)).cmp(u.n)>=0)throw new Error(s.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);var a=u.g.mul(t).add(i.pub);if(a.isInfinity())throw new Error(s.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return r.from(a.encode(!0,n))},t.publicKeyTweakMul=function(e,t,n){var i=f(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new o(t)).cmp(u.n)>=0||t.isZero())throw new Error(s.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return r.from(i.pub.mul(t).encode(!0,n))},t.publicKeyCombine=function(e,t){for(var n=new Array(e.length),i=0;i=0||n.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);var i=r.from(e);return 1===n.cmp(c.nh)&&u.n.sub(n).toArrayLike(r,"be",32).copy(i,32),i},t.signatureExport=function(e){var t=e.slice(0,32),n=e.slice(32,64);if(new o(t).cmp(u.n)>=0||new o(n).cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);return{r:t,s:n}},t.signatureImport=function(e){var t=new o(e.r);t.cmp(u.n)>=0&&(t=new o(0));var n=new o(e.s);return n.cmp(u.n)>=0&&(n=new o(0)),r.concat([t.toArrayLike(r,"be",32),n.toArrayLike(r,"be",32)])},t.sign=function(e,t,n,i){if("function"===typeof n){var a=n;n=function(n){var c=a(e,t,null,i,n);if(!r.isBuffer(c)||32!==c.length)throw new Error(s.ECDSA_SIGN_FAIL);return new o(c)}}var f=new o(t);if(f.cmp(u.n)>=0||f.isZero())throw new Error(s.ECDSA_SIGN_FAIL);var l=c.sign(e,t,{canonical:!0,k:n,pers:i});return{signature:r.concat([l.r.toArrayLike(r,"be",32),l.s.toArrayLike(r,"be",32)]),recovery:l.recoveryParam}},t.verify=function(e,t,n){var r={r:t.slice(0,32),s:t.slice(32,64)},i=new o(r.r),a=new o(r.s);if(i.cmp(u.n)>=0||a.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);if(1===a.cmp(c.nh)||i.isZero()||a.isZero())return!1;var l=f(n);if(null===l)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);return c.verify(e,r,{x:l.pub.x,y:l.pub.y})},t.recover=function(e,t,n,i){var a={r:t.slice(0,32),s:t.slice(32,64)},f=new o(a.r),l=new o(a.s);if(f.cmp(u.n)>=0||l.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);try{if(f.isZero()||l.isZero())throw new Error;var h=c.recoverPubKey(e,a,n);return r.from(h.encode(!0,i))}catch(e){throw new Error(s.ECDSA_RECOVER_FAIL)}},t.ecdh=function(e,n){var r=t.ecdhUnsafe(e,n,!0);return i("sha256").update(r).digest()},t.ecdhUnsafe=function(e,t,n){var i=f(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);var a=new o(t);if(a.cmp(u.n)>=0||a.isZero())throw new Error(s.ECDH_FAIL);return r.from(i.pub.mul(a).encode(!0,n))}},13:function(e,t){},"1301d401ecb384277cd0":function(e,t,n){var r=n("963ef19800ff2c1c6bbc").Buffer,i=n("51c14598f89e3eb6cfa8"),o=n("8f340ba529907eb762df"),a=n("fe04f3dffedf971443f1"),s=n("af7e37042a9d419c35c0"),c=n("6405d0e41232a2c12364"),u=n("0c6ef0bbb55a8a05ea58");function f(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new f(e)}function d(e){return new l(e)}Object.keys(u).forEach(function(e){u[e].id=r.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]}),a(f,o.Writable),f.prototype._write=function(e,t,n){this._hash.update(e),n()},f.prototype.update=function(e,t){return"string"===typeof e&&(e=r.from(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(l,o.Writable),l.prototype._write=function(e,t,n){this._hash.update(e),n()},l.prototype.update=function(e,t){return"string"===typeof e&&(e=r.from(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,n){"string"===typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},e.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},"13141d6aa1197b52adb0":function(e,t,n){"use strict";const r=n("fe04f3dffedf971443f1");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},"1324c9fd2b84d234930d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]];t.pad=function(e){const t=r[e.byteLength%16||0],n=new Uint8Array(e.byteLength+t.length);return n.set(e),n.set(t,e.byteLength),n},t.unpad=function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}},"135bc9f39723f17b25dc":function(e,t,n){(function(e){var r=n("8b2ccb65063bab1e1f16").keccak_256,i=n("53ecdf49eb65f614eb48");function o(e){return e?i.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}t.hash=function(t){for(var n="",i=0;i<32;i++)n+="00";if(name=o(t),name){var a=name.split(".");for(i=a.length-1;i>=0;i--){var s=r(a[i]);n=r(new e(n+s,"hex"))}}return"0x"+n},t.normalize=o}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"13774ed5234effbe0255":function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)||t){e.next=4;break}return e.abrupt("return",U());case 4:if(""===x&&(x=y),I){e.next=15;break}return e.prev=6,e.next=9,z();case 9:I=e.sent,e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(6),e.t0;case 15:return d(I,M.size).forEach(function(e){var t=e.dPath,n=e.address;M.set(n,t)}),e.abrupt("return",U());case 18:case"end":return e.stop()}},e,null,[[6,12]])}))).apply(this,arguments)},W=function(e){return G.apply(this,arguments)},V=function(){return(V=c(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W(!0);case 2:return t=e.sent,e.abrupt("return",Y(t));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},K=function(){return V.apply(this,arguments)},q=function(){return T?U()[0]:void 0},H=function(){return(H=c(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x){e.next=2;break}throw new Error("a derivation path is needed to get the public key");case 2:return e.prev=2,e.next=5,b.getPublicKey({path:x,coin:"eth"});case 5:if((t=e.sent).success){e.next=8;break}throw new Error(t.payload.error);case 8:return I={publicKey:t.payload.publicKey,chainCode:t.payload.chainCode,path:t.payload.serializedPath},e.abrupt("return",I);case 12:throw e.prev=12,e.t0=e.catch(2),new Error("There was an error accessing your Trezor accounts.");case 15:case"end":return e.stop()}},e,null,[[2,12]])}))).apply(this,arguments)},z=function(){return H.apply(this,arguments)},F=function(e){var t=i(M.entries()),n=t.findIndex(function(t){return r(t,1)[0]===e});t.unshift(t.splice(n,1)[0]),M=new Map(t)},U=function(){return Array.from(M.keys())},D=function(){return(D=c(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="Unable to derive address from path ".concat(t),e.prev=1,e.next=4,b.ethereumGetAddress({path:t,showOnTrezor:!1});case 4:if((r=e.sent).success){e.next=7;break}throw new Error(n);case 7:return e.abrupt("return",r.payload.address);case 10:throw e.prev=10,e.t0=e.catch(1),new Error(n);case 13:case"end":return e.stop()}},e,null,[[1,10]])}))).apply(this,arguments)},j=function(e){return D.apply(this,arguments)},N=function(){return T=!0,W()},L=function(){return C},B=function(){return(B=c(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(p(t)){e.next=2;break}return e.abrupt("return",!1);case 2:if(t!==x&&(M=new Map),!n){e.next=17;break}return e.prev=4,e.next=7,j(t);case 7:return r=e.sent,M.set(r,t),x=t,C=!0,e.abrupt("return",!0);case 14:throw e.prev=14,e.t0=e.catch(4),new Error("There was a problem deriving an address from path ".concat(t));case 17:return C=!1,x=t,e.abrupt("return",!0);case 20:case"end":return e.stop()}},e,null,[[4,14]])}))).apply(this,arguments)},P=function(e,t){return B.apply(this,arguments)},O=function(){x="",M=new Map,T=!1,R.stop()},e.next=25,new Promise(function(e){e(u(n("d26c9404df667aa59864")))});case 25:return o=e.sent,e.next=28,new Promise(function(e){e(u(n("308c7b35b974b507d5f9")))});case 28:return a=e.sent,e.next=31,new Promise(function(e){e(u(n("d86499a133fa8ee11478")))});case 31:return s=e.sent,e.next=34,new Promise(function(e){e(n("881a968197ba8f3f128e"))});case 34:return f=e.sent,l=f.default,e.next=38,new Promise(function(e){e(n("06c6d4a33eeb930d663a"))});case 38:return h=e.sent,d=h.generateAddresses,p=h.isValidPath,b=o.default,m=o.DEVICE_EVENT,g=o.DEVICE,y="m/44'/60'/0'/0",v=t.networkId,w=t.email,_=t.appUrl,A=t.rpcUrl,E=t.BigNumber,k=t.networkName,S=t.resetWalletState,x="",M=new Map,T=!1,C=!1,b.manifest({email:w,appUrl:_}),R=l({getAccounts:function(e){W().then(function(t){return e(null,t)}).catch(function(t){return e(t,null)})},signTransaction:function(e,t){J(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processMessage:function(e,t){$(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processPersonalMessage:function(e,t){$(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signMessage:function(e,t){$(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signPersonalMessage:function(e,t){$(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},rpcUrl:A}),b.on(m,function(e){e.type===g.DISCONNECT&&(R.stop(),S({disconnected:!0,walletName:"Trezor"}))}),R.setPath=P,R.dPath=x,R.enable=N,R.setPrimaryAccount=F,R.getPrimaryAddress=q,R.getAccounts=W,R.getMoreAccounts=K,R.getBalance=X,R.getBalances=Y,R.send=R.sendAsync,R.disconnect=O,R.isCustomPath=L,e.abrupt("return",R);case 64:case"end":return e.stop()}},e)}))).apply(this,arguments)}t.default=function(e){var t=e.rpcUrl,n=e.networkId,r=e.email,i=e.appUrl,o=e.preferred,a=e.label,s=e.iconSrc;return{name:a||"Trezor",svg:e.svg||f,iconSrc:s,wallet:(u=c(regeneratorRuntime.mark(function e(o){var a,s,u,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.BigNumber,s=o.networkName,u=o.resetWalletState,e.next=3,l({rpcUrl:t,networkId:n,email:r,appUrl:i,BigNumber:a,networkName:s,resetWalletState:u});case 3:return f=e.sent,e.abrupt("return",{provider:f,interface:{name:"Trezor",connect:f.enable,disconnect:f.disconnect,address:{get:function(){var e=c(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.getPrimaryAddress());case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},network:{get:function(){var e=c(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},balance:{get:function(){var e=c(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.getPrimaryAddress(),e.abrupt("return",t&&f.getBalance(t));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}}});case 5:case"end":return e.stop()}},e)})),function(e){return u.apply(this,arguments)}),type:"hardware",desktop:!0,mobile:!0,osExclusions:["iOS"],preferred:o};var u}},"138fb2a9a7cb34ee0bae":function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("8af190b70a6bc55c6f1b")),o=n("999b8422c18ed8d20c8d"),a=n("12ba4fef039ee145f0aa");n("8a2d1b95e05b6a321e74"),n("de2cf1827168a807d23d");var s=r(n("bcc48bccf3d2407d611c"));function c(){return(c=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.heading,n=e.description,o=e.icon,a=e.html,s=e.button;return c=regeneratorRuntime.mark(function e(r){var c,u,f,l,h,d;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r.network,u=r.appNetworkId,f=r.walletSelect,l=r.exit,h=r.stateSyncStatus,d=r.stateStore,null!==c){e.next=5;break}if(!h.network){e.next=5;break}return e.next=5,new Promise(function(e){h.network&&h.network.then(e),setTimeout(function(){null===c&&e()},500)});case 5:if(d.network.get()==u){e.next=7;break}return e.abrupt("return",{heading:t||"You Must Change Networks",description:n||"We've detected that you need to switch your wallet's network from ".concat(i.networkName(c)," to ").concat(i.networkName(u),' network for this Dapp.

*Some wallets may not support changing networks. If you can not change networks in your wallet you may consider switching to a different wallet.'),eventCode:"networkFail",button:s||{onclick:function(){l(),f()},text:"Switch Wallet"},html:a,icon:o||i.networkIcon});case 7:case"end":return e.stop()}},e)}),u=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=c.apply(e,t);function a(e){r(o,n,i,a,s,"next",e)}function s(e){r(o,n,i,a,s,"throw",e)}a(void 0)})},function(e){return u.apply(this,arguments)};var c,u}},16:function(e,t){},"1609ca7f174aba974fc7":function(e,t,n){const r=n("e5eccbcc5d3737dd79a1");class i extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!==typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return r(this.serialize(),o,2)}}function o(e,t){if("[Circular]"!==t)return t}e.exports={EthereumRpcError:i,EthereumProviderError:class extends i{constructor(e,t,n){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}}},"16a2663068191a21c134":function(e,t,n){var r=n("c563599eb9734b6ef1c0"),i=n("f0200b4beabe56dc845a"),o=n("848061d2617404d8a848"),a=n("ad8470b596eb2ec5826f"),s=n("43dd891ba6876544e540"),c=n("67042e57ad02a5947bc9"),u=n("cef4e105446199aaf71e"),f=u(r),l=u(i),h=u(o),d=u(a),p=u(s),b=c;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=b(new i)||o&&"[object Promise]"!=b(o.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=b},"16ed5e814ccb32d55f28":function(e,t,n){var r=n("7ae52036d1906f8c617e");function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},17:function(e,t){},"170639e2abc5257faa62":function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("b3933dbe5de37160ed04")),o=n("7edf15301b1c1eea8d3a"),a=r(n("b3f4b4098343b8b7ff65")),s=n("0ed153c0204cf00dc96c"),c=n("ec3dfff2bb8b77866a8b"),u=n("ff0029dbc9995b4e1ff7"),f="Addresses";t.WalletLinkProvider=class{constructor(e){if(this._filterPolyfill=new s.FilterPolyfill(this),this._addresses=[],this._send=this.send,this._sendAsync=this.sendAsync,!e.relay)throw new Error("realy must be provided");if(!e.jsonRpcUrl)throw new Error("jsonRpcUrl must be provided");this._relay=e.relay,this._chainId=o.ensureIntNumber(e.chainId||1),this._jsonRpcUrl=e.jsonRpcUrl;const t=this._relay.getStorageItem(f);if(t){const e=t.split(" ");""!==e[0]&&(this._addresses=e)}}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this._chainId.toString(10)}get isWalletLink(){return!0}get host(){return this._jsonRpcUrl}get connected(){return!0}isConnected(){return!0}async enable(){return this._addresses.length>0?this._addresses:await this._send(c.JSONRPCMethod.eth_requestAccounts)}close(){this._relay.resetAndReload()}send(e,t){if("string"===typeof e){const n={jsonrpc:"2.0",id:0,method:e,params:Array.isArray(t)?t:void 0!==t?[t]:[]};return this._sendRequestAsync(n).then(e=>e.result)}if("function"===typeof t){const n=e,r=t;return this._sendAsync(n,r)}if(Array.isArray(e))return e.map(e=>this._sendRequest(e));const n=e;return this._sendRequest(n)}sendAsync(e,t){if("function"!==typeof t)throw new Error("callback is required");if(Array.isArray(e)){const n=t;return void this._sendMultipleRequestsAsync(e).then(e=>n(null,e)).catch(e=>n(e,null))}const n=t;this._sendRequestAsync(e).then(e=>n(null,e)).catch(e=>n(e,null))}async scanQRCode(e){const t=await this._relay.scanQRCode(o.ensureRegExpString(e));if("string"!==typeof t.result)throw new Error("result was not a string");return t.result}async arbitraryRequest(e){const t=await this._relay.arbitraryRequest(e);if("string"!==typeof t.result)throw new Error("result was not a string");return t.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){const t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw new Error(`WalletLink does not support calling ${n} synchronously without `+`a callback. Please provide a callback parameter to call ${n} `+"asynchronously.");return t}_setAddresses(e){if(!Array.isArray(e))throw new Error("addresses is not an array");this._addresses=e.map(e=>o.ensureAddressString(e)),this._relay.setStorageItem(f,e.join(" ")),window.dispatchEvent(new CustomEvent("walletlink:addresses",{detail:this._addresses}))}_sendRequestAsync(e){return new Promise((t,n)=>{try{const r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:"2.0",id:e.id,result:r});const i=this._handleAsynchronousFilterMethods(e);if(void 0!==i)return void i.then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(e=>this._sendRequestAsync(e)))}_handleSynchronousMethods(e){const{method:t}=e,n=e.params||[];switch(t){case c.JSONRPCMethod.eth_accounts:return this._eth_accounts();case c.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case c.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case c.JSONRPCMethod.net_version:return this._net_version();default:return}}_handleAsynchronousMethods(e){const{method:t}=e,n=e.params||[];switch(t){case c.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case c.JSONRPCMethod.eth_sign:return this._eth_sign(n);case c.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case c.JSONRPCMethod.personal_sign:return this._personal_sign(n);case c.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case c.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case c.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case c.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case c.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case c.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case c.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case c.JSONRPCMethod.eth_signTypedData_v4:case c.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case c.JSONRPCMethod.walletlink_arbitrary:return this._walletlink_arbitrary(n)}return window.fetch(this._jsonRpcUrl,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{if(!e)throw new u.ProviderError("unexpected response");const t=e,{error:n}=t;if(n)throw new u.ProviderError(n.message||"RPC Error",n.code,n.data);return t})}_handleAsynchronousFilterMethods(e){const{method:t}=e,n=e.params||[];switch(t){case c.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case c.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case c.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case c.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case c.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_isKnownAddress(e){try{const t=o.ensureAddressString(e);return this._addresses.includes(t)}catch(e){}return!1}_ensureKnownAddress(e){if(!this._isKnownAddress(e))throw new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const n=t.from?o.ensureAddressString(t.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:t.to?o.ensureAddressString(t.to):null,weiValue:null!=t.value?o.ensureBN(t.value):new i.default(0),data:t.data?o.ensureBuffer(t.data):e.alloc(0),nonce:null!=t.nonce?o.ensureIntNumber(t.nonce):null,gasPriceInWei:null!=t.gasPrice?o.ensureBN(t.gasPrice):null,gasLimit:null!=t.gas?o.ensureBN(t.gas):null,chainId:this._chainId}}_requireAuthorization(){if(0===this._addresses.length)throw new u.ProviderError("Unauthorized",u.ProviderErrorCode.UNAUTHORIZED)}_throwUnsupportedMethodError(){throw new u.ProviderError("Unsupported method",u.ProviderErrorCode.UNSUPPORTED_METHOD)}async _signEthereumMessage(e,t,n,r){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await this._relay.signEthereumMessage(e,t,n,r)).result}}catch(e){if("string"===typeof e.message&&e.message.match(/(denied|rejected)/i))throw new u.ProviderError("User denied message signature",u.ProviderErrorCode.USER_DENIED_REQUEST_SIGNATURE);throw e}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await this._relay.ethereumAddressFromSignedMessage(e,t,n)).result}}_eth_accounts(){return this._addresses}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this._chainId.toString(10)}async _eth_requestAccounts(){if(this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let e;try{e=await this._relay.requestEthereumAccounts()}catch(e){if("string"===typeof e.message&&e.message.match(/(denied|rejected)/i))throw new u.ProviderError("User denied account authorization",u.ProviderErrorCode.USER_DENIED_REQUEST_ACCOUNTS);throw e}if(!e.result)throw new Error("accounts received is empty");return this._setAddresses(e.result),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();const t=o.ensureAddressString(e[0]),n=o.ensureBuffer(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){const t=o.ensureBuffer(e[0]),n=o.ensureBuffer(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();const t=o.ensureBuffer(e[0]),n=o.ensureAddressString(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){const t=o.ensureBuffer(e[0]),n=o.ensureBuffer(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await this._relay.signEthereumTransaction(t)).result}}catch(e){if("string"===typeof e.message&&e.message.match(/(denied|rejected)/i))throw new u.ProviderError("User denied transaction signature",u.ProviderErrorCode.USER_DENIED_REQUEST_SIGNATURE);throw e}}async _eth_sendRawTransaction(e){const t=o.ensureBuffer(e[0]);return{jsonrpc:"2.0",id:0,result:(await this._relay.submitEthereumTransaction(t,this._chainId)).result}}async _eth_sendTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await this._relay.signAndSubmitEthereumTransaction(t)).result}}catch(e){if("string"===typeof e.message&&e.message.match(/(denied|rejected)/i))throw new u.ProviderError("User denied transaction signature",u.ProviderErrorCode.USER_DENIED_REQUEST_SIGNATURE);throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();const t=e[0],n=o.ensureAddressString(e[1]);this._ensureKnownAddress(n);const r=a.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(r,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();const t=o.ensureAddressString(e[0]),n=e[1];this._ensureKnownAddress(t);const r=a.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();const t=o.ensureAddressString(e[0]),n=e[1];this._ensureKnownAddress(t);const r=a.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _walletlink_arbitrary(e){const t=e[0];if("string"!==typeof t)throw new Error("parameter must be a string");return{jsonrpc:"2.0",id:0,result:await this.arbitraryRequest(t)}}_eth_uninstallFilter(e){const t=o.ensureHexString(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){const t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){const t=o.ensureHexString(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){const t=o.ensureHexString(e[0]);return this._filterPolyfill.getFilterLogs(t)}}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"170b0c5da6e516ac15d0":function(e,t,n){"use strict";t.__esModule=!0,t.IFRAME_FAILURE=t.ADDRESS_VALIDATION=t.BUNDLE_PROGRESS=t.LOGIN_CHALLENGE_RESPONSE=t.LOGIN_CHALLENGE_REQUEST=t.CUSTOM_MESSAGE_RESPONSE=t.CUSTOM_MESSAGE_REQUEST=t.CHANGE_SETTINGS=t.RECEIVE_WORD=t.RECEIVE_FEE=t.RECEIVE_ACCOUNT=t.CHANGE_ACCOUNT=t.RECEIVE_DEVICE=t.RECEIVE_PASSPHRASE=t.RECEIVE_PIN=t.RECEIVE_CONFIRMATION=t.RECEIVE_PERMISSION=t.REQUEST_WORD=t.REQUEST_BUTTON=t.INSUFFICIENT_FUNDS=t.UPDATE_CUSTOM_FEE=t.SELECT_FEE=t.SELECT_ACCOUNT=t.SELECT_DEVICE=t.SET_OPERATION=t.LOADING=t.CONNECT=t.INVALID_PASSPHRASE_ACTION=t.INVALID_PASSPHRASE=t.REQUEST_PASSPHRASE_ON_DEVICE=t.REQUEST_PASSPHRASE=t.INVALID_PIN=t.REQUEST_PIN=t.REQUEST_CONFIRMATION=t.REQUEST_PERMISSION=t.CLOSE_UI_WINDOW=t.REQUEST_UI_WINDOW=t.DEVICE_NEEDS_BACKUP=t.FIRMWARE_PROGRESS=t.FIRMWARE_NOT_INSTALLED=t.FIRMWARE_NOT_COMPATIBLE=t.FIRMWARE_NOT_SUPPORTED=t.FIRMWARE_OUTDATED=t.FIRMWARE_OLD=t.SEEDLESS=t.INITIALIZE=t.REQUIRE_MODE=t.NOT_IN_BOOTLOADER=t.BOOTLOADER=t.TRANSPORT=void 0;t.TRANSPORT="ui-no_transport";t.BOOTLOADER="ui-device_bootloader_mode";t.NOT_IN_BOOTLOADER="ui-device_not_in_bootloader_mode";t.REQUIRE_MODE="ui-device_require_mode";t.INITIALIZE="ui-device_not_initialized";t.SEEDLESS="ui-device_seedless";t.FIRMWARE_OLD="ui-device_firmware_old";t.FIRMWARE_OUTDATED="ui-device_firmware_outdated";t.FIRMWARE_NOT_SUPPORTED="ui-device_firmware_unsupported";t.FIRMWARE_NOT_COMPATIBLE="ui-device_firmware_not_compatible";t.FIRMWARE_NOT_INSTALLED="ui-device_firmware_not_installed";t.FIRMWARE_PROGRESS="ui-firmware-progress";t.DEVICE_NEEDS_BACKUP="ui-device_needs_backup";t.REQUEST_UI_WINDOW="ui-request_window";t.CLOSE_UI_WINDOW="ui-close_window";t.REQUEST_PERMISSION="ui-request_permission";t.REQUEST_CONFIRMATION="ui-request_confirmation";t.REQUEST_PIN="ui-request_pin";t.INVALID_PIN="ui-invalid_pin";t.REQUEST_PASSPHRASE="ui-request_passphrase";t.REQUEST_PASSPHRASE_ON_DEVICE="ui-request_passphrase_on_device";t.INVALID_PASSPHRASE="ui-invalid_passphrase";t.INVALID_PASSPHRASE_ACTION="ui-invalid_passphrase_action";t.CONNECT="ui-connect";t.LOADING="ui-loading";t.SET_OPERATION="ui-set_operation";t.SELECT_DEVICE="ui-select_device";t.SELECT_ACCOUNT="ui-select_account";t.SELECT_FEE="ui-select_fee";t.UPDATE_CUSTOM_FEE="ui-update_custom_fee";t.INSUFFICIENT_FUNDS="ui-insufficient_funds";t.REQUEST_BUTTON="ui-button";t.REQUEST_WORD="ui-request_word";t.RECEIVE_PERMISSION="ui-receive_permission";t.RECEIVE_CONFIRMATION="ui-receive_confirmation";t.RECEIVE_PIN="ui-receive_pin";t.RECEIVE_PASSPHRASE="ui-receive_passphrase";t.RECEIVE_DEVICE="ui-receive_device";t.CHANGE_ACCOUNT="ui-change_account";t.RECEIVE_ACCOUNT="ui-receive_account";t.RECEIVE_FEE="ui-receive_fee";t.RECEIVE_WORD="ui-receive_word";t.CHANGE_SETTINGS="ui-change_settings";t.CUSTOM_MESSAGE_REQUEST="ui-custom_request";t.CUSTOM_MESSAGE_RESPONSE="ui-custom_response";t.LOGIN_CHALLENGE_REQUEST="ui-login_challenge_request";t.LOGIN_CHALLENGE_RESPONSE="ui-login_challenge_response";t.BUNDLE_PROGRESS="ui-bundle_progress";t.ADDRESS_VALIDATION="ui-address_validation";t.IFRAME_FAILURE="ui-iframe_failure"},"17169632ad0bd7823c73":function(e,t,n){},"172d20f29b8712ad3a2f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=function(e,r,o,a){var s=o&&a||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(t){if(!e.isBuffer(t))if(Array.isArray(t))t=e.from(t);else if("string"===typeof t){if(!r.isHexString(t))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+t);t=e.from(r.padToEven(r.stripHexPrefix(t)),"hex")}else if("number"===typeof t)t=r.intToBuffer(t);else if(null===t||void 0===t)t=e.allocUnsafe(0);else if(i.isBN(t))t=t.toArrayLike(e);else{if(!t.toArray)throw new Error("invalid type");t=e.from(t.toArray())}return t},t.bufferToInt=function(e){return new i(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new i(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!==typeof e?e:r.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(n){if(e.isBuffer(n))return"0x"+n.toString("hex");if(n instanceof Array){for(var r=[],i=0;i=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},"18b14042bdd030a4e897":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._eventEmitters=[],"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(t=>t.event===e)),t.forEach(e=>{e.callback()})}}},"18caba858d9ea0f67284":function(e,t,n){var r=n("5de5c65c2c431f821291"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},"18f89ed8da348266be0b":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n("617bf5bce3e00c02f272"),o=(r=n("46a99c7b84ca5c328e75"))&&r.__esModule?r:{default:r},a=n("2e0db585714c31a92f8f"),s=n("e2856f508c7ca5efab7d");const c=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),u=e=>e.replace(/-/g,"+").replace(/_/g,"/")+"==".substring(0,3*e.length%4);function f(t,n,r,o){const s=function(t,n){const r=e.alloc(t.length);for(let e=0;e "+t.toString("hex")),(0,i.sign)(l,n/1e3).then(t=>{const{signatureData:n}=t;if("string"===typeof n){const t=e.from(u(n),"base64");let r;return r=o?t.slice(5):t,(0,a.log)("apdu","<= "+r.toString("hex")),r}throw t})}let l=[];class h extends o.default{static async open(e,t=5e3){return new h}constructor(){super(),this.scrambleKey=void 0,this.unwrap=!0,l.push(this)}async exchange(e){try{return await f(e,this.exchangeTimeout,this.scrambleKey,this.unwrap)}catch(e){throw"object"===typeof e.metaData?(5===e.metaData.code&&(l.forEach(e=>e.emit("disconnect")),l=[]),function(e,t,n){const r=new s.TransportError(t,n);return r.originalError=e,r}(e,"Failed to sign with Ledger device: U2F "+e.metaData.type,"U2F_"+e.metaData.code)):e}}setScrambleKey(t){this.scrambleKey=e.from(t,"ascii")}setUnwrap(e){this.unwrap=e}close(){return Promise.resolve()}}t.default=h,h.isSupported=i.isSupported,h.list=(()=>(0,i.isSupported)().then(e=>e?[null]:[])),h.listen=(e=>{let t=!1;return(0,i.isSupported)().then(n=>{t||(n?(e.next({type:"add",descriptor:null}),e.complete()):e.error(new s.TransportError("U2F browser support is needed for Ledger. Please use Chrome, Opera or Firefox with a U2F extension. Also make sure you're on an HTTPS connection","U2FNotSupported")))}),{unsubscribe:()=>{t=!0}}})}).call(this,n("4de17b50d35d24f9c74a").Buffer)},19:function(e,t){},"19046da0f743bff3aaf8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("e4f0dd797ff9c261fedb"),i=n("0dad2a189845766d1cd6"),o=n("edf12d6afa8a5efa7276"),a=n("ee45acb73bf9c9adb44c"),s=n("a3f2e79f9836d4cef16c"),c=n("be35e0bdb9f7740ab3ab"),u=1e4,f=6e4;t.WalletLinkConnection=class{constructor(e,t,n,a=WebSocket){this.sessionId=e,this.sessionKey=t,this.subscriptions=new r.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=o.IntNumber(1),this.connectedSubject=new r.BehaviorSubject(!1),this.linkedSubject=new r.BehaviorSubject(!1),this.sessionConfigSubject=new r.ReplaySubject(1);const c=new s.RxWebSocket(n+"/rpc",a);this.ws=c,this.subscriptions.add(c.connectionState$.pipe(i.skip(1),i.filter(e=>e===s.ConnectionState.DISCONNECTED&&!this.destroyed),i.delay(5e3),i.filter(e=>!this.destroyed),i.flatMap(e=>c.connect()),i.retry()).subscribe()),this.subscriptions.add(c.connectionState$.pipe(i.skip(2),i.switchMap(e=>r.iif(()=>e===s.ConnectionState.CONNECTED,this.authenticate().pipe(i.tap(e=>this.sendIsLinked()),i.tap(e=>this.sendGetSessionConfig()),i.map(e=>!0)),r.of(!1))),i.distinctUntilChanged(),i.catchError(e=>r.of(!1))).subscribe(e=>this.connectedSubject.next(e))),this.subscriptions.add(c.connectionState$.pipe(i.skip(1),i.switchMap(e=>r.iif(()=>e===s.ConnectionState.CONNECTED,r.timer(0,u)))).subscribe(e=>0===e?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(c.incomingData$.pipe(i.filter(e=>"h"===e)).subscribe(e=>this.updateLastHeartbeat())),this.subscriptions.add(c.incomingJSONData$.pipe(i.filter(e=>["IsLinkedOK","Linked"].includes(e.type))).subscribe(e=>{const t=e;this.linkedSubject.next(t.linked||t.onlineGuests>0)})),this.subscriptions.add(c.incomingJSONData$.pipe(i.filter(e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type))).subscribe(e=>{const t=e;this.sessionConfigSubject.next({webhookId:t.webhookId,webhookUrl:t.webhookUrl,metadata:t.metadata})}))}connect(){if(this.destroyed)throw new Error("instance is destroyed");this.ws.connect().subscribe()}destroy(){this.subscriptions.unsubscribe(),this.ws.disconnect(),this.destroyed=!0}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe(i.filter(e=>e),i.take(1),i.map(()=>void 0))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe(i.filter(e=>e),i.take(1),i.map(()=>void 0))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe(i.filter(e=>{if("Event"!==e.type)return!1;const t=e;return"string"===typeof t.sessionId&&"string"===typeof t.eventId&&"string"===typeof t.event&&"string"===typeof t.data}),i.map(e=>e))}setSessionMetadata(e,t){const n=a.ClientMessageSetSessionConfig({id:o.IntNumber(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe(i.flatMap(e=>this.makeRequest(n)),i.map(e=>{if(c.isServerMessageFail(e))throw new Error(e.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){const r=a.ClientMessagePublishEvent({id:o.IntNumber(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe(i.flatMap(e=>this.makeRequest(r)),i.map(e=>{if(c.isServerMessageFail(e))throw new Error(e.error||"failed to publish event");return e.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2*u)this.ws.disconnect();else try{this.ws.sendData("h")}catch(e){}}makeRequest(e,t=f){const n=e.id;try{this.sendData(e)}catch(e){return r.throwError(e)}return this.ws.incomingJSONData$.pipe(i.timeoutWith(t,r.throwError(new Error(`request ${n} timed out`))),i.filter(e=>e.id===n),i.take(1))}authenticate(){const e=a.ClientMessageHostSession({id:o.IntNumber(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe(i.map(e=>{if(c.isServerMessageFail(e))throw new Error(e.error||"failed to authentcate")}))}sendIsLinked(){const e=a.ClientMessageIsLinked({id:o.IntNumber(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){const e=a.ClientMessageGetSessionConfig({id:o.IntNumber(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},"190526b751d360eb4c37":function(e,t,n){"use strict";var r=function(e,t,n){return function(){for(var r=this,i=new Array(arguments.length),o=0;o= 10.0.0"},homepage:"https://github.com/walletlink/walletlink#readme",jest:{transform:{"^.+\\.tsx?$":"ts-jest"},testEnvironment:"node",testPathIgnorePatterns:["/dist/","/node_modules/"],testRegex:"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",moduleFileExtensions:["ts","js","json"]},keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],license:"Apache-2.0",main:"dist/index.js",name:"walletlink",repository:{type:"git",url:"git+https://github.com/walletlink/walletlink.git"},scripts:{build:"node compile-assets.js && webpack --config webpack.config.js","build-chrome":"webpack --config webpack.config.chrome.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export WALLETLINK_URL='http://localhost:3000'; yarn build && yarn build-chrome","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --watch chrome/ --exec 'yarn build:dev'","build:prod":"yarn build && yarn build-chrome && yarn build-npm && cp ./package.json ../README.md ../LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i '' 's| \"private\": true,||g' build/npm/package.json",lint:"tslint -p . 'src/**/*.ts{,x}'","lint:watch":"nodemon -e ts,tsx,js,json,css,scss,svg --watch src/ --exec 'yarn tsc && yarn lint'",test:"jest","test:watch":"jest --watch",tsc:"tsc --noEmit --pretty"},types:"dist/index.d.ts",version:"2.0.2"}},"19e15e7ca84589004246":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},"1a140373305ad4b831b4":function(e,t,n){"use strict";var r=n("8e6d34d5e2b1c9c449c0");t.__esModule=!0,t.create=function(e,t){var n,r=function(e){},a=function(e){},s=new Promise((c=(0,o.default)(i.default.mark(function t(o,s){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=o,a=s,"function"!==typeof e){t.next=11;break}return t.prev=3,t.next=6,e();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(3),s(t.t0);case 11:"string"===typeof e&&(n=e);case 12:case"end":return t.stop()}},t,null,[[3,8]])})),function(e,t){return c.apply(this,arguments)}));var c;return{id:n,device:t,resolve:r,reject:a,promise:s}},t.createAsync=function(e){var t=function(e){},n=function(e){},r=new Promise(function(e,r){t=e,n=r}),a=(s=(0,o.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}},t)})),function(){return s.apply(this,arguments)});var s;return{resolve:t,reject:n,promise:r,run:function(){return a(),r}}},t.resolveTimeoutPromise=function(e,t){return new Promise(function(n){setTimeout(function(){n(t)},e)})},t.rejectTimeoutPromise=function(e,t){return new Promise(function(n,r){setTimeout(function(){r(t)},e)})};var i=r(n("849c435b1f06682c313a")),o=r(n("1d967fc85bef35702fd2"))},"1a1528a70eda6422082b":function(e,t,n){"use strict";n.d(t,"b",function(){return a});var r=n("d782b72bc5b680c7122c"),i=regeneratorRuntime.mark(a),o=regeneratorRuntime.mark(c);function a(e){var t,n,o,a,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(r.select)(s);case 2:t=i.sent,n=e.web3,t||console.error("No accounts found while attempting to fetch balances!"),i.prev=5,i.t0=regeneratorRuntime.keys(t);case 7:if((i.t1=i.t0()).done){i.next=17;break}return o=i.t1.value,a=t[o],i.next=12,Object(r.call)(n.eth.getBalance,a);case 12:return c=i.sent,i.next=15,Object(r.put)({type:"ACCOUNT_BALANCE_FETCHED",account:a,accountBalance:c});case 15:i.next=7;break;case 17:i.next=25;break;case 19:return i.prev=19,i.t2=i.catch(5),i.next=23,Object(r.put)({type:"ACCOUNT_BALANCE_FAILED",error:i.t2});case 23:console.error("Error fetching account ".concat(a," balance:")),console.error(i.t2);case 25:return i.next=27,Object(r.put)({type:"ACCOUNT_BALANCES_FETCHED"});case 27:case"end":return i.stop()}},i,null,[[5,19]])}var s=function(e){return e.accounts};function c(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(r.takeLatest)("ACCOUNT_BALANCES_FETCHING",a);case 2:case"end":return e.stop()}},o)}t.a=c},"1a88d4d40818b6c1ca78":function(e,t,n){(function(t){const r=n("a9e8ebed08f0a5bda33c");function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(let t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"1af8136fe2fc41574ba7":function(e,t,n){"use strict";(function(t,r){var i;e.exports=S,S.ReadableState=k;n("09565c4a498df1f319eb").EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n("51fa9ccac244ae0e1ac5"),s=n("4de17b50d35d24f9c74a").Buffer,c=t.Uint8Array||function(){};var u,f=n(8);u=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,d,p=n("b242cf9e21b71e30284d"),b=n("d107e1c445b2f2383c69"),m=n("e46c34b85babb5bb074a").getHighWaterMark,g=n("a51274b1fd6eeadd35ea").codes,y=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("fe04f3dffedf971443f1")(S,a);var A=b.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,r){i=i||n("fd68801b86164acd6cad"),e=e||{},"boolean"!==typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n("5465ad408e1ee4c0ae12").StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function S(e){if(i=i||n("fd68801b86164acd6cad"),!(this instanceof S))return new S(e);var t=this instanceof i;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function x(e,t,n,r,i){u("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof c||"string"===typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)A(e,o);else if(a.objectMode||t&&t.length>0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?A(e,new _):M(e,a,t,!0);else if(a.ended)A(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?M(e,a,t,!1):O(e,a)):M(e,a,t,!1)}else r||(a.reading=!1,O(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(R,e))}function R(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function O(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){u("readable nexttick read 0"),e.read(0)}function N(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(F,t,e))}function F(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):I(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){A(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:m;function s(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",d),e.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",m),n.removeListener("data",h),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){u("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var f=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",f);var l=!1;function h(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!l&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){u("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&A(e,t)}function p(){e.removeListener("finish",b),m()}function b(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",b),e.emit("pipe",n),i.flowing||(u("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?I(this):i.reading||r.nextTick(L,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(B,this),n},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(B,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))}),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o>>24]^f[p>>>16&255]^l[b>>>8&255]^h[255&m]^t[g++],a=u[p>>>24]^f[b>>>16&255]^l[m>>>8&255]^h[255&d]^t[g++],s=u[b>>>24]^f[m>>>16&255]^l[d>>>8&255]^h[255&p]^t[g++],c=u[m>>>24]^f[d>>>16&255]^l[p>>>8&255]^h[255&b]^t[g++],d=o,p=a,b=s,m=c;return o=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[b>>>8&255]<<8|r[255&m])^t[g++],a=(r[p>>>24]<<24|r[b>>>16&255]<<16|r[m>>>8&255]<<8|r[255&d])^t[g++],s=(r[b>>>24]<<24|r[m>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^t[g++],c=(r[m>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[a]=u,r[u]=a;var f=e[a],l=e[f],h=e[l],d=257*e[u]^16843008*u;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*l^257*f^16843008*a,o[0][u]=d<<24|d>>>8,o[1][u]=d<<16|d>>>16,o[2][u]=d<<8|d>>>24,o[3][u]=d,0===a?a=s=1:(a=f^e[e[e[h^f]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],f=0;f>>24]]^c.INV_SUB_MIX[1][c.SBOX[h>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[h>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},"1bd1e971df87d4c6882c":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)})}}function o(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}var a='\n \n \x3c!-- Generated by Pixelmator Pro 1.8 --\x3e\n \n \n \n \n \n';function s(e){return c.apply(this,arguments)}function c(){return(c=i(regeneratorRuntime.mark(function e(t){var r,a,s,c,u,f,l,h,d,p,b,m,g,y,v,w,_,A,E,k,S,x,M,T,C,I,R,O,P,B,L,N,j,D,U,F;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return F=function(){return(F=i(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==v.length){e.next=3;break}return e.next=3,M();case 3:return e.prev=3,e.next=6,g.signPersonalMessage(v[0],t.data);case 6:return n=e.sent,e.abrupt("return",n);case 10:throw e.prev=10,e.t0=e.catch(3),e.t0;case 13:case"end":return e.stop()}},e,null,[[3,10]])}))).apply(this,arguments)},U=function(e){return F.apply(this,arguments)},D=function(){return(D=i(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==v.length){e.next=3;break}return e.next=3,M();case 3:return n=new s.Transaction(t,{chain:b(l)}),e.prev=4,e.next=7,g.signTransaction(v[0],n);case 7:return r=e.sent,e.abrupt("return","0x".concat(r.serialize().toString("hex")));case 11:throw e.prev=11,e.t0=e.catch(4),e.t0;case 14:case"end":return e.stop()}},e,null,[[4,11]])}))).apply(this,arguments)},j=function(e){return D.apply(this,arguments)},N=function(e){return new Promise(function(t,n){A.sendAsync({jsonrpc:"2.0",method:"eth_getBalance",params:[e,"latest"],id:42},function(e,r){e&&n(e);var i=r&&r.result;t(null!=i?new p(i).toString(10):null)})})},L=function(e){return Promise.all(e.map(function(e){return new Promise(function(){var t=i(regeneratorRuntime.mark(function t(n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N(e);case 2:r=t.sent,n({address:e,balance:r});case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}))},B=function(){return(B=i(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(w){e.next=2;break}return e.abrupt("return",[]);case 2:if(!(v.length>0)||t){e.next=4;break}return e.abrupt("return",v);case 4:return e.prev=4,e.next=7,g.addAccounts();case 7:v=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),e.t0;case 13:return e.abrupt("return",v);case 14:case"end":return e.stop()}},e,null,[[4,10]])}))).apply(this,arguments)},P=function(e){return B.apply(this,arguments)},O=function(){return(O=i(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"Lattice only supports one exported account per wallet. Checking for new wallet.",console.warn("Lattice only supports one exported account per wallet. Checking for new wallet."),e.next=4,P(!0);case 4:return t=e.sent,e.abrupt("return",t&&L(t));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},R=function(){return O.apply(this,arguments)},I=function(){return w?T()[0]:void 0},C=function(e){},T=function(){return v},M=function(){return w=!0,P()},x=function(){return _},S=function(){return(S=i(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t===f){e.next=2;break}throw new Error("Lattice only supports standard path: m/44'/0'/0'/0/x");case 2:return _=!1,y=t,e.abrupt("return",!0);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)},k=function(e){return S.apply(this,arguments)},E=function(){y="",w=!1,A.stop()},e.next=20,new Promise(function(e){e(n("12bf018be191a72d7268"))});case 20:return r=e.sent,a=r.default,e.next=24,new Promise(function(e){e(o(n("308c7b35b974b507d5f9")))});case 24:return s=e.sent,e.next=27,new Promise(function(e){e(n("881a968197ba8f3f128e"))});case 27:return c=e.sent,u=c.default,f="m/44'/60'/0'/0",l=t.networkId,h=t.appName,d=t.rpcUrl,p=t.BigNumber,b=t.networkName,m={name:h,network:b(l)},g=new a(m),y="",v=Array.from([]),w=!1,_=!1,(A=u({getAccounts:function(e){P().then(function(t){return e(null,t)}).catch(function(t){return e(t,null)})},signTransaction:function(e,t){j(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processMessage:function(e,t){U(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processPersonalMessage:function(e,t){U(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signMessage:function(e,t){U(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signPersonalMessage:function(e,t){U(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},rpcUrl:d})).setPath=k,A.dPath=y,A.enable=M,A.setPrimaryAccount=C,A.getPrimaryAddress=I,A.getAccounts=P,A.getMoreAccounts=R,A.getBalance=N,A.getBalances=L,A.send=A.sendAsync,A.disconnect=E,A.isCustomPath=x,e.abrupt("return",A);case 51:case"end":return e.stop()}},e)}))).apply(this,arguments)}t.default=function(e){var t=e.appName,n=e.rpcUrl,r=e.networkId,o=e.preferred,c=e.label,u=e.iconSrc;return{name:c||"Lattice",svg:e.svg||a,iconSrc:u,wallet:(f=i(regeneratorRuntime.mark(function e(o){var a,c,u,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.BigNumber,c=o.networkName,u=o.resetWalletState,e.next=3,s({appName:t,rpcUrl:n,networkId:r,BigNumber:a,networkName:c,resetWalletState:u});case 3:return f=e.sent,e.abrupt("return",{provider:f,interface:{name:"Lattice",connect:f.enable,disconnect:f.disconnect,address:{get:function(){var e=i(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.getPrimaryAddress());case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},network:{get:function(){var e=i(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},balance:{get:function(){var e=i(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.getPrimaryAddress(),e.abrupt("return",t&&f.getBalance(t));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}}});case 5:case"end":return e.stop()}},e)})),function(e){return f.apply(this,arguments)}),type:"hardware",desktop:!0,mobile:!0,osExclusions:["iOS"],preferred:o};var f}},"1c24b7f26524241e3366":function(e,t,n){const r=n("301f714483f37295e7a5");e.exports=function(e,t,n){e.sendAsync(r({method:"eth_estimateGas",params:[t]}),function(e,t){if(e)return"no contract code at given address"===e.message?n(null,"0xcf08"):n(e);n(null,t.result)})}},"1c2b14b512f678e38462":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("000e687100360508b435"),n("2c62cf50f9b98ad5e2af");var r=n("635837756f63384ac159"),i=n("63f23813e2a31e3092ec");n("20ffe07e14dbfd86f679");var o=function(e){return{done:!0,value:e}},a={};function s(e){return r.channel(e)?"channel":r.stringableFunc(e)?String(e):r.func(e)?e.name:String(e)}function c(e,t,n){var r,s,c,u=t;function f(t,n){if(u===a)return o(t);if(n&&!s)throw u=a,n;r&&r(t);var i=n?e[s](n):e[u]();return u=i.nextState,c=i.effect,r=i.stateUpdater,s=i.errorState,u===a?o(t):c}return i.makeIterator(f,function(e){return f(null,e)},n)}function u(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2?n-2:0),o=2;o2?n-2:0),o=2;o3?r-3:0),a=3;a3?o-3:0),u=3;u3?r-3:0),a=3;a3?r-3:0),a=3;a3?r-3:0),a=3;a2?n-2:0),o=2;o2?n-2:0),o=2;o2?n-2:0),o=2;o3?r-3:0),a=3;a=-32099&&e<=-32e3}function h(e){return e&&"object"===typeof e&&!Array.isArray(e)?Object.assign({},e):e}e.exports={getMessageFromCode:u,isValidCode:f,serializeError:function(e,t=c){if(!t||!Number.isInteger(t.code)||"string"!==typeof t.message)throw new Error("fallbackError must contain integer number code and string message.");if(e instanceof o)return e.serialize();const n={};return e&&f(e.code)?(n.code=e.code,e.message&&"string"===typeof e.message?(n.message=e.message,e.hasOwnProperty("data")&&(n.data=e.data)):(n.message=u(n.code),n.data={originalError:h(e)})):(n.code=t.code,n.message=e&&e.message?e.message:t.message,n.data={originalError:h(e)}),e&&e.stack&&(n.stack=e.stack),n},JSON_RPC_SERVER_ERROR_MESSAGE:a}},"1eb7c493f8e93a314801":function(e,t,n){t.parse=n("fd98a16d2bf3b7be4e4b"),t.stringify=n("f0ffda72ec7fd33dccd6")},"1eb92cdb53c9d5bf4053":function(e,t,n){"use strict";var r=n("8e6d34d5e2b1c9c449c0");t.__esModule=!0,t.default=function(e,t){return(0,i.default)(e).getComputedStyle(e,t)};var i=r(n("2b04a8293ca4578c18d6"));e.exports=t.default},"1ebcdfdd3cf14e7665e4":function(e,t,n){(function(e,r){var i;!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,u=36,f=1,l=26,h=38,d=700,p=72,b=128,m="-",g=/^xn--/,y=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-f,A=Math.floor,E=String.fromCharCode;function k(e){throw new RangeError(w[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function x(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(v,".")).split("."),t).join(".")}function M(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=E((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=E(e)}).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,n){var r=0;for(e=n?A(e/d):e>>1,e+=A(e/t);e>_*l>>1;r+=u)e=A(e/_);return A(r+(_+1)*e/(e+h))}function R(e){var t,n,r,i,o,a,s,h,d,g,y,v=[],w=e.length,_=0,E=b,S=p;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&k("not-basic"),v.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=w&&k("invalid-input"),((h=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:u)>=u||h>A((c-_)/a))&&k("overflow"),_+=h*a,!(h<(d=s<=S?f:s>=S+l?l:s-S));s+=u)a>A(c/(g=u-d))&&k("overflow"),a*=g;S=I(_-o,t=v.length+1,0==o),A(_/t)>c-E&&k("overflow"),E+=A(_/t),_%=t,v.splice(_++,0,E)}return T(v)}function O(e){var t,n,r,i,o,a,s,h,d,g,y,v,w,_,S,x=[];for(v=(e=M(e)).length,t=b,n=0,o=p,a=0;a=t&&yA((c-n)/(w=r+1))&&k("overflow"),n+=(s-t)*w,t=s,a=0;ac&&k("overflow"),y==t){for(h=n,d=u;!(h<(g=d<=o?f:d>=o+l?l:d-o));d+=u)S=h-g,_=u-g,x.push(E(C(g+S%_,0))),h=A(S/_);x.push(E(C(h,0))),o=I(n,w,r==i),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:M,encode:T},decode:R,encode:O,toASCII:function(e){return x(e,function(e){return y.test(e)?"xn--"+O(e):e})},toUnicode:function(e){return x(e,function(e){return g.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n("f586cf5b9f4b7719b2c1")(e),n("698d75b157f24ae829cc"))},"1ef5eae0d45731e89b6f":function(e,t,n){var r=n("28e5655f45e616ffe40b"),i=n("22387c0eaba857444dfb"),o=n("eedc997fc37971b68c9e"),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},"1f525de318eab50b099e":function(e,t,n){(function(r,i){var o;!function(){"use strict";var a="input is invalid type",s="object"===typeof window,c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var u=!s&&"object"===typeof self;!c.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node?c=i:u&&(c=self);var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,l=n("8d79a051c62e24e12733"),h=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],m=[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],g=[224,256,384,512],y=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var _=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},A=function(e,t,n){return function(r,i){return new N(e,t,i).update(r)[n]()}},E=function(e,t,n){return function(t,r,i,o){return T["cshake"+e].update(t,r,i,o)[n]()}},k=function(e,t,n){return function(t,r,i,o){return T["kmac"+e].update(t,r,i,o)[n]()}},S=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function j(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!h||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,f=0,l=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=r-s,this.block=o[u],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!h||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t===0&&(D(n),o=0)}return i&&(e=n[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n===0&&D(r)}return o&&(e=s<<2,t=r[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},j.prototype=new N,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var D=function(e){var t,n,r,i,o,a,s,c,u,f,l,h,d,p,b,g,y,v,w,_,A,E,k,S,x,M,T,C,I,R,O,P,B,L,N,j,D,U,F,z,H,q,K,V,W,G,Y,X,Z,J,Q,$,ee,te,ne,re,ie,oe,ae,se,ce,ue,fe;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|u>>>31),n=o^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|l>>>31),n=s^(l<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(h<<1|d>>>31),n=u^(d<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=l^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,X=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,P=e[45]<<29|e[44]>>>3,B=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,x=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~g&v,e[1]=b^~y&w,e[10]=S^~M&C,e[11]=x^~T&I,e[20]=L^~j&U,e[21]=N^~D&F,e[30]=V^~G&X,e[31]=W^~Y&Z,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=g^~v&_,e[3]=y^~w&A,e[12]=M^~C&R,e[13]=T^~I&O,e[22]=j^~U&z,e[23]=D^~F&H,e[32]=G^~X&J,e[33]=Y^~Z&Q,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&E,e[5]=w^~A&k,e[14]=C^~R&P,e[15]=I^~O&B,e[24]=U^~z&q,e[25]=F^~H&K,e[34]=X^~J&$,e[35]=Z^~Q&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&fe,e[6]=_^~E&p,e[7]=A^~k&b,e[16]=R^~P&S,e[17]=O^~B&x,e[26]=z^~q&L,e[27]=H^~K&N,e[36]=J^~$&V,e[37]=Q^~ee&W,e[46]=se^~ue&te,e[47]=ce^~fe&ne,e[8]=E^~p&g,e[9]=k^~b&y,e[18]=P^~S&M,e[19]=B^~x&T,e[28]=q^~L&j,e[29]=K^~N&D,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=ue^~te&re,e[49]=fe^~ne&ie,e[0]^=m[r],e[1]^=m[r+1]};if(f)e.exports=T;else{for(I=0;I>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,e.keys,a)}},c.prototype._update=function(e,t,n,r){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,a=h}o.rip(s,a,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var a=n,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],f=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(u,f),h=a;a=(s^o.permute(l))>>>0,s=h}o.rip(a,s,r,i)}},"218c389e3d0b75bca757":function(e,t,n){"use strict";t.__esModule=!0,t.createDispatchHook=o,t.useDispatch=void 0;var r=n("085535a1e09c30d8db5e"),i=n("4760a01b6c67caab9dfd");function o(e){void 0===e&&(e=r.ReactReduxContext);var t=e===r.ReactReduxContext?i.useStore:(0,i.createStoreHook)(e);return function(){return t().dispatch}}var a=o();t.useDispatch=a},"22387c0eaba857444dfb":function(e,t){e.exports=function(e){return function(t){return e(t)}}},"2397dbc450c023236f3b":function(e,t,n){var r=n("72ca0ca8b7eb1507494d");e.exports=function(e){return(new r).update(e).digest()}},"23e265bbe74d0845d4bd":function(e,t,n){"use strict";var r=n("8af190b70a6bc55c6f1b");t.a=Object(r.createContext)({})},"24831e2678d71cb6efa0":function(e,t,n){"use strict";var r=n("4960a7fd8d0b5271852b"),i=n("fe04f3dffedf971443f1"),o=n("0f580c41ac367a80ba16"),a=n("211fd82c6bca0d6b48ef");function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},"24d42505b97f4ef85063":function(e,t){e.exports=function(){}},"251bc7afe8127e09149d":function(e,t,n){e.exports={default:n("973cc8eefc59931de95e"),__esModule:!0}},"25e1921963c7117dbb7a":function(e,t){e.exports=window.crypto},"265cb81de9af4d9048a0":function(e,t,n){"use strict";var r=n("a07bfecaef33297c14e6"),i=n("6b713e1e899429e34fce"),o=n("cd9ec63fd8cdb8e5b124"),a=n("d9d2579da940a6d9dfb8"),s=n("1d79085d09e474f6642d"),c=o.assert,u=n("609c741d84a707512825"),f=n("31075cf638be5c03b5b0");function l(e){if(!(this instanceof l))return new l(e);"string"===typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new u(this,e)},l.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(t.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,n,o){"object"===typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new r(1)),h=0;;h++){var d=o.k?o.k(h):new r(u.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(l)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=d.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new f({r:m,s:g,recoveryParam:y})}}}}}},l.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),l=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),l)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,n.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},l.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,a=new r(e),s=t.r,u=t.s,l=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var d=t.r.invm(o),p=o.sub(a).mul(d).umod(o),b=u.mul(d).umod(o);return this.g.mulAdd(p,s,b)},l.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},"26766f36e18b1fc89f1b":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useRef)(null);return(0,r.useEffect)(function(){t.current=e}),t.current};var r=n("8af190b70a6bc55c6f1b")},"2696e10840d8d66e2be9":function(e,t,n){"use strict";var r=n("4960a7fd8d0b5271852b"),i=n("fe04f3dffedf971443f1");function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,u){var f=0,l=t;return f+=(l=l+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,u){return t+r+o+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},"26b9c59acec1595afa89":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},"273f72481dcb9e1dd38d":function(e,t,n){const r=n("ea6d81bc53aa8fb1ffc7");t.cidV0ToV1Base32=(e=>{let t=new r(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")})},"2745d39c4812a9ff6886":function(e,t,n){var r=n("a3fa61d2dea776bd4f63"),i=n("79c0715e3c3852e7dc60"),o=n("bc43132c0196ad5009d3"),a=n("cfa0e7e5bf6d013bdd1e");function s(e,t,n,o,a){var s=[].slice.call(arguments,1),c=s.length,u="function"===typeof s[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=o=void 0):2!==c||t.getContext||(o=n,n=t,t=void 0),new Promise(function(r,a){try{var s=i.create(n,o);r(e(s,t,o))}catch(e){a(e)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=t,t=o=void 0):3===c&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{var f=i.create(n,o);a(null,e(f,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},"279f1c7ef5f95c5d63e2":function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"27bdb30bc120dc809e8f":function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},"27f61890603953b946f7":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},"287b95738704806f900d":function(e,t,n){"use strict";var r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s=/^(?:0|[1-9]\d*)$/;function c(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var u=Object.prototype,f=u.hasOwnProperty,l=u.toString,h=u.propertyIsEnumerable,d=Math.max;function p(e,t){var n=_(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&A(e)}(e)&&f.call(e,"callee")&&(!h.call(e,"callee")||l.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=E(e)?l.call(e):"";return t==o||t==a}(e)}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var k,S=(k=function(e,t,n,r){!function(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=k.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!E(n))return!1;var r=typeof t;return!!("number"==r?A(n)&&v(t,n.length):"string"==r&&t in n)&&w(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n=r)this.stopReconnecting(e,this.getTooManyFailedReconnectsMessage());else{var o=i(e);"boolean"===typeof o?this.handleWillReconnect(o,e,"Provided shouldReconnect() returned false. Closing permanently."):o.then(function(n){t.isClosed||t.handleWillReconnect(n,e,"Provided shouldReconnect() resolved to false. Closing permanently.")})}}},e.prototype.handleError=function(e){this.dispatchEventOfType("error",e),this.debugLog("WebSocket encountered an error.")},e.prototype.handleWillReconnect=function(e,t,n){e?this.reconnect():this.stopReconnecting(t,n)},e.prototype.reconnect=function(){var e=this,t=this.options,n=t.minReconnectDelay,r=t.maxReconnectDelay,i=t.reconnectBackoffFactor;this.reconnectCount++;var o=this.nextRetryTime;this.nextRetryTime=Math.max(n,Math.min(this.nextRetryTime*i,r)),setTimeout(function(){return e.openNewWebSocket()},o);var a=o/1e3|0;this.debugLog("WebSocket was closed. Re-opening in "+a+" seconds.")},e.prototype.stopReconnecting=function(e,t){this.debugLog(t),this.shutdown(),this.dispatchEventOfType("close",e)},e.prototype.shutdown=function(){this.isClosed=!0,this.clearAllTimeouts(),this.messageBuffer=[]},e.prototype.clearAllTimeouts=function(){this.clearConnectTimeout(),this.clearAllClearTimeout()},e.prototype.clearConnectTimeout=function(){null!=this.connectTimeoutId&&(clearTimeout(this.connectTimeoutId),this.connectTimeoutId=void 0)},e.prototype.clearAllClearTimeout=function(){null!=this.allClearTimeoutId&&(clearTimeout(this.allClearTimeoutId),this.allClearTimeoutId=void 0)},e.prototype.dispatchEventOfType=function(e,t){var n=this;switch(e){case"close":this.onclose&&this.onclose(t);break;case"error":this.onerror&&this.onerror(t);break;case"message":this.onmessage&&this.onmessage(t);break;case"open":this.onopen&&this.onopen(t);break;case"down":this.ondown&&this.ondown(t);break;case"reopen":this.onreopen&&this.onreopen(t)}return e in this.listeners&&this.listeners[e].slice().forEach(function(e){return n.callListener(e,t)}),!t||!t.defaultPrevented},e.prototype.callListener=function(e,t){"function"===typeof e?e.call(this,t):e.handleEvent.call(this,t)},e.prototype.debugLog=function(e){this.options.debug&&console.log(e)},e.prototype.getTooManyFailedReconnectsMessage=function(){var e,t=this.options.maxReconnectAttempts;return"Failed to reconnect after "+t+" "+(e="attempt",1===t?e:e+"s")+". Closing permanently."},e.DEFAULT_OPTIONS={allClearResetTime:5e3,connectTimeout:5e3,debug:!1,minReconnectDelay:1e3,maxReconnectDelay:3e4,maxReconnectAttempts:Number.POSITIVE_INFINITY,reconnectBackoffFactor:1.5,shouldReconnect:function(){return!0},wsConstructor:void 0},e.CONNECTING=0,e.OPEN=1,e.CLOSING=2,e.CLOSED=3,e}();t.default=n}));class T{static create(...e){return new this(...e)}mixIn(e){return Object.assign(this,e)}clone(){const e=new this.constructor;return Object.assign(e,this),e}}class C extends T{constructor(e=[],t=4*e.length){super();let n=e;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){const e=n.byteLength,t=[];for(let r=0;r>>2]|=n[r]<<24-r%4*8;this.words=t,this.sigBytes=e}else this.words=e,this.sigBytes=t}static random(e){const t=[],n=e=>{let t=e,n=987654321;const r=4294967295;return()=>{let e=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return e/=4294967296,(e+=.5)*(Math.random()>.5?1:-1)}};for(let r,i=0;i>>2]>>>24-e%4*8&255;t[r+e>>>2]|=i<<24-(r+e)%4*8}else for(let e=0;e>>2]=n[e>>>2];return this.sigBytes+=i,this}clamp(){const{words:e,sigBytes:t}=this;e[t>>>2]&=4294967295<<32-t%4*8,e.length=Math.ceil(t/4)}clone(){const e=super.clone.call(this);return e.words=this.words.slice(0),e}}const I={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let e=0;e>>2]>>>24-e%4*8&255;r.push((n>>>4).toString(16)),r.push((15&n).toString(16))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new C(n,t/2)}},R={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let e=0;e>>2]>>>24-e%4*8&255;r.push(String.fromCharCode(n))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new C(n,t)}},O={stringify(e){try{return decodeURIComponent(escape(R.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:e=>R.parse(unescape(encodeURIComponent(e)))};class P extends T{constructor(){super(),this._minBufferSize=0}reset(){this._data=new C,this._nDataBytes=0}_append(e){let t=e;"string"===typeof t&&(t=O.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(e){let t;const{_data:n,blockSize:r}=this,i=n.words,o=n.sigBytes;let a=o/(4*r);const s=(a=e?Math.ceil(a):Math.max((0|a)-this._minBufferSize,0))*r,c=Math.min(4*s,o);if(s){for(let e=0;enew e(n).finalize(t)}static _createHmacHelper(e){return(t,n)=>new L(e,n).finalize(t)}reset(){super.reset.call(this),this._doReset()}update(e){return this._append(e),this._process(),this}finalize(e){return e&&this._append(e),this._doFinalize()}}class L extends T{constructor(e,t){super();const n=new e;this._hasher=n;let r=t;"string"===typeof r&&(r=O.parse(r));const i=n.blockSize,o=4*i;r.sigBytes>o&&(r=n.finalize(t)),r.clamp();const a=r.clone();this._oKey=a;const s=r.clone();this._iKey=s;const c=a.words,u=s.words;for(let e=0;e>>2]>>>24-e%4*8&255)<<16|(t[e+1>>>2]>>>24-(e+1)%4*8&255)<<8|t[e+2>>>2]>>>24-(e+2)%4*8&255;for(let t=0;t<4&&e+.75*t>>6*(3-t)&63))}const o=r.charAt(64);if(o)for(;i.length%4;)i.push(o);return i.join("")},parse(e){let t=e.length;const n=this._map;let r=this._reverseMap;if(!r){this._reverseMap=[],r=this._reverseMap;for(let e=0;e{const r=[];let i=0;for(let o=0;o>>6-o%4*2;r[i>>>2]|=t<<24-i%4*8,i+=1}return C.create(r,i)})(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},F=[];for(let e=0;e<64;e+=1)F[e]=4294967296*Math.abs(Math.sin(e+1))|0;const z=(e,t,n,r,i,o,a)=>{const s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t},H=(e,t,n,r,i,o,a)=>{const s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t},q=(e,t,n,r,i,o,a)=>{const s=e+(t^n^r)+i+a;return(s<>>32-o)+t},K=(e,t,n,r,i,o,a)=>{const s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t};class V extends B{_doReset(){this._hash=new C([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(e,t){const n=e;for(let r=0;r<16;r+=1){const i=t+r,o=e[i];n[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}const r=this._hash.words,i=n[t+0],o=n[t+1],a=n[t+2],s=n[t+3],c=n[t+4],u=n[t+5],f=n[t+6],l=n[t+7],h=n[t+8],d=n[t+9],p=n[t+10],b=n[t+11],m=n[t+12],g=n[t+13],y=n[t+14],v=n[t+15];let w=r[0],_=r[1],A=r[2],E=r[3];w=z(w,_,A,E,i,7,F[0]),E=z(E,w,_,A,o,12,F[1]),A=z(A,E,w,_,a,17,F[2]),_=z(_,A,E,w,s,22,F[3]),w=z(w,_,A,E,c,7,F[4]),E=z(E,w,_,A,u,12,F[5]),A=z(A,E,w,_,f,17,F[6]),_=z(_,A,E,w,l,22,F[7]),w=z(w,_,A,E,h,7,F[8]),E=z(E,w,_,A,d,12,F[9]),A=z(A,E,w,_,p,17,F[10]),_=z(_,A,E,w,b,22,F[11]),w=z(w,_,A,E,m,7,F[12]),E=z(E,w,_,A,g,12,F[13]),A=z(A,E,w,_,y,17,F[14]),_=z(_,A,E,w,v,22,F[15]),w=H(w,_,A,E,o,5,F[16]),E=H(E,w,_,A,f,9,F[17]),A=H(A,E,w,_,b,14,F[18]),_=H(_,A,E,w,i,20,F[19]),w=H(w,_,A,E,u,5,F[20]),E=H(E,w,_,A,p,9,F[21]),A=H(A,E,w,_,v,14,F[22]),_=H(_,A,E,w,c,20,F[23]),w=H(w,_,A,E,d,5,F[24]),E=H(E,w,_,A,y,9,F[25]),A=H(A,E,w,_,s,14,F[26]),_=H(_,A,E,w,h,20,F[27]),w=H(w,_,A,E,g,5,F[28]),E=H(E,w,_,A,a,9,F[29]),A=H(A,E,w,_,l,14,F[30]),_=H(_,A,E,w,m,20,F[31]),w=q(w,_,A,E,u,4,F[32]),E=q(E,w,_,A,h,11,F[33]),A=q(A,E,w,_,b,16,F[34]),_=q(_,A,E,w,y,23,F[35]),w=q(w,_,A,E,o,4,F[36]),E=q(E,w,_,A,c,11,F[37]),A=q(A,E,w,_,l,16,F[38]),_=q(_,A,E,w,p,23,F[39]),w=q(w,_,A,E,g,4,F[40]),E=q(E,w,_,A,i,11,F[41]),A=q(A,E,w,_,s,16,F[42]),_=q(_,A,E,w,f,23,F[43]),w=q(w,_,A,E,d,4,F[44]),E=q(E,w,_,A,m,11,F[45]),A=q(A,E,w,_,v,16,F[46]),_=q(_,A,E,w,a,23,F[47]),w=K(w,_,A,E,i,6,F[48]),E=K(E,w,_,A,l,10,F[49]),A=K(A,E,w,_,y,15,F[50]),_=K(_,A,E,w,u,21,F[51]),w=K(w,_,A,E,m,6,F[52]),E=K(E,w,_,A,s,10,F[53]),A=K(A,E,w,_,p,15,F[54]),_=K(_,A,E,w,o,21,F[55]),w=K(w,_,A,E,h,6,F[56]),E=K(E,w,_,A,v,10,F[57]),A=K(A,E,w,_,f,15,F[58]),_=K(_,A,E,w,g,21,F[59]),w=K(w,_,A,E,c,6,F[60]),E=K(E,w,_,A,b,10,F[61]),A=K(A,E,w,_,a,15,F[62]),_=K(_,A,E,w,d,21,F[63]),r[0]=r[0]+w|0,r[1]=r[1]+_|0,r[2]=r[2]+A|0,r[3]=r[3]+E|0}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;const i=Math.floor(n/4294967296),o=n;t[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(t.length+1),this._process();const a=this._hash,s=a.words;for(let e=0;e<4;e+=1){const t=s[e];s[e]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}return a}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const W=B._createHelper(V),G=B._createHmacHelper(V);class Y extends T{constructor(e){super(),this.cfg=Object.assign(new T,{keySize:4,hasher:V,iterations:1},e)}compute(e,t){let n;const{cfg:r}=this,i=r.hasher.create(),o=C.create(),a=o.words,{keySize:s,iterations:c}=r;for(;a.length"string"===typeof e?ae:ie;return{encrypt:(n,r,i)=>t(r).encrypt(e,n,r,i),decrypt:(n,r,i)=>t(r).decrypt(e,n,r,i)}}reset(){super.reset.call(this),this._doReset()}process(e){return this._append(e),this._process()}finalize(e){return e&&this._append(e),this._doFinalize()}}X._ENC_XFORM_MODE=1,X._DEC_XFORM_MODE=2;class Z extends X{constructor(...e){super(...e),this.blockSize=1}_doFinalize(){return this._process(!0)}}class J extends T{constructor(e,t){super(),this._cipher=e,this._iv=t}static createEncryptor(e,t){return this.Encryptor.create(e,t)}static createDecryptor(e,t){return this.Decryptor.create(e,t)}}function Q(e,t,n){const r=e;let i;const o=this._iv;o?(i=o,this._iv=void 0):i=this._prevBlock;for(let e=0;e>>2];t.sigBytes-=n}};class te extends X{constructor(e,t,n){super(e,t,Object.assign({mode:$,padding:ee},n)),this.blockSize=4}reset(){let e;super.reset.call(this);const{cfg:t}=this,{iv:n,mode:r}=t;this._xformMode===this.constructor._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e}_doProcessBlock(e,t){this._mode.processBlock(e,t)}_doFinalize(){let e;const{padding:t}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e}}class ne extends T{constructor(e){super(),this.mixIn(e)}toString(e){return(e||this.formatter).stringify(this)}}const re={stringify(e){let t;const{ciphertext:n,salt:r}=e;return(t=r?C.create([1398893684,1701076831]).concat(r).concat(n):n).toString(U)},parse(e){let t;const n=U.parse(e),r=n.words;return 1398893684===r[0]&&1701076831===r[1]&&(t=C.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),ne.create({ciphertext:n,salt:t})}};class ie extends T{static encrypt(e,t,n,r){const i=Object.assign(new T,this.cfg,r),o=e.createEncryptor(n,i),a=o.finalize(t),s=o.cfg;return ne.create({ciphertext:a,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:o.blockSize,formatter:i.format})}static decrypt(e,t,n,r){let i=t;const o=Object.assign(new T,this.cfg,r);return i=this._parse(i,o.format),e.createDecryptor(n,o).finalize(i.ciphertext)}static _parse(e,t){return"string"===typeof e?t.parse(e,this):e}}ie.cfg=Object.assign(new T,{format:re});const oe={execute(e,t,n,r){let i=r;i||(i=C.random(8));const o=Y.create({keySize:t+n}).compute(e,i),a=C.create(o.words.slice(t),4*n);return o.sigBytes=4*t,ne.create({key:o,iv:a,salt:i})}};class ae extends ie{static encrypt(e,t,n,r){const i=Object.assign(new T,this.cfg,r),o=i.kdf.execute(n,e.keySize,e.ivSize);i.iv=o.iv;const a=ie.encrypt.call(this,e,t,o.key,i);return a.mixIn(o),a}static decrypt(e,t,n,r){let i=t;const o=Object.assign(new T,this.cfg,r);i=this._parse(i,o.format);const a=o.kdf.execute(n,e.keySize,e.ivSize,i.salt);return o.iv=a.iv,ie.decrypt.call(this,e,i,a.key,o)}}ae.cfg=Object.assign(ie.cfg,{kdf:oe});const se=e=>e<<8&4278255360|e>>>8&16711935,ce={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let e=0;e>>2]>>>16-e%4*8&65535;r.push(String.fromCharCode(n))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r>>1]|=e.charCodeAt(r)<<16-r%2*16;return C.create(n,2*t)}},ue=ce,fe={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let e=0;e>>2]>>>16-e%4*8&65535);r.push(String.fromCharCode(n))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r>>1]|=se(e.charCodeAt(r)<<16-r%2*16);return C.create(n,2*t)}},le=[];class he extends B{_doReset(){this._hash=new C([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];for(let n=0;n<80;n+=1){if(n<16)le[n]=0|e[t+n];else{const e=le[n-3]^le[n-8]^le[n-14]^le[n-16];le[n]=e<<1|e>>>31}let c=(r<<5|r>>>27)+s+le[n];c+=n<20?1518500249+(i&o|~i&a):n<40?1859775393+(i^o^a):n<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=c}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const de=B._createHelper(he),pe=B._createHmacHelper(he),be=[],me=[],ge=e=>{const t=Math.sqrt(e);for(let n=2;n<=t;n+=1)if(!(e%n))return!1;return!0},ye=e=>4294967296*(e-(0|e))|0;let ve=2,we=0;for(;we<64;)ge(ve)&&(we<8&&(be[we]=ye(ve**.5)),me[we]=ye(ve**(1/3)),we+=1),ve+=1;const _e=[];class Ae extends B{_doReset(){this._hash=new C(be.slice(0))}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],u=n[6],f=n[7];for(let n=0;n<64;n+=1){if(n<16)_e[n]=0|e[t+n];else{const e=_e[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=_e[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;_e[n]=t+_e[n-7]+i+_e[n-16]}const l=r&i^r&o^i&o,h=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),d=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&u)+me[n]+_e[n];f=u,u=c,c=s,s=a+d|0,a=o,o=i,i=r,r=d+(h+l)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+f|0}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Ee=B._createHelper(Ae),ke=B._createHmacHelper(Ae);class Se extends Ae{_doReset(){this._hash=new C([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const e=super._doFinalize.call(this);return e.sigBytes-=4,e}}const xe=Ae._createHelper(Se),Me=Ae._createHmacHelper(Se),Te=[new j(1116352408,3609767458),new j(1899447441,602891725),new j(3049323471,3964484399),new j(3921009573,2173295548),new j(961987163,4081628472),new j(1508970993,3053834265),new j(2453635748,2937671579),new j(2870763221,3664609560),new j(3624381080,2734883394),new j(310598401,1164996542),new j(607225278,1323610764),new j(1426881987,3590304994),new j(1925078388,4068182383),new j(2162078206,991336113),new j(2614888103,633803317),new j(3248222580,3479774868),new j(3835390401,2666613458),new j(4022224774,944711139),new j(264347078,2341262773),new j(604807628,2007800933),new j(770255983,1495990901),new j(1249150122,1856431235),new j(1555081692,3175218132),new j(1996064986,2198950837),new j(2554220882,3999719339),new j(2821834349,766784016),new j(2952996808,2566594879),new j(3210313671,3203337956),new j(3336571891,1034457026),new j(3584528711,2466948901),new j(113926993,3758326383),new j(338241895,168717936),new j(666307205,1188179964),new j(773529912,1546045734),new j(1294757372,1522805485),new j(1396182291,2643833823),new j(1695183700,2343527390),new j(1986661051,1014477480),new j(2177026350,1206759142),new j(2456956037,344077627),new j(2730485921,1290863460),new j(2820302411,3158454273),new j(3259730800,3505952657),new j(3345764771,106217008),new j(3516065817,3606008344),new j(3600352804,1432725776),new j(4094571909,1467031594),new j(275423344,851169720),new j(430227734,3100823752),new j(506948616,1363258195),new j(659060556,3750685593),new j(883997877,3785050280),new j(958139571,3318307427),new j(1322822218,3812723403),new j(1537002063,2003034995),new j(1747873779,3602036899),new j(1955562222,1575990012),new j(2024104815,1125592928),new j(2227730452,2716904306),new j(2361852424,442776044),new j(2428436474,593698344),new j(2756734187,3733110249),new j(3204031479,2999351573),new j(3329325298,3815920427),new j(3391569614,3928383900),new j(3515267271,566280711),new j(3940187606,3454069534),new j(4118630271,4000239992),new j(116418474,1914138554),new j(174292421,2731055270),new j(289380356,3203993006),new j(460393269,320620315),new j(685471733,587496836),new j(852142971,1086792851),new j(1017036298,365543100),new j(1126000580,2618297676),new j(1288033470,3409855158),new j(1501505948,4234509866),new j(1607167915,987167468),new j(1816402316,1246189591)],Ce=[];for(let e=0;e<80;e+=1)Ce[e]=new j;class Ie extends B{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new D([new j(1779033703,4089235720),new j(3144134277,2227873595),new j(1013904242,4271175723),new j(2773480762,1595750129),new j(1359893119,2917565137),new j(2600822924,725511199),new j(528734635,4215389547),new j(1541459225,327033209)])}_doProcessBlock(e,t){const n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],u=n[6],f=n[7],l=r.high;let h=r.low;const d=i.high;let p=i.low;const b=o.high;let m=o.low;const g=a.high;let y=a.low;const v=s.high;let w=s.low;const _=c.high;let A=c.low;const E=u.high;let k=u.low;const S=f.high;let x=f.low,M=l,T=h,C=d,I=p,R=b,O=m,P=g,B=y,L=v,N=w,j=_,D=A,U=E,F=k,z=S,H=x;for(let n=0;n<80;n+=1){let r,i;const o=Ce[n];if(n<16)o.high=0|e[t+2*n],i=o.high,o.low=0|e[t+2*n+1],r=o.low;else{const e=Ce[n-15],t=e.high,a=e.low,s=(t>>>1|a<<31)^(t>>>8|a<<24)^t>>>7,c=(a>>>1|t<<31)^(a>>>8|t<<24)^(a>>>7|t<<25),u=Ce[n-2],f=u.high,l=u.low,h=(f>>>19|l<<13)^(f<<3|l>>>29)^f>>>6,d=(l>>>19|f<<13)^(l<<3|f>>>29)^(l>>>6|f<<26),p=Ce[n-7],b=p.high,m=p.low,g=Ce[n-16],y=g.high,v=g.low;i=(i=(i=s+b+((r=c+m)>>>0>>0?1:0))+h+((r+=d)>>>0>>0?1:0))+y+((r+=v)>>>0>>0?1:0),o.high=i,o.low=r}const a=L&j^~L&U,s=N&D^~N&F,c=M&C^M&R^C&R,u=T&I^T&O^I&O,f=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),l=(T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7),h=(L>>>14|N<<18)^(L>>>18|N<<14)^(L<<23|N>>>9),d=(N>>>14|L<<18)^(N>>>18|L<<14)^(N<<23|L>>>9),p=Te[n],b=p.high,m=p.low;let g=H+d,y=z+h+(g>>>0>>0?1:0);const v=l+u;z=U,H=F,U=j,F=D,j=L,D=N,L=P+(y=(y=(y=y+a+((g+=s)>>>0>>0?1:0))+b+((g+=m)>>>0>>0?1:0))+i+((g+=r)>>>0>>0?1:0))+((N=B+g|0)>>>0>>0?1:0)|0,P=R,B=O,R=C,O=I,C=M,I=T,M=y+(f+c+(v>>>0>>0?1:0))+((T=g+v|0)>>>0>>0?1:0)|0}r.low=h+T,h=r.low,r.high=l+M+(h>>>0>>0?1:0),i.low=p+I,p=i.low,i.high=d+C+(p>>>0>>0?1:0),o.low=m+O,m=o.low,o.high=b+R+(m>>>0>>0?1:0),a.low=y+B,y=a.low,a.high=g+P+(y>>>0>>0?1:0),s.low=w+N,w=s.low,s.high=v+L+(w>>>0>>0?1:0),c.low=A+D,A=c.low,c.high=_+j+(A>>>0>>0?1:0),u.low=k+F,k=u.low,u.high=E+U+(k>>>0>>0?1:0),f.low=x+H,x=f.low,f.high=S+z+(x>>>0>>0?1:0)}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Re=B._createHelper(Ie),Oe=B._createHmacHelper(Ie);class Pe extends Ie{_doReset(){this._hash=new D([new j(3418070365,3238371032),new j(1654270250,914150663),new j(2438529370,812702999),new j(355462360,4144912697),new j(1731405415,4290775857),new j(2394180231,1750603025),new j(3675008525,1694076839),new j(1203062813,3204075428)])}_doFinalize(){const e=super._doFinalize.call(this);return e.sigBytes-=16,e}}const Be=Ie._createHelper(Pe),Le=Ie._createHmacHelper(Pe),Ne=[],je=[],De=[];let Ue=1,Fe=0;for(let e=0;e<24;e+=1){Ne[Ue+5*Fe]=(e+1)*(e+2)/2%64;const t=(2*Ue+3*Fe)%5;Ue=Fe%5,Fe=t}for(let e=0;e<5;e+=1)for(let t=0;t<5;t+=1)je[e+5*t]=t+(2*e+3*t)%5*5;let ze=1;for(let e=0;e<24;e+=1){let t=0,n=0;for(let e=0;e<7;e+=1){if(1&ze){const r=(1<>>24)|4278255360&(r<<24|r>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);const a=n[i];a.high^=o,a.low^=r}for(let e=0;e<24;e+=1){for(let e=0;e<5;e+=1){let t=0,r=0;for(let i=0;i<5;i+=1){const o=n[e+5*i];t^=o.high,r^=o.low}const i=He[e];i.high=t,i.low=r}for(let e=0;e<5;e+=1){const t=He[(e+4)%5],r=He[(e+1)%5],i=r.high,o=r.low,a=t.high^(i<<1|o>>>31),s=t.low^(o<<1|i>>>31);for(let t=0;t<5;t+=1){const r=n[e+5*t];r.high^=a,r.low^=s}}for(let e=1;e<25;e+=1){let t,r;const i=n[e],o=i.high,a=i.low,s=Ne[e];s<32?(t=o<>>32-s,r=a<>>32-s):(t=a<>>64-s,r=o<>>64-s);const c=He[je[e]];c.high=t,c.low=r}const t=He[0],r=n[0];t.high=r.high,t.low=r.low;for(let e=0;e<5;e+=1)for(let t=0;t<5;t+=1){const r=e+5*t,i=n[r],o=He[r],a=He[(e+1)%5+5*t],s=He[(e+2)%5+5*t];i.high=o.high^~a.high&s.high,i.low=o.low^~a.low&s.low}const i=n[0],o=De[e];i.high^=o.high,i.low^=o.low}}_doFinalize(){const e=this._data,t=e.words,n=8*e.sigBytes,r=32*this.blockSize;t[n>>>5]|=1<<24-n%32,t[(Math.ceil((n+1)/r)*r>>>5)-1]|=128,e.sigBytes=4*t.length,this._process();const i=this._state,o=this.cfg.outputLength/8,a=o/8,s=[];for(let e=0;e>>24)|4278255360&(n<<24|n>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),s.push(r),s.push(n)}return new C(s,o)}clone(){const e=super.clone.call(this);e._state=this._state.slice(0);const t=e._state;for(let e=0;e<25;e+=1)t[e]=t[e].clone();return e}}const Ke=B._createHelper(qe),Ve=B._createHmacHelper(qe),We=C.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Ge=C.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Ye=C.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Xe=C.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Ze=C.create([0,1518500249,1859775393,2400959708,2840853838]),Je=C.create([1352829926,1548603684,1836072691,2053994217,0]),Qe=(e,t,n)=>e^t^n,$e=(e,t,n)=>e&t|~e&n,et=(e,t,n)=>(e|~t)^n,tt=(e,t,n)=>e&n|t&~n,nt=(e,t,n)=>e^(t|~n),rt=(e,t)=>e<>>32-t;class it extends B{_doReset(){this._hash=C.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(e,t){const n=e;for(let e=0;e<16;e+=1){const r=t+e,i=n[r];n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}const r=this._hash.words,i=Ze.words,o=Je.words,a=We.words,s=Ge.words,c=Ye.words,u=Xe.words;let f,l=r[0],h=r[1],d=r[2],p=r[3],b=r[4],m=r[0],g=r[1],y=r[2],v=r[3],w=r[4];for(let e=0;e<80;e+=1)f=l+n[t+a[e]]|0,f+=e<16?Qe(h,d,p)+i[0]:e<32?$e(h,d,p)+i[1]:e<48?et(h,d,p)+i[2]:e<64?tt(h,d,p)+i[3]:nt(h,d,p)+i[4],f=(f=rt(f|=0,c[e]))+b|0,l=b,b=p,p=rt(d,10),d=h,h=f,f=m+n[t+s[e]]|0,f+=e<16?nt(g,y,v)+o[0]:e<32?tt(g,y,v)+o[1]:e<48?et(g,y,v)+o[2]:e<64?$e(g,y,v)+o[3]:Qe(g,y,v)+o[4],f=(f=rt(f|=0,u[e]))+w|0,m=w,w=v,v=rt(y,10),y=g,g=f;f=r[1]+d+v|0,r[1]=r[2]+p+w|0,r[2]=r[3]+b+m|0,r[3]=r[4]+l+g|0,r[4]=r[0]+h+y|0,r[0]=f}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();const i=this._hash,o=i.words;for(let e=0;e<5;e+=1){const t=o[e];o[e]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}return i}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const ot=B._createHelper(it),at=B._createHmacHelper(it);class st extends T{constructor(e){super(),this.cfg=Object.assign(new T,{keySize:4,hasher:he,iterations:1},e)}compute(e,t){const{cfg:n}=this,r=L.create(n.hasher,e),i=C.create(),o=C.create([1]),a=i.words,s=o.words,{keySize:c,iterations:u}=n;for(;a.length>>8^255&e^99,ct[vt]=e,ut[e]=vt;const t=yt[vt],n=yt[t],r=yt[n];let i=257*yt[e]^16843008*e;ft[vt]=i<<24|i>>>8,lt[vt]=i<<16|i>>>16,ht[vt]=i<<8|i>>>24,dt[vt]=i,i=16843009*r^65537*n^257*t^16843008*vt,pt[e]=i<<24|i>>>8,bt[e]=i<<16|i>>>16,mt[e]=i<<8|i>>>24,gt[e]=i,vt?(vt=t^yt[yt[yt[r^t]]],wt^=yt[yt[wt]]):vt=wt=1}const _t=[0,1,2,4,8,16,32,64,128,27,54];class At extends te{constructor(...e){super(...e),this.keySize=8}_doReset(){let e;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const t=this._keyPriorReset,n=t.words,r=t.sigBytes/4;this._nRounds=r+6;const i=4*(this._nRounds+1);this._keySchedule=[];const o=this._keySchedule;for(let t=0;t6&&t%r===4&&(e=ct[e>>>24]<<24|ct[e>>>16&255]<<16|ct[e>>>8&255]<<8|ct[255&e]):(e=ct[(e=e<<8|e>>>24)>>>24]<<24|ct[e>>>16&255]<<16|ct[e>>>8&255]<<8|ct[255&e],e^=_t[t/r|0]<<24),o[t]=o[t-r]^e);this._invKeySchedule=[];const a=this._invKeySchedule;for(let t=0;t>>24]]^bt[ct[e>>>16&255]]^mt[ct[e>>>8&255]]^gt[ct[255&e]]}}encryptBlock(e,t){this._doCryptBlock(e,t,this._keySchedule,ft,lt,ht,dt,ct)}decryptBlock(e,t){const n=e;let r=n[t+1];n[t+1]=n[t+3],n[t+3]=r,this._doCryptBlock(n,t,this._invKeySchedule,pt,bt,mt,gt,ut),r=n[t+1],n[t+1]=n[t+3],n[t+3]=r}_doCryptBlock(e,t,n,r,i,o,a,s){const c=e,u=this._nRounds;let f=c[t]^n[0],l=c[t+1]^n[1],h=c[t+2]^n[2],d=c[t+3]^n[3],p=4;for(let e=1;e>>24]^i[l>>>16&255]^o[h>>>8&255]^a[255&d]^n[p];p+=1;const t=r[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&f]^n[p];p+=1;const s=r[h>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^n[p];p+=1;const c=r[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&h]^n[p];p+=1,f=e,l=t,h=s,d=c}const b=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[p];p+=1;const m=(s[l>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^n[p];p+=1;const g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[p];p+=1;const y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&h])^n[p];p+=1,c[t]=b,c[t+1]=m,c[t+2]=g,c[t+3]=y}}const Et=te._createHelper(At),kt=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],St=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],xt=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Mt=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Tt=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Ct(e,t){const n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<>>5]>>>31-r%32&1}this._subKeys=[];const n=this._subKeys;for(let e=0;e<16;e+=1){n[e]=[];const r=n[e],i=xt[e];for(let e=0;e<24;e+=1)r[e/6|0]|=t[(St[e]-1+i)%28]<<31-e%6,r[4+(e/6|0)]|=t[28+(St[e+24]-1+i)%28]<<31-e%6;r[0]=r[0]<<1|r[0]>>>31;for(let e=1;e<7;e+=1)r[e]>>>=4*(e-1)+3;r[7]=r[7]<<5|r[7]>>>27}this._invSubKeys=[];const r=this._invSubKeys;for(let e=0;e<16;e+=1)r[e]=n[15-e]}encryptBlock(e,t){this._doCryptBlock(e,t,this._subKeys)}decryptBlock(e,t){this._doCryptBlock(e,t,this._invSubKeys)}_doCryptBlock(e,t,n){const r=e;this._lBlock=e[t],this._rBlock=e[t+1],Ct.call(this,4,252645135),Ct.call(this,16,65535),It.call(this,2,858993459),It.call(this,8,16711935),Ct.call(this,1,1431655765);for(let e=0;e<16;e+=1){const t=n[e],r=this._lBlock,i=this._rBlock;let o=0;for(let e=0;e<8;e+=1)o|=Mt[e][((i^t[e])&Tt[e])>>>0];this._lBlock=i,this._rBlock=r^o}const i=this._lBlock;this._lBlock=this._rBlock,this._rBlock=i,Ct.call(this,1,1431655765),It.call(this,8,16711935),It.call(this,2,858993459),Ct.call(this,16,65535),Ct.call(this,4,252645135),r[t]=this._lBlock,r[t+1]=this._rBlock}}const Ot=te._createHelper(Rt);class Pt extends te{constructor(...e){super(...e),this.keySize=6,this.ivSize=2,this.blockSize=2}_doReset(){const e=this._key.words;this._des1=Rt.createEncryptor(C.create(e.slice(0,2))),this._des2=Rt.createEncryptor(C.create(e.slice(2,4))),this._des3=Rt.createEncryptor(C.create(e.slice(4,6)))}encryptBlock(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)}decryptBlock(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)}}const Bt=te._createHelper(Pt),Lt=[],Nt=[],jt=[];function Dt(){const e=this._X,t=this._C;for(let e=0;e<8;e+=1)Nt[e]=t[e];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(let n=0;n<8;n+=1){const r=e[n]+t[n],i=65535&r,o=r>>>16,a=((i*i>>>17)+i*o>>>15)+o*o,s=((4294901760&r)*r|0)+((65535&r)*r|0);jt[n]=a^s}e[0]=jt[0]+(jt[7]<<16|jt[7]>>>16)+(jt[6]<<16|jt[6]>>>16)|0,e[1]=jt[1]+(jt[0]<<8|jt[0]>>>24)+jt[7]|0,e[2]=jt[2]+(jt[1]<<16|jt[1]>>>16)+(jt[0]<<16|jt[0]>>>16)|0,e[3]=jt[3]+(jt[2]<<8|jt[2]>>>24)+jt[1]|0,e[4]=jt[4]+(jt[3]<<16|jt[3]>>>16)+(jt[2]<<16|jt[2]>>>16)|0,e[5]=jt[5]+(jt[4]<<8|jt[4]>>>24)+jt[3]|0,e[6]=jt[6]+(jt[5]<<16|jt[5]>>>16)+(jt[4]<<16|jt[4]>>>16)|0,e[7]=jt[7]+(jt[6]<<8|jt[6]>>>24)+jt[5]|0}class Ut extends Z{constructor(...e){super(...e),this.blockSize=4,this.ivSize=2}_doReset(){const e=this._key.words,{iv:t}=this.cfg;for(let t=0;t<4;t+=1)e[t]=16711935&(e[t]<<8|e[t]>>>24)|4278255360&(e[t]<<24|e[t]>>>8);this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];const n=this._X;this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];const r=this._C;this._b=0;for(let e=0;e<4;e+=1)Dt.call(this);for(let e=0;e<8;e+=1)r[e]^=n[e+4&7];if(t){const e=t.words,n=e[0],i=e[1],o=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=o>>>16|4294901760&a,c=a<<16|65535&o;r[0]^=o,r[1]^=s,r[2]^=a,r[3]^=c,r[4]^=o,r[5]^=s,r[6]^=a,r[7]^=c;for(let e=0;e<4;e+=1)Dt.call(this)}}_doProcessBlock(e,t){const n=e,r=this._X;Dt.call(this),Lt[0]=r[0]^r[5]>>>16^r[3]<<16,Lt[1]=r[2]^r[7]>>>16^r[5]<<16,Lt[2]=r[4]^r[1]>>>16^r[7]<<16,Lt[3]=r[6]^r[3]>>>16^r[1]<<16;for(let e=0;e<4;e+=1)Lt[e]=16711935&(Lt[e]<<8|Lt[e]>>>24)|4278255360&(Lt[e]<<24|Lt[e]>>>8),n[t+e]^=Lt[e]}}const Ft=Z._createHelper(Ut),zt=[],Ht=[],qt=[];function Kt(){const e=this._X,t=this._C;for(let e=0;e<8;e+=1)Ht[e]=t[e];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(let n=0;n<8;n+=1){const r=e[n]+t[n],i=65535&r,o=r>>>16,a=((i*i>>>17)+i*o>>>15)+o*o,s=((4294901760&r)*r|0)+((65535&r)*r|0);qt[n]=a^s}e[0]=qt[0]+(qt[7]<<16|qt[7]>>>16)+(qt[6]<<16|qt[6]>>>16)|0,e[1]=qt[1]+(qt[0]<<8|qt[0]>>>24)+qt[7]|0,e[2]=qt[2]+(qt[1]<<16|qt[1]>>>16)+(qt[0]<<16|qt[0]>>>16)|0,e[3]=qt[3]+(qt[2]<<8|qt[2]>>>24)+qt[1]|0,e[4]=qt[4]+(qt[3]<<16|qt[3]>>>16)+(qt[2]<<16|qt[2]>>>16)|0,e[5]=qt[5]+(qt[4]<<8|qt[4]>>>24)+qt[3]|0,e[6]=qt[6]+(qt[5]<<16|qt[5]>>>16)+(qt[4]<<16|qt[4]>>>16)|0,e[7]=qt[7]+(qt[6]<<8|qt[6]>>>24)+qt[5]|0}class Vt extends Z{constructor(...e){super(...e),this.blockSize=4,this.ivSize=2}_doReset(){const e=this._key.words,{iv:t}=this.cfg;this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];const n=this._X;this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];const r=this._C;this._b=0;for(let e=0;e<4;e+=1)Kt.call(this);for(let e=0;e<8;e+=1)r[e]^=n[e+4&7];if(t){const e=t.words,n=e[0],i=e[1],o=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=o>>>16|4294901760&a,c=a<<16|65535&o;r[0]^=o,r[1]^=s,r[2]^=a,r[3]^=c,r[4]^=o,r[5]^=s,r[6]^=a,r[7]^=c;for(let e=0;e<4;e+=1)Kt.call(this)}}_doProcessBlock(e,t){const n=e,r=this._X;Kt.call(this),zt[0]=r[0]^r[5]>>>16^r[3]<<16,zt[1]=r[2]^r[7]>>>16^r[5]<<16,zt[2]=r[4]^r[1]>>>16^r[7]<<16,zt[3]=r[6]^r[3]>>>16^r[1]<<16;for(let e=0;e<4;e+=1)zt[e]=16711935&(zt[e]<<8|zt[e]>>>24)|4278255360&(zt[e]<<24|zt[e]>>>8),n[t+e]^=zt[e]}}const Wt=Z._createHelper(Vt);function Gt(){const e=this._S;let t=this._i,n=this._j,r=0;for(let i=0;i<4;i+=1){n=(n+e[t=(t+1)%256])%256;const o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}class Yt extends Z{constructor(...e){super(...e),this.keySize=8,this.ivSize=0}_doReset(){const e=this._key,t=e.words,n=e.sigBytes;this._S=[];const r=this._S;for(let e=0;e<256;e+=1)r[e]=e;for(let e=0,i=0;e<256;e+=1){const o=e%n,a=t[o>>>2]>>>24-o%4*8&255;i=(i+r[e]+a)%256;const s=r[e];r[e]=r[i],r[i]=s}this._j=0,this._i=this._j}_doProcessBlock(e,t){e[t]^=Gt.call(this)}}const Xt=Z._createHelper(Yt);class Zt extends Yt{constructor(...e){super(...e),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let e=this.cfg.drop;e>0;e-=1)Gt.call(this)}}const Jt=Z._createHelper(Zt);function Qt(e,t,n,r){const i=e;let o;const a=this._iv;a?(o=a.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(let e=0;e{let t=e;if(255===(e>>24&255)){let n=e>>16&255,r=e>>8&255,i=255&e;255===n?(n=0,255===r?(r=0,255===i?i=0:i+=1):r+=1):n+=1,t=0,t+=n<<16,t+=r<<8,t+=i}else t+=1<<24;return t};class nn extends J{}nn.Encryptor=class extends nn{processBlock(e,t){const n=e,r=this._cipher,{blockSize:i}=r,o=this._iv;let a=this._counter;o&&(this._counter=o.slice(0),a=this._counter,this._iv=void 0),(e=>{const t=e;t[0]=tn(t[0]),0===t[0]&&(t[1]=tn(t[1]))})(a);const s=a.slice(0);r.encryptBlock(s,0);for(let e=0;e>>2];t.sigBytes-=n}},sn={pad(e,t){const n=e,r=4*t;n.clamp(),n.sigBytes+=r-(e.sigBytes%r||r)},unpad(e){const t=e,n=t.words;for(let e=t.sigBytes-1;e>=0;e-=1)if(n[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},cn={pad(e,t){e.concat(C.create([2147483648],1)),sn.pad(e,t)},unpad(e){const t=e;sn.unpad(t),t.sigBytes-=1}},un={stringify:e=>e.ciphertext.toString(I),parse(e){const t=I.parse(e);return ne.create({ciphertext:t})}};var fn={lib:{Base:T,WordArray:C,BufferedBlockAlgorithm:P,Hasher:B,Cipher:X,StreamCipher:Z,BlockCipherMode:J,BlockCipher:te,CipherParams:ne,SerializableCipher:ie,PasswordBasedCipher:ae},x64:{Word:j,WordArray:D},enc:{Hex:I,Latin1:R,Utf8:O,Utf16:ue,Utf16BE:ce,Utf16LE:fe,Base64:U},algo:{HMAC:L,MD5:V,SHA1:he,SHA224:Se,SHA256:Ae,SHA384:Pe,SHA512:Ie,SHA3:qe,RIPEMD160:it,PBKDF2:st,EvpKDF:Y,AES:At,DES:Rt,TripleDES:Pt,Rabbit:Ut,RabbitLegacy:Vt,RC4:Yt,RC4Drop:Zt},mode:{CBC:$,CFB:$t,CTR:en,CTRGladman:nn,ECB:rn,OFB:on},pad:{Pkcs7:ee,AnsiX923:{pad(e,t){const n=e,r=n.sigBytes,i=4*t,o=i-r%i,a=r+o-1;n.clamp(),n.words[a>>>2]|=o<<24-a%4*8,n.sigBytes+=o},unpad(e){const t=e,n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},Iso10126:an,Iso97971:cn,NoPadding:{pad(){},unpad(){}},ZeroPadding:sn},format:{OpenSSL:re,Hex:un},kdf:{OpenSSL:oe},MD5:W,HmacMD5:G,SHA1:de,HmacSHA1:pe,SHA224:xe,HmacSHA224:Me,SHA256:Ee,HmacSHA256:ke,SHA384:Be,HmacSHA384:Le,SHA512:Re,HmacSHA512:Oe,SHA3:Ke,HmacSHA3:Ve,RIPEMD160:ot,HmacRIPEMD160:at,PBKDF2:(e,t,n)=>st.create(n).compute(e,t),EvpKDF:(e,t,n)=>Y.create(n).compute(e,t),AES:Et,DES:Ot,TripleDES:Bt,Rabbit:Ft,RabbitLegacy:Wt,RC4:Xt,RC4Drop:Jt};const ln={bitcoin:{1:"main",2:"testnet"},ethereum:{1:"main",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan",100:"xdai"}},hn={points:150,duration:1},dn=1e4;function pn(){return{listeners:{},on:function(e,t){switch(e){case"txSent":case"txPool":case"txConfirmed":case"txSpeedUp":case"txCancel":case"txFailed":case"all":break;default:throw new Error(`${e} is not a valid event code, for a list of valid event codes see: https://github.com/blocknative/sdk`)}if("function"!==typeof t)throw new Error("Listener must be a function");this.listeners[e]=t},emit:function(e){return this.listeners[e.eventCode]?this.listeners[e.eventCode](e):this.listeners.all?this.listeners.all(e):void 0}}}function bn(e){return new Promise(t=>{setTimeout(t,e)})}var mn="2.1.5";async function gn(){for(this._processingQueue=!0,this._connected||await function(){return new Promise(e=>{const t=setInterval(()=>{this._connected&&(setTimeout(e,100),clearInterval(t))})})}.bind(this)();this._queuedMessages.length>0;){await bn(1),null!==this._waitToRetry&&(await this._waitToRetry,this._waitToRetry=null);const e=this._queuedMessages.shift(),t=this._limitRules.duration/this._limitRules.points*1e3;await bn(t),this._socket.send(e)}this._processingQueue=!1,this._limitRules=hn}function yn(e){return JSON.stringify({timeStamp:new Date,dappId:this._dappId,version:mn,blockchain:{system:this._system,network:(t=this._system,n=this._networkId,ln[t][n]||"local")},...e});var t,n}function vn(e){const{name:t,value:n,type:r,optional:i,customValidation:o}=e;if(!i&&"undefined"===typeof n)throw new Error(`"${t}" is required`);if("undefined"!==typeof n&&("array"===r?Array.isArray(r):typeof n!==r))throw new Error(`"${t}" must be of type: ${r}, received type: ${typeof n} from value: ${n}`);if("undefined"!==typeof n&&o&&!o(n))throw new Error(`"${n}" is not a valid "${t}"`)}function wn(e){vn({name:"sdk options",value:e,type:"object"});const{dappId:t,system:n,name:r,networkId:i,transactionHandlers:o,apiUrl:a,ws:s,onopen:c,ondown:u,onreopen:f,onerror:l,onclose:h,...d}=e;!function(e,t,n){const r=Object.keys(e);if(r.length>0)throw new Error(`${r[0]} is not a valid parameter for ${n}, must be one of the following valid parameters: ${t.join(", ")}`)}(d,["dappId","system","name","networkId","transactionHandlers","apiUrl","ws","onopen","ondown","onreopen","onerror","onclose"],"Initialization Options"),vn({name:"dappId",value:t,type:"string"}),vn({name:"system",value:n,type:"string",optional:!0,customValidation:_n}),vn({name:"name",value:r,type:"string",optional:!0}),vn({name:"networkId",value:i,type:"number"}),vn({name:"transactionHandler",value:o,type:"array",optional:!0}),o&&o.forEach(e=>vn({name:"transactionHandler",value:e,type:"function"})),vn({name:"apiUrl",value:a,type:"string",optional:!0}),vn({name:"ws",value:s,type:"function",optional:!0}),vn({name:"onopen",value:c,type:"function",optional:!0}),vn({name:"ondown",value:u,type:"function",optional:!0}),vn({name:"onreopen",value:f,type:"function",optional:!0}),vn({name:"onerror",value:l,type:"function",optional:!0}),vn({name:"onclose",value:h,type:"function",optional:!0})}function _n(e){return!!ln[e]}const An="unknown",En="ethereum";e.exports=class{constructor(e){wn(e);const{dappId:t,system:n=En,name:r=An,networkId:i,transactionHandlers:o=[],apiUrl:a,ws:s,onopen:c,ondown:u,onreopen:f,onerror:l,onclose:h}=e,d=new M(a||"wss://api.blocknative.com/v0",s?{wsConstructor:s}:{});d.onopen=function(e){this._connected=!0;const t={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(yn.bind(this)(t)),this._heartbeat&&this._heartbeat(),e&&e()}.bind(this,c),d.ondown=function(e,t){this._connected=!1,e&&e(t),this._pingTimeout&&clearTimeout(this._pingTimeout)}.bind(this,u),d.onreopen=function(e){this._connected=!0;const t={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(yn.bind(this)(t)),this._watchedAccounts.forEach(e=>{this._sendMessage({eventCode:"accountAddress",categoryCode:"watch",account:{address:e.address}})}),e&&e(),this._socket.ws.on&&(this._socket.ws.on("ping",()=>{this._heartbeat&&this._heartbeat()}),this._heartbeat())}.bind(this,f),d.onmessage=function(e){const{status:t,reason:n,event:r,connectionId:i,retryMs:o,limitRules:a,blockedMsg:s}=JSON.parse(e.data);if(i&&("undefined"!==typeof window&&window.localStorage.setItem(this._storageKey,i),this._connectionId=i),"error"===t){if(n.includes("ratelimit"))return this._waitToRetry=bn(o),this._limitRules=a,void(s&&this._queuedMessages.unshift(s));if(n.includes("not a valid API key")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("network not supported")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("maximum allowed amount")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("invalid txid")){const e=`${r.transaction.txid} is an invalid txid`;if(this._onerror)return void this._onerror({message:e,transaction:r.transaction.txid});throw new Error(e)}if(n.includes("invalid hash")){const e=`${r.transaction.hash} is an invalid transaction hash`;if(this._onerror)return void this._onerror({message:e,transaction:r.transaction.hash});throw new Error(e)}if(n.includes("invalid address")){const e=`${r.account.address} is an invalid address`;if(this._onerror)return void this._onerror({message:e,account:r.account.address});throw new Error(e)}if(n.includes("not a valid Bitcoin")){if(this._onerror)return void this._onerror({message:n,account:r.account.address});throw new Error(n)}if(n.includes("not a valid Ethereum")){if(this._onerror)return void this._onerror({message:n,account:r.account.address});throw new Error(n)}if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(r&&r.transaction){const{transaction:e,eventCode:t,contractCall:n}=r,i="ethereum"===this._system?{...e,eventCode:t,contractCall:n}:{...e,eventCode:t};if(function(e){switch(e){case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txSent":return!0;default:return!1}}(t)||"unsubscribed"===e.status)return;"txSpeedUp"!==t&&"txCancel"!==t||(this._watchedTransactions=this._watchedTransactions.map(t=>(t.hash===e.originalHash&&(t.hash=e.hash||e.txid),t)));const o=e.watchedAddress&&"ethereum"===this._system?e.watchedAddress.toLowerCase():e.watchedAddress;if(o){const e=this._watchedAccounts.find(e=>e.address===o),t=!!e&&e.emitters.map(e=>e.emit(i)).reverse()[0];this._transactionHandlers.forEach(e=>e({transaction:i,emitterResult:t}))}else{const t=this._watchedTransactions.find(t=>t.hash===e.hash||e.txid),n=t&&t.emitter.emit(i);this._transactionHandlers.forEach(e=>e({transaction:i,emitterResult:n}))}}}.bind(this),d.onerror=(e=>l&&l({message:"There was a WebSocket error",error:e})),d.onclose=(()=>{this._pingTimeout&&clearInterval(this._pingTimeout),h&&h()});const p=fn.SHA1(`${t} - ${r}`).toString(),b="undefined"!==typeof window&&window.localStorage.getItem(p);this._storageKey=p,this._connectionId=b||void 0,this._dappId=t,this._system=n,this._networkId=i,this._transactionHandlers=o,this._socket=d,this._connected=!1,this._sendMessage=function(e){if(this._queuedMessages.length>dn)throw new Error(`Queue limit of ${dn} messages has been reached.`);this._queuedMessages.push(yn.bind(this)(e)),this._processingQueue||this._processQueue()}.bind(this),this._watchedTransactions=[],this._watchedAccounts=[],this._pingTimeout=void 0,this._destroyed=!1,this._onerror=l,this._queuedMessages=[],this._limitRules=hn,this._waitToRetry=null,this._processingQueue=!1,this._processQueue=gn.bind(this),this._socket.ws.on&&(this._heartbeat=(()=>{this._pingTimeout&&clearTimeout(this._pingTimeout),this._pingTimeout=setTimeout(()=>{this._socket.ws.terminate()},31e3)}),this._socket.ws.on("ping",()=>{this._heartbeat&&this._heartbeat()})),this.transaction=function(e,t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const n=Date.now(),r=pn();this._watchedTransactions.push({hash:e,emitter:r});const i={["ethereum"===this._system?"hash":"txid"]:e,id:t||e,startTime:n,status:"sent"},o={...i,eventCode:"txSent"};this._sendMessage({eventCode:"txSent",categoryCode:"activeTransaction",transaction:i});const a={details:i,emitter:r};return setTimeout(function(){const e=r.emit(o);this._transactionHandlers.forEach(t=>t({transaction:o,emitterResult:e}))}.bind(this),5),a}.bind(this),this.account=function(e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");e="ethereum"===this._system?e.toLowerCase():e;const t=pn(),n=this._watchedAccounts.find(t=>t.address===e);return n?n.emitters.push(t):this._watchedAccounts.push({address:e,emitters:[t]}),this._sendMessage({eventCode:"watch",categoryCode:"accountAddress",account:{address:e}}),{emitter:t,details:{address:e}}}.bind(this),this.event=function(e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");this._sendMessage(e)}.bind(this),this.unsubscribe=function(e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const t=function(e,t){switch(e){case"ethereum":return 42===t.length;case"bitcoin":return 64!==t.length;default:return!1}}(this._system,e),n=function(e,t){switch(e){case"ethereum":return 66===t.length;case"bitcoin":return 64===t.length;default:return!1}}(this._system,e);if(t){const t="ethereum"===this._system?e.toLowerCase():e;this._watchedAccounts=this._watchedAccounts.filter(e=>e.address!==t),this._sendMessage({categoryCode:"accountAddress",eventCode:"unwatch",account:{address:t}})}else{if(!n)throw new Error(`Error trying to unsubscribe ${e}: not a valid address or transaction id/hash`);this._watchedTransactions=this._watchedTransactions.filter(t=>t.hash!==e),this._sendMessage({categoryCode:"activeTransaction",eventCode:"unwatch",transaction:{["ethereum"===this._system?"hash":"txid"]:e,id:e,status:"unsubscribed"}})}}.bind(this),this.destroy=(()=>{this._socket.close(),this._destroyed=!0,this._socket.onclose()})}}},"28e0dc130b48033271cd":function(e,t,n){"use strict";const r=n("c1c68a67b6dd8ac33c9a"),i=n("0aee128eff49bddfb2e5"),o=n("51f83bcfb0238b91f880"),a=n("f81c0be8eadac623cc0d"),s=n("bce7d3f715085d063460"),c=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new r(t[0],t[1],t[2],t[3]),e),{}),f=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:f}},"28e5655f45e616ffe40b":function(e,t,n){var r=n("67042e57ad02a5947bc9"),i=n("84696c4e387dcb8648dc"),o=n("4b93c5a7bb60dd6ab0f4"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},"290267cf091edefb265a":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.bnToRlp=t.bnToHex=void 0;var r=n("f0704254f0db71ce9ad3");t.bnToHex=function(e){return"0x"+e.toString(16)},t.bnToRlp=function(t){return r.unpadBuffer(t.toArrayLike(e))}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"2922084a62018edd8713":function(e,t,n){"use strict";var r=n("a51274b1fd6eeadd35ea").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"===typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i(e[t[0]]=new r(t[0],t[1],t[2],t[3]),e),{}),f=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:f}},"2ad94bb5adcd1c269a8a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("98bae3dbabd51089d613");r.__exportStar(n("b12c125562d7278c7874"),t),r.__exportStar(n("beb2bd341476b1987596"),t),r.__exportStar(n("efa6863c94f5cc444ec1"),t),r.__exportStar(n("4de9ec7bd92b53190f40"),t),r.__exportStar(n("1b2e841ab0021fc2bc9d"),t),r.__exportStar(n("e1b92b6a66e51ef1c59d"),t),r.__exportStar(n("87e05d0f3f2817b318b8"),t),r.__exportStar(n("46586594bad005adb9e5"),t),r.__exportStar(n("bb118944b06139b04e74"),t),r.__exportStar(n("6a71f797a2af5b764be1"),t)},"2aec7b6edb2a47e3521f":function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,u,f,l){switch(n){case 1:if(0===f&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===l?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},"2b046254e5fa7a2b1a9c":function(e,t,n){"use strict";e.exports=f;var r=n("a51274b1fd6eeadd35ea").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n("fd68801b86164acd6cad");function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"2c1309667d4d861e6729":function(e,t){const n="Impossible case. Please create issue.",r="The tweak was out of range or the resulted private key is invalid",i="The tweak was out of range or equal to zero",o="Unknow error on context randomization",a="Private Key is invalid",s="Public Key could not be parsed",c="Public Key serialization error",u="The sum of the public keys is not valid",f="Signature could not be parsed",l="The nonce generation function failed, or the private key was invalid",h="Public key could not be recover",d="Scalar was invalid (zero or overflow)";function p(e,t){if(!e)throw new Error(t)}function b(e,t,n){if(p(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;p(n.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${n}`;p(t.length===n,r)}}function m(e){p("Boolean"===y(e),"Expected compressed to be a Boolean")}function g(e=(e=>new Uint8Array(e)),t){return"function"===typeof e&&(e=e(t)),b("output",e,t),e}function y(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=(e=>({contextRandomize(t){switch(p(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&b("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(o)}},privateKeyVerify:t=>(b("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(b("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(n)}},privateKeyTweakAdd(t,n){switch(b("private key",t,32),b("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(r)}},privateKeyTweakMul(t,n){switch(b("private key",t,32),b("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(i)}},publicKeyVerify:t=>(b("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,n=!0,r){switch(b("private key",t,32),m(n),r=g(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error(a);case 2:throw new Error(c)}},publicKeyConvert(t,n=!0,r){switch(b("public key",t,[33,65]),m(n),r=g(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(c)}},publicKeyNegate(t,r=!0,i){switch(b("public key",t,[33,65]),m(r),i=g(i,r?33:65),e.publicKeyNegate(i,t)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(n);case 3:throw new Error(c)}},publicKeyCombine(t,n=!0,r){p(Array.isArray(t),"Expected public keys to be an Array"),p(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)b("public key",e,[33,65]);switch(m(n),r=g(r,n?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(u);case 3:throw new Error(c)}},publicKeyTweakAdd(t,n,i=!0,o){switch(b("public key",t,[33,65]),b("tweak",n,32),m(i),o=g(o,i?33:65),e.publicKeyTweakAdd(o,t,n)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(r)}},publicKeyTweakMul(t,n,r=!0,o){switch(b("public key",t,[33,65]),b("tweak",n,32),m(r),o=g(o,r?33:65),e.publicKeyTweakMul(o,t,n)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(i)}},signatureNormalize(t){switch(b("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(f)}},signatureExport(t,r){b("signature",t,64);const i={output:r=g(r,72),outputlen:72};switch(e.signatureExport(i,t)){case 0:return r.slice(0,i.outputlen);case 1:throw new Error(f);case 2:throw new Error(n)}},signatureImport(t,r){switch(b("signature",t),r=g(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(f);case 2:throw new Error(n)}},ecdsaSign(t,r,i={},o){b("message",t,32),b("private key",r,32),p("Object"===y(i),"Expected options to be an Object"),void 0!==i.data&&b("options.data",i.data),void 0!==i.noncefn&&p("Function"===y(i.noncefn),"Expected options.noncefn to be a Function");const a={signature:o=g(o,64),recid:null};switch(e.ecdsaSign(a,t,r,i.data,i.noncefn)){case 0:return a;case 1:throw new Error(l);case 2:throw new Error(n)}},ecdsaVerify(t,n,r){switch(b("signature",t,64),b("message",n,32),b("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(f);case 2:throw new Error(s)}},ecdsaRecover(t,r,i,o=!0,a){switch(b("signature",t,64),p("Number"===y(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),b("message",i,32),m(o),a=g(a,o?33:65),e.ecdsaRecover(a,t,r,i)){case 0:return a;case 1:throw new Error(f);case 2:throw new Error(h);case 3:throw new Error(n)}},ecdh(t,n,r={},i){switch(b("public key",t,[33,65]),b("private key",n,32),p("Object"===y(r),"Expected options to be an Object"),void 0!==r.data&&b("options.data",r.data),void 0!==r.hashfn?(p("Function"===y(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&b("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&b("options.ybuf",r.ybuf,32),b("output",i)):i=g(i,32),e.ecdh(i,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(d)}}}))},"2c2fac339096e8b7a59c":function(e){e.exports={name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",eip:{url:"https://eips.ethereum.org/EIPS/eip-1716",status:"Draft"},gasConfig:{},gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}},vm:{},pow:{},casper:{},sharding:{}}},"2c62cf50f9b98ad5e2af":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;tthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((t=n[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[g-7]+d(n[g-15])+n[g-16];for(var y=0;y<64;++y){var v=m+h(c)+u(c,p,b)+a[y]+n[y]|0,w=l(r)+f(r,i,o)|0;m=b,b=p,p=c,c=s+v|0,s=o,o=i,i=r,r=v+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},"2d67a27b13cbd947c696":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("3ed231ea62f55d83a124");t.Web3RequestCanceledMessage=function(e){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},"2dae4c8e2fd74d28b434":function(e,t){e.exports=function e(t,o,a){o=o||[];a=a||0;var s=a;for(;t>=i;)o[a++]=255&t|n,t/=128;for(;t&r;)o[a++]=255&t|n,t>>>=7;o[a]=0|t;e.bytes=a-s+1;return o};var n=128,r=-128,i=Math.pow(2,31)},"2e0db585714c31a92f8f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listen=t.log=void 0;let r=0;const i=[];t.log=((e,t,n)=>{const o={type:e,id:String(++r),date:new Date};t&&(o.message=t),n&&(o.data=n),function(e){for(let t=0;t(i.push(e),()=>{const t=i.indexOf(e);-1!==t&&(i[t]=i[i.length-1],i.pop())});t.listen=o,"undefined"!==typeof window&&(window.__ledgerLogsListen=o)},"2e1858096926ab02a3c1":function(e,t,n){e.exports=n.p+"6feab952cf49b02691706705199cf5ae.otf"},"2e95f5634638146423a4":function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r2)&&!(t1?e[n+r-2]<<8:0);if(!(t<(n+=r)+i)&&!(t32||t1&&0===t[o]&&!(128&t[o+1]);--n,++o);for(var a=r.concat([r.from([0]),e.s]),s=33,c=0;s>1&&0===a[c]&&!(128&a[c+1]);--s,++c);return i.encode(t.slice(o),a.slice(c))},t.signatureImport=function(e){var t=r.alloc(32,0),n=r.alloc(32,0);try{var o=i.decode(e);if(33===o.r.length&&0===o.r[0]&&(o.r=o.r.slice(1)),o.r.length>32)throw new Error("R length is too long");if(33===o.s.length&&0===o.s[0]&&(o.s=o.s.slice(1)),o.s.length>32)throw new Error("S length is too long")}catch(e){return}return o.r.copy(t,32-o.r.length),o.s.copy(n,32-o.s.length),{r:t,s:n}},t.signatureImportLax=function(e){var t=r.alloc(32,0),n=r.alloc(32,0),i=e.length,o=0;if(48===e[o++]){var a=e[o++];if(!(128&a&&(o+=a-128)>i)&&2===e[o++]){var s=e[o++];if(128&s){if(o+(a=s-128)>i)return;for(;a>0&&0===e[o];o+=1,a-=1);for(s=0;a>0;o+=1,a-=1)s=(s<<8)+e[o]}if(!(s>i-o)){var c=o;if(o+=s,2===e[o++]){var u=e[o++];if(128&u){if(o+(a=u-128)>i)return;for(;a>0&&0===e[o];o+=1,a-=1);for(u=0;a>0;o+=1,a-=1)u=(u<<8)+e[o]}if(!(u>i-o)){var f=o;for(o+=u;s>0&&0===e[c];s-=1,c+=1);if(!(s>32)){var l=e.slice(c,c+s);for(l.copy(t,32-l.length);u>0&&0===e[f];u-=1,f+=1);if(!(u>32)){var h=e.slice(f,f+u);return h.copy(n,32-h.length),{r:t,s:n}}}}}}}}}},"2ec4d61eff9e98aa4d25":function(e){e.exports={identity:0,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}},"2f714534e29d3799b245":function(e,t){function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),c=r.margin*a,u=[r.color.light,r.color.dark],f=0;f=c&&l>=c&&f4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;if(o+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;var u=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var f=c(e,n);if(!1===f)return!1;if(e.length!==f+n.place)return!1;var l=e.slice(n.place,f+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new r(u),this.s=new r(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];f(r,t.length),(r=r.concat(t)).push(2),f(r,n.length);var o=r.concat(n),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},"31ffa001e1d0724a622b":function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},"3206dbe3062061507140":function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var t,r={},i=n(e).split("\n"),o=0;o(class n extends r{constructor(t,n,r,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,n){if(!t.isBuffer(e)&&"string"!==typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}))}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"338925cb06cf612d4a9c":function(e,t,n){!function(t){"use strict";function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t255)return!1;return!0}function i(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var s=function(){return{toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}}}(),c=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],n=0;n>4]+e[15&i])}return n.join("")}}}(),u={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],A=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],k=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],n=0;n>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,c=i;c>16&255]<<24^l[a>>8&255]<<16^l[255&a]<<8^l[a>>24&255]^f[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^l[a>>16&255]<<16^l[a>>24&255]<<24;for(t=i/2+1;t>2,d=c%4,this._Ke[h][d]=o[t],this._Kd[e-h][d]=o[t++],c++}for(var h=1;h>24&255]^A[a>>16&255]^E[a>>8&255]^k[255&a]},x.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=S(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var a=1;a>24&255]^p[r[(i+1)%4]>>16&255]^b[r[(i+2)%4]>>8&255]^m[255&r[(i+3)%4]]^this._Ke[a][i];r=n.slice()}var s,c=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],c[4*i]=255&(l[r[i]>>24&255]^s>>24),c[4*i+1]=255&(l[r[(i+1)%4]>>16&255]^s>>16),c[4*i+2]=255&(l[r[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(l[255&r[(i+3)%4]]^s);return c},x.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=S(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var a=1;a>24&255]^y[r[(i+3)%4]>>16&255]^v[r[(i+2)%4]>>8&255]^w[255&r[(i+1)%4]]^this._Kd[a][i];r=n.slice()}var s,c=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],c[4*i]=255&(h[r[i]>>24&255]^s>>24),c[4*i+1]=255&(h[r[(i+3)%4]>>16&255]^s>>16),c[4*i+2]=255&(h[r[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(h[255&r[(i+1)%4]]^s);return c};var M=function(e){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};M.prototype.encrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;rNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},R.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},R.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var O=function(e,t){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof R||(t=new R(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};O.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r65536){if(!i)throw new Error("Requested too many random bytes.");t(new Error("Requested too many random bytes."))}if("undefined"!==typeof r&&r.randomBytes){if(!i)return"0x"+r.randomBytes(e).toString("hex");r.randomBytes(e,function(e,n){e?t(c):t(null,"0x"+n.toString("hex"))})}else{var o;if("undefined"!==typeof r?o=r:"undefined"!==typeof msCrypto&&(o=msCrypto),o&&o.getRandomValues){var a=o.getRandomValues(new Uint8Array(e)),s="0x"+Array.from(a).map(function(e){return e.toString(16)}).join("");if(!i)return s;t(null,s)}else{var c=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.');if(!i)throw c;t(c)}}}},"347ed30c1425cbc1450a":function(e,t,n){"use strict";var r=t;r.version=n("4341f6a1aa7bb336bda2").version,r.utils=n("cd9ec63fd8cdb8e5b124"),r.rand=n("1d79085d09e474f6642d"),r.curve=n("636736b6fabc6240b357"),r.curves=n("d9d2579da940a6d9dfb8"),r.ec=n("265cb81de9af4d9048a0"),r.eddsa=n("aeb58971bd224e4723ef")},"347f714c3299a270ef84":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("f242a5dcbaaf8744166d")),o=n("e4f0dd797ff9c261fedb"),a=n("0dad2a189845766d1cd6"),s="session:id",c="session:secret",u="session:linked";class f{constructor(e,t,n,r){this._storage=e,this._id=t||i.default.randomBytes(16).toString("hex"),this._secret=n||i.default.randomBytes(32).toString("hex"),this._key=i.default.createHash("sha256").update(`${this._id}, ${this._secret} WalletLink`,"ascii").digest("hex"),this._linked=!!r}static load(e){const t=e.getItem(s),n=e.getItem(u),r=e.getItem(c);return t&&r?new f(e,t,r,"1"===n):null}static clear(e){e.removeItem(c),e.removeItem(s),e.removeItem(u)}static get persistedSessionIdChange$(){return o.fromEvent(window,"storage").pipe(a.filter(e=>e.key===s),a.map(e=>({oldValue:e.oldValue||null,newValue:e.newValue||null})))}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(c,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(u,this._linked?"1":"0")}}t.Session=f},"34832b60ba24a754a5ae":function(e){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},"34b43c5b3073cb933bc9":function(e,t,n){var r=n("18afd5aacaa9a2fdb131"),i=n("f17f5af380098c7cfee0"),o=n("0e1ad24c5fdceb40cdbc"),a=n("c604d0fbe32e2d1e48f8"),s=n("4f885fd08e52a465256a"),c=n("dc74b7e83162ad24007d"),u=n("99ca072c3fbd2596b9be"),f=n("061439ba973faa7d748f");function l(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){for(var r,i=[];null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function d(e){var t,n,i=h(c.NUMERIC,r.NUMERIC,e),o=h(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=h(c.BYTE,r.BYTE,e),n=h(c.KANJI,r.KANJI,e)):(t=h(c.BYTE_KANJI,r.BYTE,e),n=[]),i.concat(o,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function b(e,t){var n,c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(a))},t.rawSplit=function(e){return t.fromArray(d(e,u.isKanjiModeEnabled()))}},"34c86137ae623ae1134e":function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},"34dde8e37d7f7beef6b1":function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r=n("8af190b70a6bc55c6f1b"),i=(n("904692dab745c62a4572"),n("297cbf4a722e68e66e97"));function o(){return Object(r.useContext)(i.a).drizzle}function a(e){var t=Object(r.useContext)(i.a).drizzle;return t?t.contracts[e]:{}}},"3527de16c2ec961199d2":function(e,t,n){(t=e.exports=n("56fe7adecc271cd03827")).Stream=t,t.Readable=t,t.Writable=n("abc279b901095129dbb9"),t.Duplex=n("9e2b5934d8e1de6fa3a4"),t.Transform=n("6a84cd838e1868fc2219"),t.PassThrough=n("96615b202591df3279c7"),t.finished=n("3c4b0326b1785c99fbcd"),t.pipeline=n("05a41144585a26282a2a")},"3562001638983595ee40":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n("39781a14ae3d66868753"),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;Object.keys(i).forEach(function(e){t[e]=i[e]}),t.default=o},"35f635516795b536233e":function(e,t,n){},"360df82f2b17c46900cf":function(e,t,n){},"361bd4c08dcd51c14177":function(e,t,n){var r=n("99ca072c3fbd2596b9be").getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},"362e8aff09daabfb8c97":function(e,t,n){},"3683ce332367ee963487":function(e,t,n){var r,i,o,a,s;o=function e(t){var n=this,r={},i=e;i.getNumberOfInstance=function(){return i._numberOfInstance},n.enable=function(){return r.listenCodeCharSequence(),r.listenCodeGestureSequence(),r.debug&&r.debug("Listener enabled for all."),n},n.enableKeyboardKeys=function(){return r.listenCodeCharSequence(),r.debug&&r.debug("Listener enabled for Keyboard Keys."),n},n.enableTouchGesture=function(){return r.listenCodeGestureSequence(),r.debug&&r.debug("Listener enabled for Touch Gesture."),n},n.disable=function(){return r.stopCodeCharSequence(),r.stopCodeGestureSequence(),r.debug&&r.debug("Listener disabled for all."),n},n.disableKeyboardKeys=function(){return r.stopCodeCharSequence(),r.debug&&r.debug("Listener disabled for Keyboard Keys."),n},n.disableTouchGesture=function(){return r.stopCodeGestureSequence(),r.debug&&r.debug("Listener disabled for Touch Gesture."),n},n.setListener=function(e){return r.stopCodeCharSequence(),r.stopCodeGestureSequence(),r.listener=e||document,r.listenCodeCharSequence(),r.listenCodeGestureSequence(),r.debug&&r.debug("Listener changed.",e),n},n.setCallback=function(e){return r.afterCodeSequenceCallback="function"===typeof e&&e||r.defaultCallback,r.debug&&r.debug("Callback changed.",e),n},n.setOptions=function(e){return r.initOptions(e),n},r.keptLastCodeChar=function(){r.input.length>r.konamiCodeChar.length&&(r.input=r.input.substr(r.input.length-r.konamiCodeChar.length))},r.defaultCallback=function(){r.debug&&r.debug("Konami Code Sequence Entered. There is no action defined.")},r.checkIfCodeCharIsValid=function(){r.input===r.konamiCodeChar&&r.afterCodeSequenceCallback(n)},r.codeSequenceEventKeyDown=function(e){r.input+=e.keyCode,r.keptLastCodeChar(),r.checkIfCodeCharIsValid()},r.codeSequenceEventTouchMove=function(e){var t;1===e.touches.length&&!0===r.capture&&(t=e.touches[0],r.stopX=t.pageX,r.stopY=t.pageY,r.tap=!1,r.capture=!1,r.checkIfCodeGestureIsValid())},r.codeSequenceEventTouchEnd=function(){!0===r.tap&&r.checkIfCodeGestureIsValid()},r.codeSequenceEventTouchStart=function(e){r.startX=e.changedTouches[0].pageX,r.startY=e.changedTouches[0].pageY,r.tap=!0,r.capture=!0},r.stopCodeCharSequence=function(){r.listener.removeEventListener("keydown",r.codeSequenceEventKeyDown)},r.stopCodeGestureSequence=function(){r.listener.removeEventListener("touchstart",r.codeSequenceEventTouchStart),r.listener.removeEventListener("touchmove",r.codeSequenceEventTouchMove),r.listener.removeEventListener("touchend",r.codeSequenceEventTouchEnd)},r.listenCodeCharSequence=function(){r.stopCodeCharSequence(),r.listener.addEventListener("keydown",r.codeSequenceEventKeyDown)},r.listenCodeGestureSequence=function(){r.originalCodeGesture=r.konamiCodeGesture,r.stopCodeGestureSequence(),r.listener.addEventListener("touchstart",r.codeSequenceEventTouchStart),r.listener.addEventListener("touchmove",r.codeSequenceEventTouchMove),r.listener.addEventListener("touchend",r.codeSequenceEventTouchEnd,!1)},r.checkIfCodeGestureIsValid=function(){var e=Math.abs(r.startX-r.stopX),t=Math.abs(r.startY-r.stopY),i=r.startX-r.stopX<0?"rt":"lt",o=r.startY-r.stopY<0?"dn":"up",a=e>t?i:o;(a=!0===r.tap?"tp":a)===r.konamiCodeGesture.substr(0,2)?r.konamiCodeGesture=r.konamiCodeGesture.substr(2,r.konamiCodeGesture.length-2):r.konamiCodeGesture=r.originalCodeGesture,0===r.konamiCodeGesture.length&&(r.konamiCodeGesture=r.originalCodeGesture,r.afterCodeSequenceCallback(n))},r.checkDebugMode=function(e){e&&!0===e.debug?(r.debug=function(e,t){void 0!==t?console.log(e,t):console.log(e)},r.debug&&r.debug("Debug Mode On.")):r.debug=!1},r.initOptions=function(e){r.checkDebugMode(e),r.listener=e&&e.listener||document,r.afterCodeSequenceCallback="function"===typeof e&&e||e&&"function"===typeof e.callback&&e.callback||r.defaultCallback},r.init=function(){r.input="",r.konamiCodeChar="38384040373937396665",r.konamiCodeGesture="upupdndnltrtltrttptp",r.startX=0,r.startY=0,r.stopX=0,r.stopY=0,r.tap=!1,r.capture=!1,i._numberOfInstance=i._numberOfInstance?i._numberOfInstance+1:1,r.initOptions(t),r.listenCodeCharSequence(),r.listenCodeGestureSequence()},r.init()},a=(i=this).KonamiCode,(s=i.KonamiCode=o).noConflict=function(){return i.KonamiCode=a,s},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r),e.exports&&(e.exports=o)},"373a216ce84a2f1a8145":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chains=void 0,t.chains={names:{1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli"},mainnet:n("9bd645e318f6bd39dda1"),ropsten:n("6b16e83e1bfc3d54706e"),rinkeby:n("fdfcdaa898e922245515"),kovan:n("816ed35007c09e199f2a"),goerli:n("5de713425feac298ef73")}},"3744f7bcbbf01ec2518b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("771ac8d3f39d68e91f97"),i=function(e){var t=e.fromJS,n=e.merge;return function(e){var i=t({location:e.location,action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.type,s=o.payload;if(a===r.LOCATION_CHANGE){var c=s.location,u=s.action;return s.isFirstRendering?e:n(e,{location:t(c),action:u})}return e}}};t.default=i},"374b4e5c3e1384c20eb9":function(e,t,n){const r=n("2a3bbbbdc70055661f2c");function i(e){return"never"!==s(e)}function o(e){var t=a(e);return t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function a(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":return 1;case"eth_getBlockByNumber":return 0;default:return}}function s(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":return"fork";case"eth_gasPrice":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"eth_blockNumber":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":return"never"}}e.exports={cacheIdentifierForPayload:function(e,t={}){if(!i(e))return null;const{includeBlockRef:n}=t,a=n?e.params:o(e);return e.method+":"+r(a)},canCache:i,blockTagForPayload:function(e){var t=a(e);if(t>=e.params.length)return null;return e.params[t]},paramsWithoutBlockTag:o,blockTagParamIndex:a,cacheTypeForPayload:s}},"375a1c3511ec526fa498":function(e,t,n){(function(t){const{publicKeyConvert:r}=n("6ebbb9cb14b22c1d5829"),i=n("7c0f142cf4c6e80705ae"),{toChecksumAddress:o}=n("e7352f769ff0ee535249");e.exports=function(e){if(!t.isBuffer(e)){if("string"!==typeof e)throw new Error("Expected Buffer or string as argument");e="0x"===e.slice(0,2)?e.slice(2):e,e=t.from(e,"hex")}return e=r(e,!1).slice(1),o(i(e).slice(-20).toString("hex"))}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"38fb8631419e675740f5":function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},"392c77aea3e2a29e4690":function(e,t){e.exports=function(e,t){return t?{statusCode:t.statusCode,headers:t.headers,method:e.method,url:e.url,rawRequest:t.rawRequest?t.rawRequest:t}:null}},"39781a14ae3d66868753":function(e,t,n){"use strict";e.exports=n("d0d639fde30af7d98691")},"399daf718984da0bc8cb":function(e,t,n){"use strict";t.__esModule=!0,t.getBatch=t.setBatch=void 0;var r=function(e){e()};t.setBatch=function(e){return r=e};t.getBatch=function(){return r}},"3a091c20ef95aeda8c67":function(e,t,n){"use strict";t.__esModule=!0;var r=n("72662fbf7bc1f545ad12");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=r[e])});var i=n("672ea240001bc4a9abe4");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=i[e])});var o=n("b19595e2b83ffe5bff26");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=o[e])});var a=n("d6210d6864a4f93bd416");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=a[e])});var s=n("35f635516795b536233e");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=s[e])});var c=n("c8cd77b764b0d95061e2");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=c[e])});var u=n("e07dae14018f73d95562");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=u[e])});var f=n("362e8aff09daabfb8c97");Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=f[e])});var l=n("8940fd11190b7e86def6");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=l[e])});var h=n("7b75ead346e0aec36e1a");Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=h[e])});var d=n("ee09975b886a5239c49d");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=d[e])});var p=n("360df82f2b17c46900cf");Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=p[e])});var b=n("4aa2a0a0e3803f6a48de");Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=b[e])});var m=n("90294cb7bc5809844f61");Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=m[e])});var g=n("09e0f174370244ede159");Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=g[e])});var y=n("c2030bfaa8aca7abfc7c");Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=y[e])});var v=n("204a5208b2e562bc4b15");Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=v[e])});var w=n("17169632ad0bd7823c73");Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=w[e])});var _=n("20c8a772b0c3ec20fc13");Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=_[e])});var A=n("6a3055babe4aaec9c57d");Object.keys(A).forEach(function(e){"default"!==e&&"__esModule"!==e&&(t[e]=A[e])})},"3a1d55278dfea16a365e":function(e,t,n){"use strict";(function(e,r){var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)return this._url=this._parseUrl(t.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=t,this._response.on("data",function(e){return r._onHttpResponseData(t,e)}),this._response.on("end",function(){return r._onHttpResponseEnd(t)}),this._response.on("close",function(){return r._onHttpResponseClose(t)}),this.responseUrl=this._url.href.split("#")[0],this.status=t.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(t);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(n.HEADERS_RECEIVED)}},n.prototype._onHttpResponseData=function(e,t){this._response===e&&(this._responseParts.push(new r(t)),this._loadedBytes+=t.length,this.readyState!==n.LOADING&&this._setReadyState(n.LOADING),this._dispatchProgress("progress"))},n.prototype._onHttpResponseEnd=function(e){this._response===e&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(n.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},n.prototype._onHttpResponseClose=function(e){if(this._response===e){var t=this._request;this._setError(),t.abort(),this._setReadyState(n.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},n.prototype._onHttpTimeout=function(e){this._request===e&&(this._setError(),e.abort(),this._setReadyState(n.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},n.prototype._onHttpRequestError=function(e,t){this._request===e&&(this._setError(),e.abort(),this._setReadyState(n.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},n.prototype._dispatchProgress=function(e){var t=new n.ProgressEvent(e);t.lengthComputable=this._lengthComputable,t.loaded=this._loadedBytes,t.total=this._totalBytes,this.dispatchEvent(t)},n.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},n.prototype._parseUrl=function(e,t,n){var r=null==this.nodejsBaseUrl?e:f.resolve(this.nodejsBaseUrl,e),i=f.parse(r,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||t||n)&&(i.auth=(t||a||"")+":"+(n||s||"")),i},n.prototype._parseResponseHeaders=function(e){for(var t in this._responseHeaders={},e.headers){var n=t.toLowerCase();this._privateHeaders[n]||(this._responseHeaders[n]=e.headers[t])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},n.prototype._parseResponse=function(){var e=r.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=e);case"arraybuffer":this.responseText=null;for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i=0})},intToBuffer:function(e){var n=a(e);return new t(o(n.slice(2)),"hex")},getBinarySize:function(e){if("string"!==typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return t.byteLength(e,"utf8")},isHexPrefixed:r,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",n=0;n":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},"3aed455a00da3e9addf5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2ad94bb5adcd1c269a8a");t.default=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}trigger(e){let t,n=[];(t=r.isJsonRpcRequest(e)?e.method:r.isJsonRpcResponseSuccess(e)||r.isJsonRpcResponseError(e)?`response:${e.id}`:r.isInternalEvent(e)?e.event:"")&&(n=this._eventEmitters.filter(e=>e.event===t)),n&&n.length||r.isReservedEvent(t)||r.isInternalEvent(t)||(n=this._eventEmitters.filter(e=>"call_request"===e.event)),n.forEach(t=>{if(r.isJsonRpcResponseError(e)){const n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)})}}},"3b149bd02a16d8820c51":function(e,t,n){(function(e){const r=n("ea6d81bc53aa8fb1ffc7"),i=n("b31a220edd927f65f64e"),o=e=>{let t=e.slice(0,2),n=e.slice(2),r="";return r="0x"===t?n:e,i.fromHexString(r)},a={swarm:e=>{const t=i.encode(o(e),"keccak-256");return new r(1,"swarm-manifest",t).buffer},ipfs:e=>{const t=i.fromB58String(e);return new r(1,"dag-pb",t).buffer},utf8:t=>e.from(t,"utf8")},s={hexMultiHash:e=>{const t=new r(e);return i.decode(t.multihash).digest.toString("hex")},b58MultiHash:e=>{const t=new r(e);return i.toB58String(t.multihash)},utf8:e=>e.toString("utf8")},c={"swarm-ns":{encode:a.swarm,decode:s.hexMultiHash},"ipfs-ns":{encode:a.ipfs,decode:s.b58MultiHash},"ipns-ns":{encode:a.ipfs,decode:s.b58MultiHash},default:{encode:a.utf8,decode:s.utf8}};t.hexStringToBuffer=o,t.profiles=c}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"3b490762cbb2ff0e21fa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2ad94bb5adcd1c269a8a");t.default=class{constructor(){this.storageId="walletconnect"}getSession(){let e=null;const t=r.getLocal(this.storageId);return t&&r.isWalletConnectSession(t)&&(e=t),e}setSession(e){return r.setLocal(this.storageId,e),e}removeSession(){r.removeLocal(this.storageId)}}},"3b7f6bf30786f314561c":function(e,t,n){var r=n("2a70ac14784c5a859b0a"),i=n("34832b60ba24a754a5ae"),o=n("c440c99710b8ea7b6ab8"),a=n("89f9c366c489507e06bc"),s=n("ef2e23933a33c7191768"),c=n("963ef19800ff2c1c6bbc").Buffer;function u(e){var t;"object"!==typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=c.from(e));var n,u,f=o(e,t),l=f.tag,h=f.data;switch(l){case"CERTIFICATE":u=r.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=r.PublicKey.decode(h,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,h=s.pbkdf2Sync(t,n,r,l,"sha1"),d=a.createDecipheriv(o,h,u),p=[];return p.push(d.update(f)),p.push(d.final()),c.concat(p)}(h=r.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(n=(u=r.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=r.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=u,u.signature=r.signature},"3b8b60674ebcde2934bd":function(e,t){var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!==t)throw new TypeError("Bad key length")}},"3bbd72f2f136fa38a7ad":function(e,t,n){var r=n("c031845d0dca9c262c7b");e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},"3bcef96c619b42740495":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n("3a1d55278dfea16a365e"));var r=n("0026f92d1d6e2f16086a");t.XMLHttpRequestEventTarget=r.XMLHttpRequestEventTarget},"3c4b0326b1785c99fbcd":function(e,t,n){"use strict";var r=n("c42d4b9e9f9d6b9f82c0").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"===typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0&&this.tasks.length>0){this.count--;let e=this.tasks.shift();if(void 0===e)throw"Unexpected undefined value in tasks list";e()}}acquire(){return new Promise((t,r)=>{this.tasks.push(()=>{var e=!1;t(()=>{e||(e=!0,this.count++,this.sched())})}),e&&e.nextTick?e.nextTick(this.sched.bind(this)):n(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(e=>(t(),e)).catch(e=>{throw t(),e}))}}t.Semaphore=r;t.Mutex=class extends r{constructor(){super(1)}}}).call(this,n("f2ac42b6e13efe10d4bd"),n("e9aab379f407c6096333").setImmediate)},"3d514c6d979a6ce94521":function(e,t,n){"use strict";var r=n("8e6d34d5e2b1c9c449c0");t.__esModule=!0,t.defaultMergeProps=o,t.wrapMergePropsFunc=a,t.whenMergePropsIsFunction=s,t.whenMergePropsIsOmitted=c,t.default=void 0;var i=r(n("2c62cf50f9b98ad5e2af"));r(n("b452ab1ee9229ca9f134"));function o(e,t,n){return(0,i.default)({},n,e,t)}function a(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?i&&o(c,r)||(r=c):(a=!0,r=c),r}}}function s(e){return"function"===typeof e?a(e):void 0}function c(e){return e?void 0:function(){return o}}var u=[s,c];t.default=u},"3d6724b29076ba61e5c3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0;var r=n("8343e5f6d4fdf959d4d7");t.BN=r;var i=n("787b67936387d49cb10d");t.rlp=i},"3dc9242b0b1d3ebeede7":function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n("9f449f4b6172e563b7b7"),t.sha1=n("7e2ee308b435f7f64774"),t.sha224=n("aae44155514b4790a6dc"),t.sha256=n("2d6310720798d903de05"),t.sha384=n("1d29227607cfa1b9c47f"),t.sha512=n("49c5543a3e4d9ad9eda1")},"3ded86eb24abb2d61f20":function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n("4de17b50d35d24f9c74a").Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var u=1;u>>26,l=67108863&c,h=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=h;d++){var p=u-d|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[d])+l)/67108864|0,l=67108863&a}n.words[u]=0|l,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=f[e],d=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(e);n=(p=p.idivn(d)).isZero()?b+n:u[h-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),f=this.clone();if(c){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),u[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,b=d>>>13,m=0|a[2],g=8191&m,y=m>>>13,v=0|a[3],w=8191&v,_=v>>>13,A=0|a[4],E=8191&A,k=A>>>13,S=0|a[5],x=8191&S,M=S>>>13,T=0|a[6],C=8191&T,I=T>>>13,R=0|a[7],O=8191&R,P=R>>>13,B=0|a[8],L=8191&B,N=B>>>13,j=0|a[9],D=8191&j,U=j>>>13,F=0|s[0],z=8191&F,H=F>>>13,q=0|s[1],K=8191&q,V=q>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],Z=8191&X,J=X>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],le=8191&fe,he=fe>>>13,de=0|s[9],pe=8191&de,be=de>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(u+(r=Math.imul(l,z))|0)+((8191&(i=(i=Math.imul(l,H))+Math.imul(h,z)|0))<<13)|0;u=((o=Math.imul(h,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(b,z)|0,o=Math.imul(b,H);var ge=(u+(r=r+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(h,K)|0))<<13)|0;u=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(y,z)|0,o=Math.imul(y,H),r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0;var ye=(u+(r=r+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,G)|0))<<13)|0;u=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ve=(u+(r=r+Math.imul(l,Z)|0)|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(h,Z)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var we=(u+(r=r+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,$)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(M,z)|0,o=Math.imul(M,H),r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(r=r+Math.imul(l,ne)|0)|0)+((8191&(i=(i=i+Math.imul(l,re)|0)+Math.imul(h,ne)|0))<<13)|0;u=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0;var Ae=(u+(r=r+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(h,oe)|0))<<13)|0;u=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(P,z)|0,o=Math.imul(P,H),r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Ee=(u+(r=r+Math.imul(l,ce)|0)|0)+((8191&(i=(i=i+Math.imul(l,ue)|0)+Math.imul(h,ce)|0))<<13)|0;u=((o=o+Math.imul(h,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(N,z)|0,o=Math.imul(N,H),r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0;var ke=(u+(r=r+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;u=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,H))+Math.imul(U,z)|0,o=Math.imul(U,H),r=r+Math.imul(L,K)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Se=(u+(r=r+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(h,pe)|0))<<13)|0;u=((o=o+Math.imul(h,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,K),i=(i=Math.imul(D,V))+Math.imul(U,K)|0,o=Math.imul(U,V),r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,J)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,ue)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,he)|0;var xe=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(D,G),i=(i=Math.imul(D,Y))+Math.imul(U,G)|0,o=Math.imul(U,Y),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,r=r+Math.imul(w,le)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,he)|0;var Me=(u+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,Z),i=(i=Math.imul(D,J))+Math.imul(U,Z)|0,o=Math.imul(U,J),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,he)|0;var Te=(u+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(U,$)|0,o=Math.imul(U,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,r=r+Math.imul(x,le)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,he)|0;var Ce=(u+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,ue)|0,r=r+Math.imul(C,le)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,he)|0;var Ie=(u+(r=r+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,he)|0;var Re=(u+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(D,ce),i=(i=Math.imul(D,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),r=r+Math.imul(L,le)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,he)|0;var Oe=(u+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(P,pe)|0))<<13)|0;u=((o=o+Math.imul(P,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,le),i=(i=Math.imul(D,he))+Math.imul(U,le)|0,o=Math.imul(U,he);var Pe=(u+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,be)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Be=(u+(r=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,be))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,be))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=me,c[1]=ge,c[2]=ye,c[3]=ve,c[4]=we,c[5]=_e,c[6]=Ae,c[7]=Ee,c[8]=ke,c[9]=Se,c[10]=xe,c[11]=Me,c[12]=Te,c[13]=Ce,c[14]=Ie,c[15]=Re,c[16]=Oe,c[17]=Pe,c[18]=Be,0!==u&&(c[19]=u,n.length++),n};function p(e,t,n){return(new b).mulp(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(d=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},b.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==f||u>=i);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;l--){var h=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,l);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);s&&(s.words[l]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),l=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(l)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0===(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var l=0,h=1;0===(n.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(n.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(y,g),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var l=this.pow(f,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=a;0!==d.cmp(s);){for(var b=d,m=0;0!==b.cmp(s);m++)b=b.redSqr();r(m=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var l=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4===++s||0===r&&0===f)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n("f586cf5b9f4b7719b2c1")(e))},"3e11e40e4158ebfc48b0":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(t){return function(n){var r=t();return r.update(n),e.from(r.digest())}}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"3e48c7021919a83c7f50":function(e,t,n){"use strict";(function(t){"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a1&&void 0!==arguments[1]?arguments[1]:{fallback:null}).fallback,n=void 0===t?null:t,a=Object(i.lazy)(e);return function(e){return function(e,t,n,i){r||(r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var s=new Array(a),c=0;c\n \n \n';t.default=function(e){var t=e.preferred,r=e.label,s=e.iconSrc,c=e.svg,u=e.rpcUrl;return{name:r||"Trust",svg:c||a,iconSrc:s,wallet:(f=i(regeneratorRuntime.mark(function e(t){var r,o,a,s,c,f,l,h,d;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getProviderName,o=t.getAddress,a=t.getNetwork,s=t.getBalance,c=window.ethereum||window.web3&&window.web3.currentProvider,!(f="Trust"===r(c))||!u){e.next=7;break}return e.next=6,new Promise(function(e){e(n("881a968197ba8f3f128e"))});case 6:l=e.sent.default;case 7:return h=l?l({rpcUrl:u}):null,d=!1,e.abrupt("return",{provider:c,interface:f?{address:{get:function(){return o(c)}},network:{get:function(){return a(c)}},balance:{get:function(){var e=i(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=3;break}return d||(console.warn('The Trust provider does not allow rpc calls preventing Onboard.js from getting the balance. You can pass in a "rpcUrl" to the Trust wallet initialization object to get the balance.'),d=!0),e.abrupt("return",null);case 3:return e.next=5,o(c);case 5:return t=e.sent,e.abrupt("return",s(h,t));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},name:r(c)}:null});case 10:case"end":return e.stop()}},e)})),function(e){return f.apply(this,arguments)}),type:"injected",link:"https://link.trustwallet.com/open_url?coin_id=60&url=".concat(window.location.href),installMessage:o.mobileWalletInstallMessage,mobile:!0,preferred:t};var f}},"3ee2b3c1f4282b51dfb2":function(e,t,n){"use strict";t.__esModule=!0,t.showPopupRequest=void 0;var r="TrezorConnectInteractionLayer";t.showPopupRequest=function(e,t){if(!document.getElementById(r)){var n=document.createElement("div");n.id=r,n.className="trezorconnect-container",n.innerHTML='\n
\n
\n
\n \n
\n \n \n \n
\n
\n
\n

Popup was blocked

\n

Please click to \u201cContinue\u201d to open popup manually

\n \n
\n
\n
\n',document.body&&document.body.appendChild(n),n.getElementsByClassName("trezorconnect-open")[0].onclick=function(){e(),document.body&&document.body.removeChild(n)},n.getElementsByClassName("trezorconnect-close")[0].onclick=function(){t(),document.body&&document.body.removeChild(n)}}}},"3fdffe01d41ecf60dece":function(e,t,n){e.exports=n("2c1309667d4d861e6729")(n("7cb301f8447e7be3c64e"))},"3fe84d73c5eb9d04a198":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n("2c62cf50f9b98ad5e2af"))&&"object"===typeof r&&"default"in r?r.default:r,o=n("87753da1c31caf0fbb22"),a="@global",s="@global ",c=function(){function e(e,t,n){for(var r in this.type="global",this.at=a,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new o.RuleList(i({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),u=function(){function e(e,t,n){this.type="global",this.at=a,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(s.length);this.rule=n.jss.createRule(r,t,i({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),f=/\s*,\s*/g;function l(e,t){for(var n=e.split(f),r="",i=0;i{let n=parseInt(e,10);isNaN(n)||(e.length>1&&"'"===e[e.length-1]&&(n+=2147483648),t.push(n))}),t},t.eachSeries=function(e,t){return e.reduce((e,n)=>e.then(()=>t(n)),Promise.resolve())},t.foreach=function(e,t){return Promise.resolve().then(()=>(function e(n,r,i){return n>=r.length?i:t(r[n],n).then(function(t){return i.push(t),e(n+1,r,i)})})(0,e,[]))},t.doIf=function(e,t){return Promise.resolve().then(()=>{if(e)return t()})},t.asyncWhile=function(e,t){return Promise.resolve([]).then(function n(r){return e()?t().then(e=>(r.push(e),n(r))):r})}},"4066f70afce832cd4922":function(e,t,n){var r=n("d372c4ee00c092a76dea"),i=n("4fe13ff1addb7ef36446"),o=n("81b6b307ad4f67ec4f33"),a=n("1e4434eb56bf7a9cdbd6");e.exports=function(e){return r(e)||i(e)||o(e)||a()}},"40f138c3225cd947cff1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("09565c4a498df1f319eb"),i=n("3bcef96c619b42740495"),o=n("2ad94bb5adcd1c269a8a").getFromWindow("XMLHttpRequest")||i.XMLHttpRequest;t.default=class extends r.EventEmitter{constructor(e){super(),this.url=e}formatError(e,t,n=-1){return{error:{message:t,code:n},id:e.id,jsonrpc:e.jsonrpc}}send(e,t){return new Promise(n=>{if("eth_subscribe"===e.method){const t=this.formatError(e,"Subscriptions are not supported by this HTTP endpoint");return this.emit("error",t),n(t)}const r=new o;let i=!1;const a=(o,a)=>{if(!i)if(r.abort(),i=!0,t)t(o,a);else{const{id:t,jsonrpc:r}=e,i=o?{id:t,jsonrpc:r,error:{message:o.message,code:o.code}}:{id:t,jsonrpc:r,result:a};this.emit("payload",i),n(i)}};r.open("POST",this.url,!0),r.setRequestHeader("Content-Type","application/json"),r.timeout=6e4,r.onerror=a,r.ontimeout=a,r.onreadystatechange=(()=>{if(4===r.readyState)try{const e=JSON.parse(r.responseText);a(e.error,e.result)}catch(e){a(e)}}),r.send(JSON.stringify(e))})}}},"40f15ef65d285f6375eb":function(e,t,n){"use strict";t.__esModule=!0,t.errorMessage=t.parseMessage=void 0;t.parseMessage=function(e){var t={event:e.event,type:e.type,payload:e.payload};return"number"===typeof e.id&&(t.id=e.id),"boolean"===typeof e.success&&(t.success=e.success),t};t.errorMessage=function(e){return{success:!1,payload:{error:e.message,code:e.code}}}},"4176dc24700a404ea6f1":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var i=n("9f038bd18c552a43efa2"),o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAoCAMAAACl6XjsAAABfVBMVEVHcEx/Rh2ARx2ESiLwiCLMu67cfCagZDOddlJ+Rx7pgiPlfyPshSN/Rxx+Rh2CSB6ASB2JTR7gkkl1SCbQciPUwLLMu6+BSB5/Rx2DSR5+RxzefR3ogCPlfiPGuLHhfiP2jCTvhyN/Rx3nfyPfo2/lfCTIuK7kfyP2jCPkfiPuhSTFtKjogSThfCR/Rx5+Rx3lfiPeeiTDs6koIR2DSh/ifCajWx6qYCDckVOBSR7jfiTyiCOYYTXLcCKpXiHEs6fDs6fCsKYjHBwhHx8iHR0iICB1a2ZyaGIiHyCPTx7ogSTlfyTwhyOASB7ziSTngCTrgyT2jCTthCT1iyPuhCX4jSSESh5/Rx6ITR/+kSTYbyDheSLjfSPBaiPacSDdcyCvYSK0ZCGTVSPGcSblhi/ngSPqgSTdu56mXSDaeSP6jiPmfSD5jSQcGhvimFdqUj/TbSJARUsyQE6tbDLOeyzZx7nayr7hsog7Nza/raDjjUF/VTjFtKhKNCB0amRMd0DeAAAASnRSTlMAe/oOkv4TAwgrpnA9n1n9vkYfHPv+xu2r9mgN6uI4Us5ji/n9Ln7G7pO61/K35ZXYiUji5s21zMnb0/r5aMipm2UkYjSGnPy0/l1QcU4AAALOSURBVHhehdJXXxpNFAbwBYIgoICCIKhgi91ETe/9fZ3ZXui92bvp5bPnzCwzK79c+Fxws3/mOXN2BSe+0Tnh1oBKTI7eqvypSUnaHP4XDIVeRn1cucKSJIUj4wMF6cVgYDr2KsrVXE4imUx6mEmHgoH786ZZ3b3H/usZAWW7R3fsAFFNhCrVwmaKdY4ylZdaqEgjI4yxUm7mpAjvjABjbt/QIIZJ1MF+Pu+eY3MMuwEwl2sfEidiBcdaeUl6yrcEkzks38IWMBnG2gUVTrIljSco4LUNGZxRaeZASW4X63Q5hznHyTGqpAfRwU5+WKGtaxC1SQsSKb+tfOyeTHWRDEyuNGhpf7me5EBjoYowFoEZ+gFx7pH+FYaTA0qBfSG6ErI2KcxZJMxVDhSkS1sV4twuNls0wVi4CYpEJ6yHwXEmpHJ5OxJTGNHhMLjH/BP0uQp2GpTwVhHY+orAExLt9ChxWhFWprYcFihaNKLDegZt7U4FuRpbPtbssONgRNECVjm6wYJFrR+5XK/VavVa9byO4L3qpWqMl/qznGlipV46b5xdturYIK//54sND7sAR3SnlfbZxeVFFYkw3MHV9dIQv8CAQ7qlXl+1kUoO78mMsQvwXiRbh8VjEenEqat9NlvUBmLJol2v6jDe89U0Vb7sDQa7k/UjxZSp04mjpw1ewBBRuV6qVbCCRFmzNNE0rOVZP2EZE9F0u10F10qQsr1hVTQ0WTSs7KwP2NA0wjxlUHWCmJRlo5jNELdlYidQaR92RINRp1P4vfPxnSAszis3XLkMD3Gn8+P0dGHh697e3vdvJyf/f4CrLqm8xFx/+IQ+jH/+QgK/wHbek9ZZwhSkq1MbwUW/f+buRJyIfn79+e/TuGBfomfi6UBmjH3NIL19Ffd6J2YEmhX92UqGbpEHzlzzeuNxL6ht9lmG0g5w5PbrtbWJN2/HyGB/AYd1QUewqrrRAAAAAElFTkSuQmCC",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABQCAMAAACEXWP5AAABfVBMVEVHcEzffSL3jCOASB3hfSLkgCJxQyKdW0QhHh6hZj9qPyB/Rx3jfiSBSR+ARx3vhyN9Rhx8Rht/Rh1/Rx3jfSPpgiJ/RhzmgSPmgCPHtqqARx1+Rxx+Rx1+Rh18RBzifyPkfiPDsqjCsqbEs6nFtazmfyN9Rh31iyPlfiO8s7HceiTAsKXkfSOBSBzFtajsjjfaeiXifSLGtajogyIgHh4vJR7ffCfDsqbDsaaTUx4hHx8iHx8oIyPDsaaXioK9aCBaOx/PcyjZx7nYbyDHtqrddSEiHx/+kCTjeiLbcSDLuq7geCLayr3QvrElPFHWxLYaGRraw7BzVD02QU3khjLhmlzbtZbgq31dU0qdYTLfomzjj0VKSUhuZV+RZTqPWjSLf3emmI6ASB7lfyTngCR9Rh6FSh6DSR7ogSSMTx7JcSPsgyT4jSTqgiTffSStYCC1ZiWhWR+aVh/1iyTziiTwhiSVVB+/aiLXeSTlfiPxiCTuhST6jiT2jCTUbyHcqlRkAAAAQnRSTlMAE/DlIzgVA4YJI/DKWvqma0vPs5VQO2m65tvCkYMxRfBt/Y5K53fh+Bq0LeKnrdKi3MWGRvnAv9LD3bJmuczD09A0/4S4AAAGXElEQVR4XqyWyW6jQBCGHSEbATFjg+JE3iYnKxrF0kg5zWnepXd272syzz4mELppGpyDvyOHT1V/d1XTUtNxJnrrRpgusbu3cwGgTW/i6jsXF6DDwS1cQwJSyKjzbcHd49+B0qVRkEFm39Dod3cPv16ffc1UuLoWBQXdawW122+vCDG492Yqlw0ErIbYjPbD4xPaBgiyOMGkX3VNSi5AtRpb++33/XOwDeAF5q+wKt+xTUEJOjIVYT/dv8IgYDDD9zAg80rhEwoq/Hkr8+P++YVFDOUmdNxfXMCS09UnpOrCXvweigQIQQ6Lk88GnMo8WkABTjYfAmEABdhhiUHKWC6sR4EK7H+IbIXCUBpXilWJfwjUeJEo23BZFldKpcu+DWpIQtHGchWKF7T2co9onYwc3gVZUMQFvrDlLqdarQzvmFDbOXftMMihc0OK3yWgFpysuW2TulAWVwYdqAtTg8mBy9YMwuOCCK6hKd8LAhrAyzOXRSiNi0N6etnV4fGr2a95aP92GHCoLS+M/hUX3p34DCxxqTBHOktjTJpdns/73PhEtNnyKBnz5sroHjGhz4UYMHUN+c1tli0QRKdCdoILMRUyLtsMrdl1hBCeQ2E8F2JpVvmFHdhNgSUwhfe5YfCYYL7ae4a4YF2t2ZVxCvl4IsFmzQSZ3tcaRynOF855Lew0FBcXhNql16Qz0ezaux8X635TnED6idvkB6Cr0RrXgS9Dfp5R6o5XOB+n8pSPHUvtWgkuGH31GWZrKN9CpFSYbs40Uu/ilPuE6LDCvDKO2bPoVRc8C2sos+1w9f9Gn7qgiie5YFTZ3b6HqfxDYrhENdwMSpz4RBU2u9eSmDoVm8IFg5Dv7gzkz1sVzCG57oJozfvMefnZUtoIpZRkUM//34jZ9aaNRGE4IFPKihU3oIarAKEiJFHShH6p3V3txiH4I0ALSQjZtN3VzIUVeyok213swfz2tQfPgEdjdh+BfAE8es8cnWNkCAS4NJpL9bXMjoBi4DB8HwtdHqIy34tlL0WuvdYi2ARxHm6kHCOWnQlc+VIvSOALZR6rE3srWVEgk1pUtj2aaXOHtiuQVZhrezToJ/8NQYEsw6pk2OaqsCQKZhOlKLre1Q/zOzy5rBXw+F745QSqqsoKrVORZXkpy3884135DgnG4SqqzFDV6bdleFXiOi2kyrOR2q39xMsyLRqM66hOdepsNB7PIhmmwbvydDxTDn7m66xQF2+D3irdP6PxYDC4X8pdj96lLF3+NhjNwSs+WUkgY1tQUZfTSDUYj6eqzvppecvR+Ot3yHdAIscvxIUegPOvo/vHyPf4pEBgxjJ3OZ33sFHkZKWARE/Nhno96/vTbDp6HIUyg/VTCY2IG4HMKR1LcTZS2aLXW+A52SXrFiiWg94mZS9YlWIb8Ghli4WNAYAu/UR3LXQonvF0m2En6mY9wJ5tvuJmfBFsBxvOZofROhvCuJyskgZLx/c33VGpOM7qJmWZ3f+WuabPNwXHYj8hy20v0naw11UVaGCHhGGLllZa2hinQictmGUFjovIOHVBBHId22ILKrZZ2c7alslaYgIHIzrnOgQEaPpOEPtwbFtkK+sqXRNHmBxI6cqULmB4EGFnpfMNk7dJB0CIt3bJXuIDABHJZDkmJrZeK0fP7BCl21gwHoh8O7BsvLItWhK9YZpAjKeyYCIMM2yv79pkbE/jfSudISBGiU8fpIGw4/uBNX+a/fj9dYGM5gsMUtDJwvZSghMM0529ufr06erq42vSz5oBtjRBEVvAzZ+3t7cPk7u7+9AU8ZxE2zVB+rGpHv11xM1N6Hh4mEzuPkcMLy6utVj2ZnVsHQBTbTowiIHG+Hyx4jq+rmXPV4OQOxa3AGJce3s6mUSO64iL8EXhZR/o/bMEBSbTrXUquUK7uV/lHbws5OoXumr3DpI2CKFRK+dyUfDwfdTcv+z3hyk27cvjl7/+/u0ZW9zFtQwaCNSOy1KmsLnZ281fq5f9oUA41BqNhlatbyxbg04JBi+LZWlHRP1dtdEPE24qh/1LQuhiSDVI9pVxvNvZS3+ofVQ/qWp9TaNCqtL2E08PyiY0jWKnIlGTkHw+H55flSi0fp9cG8zF2ANn5ZxEj2mrsHDUfBca1mgn/HMlcuD/l0K7/r76/vz8/GS/3my3metfQ4SXfUiW+00AAAAASUVORK5CYII=";t.default=function(e){var t=e.preferred,n=e.label,s=e.iconSrc,c=e.svg;return{name:n||"MetaMask",iconSrc:s||o,iconSrcSet:s||a,svg:c,wallet:(u=regeneratorRuntime.mark(function e(t){var n,r,i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getProviderName,r=t.createModernProviderInterface,i=t.createLegacyProviderInterface,o=window.ethereum||window.web3&&window.web3.currentProvider,e.abrupt("return",{provider:o,interface:o&&"MetaMask"===n(o)?"function"===typeof o.enable?r(o):i(o):null});case 3:case"end":return e.stop()}},e)}),f=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=u.apply(e,t);function a(e){r(o,n,i,a,s,"next",e)}function s(e){r(o,n,i,a,s,"throw",e)}a(void 0)})},function(e){return f.apply(this,arguments)}),type:"injected",link:"https://metamask.io/",installMessage:i.extensionInstallMessage,desktop:!0,mobile:!0,preferred:t};var u,f}},"41816df7a98d57ea5c0b":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);(0,o.useEffect)(function(){return function(){return t.current()}},[])};var r,i=(r=n("fe8c42d0c5dfc182e2c6"))&&r.__esModule?r:{default:r},o=n("8af190b70a6bc55c6f1b")},"41bbf135bb838dbeec47":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("98bae3dbabd51089d613"),i=r.__importStar(n("0de8462862183c391516")),o=n("2ad94bb5adcd1c269a8a");function a(e){return r.__awaiter(this,void 0,void 0,function*(){const t=(e||256)/8,n=i.randomBytes(t);return o.convertBufferToArrayBuffer(n)})}function s(e,t){return r.__awaiter(this,void 0,void 0,function*(){const n=o.convertHexToBuffer(e.data),r=o.convertHexToBuffer(e.iv),a=o.convertHexToBuffer(e.hmac),s=o.convertBufferToHex(a,!0),c=o.concatBuffers(n,r),u=yield i.hmacSha256Sign(t,c),f=o.convertBufferToHex(u,!0);return o.removeHexPrefix(s)===o.removeHexPrefix(f)})}t.generateKey=a,t.verifyHmac=s,t.encrypt=function(e,t,n){return r.__awaiter(this,void 0,void 0,function*(){const r=o.convertArrayBufferToBuffer(t),s=n||(yield a(128)),c=o.convertArrayBufferToBuffer(s),u=o.convertBufferToHex(c,!0),f=JSON.stringify(e),l=o.convertUtf8ToBuffer(f),h=yield i.aesCbcEncrypt(c,r,l),d=o.convertBufferToHex(h,!0),p=o.concatBuffers(h,c),b=yield i.hmacSha256Sign(r,p);return{data:d,hmac:o.convertBufferToHex(b,!0),iv:u}})},t.decrypt=function(e,t){return r.__awaiter(this,void 0,void 0,function*(){const n=o.convertArrayBufferToBuffer(t);if(!n)throw new Error("Missing key: required for decryption");if(!(yield s(e,n)))return null;const r=o.convertHexToBuffer(e.data),a=o.convertHexToBuffer(e.iv),c=yield i.aesCbcDecrypt(a,n,r),u=o.convertBufferToUtf8(c);let f;try{f=JSON.parse(u)}catch(e){return null}return f})}},"42d1f854fafd2a99f0bb":function(e,t,n){var r=n("1b4e42d4b6361d45d4d1"),i=n("963ef19800ff2c1c6bbc").Buffer,o=n("a3d06c358331109f2497"),a=n("fe04f3dffedf971443f1"),s=n("0bd1ba1ed7f3709af588"),c=n("82e88871334746c2f656"),u=n("27bdb30bc120dc809e8f");function f(e,t,n,a){o.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var f=this._cipher.encryptBlock(c);this._ghash=new s(f),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),o=t.length,a=o%16;r.update(t),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var c=8*o,f=i.alloc(8);f.writeUIntBE(c,0,8),r.update(f),e._finID=r.state;var l=i.from(e._finID);return u(l),l}(this,n,f),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;in(null,r)):t()}},"44cdb5d5be4bf7398262":function(e,t,n){const r=n("bc3f783d241e0e2c40c5"),i=n("32da262947db5cc2af54");e.exports=function(e){const t=r(e),n=i(e);return function(e,r){switch("string"===typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},"44d5c7e7d3429aa7fb46":function(e,t,n){var r=n("3bbd72f2f136fa38a7ad");function i(t,n,o){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},"456f268f9095c1120131":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)})}}var o=n("9f038bd18c552a43efa2"),a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAABpFBMVEUAAAA87+RPrLNRxLAweNFfxOhQxrECk+hRxLBQxLAAkudRxLBRxLAImOdQxK8AkugAkugAkecwd9NRxbFQwqxSxbdQxbFQxbBQxLBQxLADk+gVl9VQxLBQxbEAkugFlOgBkucDlOgAkugDkuZQvqtQyq8Ak+hRxrJQxLAAk+hRxLBQxbACk+gBkudRw7BQxK8Ck+lRxLEEk+ZTxK8ClOoAk+cAk+hRxLA1sL8AkugAk+pQxK9RxrIIluhQxbABk+gAkecAkehQxa9RxK4AkOoAk+sAk+oCk+gIl+kCk+gAkegAlu4HleYAkecMmOdQxK8AkehQxLEweNEQmehTvugvq+gAkuhRxLAAkOZQw68AkeYuc9Jfw+ZTyrZQxLBgxOZQxK4weNsscNIAk+oAl/BfxOcAlu4AlexSyLMCkudDltpRxrJiyu5TzLc9lsNjyu8AkugAj+djxeZSybROu+Y9lsJbwedWvuYPmeZSybVhxecqqOcFlOdBtOYfouYWneYLl+YHleYQnu9mzO5Uw+47sOY0rOZFm+E+m8ktru8uru5DltkD2Xk7AAAAWXRSTlMAAQKOlo7+i1/k+UwnFfrn4taWOhcR7+nNgisG+NfCZGBTTBgTBuvg09CvppOEel06KyYgEq6niwv78cPBuLW0eV1SMSD82sg/LygO/PLrnZycm4+OjnNzMhP41pMAAAZUSURBVGjevdpnW9NQFMDxk1bb0hZoLdCWvTcIyHIx3Xtrr6RFEzOM1TJkCeKeX1qwyLGQ5N6SPPf/BX7POfemL+DCgSpjJ2/HyxL9oXAbuFBNdZP/ln7jfMNAKdjUGuguSYtL6ZQharWd3pjgTPVc6Y0GFYUQIsm58skGK7si2SGKxnwqX1rL+s7NOGGb6nOypJO9JEUu72sBkwIdWSNVUHpJmxg8qnv1vKqSwiQ50iAc2nLPOrKYWBU4mttwRkERaWX0wL5PJbIp0wwtKRxhzX5VIqbJXUMFbp2YsigtjhXv9so6sUi5hDK0JtA1kfuLde/LxDqla3/bnh7cs5mshYpzHyrELnnEA/kC6ynbtI5WYE948InYpzTsfb8lRsq+rLcI9/jPBQoslee/52Q2RclXFWZ3v2wSWnIf7FSJA1uPPMbsfn6HA1uPvHu/ToopakZJJaP7auUDoSfvnnI3wtZpIUZ3Y4swpEziph1cL3TfvFjETVN2HfOlGNLOCkzuXGabsJQbwCOmHPI4kzuHR2yb3Ai3l1jgdNUpJjezuskES+chnmaCywYZ3B14WSdM3YCylCMY7/OOuwsTtnRIGExwbZjFZZ/4FvSLLLAvXkHbcx5e/cjkKn4IMV0ura6NOm++NTa4CcK1LLdL7GZ0F98vsJxwsBraOjUW+LG9i/A3FliK1gB4syyXepZ+vkXcLrkXAGK+eSq8dNZDcbFtlomvAIDn7Dp90wHannHXX+m7Vi//vaoh6iFrneM0F1tZo8NNsJtnQqTBM3QXR96iucr5vYMLVxm2brZHMHU9eL7/l6F8UdKZatgroKXtblZdhbl74vtGxgxetV22rjbAfknRWtbis+busWfPf2fM5MVlu99N2Q+YMCb6rOaNx6zcp0+fvyxalnsLv8x+n2Z+vnWz1q6NvGZ+zgvKfQEKC9VlDw+taT0V1q6dvPre1P308PAvUYW3KmsU/kFA7JwBa9dWzmS2Dg29sPnrAbqAhcc6tKxmpHfyGaJYdi4wTnFRNhl65eu2vrCwr5IP774cR7ewypD3XElVWVltvK778awANBdlU3pu+dv7tY860Tc/bL/bWvl8XACbKk8NDoYr2gCzcVE2LbO4OLe6vLy8ujK3uPEK3WJDly4jvtvc3Is3brl0GXPZpcvourJniszNRZm3izLP86XLzuc9gS5F5rdnlN3dM85Ll3m7KHO4VxSZ17wo854XZQ732ULm8P1ayLxdlPm6KG84dWvuoVuM/P04YDzhH2MAwO1Ko/t2XvQK/OXnr+fn01xldFMpvjK6HGU83x2Xr4zz8pXR5Sujy1fG8+Ur47x8ZZyXr4zz8pXR5Sujy1dGl6+MLl8ZXb4yfkdO5esXqquHWmoYZZzXkTzc7K+P3AyeDrZHRx5dFegyuk7ka/6IKqtSTtf1nKTIp+sbxykyug7kUv8ZWSr8U7rS1WQr4/k6kJsvyTlyMFUdbbGWcV4H8tRFiZglR59YyXSXLgt+JUfMU9uvWMlUly734fsrE9lyZjzfYuQk7NcooWsiRy3O+cQPdIuQtcD+Z9QuEbvkUcFc9orpVPEZ/54seSZl+v8CTROOJosTnvyHJBEaHB13TcaXQ556ldBSGsFNef3vv6MHLhJqar3HTXneFwOAXpkO66evgjsyPpaqiUqEnvwI3JS1zjYYCuoMsDIC7sj4kKZZJWzvJ1yVl0IwpbDAufYWcFMW+6FLYoH14BC4KRsJCBIm+HQ1uCrXQnmObWKE3ZDTcbijMp3xzQvgprx0F6YVFliKXAc3ZfEkDDCtWq0XwE3ZF4PhcqZfLj+AOzI+qR1RWCZuBpdkfJc2rTAfsXMZjxhgOCK5sWmUmR8v98nUj+nMELgpZ5OwW2lEcmVglKkD771qaaScsnqpFNyU1wOQzzMq2y76YjOAi3K2xwN7DV+2mVlXpgBclMVEK+x3IapYunjArshi3SkAQPmyxbYlqU+A4ktqhsWeE+jmtz2qSiau3N4IRypQJZqwxnpPKxysMSIfpFVpshqO2OCEtpQ+wGY7AmBSS19EUfZtXZJz9U3goJlzvqz2z543RLEjWQHmlU6PlBNFzRFJUYNdvQMCOEqIeTtrNdHYfZKWLukOtIJNwwPTd8qDXVPN12rAhdrCof5EWfzuyVglFPYHGHk5a2l2aDUAAAAASUVORK5CYII=",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAAE/JJREFUeAHtnQ9wFdW9x39n77+EJJAEQhKgVGMrtlirhbE+AjMPptNqBRPCQP88RPtH5I+h9s/0TX04Vat2pqNjSxArOtYqlVaGxFCrtuWhMwJah1bQWh4ioCDNP/4m4c/NvXfP+/32cpKbcG/u3b13d8/ZmzOTnL17d8/5ne9+7jlnz57zWwY5CAtef7GGs8hNHGAaJjcFOEzCuAT/CjljZzHuwX1HGIN9jPFdAMEtzbU3foT7R0IOFFi668SYDzrDN7efhkU9ffCpM31Qdi7CgxGdsRheFB/j+MdiIT/vLQhoR/Hz6yci/kfCSyvezzZ7ZjWBBTtbr+Fcb+Ac6vHvStPpMLZb47zV52ObN82of9f0+Xl+wtJdXdX/1x5b2dHNv955htecPAumr2VRSDtVEuLb+rj28IlvV+60IqnpTBds3zI1BvrPgfN5VjJMeg5jm1kgcFfLF2/M+heRNH0P7Vz5t+6xB06eeehfHbDk8Cmu5apoYwrYP6N+bfGZ71TuMZNmxgAt3PnHiRFdv5dx/VaqFc1kktmxLKox/kTIr9278bq6jszOyZ+jvr+TFx4827F6byf/4f5jPIS1fu4DXoCyELx2Mha4GZaPO5pJBhkB1LCj9Uad841Y61C/xubATiKdizbPqt9qc0bKJP/dNzuuOnScv/L6h3p1X9R+s7FbES0KsSXdt1VtTJdb2iqwYUfLj7Gvs8UZeMhcXhYDeBnzbUxnfD58f+vOjvo9R2NvbTvgDDykaSzG/d3n+O9Kn2x7OJ3GKWugxv0vhY609z2BF/TmdInY+P36q2eWrryHzXbgd2djKSwmvXh7291vHYZ73+/iKa+TxaQzPq2kgL3aE666AVaxcLKTUtZAEsBD9i7ds+N0UzLDvbyPc85u3d722Fsf8fvchIc07jnPZ5eE2l9OpXdSgKjZcrnm6bcXxVw2//UXVvbv8PgGwfOtHe3rsLO87P1jchSWIErVnF1UNVKHmfo82MtPCpc7RWJRpmlfaam9aZs7+TuTq4Dn39182V8/wJ+wHXdaVouCI8CjC9l/De1YDwIofqse2+tchznz0uAo9omCAv+UjdPnSfK7zNz2TI4U8Jzr48ta/gXQh3cSsgWfxqIxf+CSxFv8QbVMlEfvkxEeEhJ/jeXnz8Xulk3UXNgj4MF42R4cAZMRHipnTOf+Mn9kQ2KZ+2sgGmHWeWyPPYOEiVla38ZaKKLxwBWbZ809aD0Vuc5MhAefY0HLe5I1XUPlwsHGolHaNWLEur8GoscTMsND5cBaKKBD9IGhZVL1cyI8VIZ/4NivVP2eZMLqnPmjen8tZABED0bR8tw920qWcY724YjI1xZub52So+RcS2YoPKdxlOXDk66ZYyrj0+f5leVPdcygkwyA6Km6qRTcPBhvc6PA57tpQrZ5D4WH0jt8KttUnT0/yPQfUo4XAIJ6Z7PPLjes5pWyN7G0yeCh71UDqCfM5pDdjCaDxSBygD4oE3BMQisomNg8/fo2ZWxGQ1PBczYCsEnBGVElxYErNJ1F61S6CIat2IzxcHiuSnangofK8PFplUoyYGuxFr0TmzD+hYFdCm1xPk0Va4eDh8pwnCb9KhhinM2iPpCSdzQ45KCE3engIW5On1eQHjT5fESfqF2YAK9iCSbJbnQm8FAZqA+kYghHWTHVQA7MMrRFHqntzhQeUiYi4XOvTK5YjHMfAVSYycESHiOt3WbgIV1p6Y2KAftAoF1Yt6Wc/bjUScqup1l4SHjjZ6zcFaD1ZvGBxB4FbUeTuXR2W4GHtA9QO6BgCODCPupEH1HQdhwClctuq/CQ9kVBJa8AFAZYn0bLjVU0H2tPaezOBh7SfkyBilfAAP8kAkRr1dULWHlKYXe28JDyY0eppz9ZXBKED7D1DW5RzXysNXXQCl502+5cwENlmDTG7ZJYy79qDDyvGV4y0NGBtSRcOouzN1pqv9LpUu5GtrmChxIr9ANUFLtZGvN5l40C/qnxoWeN/j95yTCfhItnMOaqvbmER6g4WbFaaHwRO7h+evlpAyBysSIKIntMzRdngWa37LQDHirL5FK3SmQt38rR7Pd0pgGQ4Z8HXaxYS8rps9iGF2q/6sr8JbvgIQVHhwAuK3daS2v5TS5l+hVVvkfpbAMg2iD/PPhf8jXoLOwHnytLe+yEh/SncPVEvCD9VyS+T7b/2ALAZyvhmfXTK4zJfP3mknMn8s8jm8GJ9qDxTZtmzjucuM+JbSfgoXIUBwA+U+FEiazn8elxLHxZWdGPRAr9ANEOcu6EtZCUawMQns5C7n9QGO5U7BQ8ojyfqwIowLsyGUMQ7frMePbwo18cfVzYNwgg8gxGzp1ka8oQnj7m0xqemzXXUbi//Nz/zvnmn48+jRAtE4LZHYfwAsyuwaYMmwqZAjVdsy7R2mpGVd6faNcggOgL8gymafwHiQe5vs215c3/UbfDSTuub/3L4uP7S7fuf+PYkuh53cmsYTyOCV032dEs02Y2fSKELx3Lrn9kBjuXePBFANGXzbXzmzBan3igW9uMsUdaZtU95WT+BE/X7rHPRLrxaWGvBvu2HwOnIfr0WOysjney1KnzuryC8anVvq8/eV3lO0OPSgoQHUSewfDiPT70BCc/Ezyfr63r77A5kXciPCI/tyCahndlbkN0+TiAayfDT5+eUfmC0CMxTtvSknMnnDD3S5x/41jXjvo8gM2WmzVPokhiO1isw5SZ48BfkPJ3Jw7Nabwfu6xvHgYcQc1pssMmRn2ea3HWOXaaf/30zOrlqQ5OCxCdOH/HljnAY5vIxUqqhHK1Hw3vpA6zG30e0WwNVxa3IOrsBXj1IK6EcGCkLogd+f+sAZgwmv36N7VVK7AlSIluRgCRoAv/8VJF9EzfamB8OXnJGE5ka9+xMMLTRLfqTt9tJWu2hiuDWxCFcfL9u+0Ae7uwNrKhX0+1zhQch/p8JT7gDaaHhzTKGCAhKC2FJhcr5CUD1+qaPl+kI2I0GqVgG2iE2Y1BQrPwCLvdgojy78VlQLvRFcyBE8Ka7ONLygC+gH0unOMDWOOkrXlEjpYBIBcr5CXDcHTA4FozMBnQ4JQMtLSVHoy69WzLKjxCPDchIhu60SUMOWU4jEuju7CJMxvGFcUf4tKD3DH4LI6CGXiM442zsvzXsOuVamOtOi43xsaSVozSor8S/CuMr57ACfA4hxlp3WfMJMTJYG7P58kWHiGZ2xAJO85h34jW2NMyaVrpim/sgQjW7TH8o9UTAezXjMKOB02fpRmQNImNPicGs/DQuZZroMSMVdvOFTyi3LJAJOyxEluBh/JBLvMr5BoeUi/Wx+BU+xkon1AIml+936RVeKjseQWQHfCQiBRUhSgbeKjceQOQnfCQkBRUgyhbeKjMeQGQE/CQmBRUgSgX8FB5PQ+Qk/CQoBRkhyhX8FBZPQ2QG/CQqBRkhSiX8FA5PQuQm/CQsBRkgyjX8FAZPQmQDPCQuBRkgcgOeKh8ngNIJnhIYApuQ2QXPFQ2TwEkIzwkMgW3ILITHiqXZwC6vnUrTkMtN6ahUsFkDE5DZDc8pLEnAIrDUyY1PAJopyByAh5PAKQSPE5B5BQ8ygOkIjx2Q+QkPEoDpDI8dkHkNDzKAuQFeHINkRvwKAmQl+DJFURuwaMcQF6EJ1uI3IRHKYAMeN7GcZ6egHpT/gQlaWKzt/huw6MMQAPwKDhfNA00Q7/OFCIZ4FECoHyCR8CUDiJZ4JEeoHyEJx1EMsEjNUD5DE8qiGSDR1qAyDPYsffKWyI93u/zCFhSxaI5K60q+u2zs6uXIkQpHR2kSsPO/c76KcmwJEVwGa549MRz3gxLPPxhnMWgF3YPf5BL30oJUMs3L9lWc035kmAJrrzP8xAoicCE2qPgGxW+pWFH6zpy+imTJFIZM1SYRa1HFh98+8QzfT3keCT/Qj88BQMvVaV+UHNt3bA+e5xUSvoLk68QJYNHgCETRFI2YUIoip+v+8SGfGvOAsUXmq2EmidRE3I7LEtzJn0NJITLl5rIgGcm9nlSwCP0oFiGmkgZgEgwr0NkBh7Sg4LbECkFEAnmVYiswEN6UHATIuUAIsG8BlE28JAeFNyCSEmASDCvQJQLeEgPCm5ApCxAJJjqEOUSHtKDgtMQKQ0QCaYqRHbAQ3pQcBIi5QEiwVSDyE54SA8KTkHkCYBIMFUgcgIe0oOCExB5BiASTHaInISH9KBgN0SeAogEkxUiN+AhPSjYCZHnACLBZIPITXhIDwp2QeRJgEgwWSCSAR7Sg4IdEHkWIBLMgGg3zifqdmc+kUzwkB4Ucg2RpwEiwdyCSEZ4SA8KuYTI8wCRYE5DJDM8pAeFXEGUFwCRYE5BpAI8pAeFXECUNwCRYHZDpBI8pAeFbCHKK4BIMLsgUhEe0oNCNhDlHUAkWK4hUhke0oOCVYhyA9DjXdUQjs1FO6bh++Xjr7zk+MpLBoW47yy+TxVfecmO4PY+NHUXvvP5RVhe1YmfXQu5gsgL8IiLYAUi6wCt65oCsdh80Hk9gmLqpbsIkY6vD38D41YArRlWVR4QhXAyXtT60eKDu09ZHifyEjxCd7MQmQdoXUcNvs31AYQmJ6/9jsMEGyAUuhtuLz8sCuJUbBUiL8IjNDcDUeYAPd49DsK9d+MFX45N0pD3/Yqss4gZhLGZawJf4YOwovRkFimZPtUsRF6GR4iXKUSZAdTUPgd0fRMmXi4ysC1mrBOY1gCNlTtsyyNJwplClA/wCHkygSj9ytRfta3Efs6fMVH74SHLOR8PemwbrGn/tiiIE/HzdZ/cUHN16ZLg6NQOHfIJnviliK+AHU7/1DXQq9wP73asBa7fPlwC9n6nPYId7B9h06bbm89A6qlqonyDZ0AR7LRobHVLbf0DifvEduoa6J22R92Fh0zUvw9rOh4SxjoRJ6uJ8hke0hzr5J8t2NlSn0z/5DXQr9ob8eKtSXaCK/uY9h1YVfWUk3mLmojrUTYhw7XqTtrndF4ISq8W0Go3X1f3TmLeFwO0puNLWPO8jNz5Ew90ebsPNN8cpzvWDX/4eHak9J1byLmTy+WXJHt2KOAbP3XTjBnnhEGDm7AnOirx3XrPSwYP2RpEqJth3akyYbgTcfPXJr265cs3fIvuRpzIT/48+KURvevORDsHA3RWvwc4OHqREo0ZdpvuzmLn7hr2GBu+RHj4BY9gIxChvgz0/57/t61jhdQDAK3tuhx3fld8IWXMeSM8fmKy07aNQDSgOHaox/DImdVizwBAseiDEjZdws54zCEE4fDPBu905tMIRAM6Yy20omHXK9W0Jw5QU/vnEJ4FA4dIvMVhMd7aX+aGhSMQxVXHWigI4fPz6VMcIF0ReAz7OdqsN8SL4vz/EYjimqOfxjrautCExT84fzms5uiuvSMQGddt9sJdfx3DYO2/Pwkx+NDqpXTnPHy0EWTVbk9KI6ffF7ylLnNHB3dzZZr2DQ10zaiK3DXFbO7YjEWAZkC6GvK9JuI6n4VNGMdpqCoGPl0Gq/McoikaDhzSHGYVgzR25zFENRoOLX5CRXrwEbFUducpRKVUA5UoCRBj0tmdbxDhU55iqoFGKQkQyGl3XkGELzKjcaD+R/NKgcTltTtfIMKXufVSE9ajFDjCWCa33XkBEYPjVAN9LK6JYrH0dnsdIsb5fgSI4XJjFYMadnsaIsb2Uif67yrigzYrY7dXIeLMt1UDP9uiHED06uuQ70WV7PYcRIx1B0prXtNgReVBbMb+qdLFwI7/W3B7RZtSNqOxXoIIf8IvbZo6tY860VSyF4xYlX+aYvYm6OoZiDTyrNI/HwhdrKgSqPny+VpUMTeZnapDhE6Tj/tLRxtdiHgNtGr821gL/TFZYaXbx+EPsKJC0TvHATVVhggXE96/aersXipNHKD41k8QothAESXcYiwCAe1/JLTMkklqQsQO+couXycKPADQHdXv4RPup8UXcsb8sXinX07rrFilGkQag9XUeRZlHQCI9gSDP8UetayPNk5AqNiVJT1CLLtiZSBi7LXNtXUbE3UYDNDycUdxYPEbCJFj7lQSjUm9zaKgaQvh9tHHUh+j9jfyQ8QOFRb4FpKdiUoPBoi+WVX9J+wZ/STxIAm274TGqm0S2GGrCdJCxFgP0/w3bZw+76If8MUAkUSN1b/ADvWztqqVceLo2OB71Y9mfLjiB8oGEd6y6/i8a3FL7dykg83JATIuQtVtEkC0Hq6qalScCdPmE0QtM+uXk2cwvAaDmgzTiWVzAtU8oM1vnlmX8nHXxf6BhmbY1PZj0OHnuHpjGNiGnpTtZ+zzAPsBfK+qKduUVD+fPIPpMXgWKSp2tizsEDVbqWoeYUt6gOjIte1zIcafQ4jsn4fMAF38+hahb8Stwsh8jxe82XpVLMLxcRO/1BEt8G6LOszJ+jxD888MIDrrsWMTIRK5D7duwfEi39CEsv9MtQ48CaO0e+C2yo7s0/NWCgt37iwk507kn4dcrNhTOnaIxnnoVn3o3Vaq/DIHSKSwtm2q0aRxPk/syj5mm8HnvwvuqHg/+7S8nQI5dyL/PORixfCSkYPi0rMtBOF+GmFOHCTMJGnzAIlU13ReY3jJ4PiuDOBXit0m4t3Yz2kFDeFprHrXxHkjh6IChn8edLFywUvGbITJ3NsDcD4PTclA/Vvpwah4tmVWXOsAJeZE78+I8ptwns40hIlWjE7CAUnqLxXivrO43YPxEYz3Ace39fj0LXDHhI8SkxjZtq4AecmIhs/eQGvVMRXSvwb/SvEGrhj9P9CgML4tCWsZnMOMd3V7aSYhTQYzW9tgOheF/wcDInM8tsepEgAAAABJRU5ErkJggg==";t.default=function(e){var t=e.preferred,r=e.label,c=e.iconSrc,u=e.svg,f=e.rpcUrl;return{name:r||"MYKEY",iconSrc:c||a,iconSrcSet:c||s,svg:u,wallet:(l=i(regeneratorRuntime.mark(function e(t){var r,o,a,s,c,u,l,h,d;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getProviderName,o=t.getAddress,a=t.getNetwork,s=t.getBalance,c=window.ethereum||window.web3&&window.web3.currentProvider,!(u="MYKEY"===r(c))||!f){e.next=7;break}return e.next=6,new Promise(function(e){e(n("881a968197ba8f3f128e"))});case 6:l=e.sent.default;case 7:return h=l?l({rpcUrl:f}):null,d=!1,e.abrupt("return",{provider:c,interface:u?{address:{get:function(){return o(c)}},network:{get:function(){return a(c)}},balance:{get:function(){var e=i(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=3;break}return d||(console.warn('The MYKEY provider does not allow rpc calls preventing Onboard.js from getting the balance. You can pass in a "rpcUrl" to the MYKEY wallet initialization object to get the balance.'),d=!0),e.abrupt("return",null);case 3:return e.next=5,o(c);case 5:return t=e.sent,e.abrupt("return",s(h,t));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},name:r(c)}:null});case 10:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)}),type:"injected",link:"https://mykey.org/download",installMessage:o.mobileWalletInstallMessage,mobile:!0,preferred:t};var l}},"45ab1fdeb758b28d56ae":function(e,t,n){"use strict";var r=n("465c6d4ed34ba494f182"),i=n("1a1528a70eda6422082b"),o=n("50f628c2e07324bd91da"),a=n("e2705f7ac90b5259b8f0"),s=n("0e6e588e9538a8a3e834");t.a=[r.a,i.a,o.a,a.a,s.a]},"45b5b035467aab2d0d5b":function(e,t){const n=[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];t.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49];let d=l^(o<<1|a>>>31),p=h^(a<<1|o>>>31);const b=e[0]^d,m=e[1]^p,g=e[10]^d,y=e[11]^p,v=e[20]^d,w=e[21]^p,_=e[30]^d,A=e[31]^p,E=e[40]^d,k=e[41]^p;d=r^(s<<1|c>>>31),p=i^(c<<1|s>>>31);const S=e[2]^d,x=e[3]^p,M=e[12]^d,T=e[13]^p,C=e[22]^d,I=e[23]^p,R=e[32]^d,O=e[33]^p,P=e[42]^d,B=e[43]^p;d=o^(u<<1|f>>>31),p=a^(f<<1|u>>>31);const L=e[4]^d,N=e[5]^p,j=e[14]^d,D=e[15]^p,U=e[24]^d,F=e[25]^p,z=e[34]^d,H=e[35]^p,q=e[44]^d,K=e[45]^p;d=s^(l<<1|h>>>31),p=c^(h<<1|l>>>31);const V=e[6]^d,W=e[7]^p,G=e[16]^d,Y=e[17]^p,X=e[26]^d,Z=e[27]^p,J=e[36]^d,Q=e[37]^p,$=e[46]^d,ee=e[47]^p;d=u^(r<<1|i>>>31),p=f^(i<<1|r>>>31);const te=e[8]^d,ne=e[9]^p,re=e[18]^d,ie=e[19]^p,oe=e[28]^d,ae=e[29]^p,se=e[38]^d,ce=e[39]^p,ue=e[48]^d,fe=e[49]^p,le=b,he=m,de=y<<4|g>>>28,pe=g<<4|y>>>28,be=v<<3|w>>>29,me=w<<3|v>>>29,ge=A<<9|_>>>23,ye=_<<9|A>>>23,ve=E<<18|k>>>14,we=k<<18|E>>>14,_e=S<<1|x>>>31,Ae=x<<1|S>>>31,Ee=T<<12|M>>>20,ke=M<<12|T>>>20,Se=C<<10|I>>>22,xe=I<<10|C>>>22,Me=O<<13|R>>>19,Te=R<<13|O>>>19,Ce=P<<2|B>>>30,Ie=B<<2|P>>>30,Re=N<<30|L>>>2,Oe=L<<30|N>>>2,Pe=j<<6|D>>>26,Be=D<<6|j>>>26,Le=F<<11|U>>>21,Ne=U<<11|F>>>21,je=z<<15|H>>>17,De=H<<15|z>>>17,Ue=K<<29|q>>>3,Fe=q<<29|K>>>3,ze=V<<28|W>>>4,He=W<<28|V>>>4,qe=Y<<23|G>>>9,Ke=G<<23|Y>>>9,Ve=X<<25|Z>>>7,We=Z<<25|X>>>7,Ge=J<<21|Q>>>11,Ye=Q<<21|J>>>11,Xe=ee<<24|$>>>8,Ze=$<<24|ee>>>8,Je=te<<27|ne>>>5,Qe=ne<<27|te>>>5,$e=re<<20|ie>>>12,et=ie<<20|re>>>12,tt=ae<<7|oe>>>25,nt=oe<<7|ae>>>25,rt=se<<8|ce>>>24,it=ce<<8|se>>>24,ot=ue<<14|fe>>>18,at=fe<<14|ue>>>18;e[0]=le^~Ee&Le,e[1]=he^~ke&Ne,e[10]=ze^~$e&be,e[11]=He^~et&me,e[20]=_e^~Pe&Ve,e[21]=Ae^~Be&We,e[30]=Je^~de&Se,e[31]=Qe^~pe&xe,e[40]=Re^~qe&tt,e[41]=Oe^~Ke&nt,e[2]=Ee^~Le&Ge,e[3]=ke^~Ne&Ye,e[12]=$e^~be&Me,e[13]=et^~me&Te,e[22]=Pe^~Ve&rt,e[23]=Be^~We&it,e[32]=de^~Se&je,e[33]=pe^~xe&De,e[42]=qe^~tt&ge,e[43]=Ke^~nt&ye,e[4]=Le^~Ge&ot,e[5]=Ne^~Ye&at,e[14]=be^~Me&Ue,e[15]=me^~Te&Fe,e[24]=Ve^~rt&ve,e[25]=We^~it&we,e[34]=Se^~je&Xe,e[35]=xe^~De&Ze,e[44]=tt^~ge&Ce,e[45]=nt^~ye&Ie,e[6]=Ge^~ot&le,e[7]=Ye^~at&he,e[16]=Me^~Ue&ze,e[17]=Te^~Fe&He,e[26]=rt^~ve&_e,e[27]=it^~we&Ae,e[36]=je^~Xe&Je,e[37]=De^~Ze&Qe,e[46]=ge^~Ce&Re,e[47]=ye^~Ie&Oe,e[8]=ot^~le&Ee,e[9]=at^~he&ke,e[18]=Ue^~ze&$e,e[19]=Fe^~He&et,e[28]=ve^~_e&Pe,e[29]=we^~Ae&Be,e[38]=Xe^~Je&de,e[39]=Ze^~Qe&pe,e[48]=Ce^~Re&qe,e[49]=Ie^~Oe&Ke,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},"45ece6d0510f13f84983":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=2*this.getChainId()+35&&this._common.gteHardfork("spuriousDragon");this._senderPubKey=i.ecrecover(e,t,this.r,this.s,n?this.getChainId():void 0)}catch(e){return!1}return!!this._senderPubKey},e.prototype.sign=function(e){this.v=new a.Buffer([]),this.s=new a.Buffer([]),this.r=new a.Buffer([]);var t=this.hash(!1),n=i.ecsign(t,e);this._implementsEIP155()&&(n.v+=2*this.getChainId()+8),Object.assign(this,n)},e.prototype.getDataFee=function(){for(var e=this.raw[5],t=new i.BN(0),n=0;n0&&t.push(["gas limit is too low. Need at least "+this.getBaseFee()]),!1===e?0===t.length:t.join(" ")},e.prototype.serialize=function(){return i.rlp.encode(this.raw)},e.prototype.toJSON=function(e){return void 0===e&&(e=!1),{}},e.prototype._validateV=function(e){if(void 0!==e&&0!==e.length&&this._common.gteHardfork("spuriousDragon")){var t=i.bufferToInt(e);if(27!==t&&28!==t)if(!(t===2*this.getChainId()+35||t===2*this.getChainId()+36))throw new Error("Incompatible EIP155-based V "+t+" and chain id "+this.getChainId()+". See the second parameter of the Transaction constructor to set the chain id.")}},e.prototype._isSigned=function(){return this.v.length>0&&this.r.length>0&&this.s.length>0},e.prototype._overrideVSetterWithValidation=function(){var e=this,t=Object.getOwnPropertyDescriptor(this,"v");Object.defineProperty(this,"v",r({},t,{set:function(n){void 0!==n&&e._validateV(i.toBuffer(n)),t.set(n)}}))},e.prototype._implementsEIP155=function(){var e=this._common.gteHardfork("spuriousDragon");if(!this._isSigned())return e;var t=i.bufferToInt(this.v);return(t===2*this.getChainId()+35||t===2*this.getChainId()+36)&&e},e}();t.default=c},"463c3270cd348734964b":function(e,t,n){"use strict";var r=n("56597460bb82d95ef29f"),i=n("2eb88496b11b959c5430"),o=n("f3d394a5d1dda6700f76");function a(e,t){return void 0===e?t:(r.isBoolean(e,o.COMPRESSED_TYPE_INVALID),e)}e.exports=function(e){return{privateKeyVerify:function(t){return r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),32===t.length&&e.privateKeyVerify(t)},privateKeyExport:function(t,n){r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),n=a(n,!0);var s=e.privateKeyExport(t,n);return i.privateKeyExport(t,s,n)},privateKeyImport:function(t){if(r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),(t=i.privateKeyImport(t))&&32===t.length&&e.privateKeyVerify(t))return t;throw new Error(o.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(t){return r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyNegate(t)},privateKeyModInverse:function(t){return r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyModInverse(t)},privateKeyTweakAdd:function(t,n){return r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),r.isBuffer(n,o.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,o.TWEAK_LENGTH_INVALID),e.privateKeyTweakAdd(t,n)},privateKeyTweakMul:function(t,n){return r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),r.isBuffer(n,o.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,o.TWEAK_LENGTH_INVALID),e.privateKeyTweakMul(t,n)},publicKeyCreate:function(t,n){return r.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),n=a(n,!0),e.publicKeyCreate(t,n)},publicKeyConvert:function(t,n){return r.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),r.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n=a(n,!0),e.publicKeyConvert(t,n)},publicKeyVerify:function(t){return r.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),e.publicKeyVerify(t)},publicKeyTweakAdd:function(t,n,i){return r.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),r.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),r.isBuffer(n,o.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,o.TWEAK_LENGTH_INVALID),i=a(i,!0),e.publicKeyTweakAdd(t,n,i)},publicKeyTweakMul:function(t,n,i){return r.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),r.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),r.isBuffer(n,o.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,o.TWEAK_LENGTH_INVALID),i=a(i,!0),e.publicKeyTweakMul(t,n,i)},publicKeyCombine:function(t,n){r.isArray(t,o.EC_PUBLIC_KEYS_TYPE_INVALID),r.isLengthGTZero(t,o.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var i=0;i{if(a.length>=256)throw new o.TransportError("data.length exceed 256 bytes limit. Got: "+a.length,"DataLengthTooBig");const c=await this.exchange(e.concat([e.from([t,n,r,i]),e.from([a.length]),a])),u=c.readUInt16BE(c.length-2);if(!s.some(e=>e===u))throw new o.TransportStatusError(u);return c}),this.exchangeBusyPromise=void 0,this.exchangeAtomicImpl=(async e=>{if(this.exchangeBusyPromise)throw new o.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");let t;const n=new Promise(e=>{t=e});this.exchangeBusyPromise=n;let r=!1;const i=setTimeout(()=>{r=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{const n=await e();return r&&this.emit("responsive"),n}finally{clearTimeout(i),t&&t(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(e){throw new Error("exchange not implemented")}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((n,r)=>{let i=!1;const a=this.listen({next:t=>{i=!0,a&&a.unsubscribe(),s&&clearTimeout(s),this.open(t.descriptor,e).then(n,r)},error:e=>{s&&clearTimeout(s),r(e)},complete:()=>{s&&clearTimeout(s),i||r(new o.TransportError(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),s=t?setTimeout(()=>{a.unsubscribe(),r(new o.TransportError(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,n){for(let r of t)e[r]=this.decorateAppAPIMethod(r,e[r],e,n)}decorateAppAPIMethod(e,t,n,r){return async(...i)=>{const{_appAPIlock:a}=this;if(a)return Promise.reject(new o.TransportError("Ledger Device is busy (lock "+a+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(r),await t.apply(n,i)}finally{this._appAPIlock=null}}}}t.default=a,a.isSupported=void 0,a.list=void 0,a.listen=void 0,a.open=void 0,a.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",a.ErrorMessage_NoDeviceFound="No Ledger device found"}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"4760a01b6c67caab9dfd":function(e,t,n){"use strict";t.__esModule=!0,t.createStoreHook=a,t.useStore=void 0;var r=n("8af190b70a6bc55c6f1b"),i=n("085535a1e09c30d8db5e"),o=n("189d3e23daff8148a125");function a(e){void 0===e&&(e=i.ReactReduxContext);var t=e===i.ReactReduxContext?o.useReduxContext:function(){return(0,r.useContext)(e)};return function(){return t().store}}var s=a();t.useStore=s},"47e9e16a3e339321eec5":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"48d185dbea81bf1f498d":function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var r=n("e8d065a0d6d61a4c267d");function i(){return{type:r.c}}function o(e){return{type:r.b,mode:e}}},"48d2f0c12c34837ccce6":function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},"48f3ecca55e234940b8b":function(e,t,n){"use strict";var r=n("963ef19800ff2c1c6bbc").Buffer,i=n("78631df91a52183a6424"),o=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),a=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,n){var i=r.from(n?o:a);return e.copy(i,n?8:9),t.copy(i,n?181:214),i},t.privateKeyImport=function(e){var t=e.length,n=0;if(!(t2)&&!(t1?e[n+r-2]<<8:0);if(!(t<(n+=r)+i)&&!(t32||t1&&0===t[o]&&!(128&t[o+1]);--n,++o);for(var a=r.concat([r.from([0]),e.s]),s=33,c=0;s>1&&0===a[c]&&!(128&a[c+1]);--s,++c);return i.encode(t.slice(o),a.slice(c))},t.signatureImport=function(e){var t=r.alloc(32,0),n=r.alloc(32,0);try{var o=i.decode(e);if(33===o.r.length&&0===o.r[0]&&(o.r=o.r.slice(1)),o.r.length>32)throw new Error("R length is too long");if(33===o.s.length&&0===o.s[0]&&(o.s=o.s.slice(1)),o.s.length>32)throw new Error("S length is too long")}catch(e){return}return o.r.copy(t,32-o.r.length),o.s.copy(n,32-o.s.length),{r:t,s:n}},t.signatureImportLax=function(e){var t=r.alloc(32,0),n=r.alloc(32,0),i=e.length,o=0;if(48===e[o++]){var a=e[o++];if(!(128&a&&(o+=a-128)>i)&&2===e[o++]){var s=e[o++];if(128&s){if(o+(a=s-128)>i)return;for(;a>0&&0===e[o];o+=1,a-=1);for(s=0;a>0;o+=1,a-=1)s=(s<<8)+e[o]}if(!(s>i-o)){var c=o;if(o+=s,2===e[o++]){var u=e[o++];if(128&u){if(o+(a=u-128)>i)return;for(;a>0&&0===e[o];o+=1,a-=1);for(u=0;a>0;o+=1,a-=1)u=(u<<8)+e[o]}if(!(u>i-o)){var f=o;for(o+=u;s>0&&0===e[c];s-=1,c+=1);if(!(s>32)){var l=e.slice(c,c+s);for(l.copy(t,32-l.length);u>0&&0===e[f];u-=1,f+=1);if(!(u>32)){var h=e.slice(f,f+u);return h.copy(n,32-h.length),{r:t,s:n}}}}}}}}}},"491cc2e27aa2b4221847":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("ab4cb61bcb2dc161defb"),i=n("3aced5b508e7389026da"),o=n("bd819475bab090cdcabe"),a=n("5e98cee1846dbfd41421"),s=n("511b2e46256d95d30278");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object(r.combineReducers)(u(u({language:s.a,router:Object(i.connectRouter)(a.a)},o.b),e))}},"495048d02d4e31ecb67d":function(e,t,n){"use strict";e.exports=class{constructor(e,t,n,r){this.name=e,this.code=t,this.alphabet=r,n&&r&&(this.engine=n(r))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}},"49555589e35fce2252cc":function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),c=a||s;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var u=void 0;if(o.length){var f=o[o.length-1];u="."===f||".."===f||""===f}else u=!1;for(var l=0,h=o.length;h>=0;h--){var d=o[h];"."===d?i(o,h):".."===d?(i(o,h),l++):l&&(i(o,h),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return u&&"/"!==p.substr(-1)&&(p+="/"),p},e.exports=t.default},"4960a7fd8d0b5271852b":function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},"4966dd42a23eedcc4288":function(e,t,n){(function(t){!function(n){"use strict";var r=function(e){setTimeout(e,0)};"undefined"!=typeof t&&t&&"function"==typeof t.nextTick&&(r=t.nextTick),e.exports=function(e){var t={capacity:e||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===t.firstHere){t.current++,t.firstHere=!0;var e=1}else e=0;var n={n:1};"function"==typeof arguments[0]?n.task=arguments[0]:n.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?n.task=arguments[1]:n.n=arguments[1]);var r=n.task;if(n.task=function(){r(t.leave)},t.current+n.n-e>t.capacity)return 1===e&&(t.current--,t.firstHere=!1),t.queue.push(n);t.current+=n.n-e,n.task(t.leave),1===e&&(t.firstHere=!1)},leave:function(e){if(e=e||1,t.current-=e,t.queue.length){var n=t.queue[0];n.n+t.current>t.capacity||(t.queue.shift(),t.current+=n.n,r(n.task))}else if(t.current<0)throw new Error("leave called too many times.")},available:function(e){return e=e||1,t.current+e<=t.capacity}};return t}}()}).call(this,n("f2ac42b6e13efe10d4bd"))},"49a47d064cfbf2949ee5":function(e,t,n){"use strict";var r=function(){};e.exports=r},"49c5543a3e4d9ad9eda1":function(e,t,n){var r=n("fe04f3dffedf971443f1"),i=n("dddcbc0b2815ad140f41"),o=n("963ef19800ff2c1c6bbc").Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function f(e,t,n){return e&t|n&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,A=0|this._cl,E=0|this._dl,k=0|this._el,S=0|this._fl,x=0|this._gl,M=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var C=t[T-30],I=t[T-30+1],R=d(C,I),O=p(I,C),P=b(C=t[T-4],I=t[T-4+1]),B=m(I,C),L=t[T-14],N=t[T-14+1],j=t[T-32],D=t[T-32+1],U=O+N|0,F=R+L+g(U,O)|0;F=(F=F+P+g(U=U+B|0,B)|0)+j+g(U=U+D|0,D)|0,t[T]=F,t[T+1]=U}for(var z=0;z<160;z+=2){F=t[z],U=t[z+1];var H=f(n,r,i),q=f(w,_,A),K=l(n,w),V=l(w,n),W=h(s,k),G=h(k,s),Y=a[z],X=a[z+1],Z=u(s,c,y),J=u(k,S,x),Q=M+G|0,$=v+W+g(Q,M)|0;$=($=($=$+Z+g(Q=Q+J|0,J)|0)+Y+g(Q=Q+X|0,X)|0)+F+g(Q=Q+U|0,U)|0;var ee=V+q|0,te=K+H+g(ee,V)|0;v=y,M=x,y=c,x=S,c=s,S=k,s=o+$+g(k=E+Q|0,E)|0,o=i,E=A,i=r,A=_,r=n,_=w,n=$+te+g(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+A|0,this._dl=this._dl+E|0,this._el=this._el+k|0,this._fl=this._fl+S|0,this._gl=this._gl+x|0,this._hl=this._hl+M|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,A)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+c+g(this._fl,S)|0,this._gh=this._gh+y+g(this._gl,x)|0,this._hh=this._hh+v+g(this._hl,M)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},"4a62c8e686dcbe0ae46f":function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<>1,f=-7,l=n?i-1:0,h=n?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*c-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*b}},"4aa2a0a0e3803f6a48de":function(e,t,n){},"4ab034fe886ac17d276b":function(e,t,n){"use strict";function r(e){let t=void 0;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},"4b061cde997899f01310":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},"4b53a68e4f8de48dd268":function(e,t,n){const r=n("9d087b5d39cdcd876506"),i=n("9ca89db1ffe884fbb1a4");e.exports=function(e){const t=r(e),n=i(e);return function(e,r){switch("string"===typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},"4b80994996621a6e63f3":function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}t.__esModule=!0,t.default=function(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=0;oe.hash);this.addResults(a)}}},"4be2c15021f717a728f0":function(e,t,n){var r=n("65955717fc58c97d7378"),i=n("dba25a6f599687a5b44e");e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},"4c18fb855e49f1c4edfe":function(e,t,n){"use strict";var r=n("963ef19800ff2c1c6bbc").Buffer,i=n("51c14598f89e3eb6cfa8"),o=n("a07bfecaef33297c14e6"),a=n("347ed30c1425cbc1450a").ec,s=n("0263e4300201c7ba2eae"),c=new a("secp256k1"),u=c.curve;function f(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var n=new o(t);if(n.cmp(u.p)>=0)return null;var r=(n=n.toRed(u.red)).redSqr().redIMul(n).redIAdd(u.b).redSqrt();return 3===e!==r.isOdd()&&(r=r.redNeg()),c.keyPair({pub:{x:n,y:r}})}(t,e.slice(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){var r=new o(t),i=new o(n);if(r.cmp(u.p)>=0||i.cmp(u.p)>=0)return null;if(r=r.toRed(u.red),i=i.toRed(u.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;var a=r.redSqr().redIMul(r);return i.redSqr().redISub(a.redIAdd(u.b)).isZero()?c.keyPair({pub:{x:r,y:i}}):null}(t,e.slice(1,33),e.slice(33,65));default:return null}}t.privateKeyVerify=function(e){var t=new o(e);return t.cmp(u.n)<0&&!t.isZero()},t.privateKeyExport=function(e,t){var n=new o(e);if(n.cmp(u.n)>=0||n.isZero())throw new Error(s.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return r.from(c.keyFromPrivate(e).getPublic(t,!0))},t.privateKeyNegate=function(e){var t=new o(e);return t.isZero()?r.alloc(32):u.n.sub(t).umod(u.n).toArrayLike(r,"be",32)},t.privateKeyModInverse=function(e){var t=new o(e);if(t.cmp(u.n)>=0||t.isZero())throw new Error(s.EC_PRIVATE_KEY_RANGE_INVALID);return t.invm(u.n).toArrayLike(r,"be",32)},t.privateKeyTweakAdd=function(e,t){var n=new o(t);if(n.cmp(u.n)>=0)throw new Error(s.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(n.iadd(new o(e)),n.cmp(u.n)>=0&&n.isub(u.n),n.isZero())throw new Error(s.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return n.toArrayLike(r,"be",32)},t.privateKeyTweakMul=function(e,t){var n=new o(t);if(n.cmp(u.n)>=0||n.isZero())throw new Error(s.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return n.imul(new o(e)),n.cmp(u.n)&&(n=n.umod(u.n)),n.toArrayLike(r,"be",32)},t.publicKeyCreate=function(e,t){var n=new o(e);if(n.cmp(u.n)>=0||n.isZero())throw new Error(s.EC_PUBLIC_KEY_CREATE_FAIL);return r.from(c.keyFromPrivate(e).getPublic(t,!0))},t.publicKeyConvert=function(e,t){var n=f(e);if(null===n)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);return r.from(n.getPublic(t,!0))},t.publicKeyVerify=function(e){return null!==f(e)},t.publicKeyTweakAdd=function(e,t,n){var i=f(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new o(t)).cmp(u.n)>=0)throw new Error(s.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);var a=u.g.mul(t).add(i.pub);if(a.isInfinity())throw new Error(s.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return r.from(a.encode(!0,n))},t.publicKeyTweakMul=function(e,t,n){var i=f(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new o(t)).cmp(u.n)>=0||t.isZero())throw new Error(s.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return r.from(i.pub.mul(t).encode(!0,n))},t.publicKeyCombine=function(e,t){for(var n=new Array(e.length),i=0;i=0||n.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);var i=r.from(e);return 1===n.cmp(c.nh)&&u.n.sub(n).toArrayLike(r,"be",32).copy(i,32),i},t.signatureExport=function(e){var t=e.slice(0,32),n=e.slice(32,64);if(new o(t).cmp(u.n)>=0||new o(n).cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);return{r:t,s:n}},t.signatureImport=function(e){var t=new o(e.r);t.cmp(u.n)>=0&&(t=new o(0));var n=new o(e.s);return n.cmp(u.n)>=0&&(n=new o(0)),r.concat([t.toArrayLike(r,"be",32),n.toArrayLike(r,"be",32)])},t.sign=function(e,t,n,i){if("function"===typeof n){var a=n;n=function(n){var c=a(e,t,null,i,n);if(!r.isBuffer(c)||32!==c.length)throw new Error(s.ECDSA_SIGN_FAIL);return new o(c)}}var f=new o(t);if(f.cmp(u.n)>=0||f.isZero())throw new Error(s.ECDSA_SIGN_FAIL);var l=c.sign(e,t,{canonical:!0,k:n,pers:i});return{signature:r.concat([l.r.toArrayLike(r,"be",32),l.s.toArrayLike(r,"be",32)]),recovery:l.recoveryParam}},t.verify=function(e,t,n){var r={r:t.slice(0,32),s:t.slice(32,64)},i=new o(r.r),a=new o(r.s);if(i.cmp(u.n)>=0||a.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);if(1===a.cmp(c.nh)||i.isZero()||a.isZero())return!1;var l=f(n);if(null===l)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);return c.verify(e,r,{x:l.pub.x,y:l.pub.y})},t.recover=function(e,t,n,i){var a={r:t.slice(0,32),s:t.slice(32,64)},f=new o(a.r),l=new o(a.s);if(f.cmp(u.n)>=0||l.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);try{if(f.isZero()||l.isZero())throw new Error;var h=c.recoverPubKey(e,a,n);return r.from(h.encode(!0,i))}catch(e){throw new Error(s.ECDSA_RECOVER_FAIL)}},t.ecdh=function(e,n){var r=t.ecdhUnsafe(e,n,!0);return i("sha256").update(r).digest()},t.ecdhUnsafe=function(e,t,n){var i=f(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);var a=new o(t);if(a.cmp(u.n)>=0||a.isZero())throw new Error(s.ECDH_FAIL);return r.from(i.pub.mul(a).encode(!0,n))}},"4c61377aa1c7233aedf1":function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},"4c874ed8688d89b721e6":function(e,t,n){"use strict";var r;var i=n("a51274b1fd6eeadd35ea").codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){f||(f=e),e&&h.forEach(c),o||(h.forEach(c),l(f))})});return t.reduce(u)}},"4cc915328c9420a7189b":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var r=n("75661b07e4f3e7211eca"),i=r.keccak224,o=r.keccak384,a=r.keccak256,s=r.keccak512,c=n("51c14598f89e3eb6cfa8"),u=n("3aad3afd3c29698c953a"),f=n("787b67936387d49cb10d"),l=n("1809d85e5aaab9fc62fa");t.keccak=function(t,n){switch(void 0===n&&(n=256),t="string"!==typeof t||u.isHexString(t)?l.toBuffer(t):e.from(t,"utf8"),n||(n=256),n){case 224:return i(t);case 256:return a(t);case 384:return o(t);case 512:return s(t);default:throw new Error("Invald algorithm: keccak"+n)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=l.toBuffer(e),c("sha256").update(e).digest()},t.ripemd160=function(e,t){e=l.toBuffer(e);var n=c("rmd160").update(e).digest();return!0===t?l.setLength(n,32):n},t.rlphash=function(e){return t.keccak(f.encode(e))}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"4d03e3d57b0efdaa2d12":function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},"4d294c5ce19f76e668a6":function(e,t,n){n("ddab1a7473526a22a6f7");var r=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},i=function(e){return(e.length-2)/2},o=function(e){for(var t=[],n=2,r=e.length;n>6|192);else{if(i>55295&&i<56320){if(++r==e.length)return null;var o=e.charCodeAt(r);if(o<56320||o>57343)return null;n+=t((i=65536+((1023&i)<<10)+(1023&o))>>18|240),n+=t(i>>12&63|128)}else n+=t(i>>12|224);n+=t(i>>6&63|128)}n+=t(63&i|128)}}return n},toString:function(e){for(var t="",n=0,o=i(e);n127){if(a>191&&a<224){if(n>=o)return null;a=(31&a)<<6|63&r(e,n)}else if(a>223&&a<240){if(n+1>=o)return null;a=(15&a)<<12|(63&r(e,n))<<6|63&r(e,++n)}else{if(!(a>239&&a<248))return null;if(n+2>=o)return null;a=(7&a)<<18|(63&r(e,n))<<12|(63&r(e,++n))<<6|63&r(e,++n)}++n}if(a<=65535)t+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,t+=String.fromCharCode(a>>10|55296),t+=String.fromCharCode(1023&a|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2===0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:a,toArray:o,fromUint8Array:function(e){return a([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(o(e))}}},"4d63cb4e3d98e045d2c8":function(e,t,n){"use strict";var r=n("a07bfecaef33297c14e6"),i=n("cd9ec63fd8cdb8e5b124"),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},"4de17b50d35d24f9c74a":function(e,t,n){"use strict";(function(e){var r=n("971168df95b1b223bb2a"),i=n("4a62c8e686dcbe0ae46f"),o=n("5b56f889e8364e6f86ab");function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var l=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+l<=n)switch(l){case 1:u<128&&(f=u);break;case 2:128===(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(f=c);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),f=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=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),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("698d75b157f24ae829cc"))},"4de9ec7bd92b53190f40":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("d85e51bf7588397461f8"),i=n("efa6863c94f5cc444ec1"),o=n("e1b92b6a66e51ef1c59d"),a=n("6a71f797a2af5b764be1"),s=n("50d5df5f31928438171d");function c(e){e=s.removeHexPrefix(e.toLowerCase());const t=s.removeHexPrefix(r.keccak_256(i.convertUtf8ToBuffer(e)));let n="";for(let r=0;r7?n+=e[r].toUpperCase():n+=e[r];return s.addHexPrefix(n)}t.toChecksumAddress=c,t.isValidAddress=(e=>!!e&&("0x"===e.toLowerCase().substring(0,2)&&(!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||e===c(e))))),t.parsePersonalSign=function(e){return a.isEmptyArray(e)||a.isHexString(e[0])||(e[0]=i.convertUtf8ToHex(e[0])),e},t.parseTransactionData=function(e){if("undefined"===typeof e.from||!t.isValidAddress(e.from))throw new Error("Transaction object must include a valid 'from' value.");function n(e){let t=e;return("number"===typeof e||"string"===typeof e&&!a.isEmptyString(e))&&(a.isHexString(e)?"string"===typeof e&&(t=o.sanitizeHex(e)):t=i.convertNumberToHex(e)),"string"===typeof t&&(t=o.removeHexLeadingZeros(t)),t}const r={from:o.sanitizeHex(e.from),to:"undefined"===typeof e.to?"":o.sanitizeHex(e.to),gasPrice:"undefined"===typeof e.gasPrice?"":n(e.gasPrice),gas:"undefined"===typeof e.gas?"undefined"===typeof e.gasLimit?"":n(e.gasLimit):n(e.gas),value:"undefined"===typeof e.value?"":n(e.value),nonce:"undefined"===typeof e.nonce?"":n(e.nonce),data:"undefined"===typeof e.data?"":o.sanitizeHex(e.data)||"0x"},s=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach(e=>{!r[e].trim().length&&s.includes(e)&&delete r[e]}),r}},"4e7f84cbc37868dd1d46":function(e,t,n){e.exports=n.p+"75ad32e445817b9758d039e10420e26b.otf"},"4ea11220a6d6106ac8c6":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;ts?t=e(t):t.length=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},"4f963ca3bf75092e6919":function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,i=0,o=0,a=null,s=null,c=0;c=5&&(r+=n+(i-5)),a=f,i=1),(f=e.get(u,c))===s?o++:(o>=5&&(r+=n+(o-5)),s=f,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,n=0,i=0;i=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,a),s>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}n("2c09af3fb5c4ba3698b3");var f=n("9284d6798738407ef12f");n("cced10b079020449fa4d"),n("287b95738704806f900d"),n("ea910ae7809c895d9b57");var l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAxCAYAAAHfINuoAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAEB9JREFUWAm1WQtsXWUd/3/n3FfbdWOPbgNBAcHMbCBYYI5tvbdstLddN0RTJaBiRI1mQAi+EEQqZjAUNGGEGBQSI2pYFZB261rZ1nbLHrqqsE2DykNEYA8HWx/39t5zzufv9z/n3LXTMWPil9ye73zn//3fr++rSDRsLpfg1La0pI3NN/RK7ZxWKR7xpBS0md6tGxwFnN9pRQym/i9tR4cjtjn7sG3KflG31tcn+TSKq9o7V3yzVxKJlER7+FFsPrtekol2ycxI64IuRluPL7Q0LrZXNpx/fCGf/QrR2OYGq8+2ZZYsJWRFY2B6B43ksw8BOxaszBNjxK64wornFUndEdf5lOneYrAggK7CcwPFgABLfZl6pEoKc8YVIKZo87lPxHNQbVwhSadbyuUSUC02G/v3QBArpjojGb8oY8UxSbjVjhj/ZuC+HTTSCgR2QWSvBKMj8lapShZdUUvmQm2SPiSHTCqC2TR4IT52Sjp4Szo6sDEatg2ixPN89hUqga+2JdJ8c8OISqOLzUvHoZfLZOqsfTJ8cLsUzVJgLEkyaeSNt1MVQAWm4udOK4nv8/W3ZtPAZZxUhm2fn+KLbc1dpE/4CdzjLp2HrqBG+SdApqixL826smfQl5K9xPRtHVJeXcgbBD+l1CnTuy0tozZpOjoCKXvA4e+y7e2uODUZqMwAyXWqHtshjunv9+zKZVZcN6R47MAtpqcHAoajokd9LZXFbNxKAXfid69iDeEihb9e76pbJOkl8OPDo8vx3cixA10RHAFtIGes9GFGTz2iueE1MzRUBtzd4jgt8O5M6FOp1FQVwphnot2zlNfDI2tNDwTJ2L+I730rIaWxmbYlZ2XKeDUDBhRSUiqVQqzYGtiZpm+wwzG9O49AT8ekUDUmU2ffJAnnAlUXYKDHopScGTGf+oQlfqUeTIC2K96FeUU1BJhs69bGhbDzdsLCP9WsBDrp0Ag/4atRq3RIwHU4RZv4wYOI53NUoRu2GHWYkVk3QKh7QGW6Itm1ZQ0c+zasIWTM/XDJ29Wy4JDJZgM2L4OJ02CvDKOvFaleIz09JamvT8isGnrbbcqIMS5ctMKEbQIDxt4rqcQCxGYgxnHoEkxlZXB2h/QOZkzPwDcrPlNXsw7fvoSfC+0gS1gobpk1kUSmr79bFjV+wHRtpiMybxyPVYJLB7ZiqG/lG7qxcgNegco8LkfLDAGQLtMaGqIKfMKfyU7bQc1hDB/chtmVQA0x5PvyoYHr5cwzSwY6DZF6ot5F2P7+STiQh40ahN9gcwsvewrKRsRaxJV7hyRHvy39uRSIdDI7K9IUsjXiz65cbmkM7o0HsJsHsBk+Yr/BRdM7cLUk3Sogu1YSww9LaVZGqqUAZldI2j7KaFKdUf2l8nfoBTDsKhBgEh5WR4QLvwyEswG6C+WlyXR2+lorEokaSflvR0mI9IoQ4wnZNPgZbAxU1yOv1iDbHkUEiunebEL5Fw2+FyanEZZK4Z+ehmbdIcc8++xRxNGX4ErAZUtAVkBy/TRf8BM5dvAfEqQP0rpEptzrhwl/wO3reJ0BimlodDX87mFyolxDPNO5v6QGKaEmpJIpkDhNpr9R4DrRqMgT8FWmQAzOnPvBIfKVOQDjfU5c0wPxuZGloComVNmEyUkREkhFr62FWgqjyC00x/fB8a0TEZx0DvmdSqJngm/J3qdIIa5tzuV1jnIPzq+1rUveFyNi8YrnfMaKtHbV4lopJb6Htc+qEazJycFjO5jx7KrlVsrBeTJl5t+hy5K96kqrlve856GKG+Fq24hMjYIi+wwK60rEMjQTjGG9mtFAB2arIsEYYtneReXAwmlmJ9mZvQ1/18BxmAxdGAcpuPw6rH0V7G1WqlMmUFCMeR6fs4qMbywsSXcNNiVBPmVbGrOIGqTlgXvE8WcA4hH8EuJpsZwFhoCQtS2VUu+HwheJrdkNBBxoG5Y+AGLkgsazUEV/JdTeLIzIpoFbmM6AaD2+Q0RDbByhn3IWpy5gCCSVpkXROCFJEKnnlWGUT9EQ1K3C6KYoQDCPEJIBRasT+hd0+3O4CrlDU+RsgZ4JkkQ2/3GlNHHlhBEhnLzKqEAGvwaraSocYl0pXvAc3sehAh8utUYNNnmbvk1CCPaQk6G7fEM/xKOmi0CwTkXsHbgI3LFvdMVN3E7VEPZEnJMQar6j5G4iqxtTyQy4u1mGhtSMQL4B6x6ydhEq+QkZeEeEWrnyDb8Dd9QdG4W7lDsYiNwgftvAJWtQBr5a6SInIo04nEAombwYAGlsQCoYuFsjpTlbUHWwByt7aG+lBC7Hocu7NSdaWxGdjo3vlfdQi6yCnv9529RUY5cvn4bPGYoo89s9cHmTpi14LwTuUQMac65yaeVlB04ZVrJ87mxd9Lw+WDiJaPih6esbFbeEeLU+RWQbpMnA82+C6Ab6ZQcG5zOUKoOo2kiLPg1KjeBijxSd5lCPuWtg36eBuAZN6uGoBBSxaT04vJ44UMzuRDd0jxw5cprCMGujPhv74dxpUjJvUXSNYQS/6Yhak+aGV7F3Nn50FwiZ1E06j/4gcv6B6VSobbv0DrSq8rD4EhZPB5dlZBR8DIemqeI4XUbDRPVtzNWogd0yPp6Uaak81PFkTIie4LD5gRjnYhE9o01D+TuITtd/9WsDsYmsHIXe5Wgbn5aqKlemZd6NEvEkvqGR9r4W+3DIId1hdPrZCNUXYF3UEDkMImfENQNE3pCU9z6ZWyyaR5Bw89l2KGZ9WF+cvTDgJUCso+Iv9vNI5a9Wv1/c5HNwaJ5yUuzGlTKb8Ljy5RseghFXYzeShuyGipZEuCYj5JsWJU5q3QIbXkmmUnLJZle66l118Hz2d4iZBUCEOuLcZ3r7wzaPe6JR4TBeqHDU2si6AaQ4YfpyngTeXwADztFH2qBVpszuU6eON54MIdc1bvGA9Q/gdSqsmwFnZUknkzLuzpFp095msYpwTHpMyjbxF7CtwQ3DzIEnbAXqcXSpSW2SXPfoyZDF+0/5RFTcTiCq41TAFR1STMnl1IErhShEkkGcwJJo54xkocOLkb33wVUuUCKR9XWep4rMLxDjqzWjL+wpM+rQiy9AaOCoGzAtogiazWhrNvIYzH3xUIbr6qx0dgYVLVU+Nl0+W5xkFu+r8FsON5yrkRbWf6p0FMEyBf1AFxhYpaeL/ftxaEYruXJltZSO/gnw74YACB3/R4D5XExQYVqW1qHJ2A/m8LSjwFejsOwUScPaF7HWC5gucQo7TM/uY3hnKW/YJTVVC2W0wHemAUrJtIskH2YE5GgPoC8j2B5BJN9PQLZV2ik2NaHvLf4BUX06NMT9HrJCGo0JE93HFZadOWONqTpRvh/MNKkwrCUsijykB7agJR39Cei4yBYiY4UH0RLJUSAjnvGwZQ1egQs+hlDYKiPm+RPMrT6jVatzqGRbr3iPBMU9yFhsaogE8QhjlspFXBt8DJl7GgI9r8xBQlmyZFj27/8CNUqCHNDyFLjQxWCuCXRvAOMQ1OL+qERaoxOjBPlO6f8Ekj8gU+fuUwREHA0lRJ9jv9iGa6DA+yM+T2SOrsBfRspILG6iGQGhfkafYj2axBxx19WVZNzshCB3grntkdVgsXBMZDBa0pIqMr/Tw4nLj52VHzWB0+fo9GX5M1iphomoDWrOhwV4JOQWOJVJaSfjmnpo8kUtlMQxUWC+zp/vTbBSRRkA1fEfGIw/TX7S4bUi57OXakQqrQk4HAeHX+dsrFwr6TTx0pddBABP0OdKXc3f7Iol08l9zCy+n3L8VwzqBSOdPL90GTT0G/gbzUhpfdWYMT4MOM9s3PI3RO/PYd5r4C5xy4sAQPAYBJHvvGibGs5RF2lvx0n11OMdGVRpcbejTWU+ezV68WdBLMaKewloTewxOPX5ZtPWF7SF5m1pz+ATuOZZge/Ejx+6siBAdTTT8fsTBL0Qvlj6bzR5AoNUzPERaa6Iq6TrQOzJSHPk0EOexJEleBOamY+rpJeVGBMsO2QKtWlwo/h2sWLDJQmeLgSBv9o09jyHHmERNSmvd0W57DjdibMTGJzwieckEuNlsOs8jlwVRxY6bzDnB38XWzUfefE1276oSok151bjmjUHpy8yfYDxHdD6PA0kDZ4o05FR19nBW1htaHjzfJKBD2YkCqwwwAKpVdj+/tCWjqDf0OBiA4MzGcwaBC/J1Dnnmd7eI6wipnNnAenkqyjY66DVHpzjPggmR5RxmB7MnAnNDau/YgL8DBw87OlKK768tTakrYv8Y8YItb2S6TQ7WNxvRpISxjqPoMtnq5EBUtzt2P0w33vVh2jKrq4xLf4J9z5tqliBjNlpVzTWK+OE2dj/pnips4DjNXxjlUoiBb0iqeGfkYT6OoIHs0vCsqfRj9dgBxr/8k+R+Y9AMzjEewWUqcsk3/BJ3bQIpuvd+hxKT5tkGJR2D6J0AZFqqaMp87nbkFzXaM5jPrSoApoDcdEbahI+jMDhLU3RgAn7EhjErZ27xHQNjenRJuTyVlhgpgT+GA4QSVhpN4IN12Ek1tJwHbL+42AQDTBuuVycCrxgMX0ICFBzEXG8IFi4sCw0R3u7w4qAfV9Dj7sWGmaZYxlSfHgyeSMv4tU6F1HIuOfFemVobmX6as7dKCl3HRTF3Ikgwj7XXGA29O/DHWh0TZTPfh25657InC7m8DXvBkjxmPoS/SxigGR5SOa5FkgLYAuVfdKgn5FZXpFCG9KA9mxbTIuQlWYjn3sIGlsdMmeToOvgyqXJ9A38mvChJqilTQP3grnroXomUGgQR1rHfRTpYJ8cSoepoKWlklxxMr0DMN9DWxwzF0c56fPUQBaxz1ytzHWAVWodbkMAGZ4xDyVwFDAhc8bAh3B36clFyhwrF+AppQ7mMc3w2l3Y34PR88BA2Iez8S/7f5B0Im+e2XyAppFhXDXiYA8EAXztKphlPfw4pdHp+39Fesmbni0v6m3XoTrNCNpstOQ+hEjfAOFnIHXRpAZ+z2P3U1DSR8jMRE1XGFQu+TFmFFGIQ1k/GJ2CJxE5mCP/4aRi3Y/wX2lx0yqHDhklvjI3S8ZTBZ6qYyE0PxJvS+7L0OF3o+Y0FDxkbK+4Pu6utr8Vmz3mhU+mmUkjRihBBm39IP8LdSZk3A8pkRrIHN3L79aL611b16oZ6Oi846vPHZG+vkJcu6W2lrdHz+j1ZxCsDfejVpIxY56U+qW8pr9Qqk9nhy3xlehEhv5NgxM/cq7EeCPHeXPDOjSiN8JX+Uot0DxJOPhuSTltpqv/MD8wB0JT3cgGc9WXCUfzcwTyRRwwf8ApT7usJJyfbJySwXijhZNLB6s+dNja+FHkqSe0qoR+hBtCmj+AJlBrXSehrsB8kUxQ86/h7rXVbBzcq5oeGvKIJ8b9Ts9/M/HJgHk6qyC1mW6YBnnPnA3dvACt0jehZcsIxYka7VUKx3RcaMpIkATsWbjS/DNx04UqeLjw/xyavCMCKHcP89oY/29ijrwppqtRHL/8D89/AX4b8Jtu/BkFAAAAAElFTkSuQmCC";t.default=function(e){var t=e.networkId,r=e.preferred,o=e.label,a=e.iconSrc,h=e.svg,d=c(e,["networkId","preferred","label","iconSrc","svg"]);return{name:o||"Authereum",svg:h,iconSrc:a||l,wallet:(p=s(regeneratorRuntime.mark(function e(){var r,o,a,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){e(u(n("21fc274bcb05808722e9")))});case 2:return r=e.sent,o=r.default,a=new o(i({networkName:f.networkName(t),blockedPopupRedirect:!1},d)),c=a.getProvider(),e.abrupt("return",{provider:c,instance:a,interface:{name:"Authereum",connect:function(){return c.enable()},disconnect:function(){a.destroy()},address:{get:function(){return a.getAccountAddress()}},network:{get:function(){return Promise.resolve(t)}},balance:{get:function(){var e=s(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.isAuthenticated();case 2:return t=e.sent,e.abrupt("return",t&&a.getBalance());case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},dashboard:function(){return f.openLink("https://".concat(1!==t?"".concat(f.networkName(t),"."):"","authereum.com/"))}}});case 7:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)}),type:"sdk",desktop:!0,mobile:!0,preferred:r};var p}},"50d5df5f31928438171d":function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("e0669e054966574a7e82")),o=r(n("d3df5bc4c4cd92c1bffc")),a=r(n("0fde0385e5fa3b2d9e59")),s="hex",c="utf8",u="buffer",f="array",l="typed-array",h="array-buffer",d="0";function p(e){return new Uint8Array(e)}function b(e,t=!1){const n=e.toString(s);return t?I(n):n}function m(e){return e.toString(c)}function g(e){return _(b(e))}function y(e){return a.default(e)}function v(t){return e.from(C(t),s)}function w(e){return p(v(e))}function _(e){return new i.default(C(e),"hex").toNumber()}function A(t){return e.from(t,c)}function E(e,t){const n=C(R(new i.default(e).toString(16)));return t?I(n):n}function k(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function S(t){return e.isBuffer(t)}function x(e){return o.default.strict(e)&&!S(e)}function M(e){return!x(e)&&!S(e)&&"undefined"!==typeof e.byteLength}function T(e,t,n,r=d){const i=t-e.length;let o=e;if(i>0){const t=r.repeat(i);o=n?t+e:e+t}return o}function C(e){return e.replace(/^0x/,"")}function I(e){return e.startsWith("0x")?e:`0x${e}`}function R(e){return(e=(e=C(e)).length%2!==0?d+e:e)&&(e=I(e)),e}t.bufferToArray=p,t.bufferToHex=b,t.bufferToUtf8=m,t.bufferToNumber=g,t.arrayToBuffer=y,t.arrayToHex=function(e,t=!1){return b(y(e),t)},t.arrayToUtf8=function(e){return m(y(e))},t.arrayToNumber=function(e){return g(y(e))},t.hexToBuffer=v,t.hexToArray=w,t.hexToUtf8=function(e){return m(v(e))},t.hexToNumber=_,t.utf8ToBuffer=A,t.utf8ToArray=function(e){return p(A(e))},t.utf8ToHex=function(e,t=!1){return b(A(e),t)},t.utf8ToNumber=function(e){return new i.default(e,10).toNumber()},t.numberToBuffer=function(e){return v(E(e))},t.numberToArray=function(e){return w(E(e))},t.numberToHex=E,t.numberToUtf8=function(e){return new i.default(e).toString()},t.isHexString=k,t.isBuffer=S,t.isTypedArray=x,t.isArrayBuffer=M,t.getType=function(e){return S(e)?u:x(e)?l:M(e)?h:Array.isArray(e)?f:typeof e},t.getEncoding=function(e){return k(e)?s:c},t.concatBuffers=function(...t){return e.concat(t)},t.trimLeft=function(e,t){const n=e.length-t;return n>0&&(e=e.slice(n)),e},t.trimRight=function(e,t){return e.slice(0,t)},t.padLeft=function(e,t,n=d){return T(e,t,!0,n)},t.padRight=function(e,t,n=d){return T(e,t,!1,n)},t.removeHexPrefix=C,t.addHexPrefix=I,t.sanitizeHex=R,t.removeHexLeadingZeros=function(e){const t=e.startsWith("0x");return e=(e=C(e)).startsWith(d)?e.substring(1):e,t?I(e):e}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"50f628c2e07324bd91da":function(e,t,n){"use strict";var r=n("3562001638983595ee40"),i=n("d782b72bc5b680c7122c"),o=n("a28fc3c963a1d4d1a2e5"),a=function(e){return e.subscriptions},s=function(){return Object(o.a)(a,function(e){return e})},c=n("5481216f1a1b76c8f273"),u=n("9945ea5c241f27b1f66c"),f=n.n(u),l=regeneratorRuntime.mark(g),h=regeneratorRuntime.mark(v),d=regeneratorRuntime.mark(w),p=regeneratorRuntime.mark(A),b=regeneratorRuntime.mark(E);function m(e){var t=e.drizzle,n=e.web3,i=e.syncAlways;return Object(r.eventChannel)(function(e){var o=n.eth.subscribe("newBlockHeaders",function(t){t&&(e({type:"BLOCKS_FAILED",error:t}),console.error("Error in block header subscription:"),console.error(t),e(r.END))}).on("data",function(r){e({type:"BLOCK_RECEIVED",blockHeader:r,drizzle:t,web3:n,syncAlways:i})}).on("error",function(t){e({type:"BLOCKS_FAILED",error:t}),e(r.END)});return function(){o.off()}})}function g(e){var t,n,r,o,a;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.drizzle,n=e.web3,r=e.syncAlways,s.next=3,Object(i.call)(m,{drizzle:t,web3:n,syncAlways:r});case 3:o=s.sent,s.prev=4;case 5:return s.next=8,Object(i.take)(o);case 8:return a=s.sent,s.next=11,Object(i.put)(a);case 11:s.next=5;break;case 13:return s.prev=13,o.close(),s.finish(13);case 16:case"end":return s.stop()}},l,null,[[4,,13,16]])}function y(e){var t=e.drizzle,n=e.interval,i=e.web3,o=e.syncAlways;return Object(r.eventChannel)(function(e){var a=new f.a({provider:i.currentProvider,pollingInterval:n});a.on("block",function(n){e({type:"BLOCK_FOUND",block:n,drizzle:t,web3:i,syncAlways:o})}),a.start().catch(function(t){e({type:"BLOCKS_FAILED",error:t}),e(r.END)});return function(){a.stop().catch(function(e){})}})}function v(e){var t,n,r,o,a,s;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.drizzle,n=e.interval,r=e.web3,o=e.syncAlways,c.next=3,Object(i.call)(y,{drizzle:t,interval:n,web3:r,syncAlways:o});case 3:a=c.sent,c.prev=4;case 5:return c.next=8,Object(i.take)(a);case 8:return s=c.sent,c.next=11,Object(i.put)(s);case 11:c.next=5;break;case 13:return c.prev=13,a.close(),c.finish(13);case 16:case"end":return c.stop()}},h,null,[[4,,13,16]])}function w(e){var t,n,r,o,a,s;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.blockHeader,n=e.drizzle,r=e.web3,o=e.syncAlways,a=t.number,c.prev=2,c.next=5,Object(i.call)(r.eth.getBlock,a,!0);case 5:return s=c.sent,c.next=8,Object(i.call)(A,{block:s,drizzle:n,web3:r,syncAlways:o});case 8:c.next=16;break;case 10:return c.prev=10,c.t0=c.catch(2),console.error("Error in block processing:"),console.error(c.t0),c.next=16,Object(i.put)({type:"BLOCK_FAILED",error:c.t0});case 16:case"end":return c.stop()}},d,null,[[2,10]])}function A(e){var t,n,r,o,a,u,f,l,h,d,b,m,g,y,v,w,A,E,k;return regeneratorRuntime.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.block,n=e.drizzle,r=e.web3,o=e.syncAlways,p.next=3,Object(i.select)(Object(c.a)());case 3:if(a=p.sent){p.next=6;break}return p.abrupt("return");case 6:return p.next=8,Object(i.select)(s());case 8:return u=p.sent,p.prev=9,p.next=12,Object(i.put)({type:"BLOCK_PROCESSING",block:t});case 12:if(!o){p.next=16;break}return p.next=15,Object(i.all)(Object.keys(n.contracts).map(function(e){return Object(i.put)({type:"CONTRACT_SYNCING",contract:n.contracts[e]})}));case 15:return p.abrupt("return");case 16:return f={},"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",l=["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"],p.next=21,r.eth.getPastLogs({fromBlock:t.number,toBlock:t.number,topics:l});case 21:if(h=p.sent,d=function(e){var t=e.topics,i=e.address,o=t[1],s=t[2];if(o&&s){var c=_.endsWith(o.toLowerCase(),a.replace(/0x/,"")),u=_.endsWith(s.toLowerCase(),a.replace(/0x/,""));if(c||u){var l=n.findContractByAddress(i.toLowerCase()),h=r.utils.toChecksumAddress(i);f[h]=l}}},_.each(h,d),(b=t.transactions).length>0)for(m=0;m0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;return Object(r.a)(e,function(e){switch(t.type){case"app/LanguageToggle/CHANGE_LOCALE":e.locale=t.locale}})}},"513e22a3345583417edb":function(e,t,n){(function(t){var r=n("a07bfecaef33297c14e6"),i=new(n("9c91b382288be0af0590")),o=new r(24),a=new r(11),s=new r(10),c=new r(3),u=new r(7),f=n("9ec5bae168a2127d4093"),l=n("dc10a1e1660f93ecd0a2");function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function d(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=b;var p={};function b(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function m(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var l,h=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!i.test(e))return h+=1,h+="02"===n||"05"===n?8:4,p[r]=h,h;switch(i.test(e.shrn(1))||(h+=2),n){case"02":e.mod(o).cmp(a)&&(h+=8);break;case"05":(l=e.mod(s)).cmp(c)&&l.cmp(u)&&(h+=8);break;default:h+=4}return p[r]=h,h}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new r(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),o=this.getPrime();if(i.length=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var n;return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=o.prototype:(null===(n=e)&&(n=new o(t)),n.length=t),n}function c(e,t){var n=s(e,t<0?0:0|a(t));if(!o.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function l(e){return o.isBuffer(e)?e.length:"undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!==typeof e&&(e=""+e),0===e.length?0:f(e).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,n){void 0===t?(n=this.length,t=0):void 0===n&&"string"===typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}(f(t,e.length-n),e,n,r)}(this,e,t,n)},o.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t=e.length&&(t=e.length),t||(t=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),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},"51e8580069aa9e512062":function(e,t){var n={lowerCased:"abcdefghijklmnopqrstuvwxyz",capitals:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",numbers:"0123456789",special:"~!@#$%^&()_+-={}[];',"};e.exports=function(e,t){e||(e=30),t||(t="aA0");var r="";t.split("").forEach(e=>{isNaN(parseInt(e))?/[a-z]/.test(e)?r+=n.lowerCased:/[A-Z]/.test(e)?r+=n.capitals:r+=n.special:r+=n.numbers});for(var i="",o=0;o"string"===typeof e?r.from(e).toString("hex"):e.toString("hex"),decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base16 character");return r.from(t,"hex")}}}},"51fa9ccac244ae0e1ac5":function(e,t,n){e.exports=n("09565c4a498df1f319eb").EventEmitter},"5255585a645e5d2aa10a":function(e,t,n){"use strict";var r=n("2696e10840d8d66e2be9"),i=n("4f46cc0516882e7b6483"),o=n("9d2c1ffe04374996959a"),a=r.rotl32,s=r.sum32,c=r.sum32_5,u=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(h,f),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;re&&27264===e.statusCode?new i.EthAppPleaseEnableContractData("Please enable Contract data on the Ethereum app Settings"):e;t.default=class{constructor(e,t="w0w"){this.transport=void 0,this.transport=e,e.decorateAppAPIMethods(this,["getAddress","provideERC20TokenInformation","signTransaction","signPersonalMessage","getAppConfiguration","starkGetPublicKey","starkSignOrder","starkSignTransfer","starkProvideQuantum"],t)}getAddress(t,n,i){let o=(0,r.splitPath)(t),a=e.alloc(1+4*o.length);return a[0]=o.length,o.forEach((e,t)=>{a.writeUInt32BE(e,1+4*t)}),this.transport.send(224,2,n?1:0,i?1:0,a).then(e=>{let t={},n=e[0],r=e[1+n];return t.publicKey=e.slice(1,1+n).toString("hex"),t.address="0x"+e.slice(1+n+1,1+n+1+r).toString("ascii"),i&&(t.chainCode=e.slice(1+n+1+r,1+n+1+r+32).toString("hex")),t})}provideERC20TokenInformation({data:e}){return this.transport.send(224,10,0,0,e).then(()=>!0,e=>{if(e&&27904===e.statusCode)return!1;throw e})}signTransaction(t,n){let i,a=(0,r.splitPath)(t),s=0,u=e.from(n,"hex"),f=[],l=(0,o.decode)(u),h=0;if(l.length>6){let e=(0,o.encode)(l.slice(-3));h=u.length-(e.length-1)}for(;s!==u.length;){let t=0===s?149-4*a.length:150,n=s+t>u.length?u.length-s:t;0!=h&&s+n==h&&n--;let r=e.alloc(0===s?1+4*a.length+n:n);0===s?(r[0]=a.length,a.forEach((e,t)=>{r.writeUInt32BE(e,1+4*t)}),u.copy(r,1+4*a.length,s,s+n)):u.copy(r,0,s,s+n),f.push(r),s+=n}return(0,r.foreach)(f,(e,t)=>this.transport.send(224,4,0===t?0:128,0,e).then(e=>{i=e})).then(()=>({v:i.slice(0,1).toString("hex"),r:i.slice(1,33).toString("hex"),s:i.slice(33,65).toString("hex")}),e=>{throw c(e)})}getAppConfiguration(){return this.transport.send(224,6,0,0).then(e=>{let t={};return t.arbitraryDataEnabled=1&e[0],t.erc20ProvisioningNecessary=2&e[0],t.starkEnabled=4&e[0],t.version=e[1]+"."+e[2]+"."+e[3],t})}signPersonalMessage(t,n){let i,o=(0,r.splitPath)(t),a=0,s=e.from(n,"hex"),c=[];for(;a!==s.length;){let t=0===a?149-4*o.length-4:150,n=a+t>s.length?s.length-a:t,r=e.alloc(0===a?1+4*o.length+4+n:n);0===a?(r[0]=o.length,o.forEach((e,t)=>{r.writeUInt32BE(e,1+4*t)}),r.writeUInt32BE(s.length,1+4*o.length),s.copy(r,1+4*o.length+4,a,a+n)):s.copy(r,0,a,a+n),c.push(r),a+=n}return(0,r.foreach)(c,(e,t)=>this.transport.send(224,8,0===t?0:128,0,e).then(e=>{i=e})).then(()=>({v:i[0],r:i.slice(1,33).toString("hex"),s:i.slice(33,65).toString("hex")}))}signEIP712HashedMessage(t,n,i){const o=a(n),s=a(i);let c=(0,r.splitPath)(t),u=e.alloc(1+4*c.length+32+32,0),f=0;return u[0]=c.length,c.forEach((e,t)=>{u.writeUInt32BE(e,1+4*t)}),f=1+4*c.length,o.copy(u,f),f+=32,s.copy(u,f),this.transport.send(224,12,0,0,u).then(e=>({v:e[0],r:e.slice(1,33).toString("hex"),s:e.slice(33,65).toString("hex")}))}starkGetPublicKey(t,n){let i=(0,r.splitPath)(t),o=e.alloc(1+4*i.length);return o[0]=i.length,i.forEach((e,t)=>{o.writeUInt32BE(e,1+4*t)}),this.transport.send(240,2,n?1:0,0,o).then(e=>e.slice(0,e.length-2))}starkSignOrder(t,n,i,o,a,c,u,f,l,h,d){const p=s(n),b=s(o);let m=(0,r.splitPath)(t),g=e.alloc(1+4*m.length+20+32+20+32+4+4+8+8+4+4,0),y=0;return g[0]=m.length,m.forEach((e,t)=>{g.writeUInt32BE(e,1+4*t)}),y=1+4*m.length,p&&p.copy(g,y),y+=20,e.from(i.toString(16).padStart(64,"0"),"hex").copy(g,y),y+=32,b&&b.copy(g,y),y+=20,e.from(a.toString(16).padStart(64,"0"),"hex").copy(g,y),y+=32,g.writeUInt32BE(c,y),y+=4,g.writeUInt32BE(u,y),y+=4,e.from(f.toString(16).padStart(16,"0"),"hex").copy(g,y),y+=8,e.from(l.toString(16).padStart(16,"0"),"hex").copy(g,y),y+=8,g.writeUInt32BE(h,y),y+=4,g.writeUInt32BE(d,y),this.transport.send(240,4,1,0,g).then(e=>({r:e.slice(1,33).toString("hex"),s:e.slice(33,65).toString("hex")}))}starkSignTransfer(t,n,i,o,c,u,f,l,h){const d=s(n),p=a(o);let b=(0,r.splitPath)(t),m=e.alloc(1+4*b.length+20+32+32+4+4+8+4+4,0),g=0;return m[0]=b.length,b.forEach((e,t)=>{m.writeUInt32BE(e,1+4*t)}),g=1+4*b.length,d&&d.copy(m,g),g+=20,e.from(i.toString(16).padStart(64,"0"),"hex").copy(m,g),g+=32,p.copy(m,g),g+=32,m.writeUInt32BE(c,g),g+=4,m.writeUInt32BE(u,g),g+=4,e.from(f.toString(16).padStart(16,"0"),"hex").copy(m,g),g+=8,m.writeUInt32BE(l,g),g+=4,m.writeUInt32BE(h,g),this.transport.send(240,4,2,0,m).then(e=>({r:e.slice(1,33).toString("hex"),s:e.slice(33,65).toString("hex")}))}starkProvideQuantum(t,n){const r=s(t);let i=e.alloc(52,0);return r&&r.copy(i,0),e.from(n.toString(16).padStart(64,"0"),"hex").copy(i,20),this.transport.send(240,8,0,0,i).then(()=>!0,e=>{if(e&&27904===e.statusCode)return!1;throw e})}}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"53cf37353e6f0418388b":function(e,t,n){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(c=o)|s>>>32-c,n);var s,c}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n>5]>>>t%32&255,r=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16),i.push(r);return i}(function(e,t){var n,i,u,f,l;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,d=-271733879,p=-1732584194,b=271733878;for(n=0;n>2)-1]=void 0,t=0;t>5]|=(255&e[t/8])<3;)n.pop()();if(n[1]>23,h=f>>21&3,d=f>>5&65535,p=31&f,b=t.mapStr.substr(d,p);if(0===h||r&&1&l)throw new Error("Illegal char "+u);1===h?o.push(b):2===h?o.push(i?b:u):3===h&&o.push(u)}var m=o.join("").normalize("NFC");return m}function r(t,r,o){void 0===o&&(o=!1);var a=n(t,o,r),s=a.split(".");return(s=s.map(function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),o,!1):i(t,o,r),t})).join(".")}function i(e,r,i){if("-"===e[2]&&"-"===e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(n(e,r,i)!==e)throw new Error("Failed to validate "+e);var o=e.codePointAt(0);if(t.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}return{toUnicode:function(e,t){void 0===t&&(t={});var n="useStd3ASCII"in t&&t.useStd3ASCII;return r(e,!1,n)},toAscii:function(t,n){void 0===n&&(n={});var i,o=!("transitional"in n)||n.transitional,a="useStd3ASCII"in n&&n.useStd3ASCII,s="verifyDnsLength"in n&&n.verifyDnsLength,c=r(t,o,a).split(".").map(e.toASCII),u=c.join(".");if(s){if(u.length<1||u.length>253)throw new Error("DNS name has wrong length: "+u);for(i=0;i63)throw new Error("DNS label has wrong length: "+f)}}return u}}}(e,t)}.apply(t,r))||(e.exports=i)},"54075c21dc91973e72c2":function(e,t,n){var r=n("9eae34b65477460c0823"),i=n("392c77aea3e2a29e4690"),o=function(){};e.exports=function(e,t){delete e.uri;var n=!1;"json"===e.responseType&&(e.responseType="text",n=!0);var a=r(e,function(r,a,s){if(n&&!r)try{var c=a.rawRequest.responseText;s=JSON.parse(c)}catch(e){r=e}a=i(e,a),t(r,r?null:s,a),t=o}),s=a.onabort;return a.onabort=function(){var e=s.apply(a,Array.prototype.slice.call(arguments));return t(new Error("XHR Aborted")),t=o,e},a}},"5465ad408e1ee4c0ae12":function(e,t,n){"use strict";var r=n("0318a38657d954520f8a").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function f(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"5481216f1a1b76c8f273":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("a28fc3c963a1d4d1a2e5"),i=function(e){return e.connection},o=function(){return Object(r.a)(i,function(e){return e&&e.account})}},"548afe2a1a9c1570921a":function(e,t,n){const r=n("0922d3538349ff06f3ef"),i=n("c201344d6a04b4f854cf"),o=n("f89589b25fe2f057e3ca").inherits,a=n("aa34c466e9256c2ad910"),s=n("d8d58179aa40fed4e484"),c=n("e5a243b0d2e9e9bd500e"),u=n("4966dd42a23eedcc4288"),f=n("7812ff3de28eed1451aa"),l=n("1c24b7f26524241e3366"),h=/^[0-9A-Fa-f]+$/g;function d(e){this.nonceLock=u(1),e.getAccounts&&(this.getAccounts=e.getAccounts),e.processTransaction&&(this.processTransaction=e.processTransaction),e.processMessage&&(this.processMessage=e.processMessage),e.processPersonalMessage&&(this.processPersonalMessage=e.processPersonalMessage),e.processTypedMessage&&(this.processTypedMessage=e.processTypedMessage),this.approveTransaction=e.approveTransaction||this.autoApprove,this.approveMessage=e.approveMessage||this.autoApprove,this.approvePersonalMessage=e.approvePersonalMessage||this.autoApprove,this.approveDecryptMessage=e.approveDecryptMessage||this.autoApprove,this.approveEncryptionPublicKey=e.approveEncryptionPublicKey||this.autoApprove,this.approveTypedMessage=e.approveTypedMessage||this.autoApprove,e.signTransaction&&(this.signTransaction=e.signTransaction||y("signTransaction")),e.signMessage&&(this.signMessage=e.signMessage||y("signMessage")),e.signPersonalMessage&&(this.signPersonalMessage=e.signPersonalMessage||y("signPersonalMessage")),e.decryptMessage&&(this.decryptMessage=e.decryptMessage||y("decryptMessage")),e.encryptionPublicKey&&(this.encryptionPublicKey=e.encryptionPublicKey||y("encryptionPublicKey")),e.signTypedMessage&&(this.signTypedMessage=e.signTypedMessage||y("signTypedMessage")),e.recoverPersonalSignature&&(this.recoverPersonalSignature=e.recoverPersonalSignature),e.publishTransaction&&(this.publishTransaction=e.publishTransaction),this.estimateGas=e.estimateGas||this.estimateGas,this.getGasPrice=e.getGasPrice||this.getGasPrice}function p(e){return e.toLowerCase()}function b(e){const t=a.addHexPrefix(e);return a.isValidAddress(t)}function m(e){const t=a.addHexPrefix(e);return!a.isValidAddress(t)&&g(e)}function g(e){return"string"===typeof e&&("0x"===e.slice(0,2)&&e.slice(2).match(h))}function y(e){return function(t,n){n(new Error('ProviderEngine - HookedWalletSubprovider - Must provide "'+e+'" fn in constructor options'))}}e.exports=d,o(d,f),d.prototype.handleRequest=function(e,t,n){const i=this;let o,a,s,u,f;switch(i._parityRequests={},i._parityRequestCount=0,e.method){case"eth_coinbase":return void i.getAccounts(function(e,t){if(e)return n(e);let r=t[0]||null;n(null,r)});case"eth_accounts":return void i.getAccounts(function(e,t){if(e)return n(e);n(null,t)});case"eth_sendTransaction":return o=e.params[0],void r([e=>i.validateTransaction(o,e),e=>i.processTransaction(o,e)],n);case"eth_signTransaction":return o=e.params[0],void r([e=>i.validateTransaction(o,e),e=>i.processSignTransaction(o,e)],n);case"eth_sign":return f=e.params[0],u=e.params[1],s=e.params[2]||{},a=c(s,{from:f,data:u}),void r([e=>i.validateMessage(a,e),e=>i.processMessage(a,e)],n);case"personal_sign":return function(){const t=e.params[0];if(m(e.params[1])&&b(t)){let t="The eth_personalSign method requires params ordered ";t+="[message, address]. This was previously handled incorrectly, ",t+="and has been corrected automatically. ",t+="Please switch this param order for smooth behavior in the future.",console.warn(t),f=e.params[0],u=e.params[1]}else u=e.params[0],f=e.params[1];s=e.params[2]||{},a=c(s,{from:f,data:u}),r([e=>i.validatePersonalMessage(a,e),e=>i.processPersonalMessage(a,e)],n)}();case"eth_decryptMessage":return function(){const t=e.params[0];if(m(e.params[1])&&b(t)){let t="The eth_decryptMessage method requires params ordered ";t+="[message, address]. This was previously handled incorrectly, ",t+="and has been corrected automatically. ",t+="Please switch this param order for smooth behavior in the future.",console.warn(t),f=e.params[0],u=e.params[1]}else u=e.params[0],f=e.params[1];s=e.params[2]||{},a=c(s,{from:f,data:u}),r([e=>i.validateDecryptMessage(a,e),e=>i.processDecryptMessage(a,e)],n)}();case"encryption_public_key":return function(){const t=e.params[0];r([e=>i.validateEncryptionPublicKey(t,e),e=>i.processEncryptionPublicKey(t,e)],n)}();case"personal_ecRecover":return function(){u=e.params[0];let t=e.params[1];s=e.params[2]||{},a=c(s,{sig:t,data:u}),i.recoverPersonalSignature(a,n)}();case"eth_signTypedData":case"eth_signTypedData_v3":case"eth_signTypedData_v4":return function(){const t=e.params[0],o=e.params[1];b(t)?(f=t,u=o):(u=t,f=o),s=e.params[2]||{},a=c(s,{from:f,data:u}),r([e=>i.validateTypedMessage(a,e),e=>i.processTypedMessage(a,e)],n)}();case"parity_postTransaction":return o=e.params[0],void i.parityPostTransaction(o,n);case"parity_postSign":return f=e.params[0],u=e.params[1],void i.parityPostSign(f,u,n);case"parity_checkRequest":return function(){const t=e.params[0];i.parityCheckRequest(t,n)}();case"parity_defaultAccount":return void i.getAccounts(function(e,t){if(e)return n(e);const r=t[0]||null;n(null,r)});default:return void t()}},d.prototype.getAccounts=function(e){e(null,[])},d.prototype.processTransaction=function(e,t){const n=this;r([t=>n.approveTransaction(e,t),(e,t)=>n.checkApproval("transaction",e,t),t=>n.finalizeAndSubmitTx(e,t)],t)},d.prototype.processSignTransaction=function(e,t){const n=this;r([t=>n.approveTransaction(e,t),(e,t)=>n.checkApproval("transaction",e,t),t=>n.finalizeTx(e,t)],t)},d.prototype.processMessage=function(e,t){const n=this;r([t=>n.approveMessage(e,t),(e,t)=>n.checkApproval("message",e,t),t=>n.signMessage(e,t)],t)},d.prototype.processPersonalMessage=function(e,t){const n=this;r([t=>n.approvePersonalMessage(e,t),(e,t)=>n.checkApproval("message",e,t),t=>n.signPersonalMessage(e,t)],t)},d.prototype.processDecryptMessage=function(e,t){const n=this;r([t=>n.approveDecryptMessage(e,t),(e,t)=>n.checkApproval("decryptMessage",e,t),t=>n.decryptMessage(e,t)],t)},d.prototype.processEncryptionPublicKey=function(e,t){const n=this;r([t=>n.approveEncryptionPublicKey(e,t),(e,t)=>n.checkApproval("encryptionPublicKey",e,t),t=>n.encryptionPublicKey(e,t)],t)},d.prototype.processTypedMessage=function(e,t){const n=this;r([t=>n.approveTypedMessage(e,t),(e,t)=>n.checkApproval("message",e,t),t=>n.signTypedMessage(e,t)],t)},d.prototype.autoApprove=function(e,t){t(null,!0)},d.prototype.checkApproval=function(e,t,n){n(t?null:new Error("User denied "+e+" signature."))},d.prototype.parityPostTransaction=function(e,t){const n=this,r=`0x${n._parityRequestCount.toString(16)}`;n._parityRequestCount++,n.emitPayload({method:"eth_sendTransaction",params:[e]},function(e,t){if(e)return void(n._parityRequests[r]={error:e});const i=t.result;n._parityRequests[r]=i}),t(null,r)},d.prototype.parityPostSign=function(e,t,n){const r=this,i=`0x${r._parityRequestCount.toString(16)}`;r._parityRequestCount++,r.emitPayload({method:"eth_sign",params:[e,t]},function(e,t){if(e)return void(r._parityRequests[i]={error:e});const n=t.result;r._parityRequests[i]=n}),n(null,i)},d.prototype.parityCheckRequest=function(e,t){const n=this._parityRequests[e]||null;return n?n.error?t(n.error):void t(null,n):t(null,null)},d.prototype.recoverPersonalSignature=function(e,t){let n;try{n=s.recoverPersonalSignature(e)}catch(e){return t(e)}t(null,n)},d.prototype.validateTransaction=function(e,t){if(void 0===e.from)return t(new Error("Undefined address - from address required to sign transaction."));this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign transaction for this address: "${e.from}"`))})},d.prototype.validateMessage=function(e,t){if(void 0===e.from)return t(new Error("Undefined address - from address required to sign message."));this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))})},d.prototype.validatePersonalMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to sign personal message.")):void 0===e.data?t(new Error("Undefined message - message required to sign personal message.")):g(e.data)?void this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))}):t(new Error("HookedWalletSubprovider - validateMessage - message was not encoded as hex."))},d.prototype.validateDecryptMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to decrypt message.")):void 0===e.data?t(new Error("Undefined message - message required to decrypt message.")):g(e.data)?void this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to decrypt message for this address: "${e.from}"`))}):t(new Error("HookedWalletSubprovider - validateDecryptMessage - message was not encoded as hex."))},d.prototype.validateEncryptionPublicKey=function(e,t){this.validateSender(e,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to obtain encryption public key for this address: "${e}"`))})},d.prototype.validateTypedMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to sign typed data.")):void 0===e.data?t(new Error("Undefined data - message required to sign typed data.")):void this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))})},d.prototype.validateSender=function(e,t){if(!e)return t(null,!1);this.getAccounts(function(n,r){if(n)return t(n);const i=-1!==r.map(p).indexOf(e.toLowerCase());t(null,i)})},d.prototype.finalizeAndSubmitTx=function(e,t){const n=this;n.nonceLock.take(function(){r([n.fillInTxExtras.bind(n,e),n.signTransaction.bind(n),n.publishTransaction.bind(n)],function(e,r){if(n.nonceLock.leave(),e)return t(e);t(null,r)})})},d.prototype.finalizeTx=function(e,t){const n=this;n.nonceLock.take(function(){r([n.fillInTxExtras.bind(n,e),n.signTransaction.bind(n)],function(r,i){if(n.nonceLock.leave(),r)return t(r);t(null,{raw:i,tx:e})})})},d.prototype.publishTransaction=function(e,t){this.emitPayload({method:"eth_sendRawTransaction",params:[e]},function(e,n){if(e)return t(e);t(null,n.result)})},d.prototype.estimateGas=function(e,t){l(this.engine,e,t)},d.prototype.getGasPrice=function(e){this.emitPayload({method:"eth_gasPrice",params:[]},function(t,n){if(t)return e(t);e(null,n.result)})},d.prototype.fillInTxExtras=function(e,t){const n=this,r=e.from,o={};void 0===e.gasPrice&&(o.gasPrice=n.getGasPrice.bind(n)),void 0===e.nonce&&(o.nonce=n.emitPayload.bind(n,{method:"eth_getTransactionCount",params:[r,"pending"]})),void 0===e.gas&&(o.gas=n.estimateGas.bind(n,function(e){return{from:e.from,to:e.to,value:e.value,data:e.data,gas:e.gas,gasPrice:e.gasPrice,nonce:e.nonce}}(e))),i(o,function(n,r){if(n)return t(n);const i={};r.gasPrice&&(i.gasPrice=r.gasPrice),r.nonce&&(i.nonce=r.nonce.result),r.gas&&(i.gas=r.gas),t(null,c(e,i))})}},"54da07d91446074db470":function(e,t,n){var r=n("4de17b50d35d24f9c74a"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},"5528abce7df04bca3ae1":function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,i=0;r>>6-2*i);return t}},e.exports=r},"55a6951d015ec4798091":function(e,t,n){var r=n("8e08e542008e4aef1f58"),i=n("96ae864a33fd64878742"),o=n("08f81e4695d91b47f69e"),a=n("9df82ac1c07b549429a4"),s=n("347d9e05932b090a4711"),c=function(e,t){var n=[];return t.forEach(function(t){if("object"===typeof t.components){if("tuple"!==t.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var i="",o=t.type.indexOf("[");o>=0&&(i=t.type.substring(o));var a=c(e,t.components);r.isArray(a)&&e?n.push("tuple("+a.join(",")+")"+i):e?n.push("("+a+")"):n.push("("+a.join(",")+")"+i)}else n.push(t.type)}),n},u=function(e){if(!o.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n7?n+=e[r].toUpperCase():n+=e[r];return n},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:u,toAscii:u,asciiToHex:f,fromAscii:f,unitMap:i.unitMap,toWei:function(e,t){if(t=l(t),!o.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.");return o.isBN(e)?i.toWei(e,t):i.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=l(t),!o.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.");return o.isBN(e)?i.fromWei(e,t):i.fromWei(e,t).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement}},"55b62c88790f3b448b30":function(e,t,n){const r=n("dbde9d3d1d84ea6820ca"),i=n("0f213c68e263a20dae10"),o=[void 0,null,""];e.exports=function(e={}){const{blockTracker:t}=e;if(!t)throw new Error("createBlockCacheMiddleware - No BlockTracker specified");const n=new a,o={perma:n,block:n,fork:n};return i(async(e,i,a)=>{if(e.skipCache)return a();const s=r.cacheTypeForPayload(e),c=o[s];if(!c)return a();if(!c.canCacheRequest(e))return a();let u,f=r.blockTagForPayload(e);if(f||(f="latest"),"earliest"===f)u="0x00";else if("latest"===f){const e=await t.getLatestBlock();n.clearBefore(e),u=e}else u=f;const l=await c.get(e,u);void 0===l?(await a(),await c.set(e,u,i.result)):i.result=l})};class a{constructor(){this.cache={}}getBlockCacheForPayload(e,t){const n=Number.parseInt(t,16);let r=this.cache[n];if(!r){const e={};this.cache[n]=e,r=e}return r}async get(e,t){const n=this.getBlockCacheForPayload(e,t);if(n)return n[r.cacheIdentifierForPayload(e,!0)]}async set(e,t,n){this.canCacheResult(e,n)&&(this.getBlockCacheForPayload(e,t)[r.cacheIdentifierForPayload(e,!0)]=n)}canCacheRequest(e){if(!r.canCache(e))return!1;return"pending"!==r.blockTagForPayload(e)}canCacheResult(e,t){if(!o.includes(t))return!!(!["eth_getTransactionByHash","eth_getTransactionReceipt"].includes(e.method)||t&&t.blockHash&&"0x0000000000000000000000000000000000000000000000000000000000000000"!==t.blockHash)}clearBefore(e){const t=this,n=Number.parseInt(e,16);Object.keys(t.cache).map(Number).filter(e=>edelete t.cache[e])}}},"55e81e4240ff2893750e":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(16&e.compareDocumentPosition(t))},e.exports=t.default},"5633e0201446133a2222":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var r=n("97e544c2b5273ff09282"),i=n("8343e5f6d4fdf959d4d7"),o=n("787b67936387d49cb10d"),a=n("3aad3afd3c29698c953a"),s=n("d791d2a686cd52d52045"),c=n("f0704254f0db71ce9ad3"),u=n("a8d156d1da7e94d61313"),f=n("61711bfd4796243287a0"),l=n("290267cf091edefb265a"),h=n("0b8977e2b275139c0743"),d=h.privateKeyVerify,p=h.publicKeyCreate,b=h.publicKeyVerify,m=h.publicKeyConvert,g=function(){function e(e,t,n,r){void 0===e&&(e=new i(0)),void 0===t&&(t=new i(0)),void 0===n&&(n=s.KECCAK256_RLP),void 0===r&&(r=s.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=n,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var n=t.nonce,r=t.balance,o=t.stateRoot,a=t.codeHash;return new e(n?new i(c.toBuffer(n)):void 0,r?new i(c.toBuffer(r)):void 0,o?c.toBuffer(o):void 0,a?c.toBuffer(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var n=t[0],r=t[1],o=t[2],a=t[3];return new e(n?new i(n):void 0,r?new i(r):void 0,o,a)},e.prototype._validate=function(){if(this.nonce.lt(new i(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new i(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[l.bnToRlp(this.nonce),l.bnToRlp(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(s.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(s.KECCAK256_NULL)},e}();t.Account=g,t.isValidAddress=function(e){return f.assertIsHexString(e),/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){f.assertIsHexString(e);for(var n=a.stripHexPrefix(e).toLowerCase(),r=void 0!==t?t.toString()+"0x":"",i=u.keccakFromString(r+n).toString("hex"),o="0x",s=0;s=8?o+=n[s].toUpperCase():o+=n[s];return o},t.isValidChecksumAddress=function(e,n){return t.isValidAddress(e)&&t.toChecksumAddress(e,n)===e},t.generateAddress=function(t,n){f.assertIsBuffer(t),f.assertIsBuffer(n);var r=new i(n);return r.isZero()?u.rlphash([t,null]).slice(-20):u.rlphash([t,e.from(r.toArray())]).slice(-20)},t.generateAddress2=function(t,n,i){return f.assertIsBuffer(t),f.assertIsBuffer(n),f.assertIsBuffer(i),r(20===t.length),r(32===n.length),u.keccak256(e.concat([e.from("ff","hex"),t,n,u.keccak256(i)])).slice(-20)},t.isValidPrivate=function(e){return d(e)},t.isValidPublic=function(t,n){return void 0===n&&(n=!1),f.assertIsBuffer(t),64===t.length?b(e.concat([e.from([4]),t])):!!n&&b(t)},t.pubToAddress=function(t,n){return void 0===n&&(n=!1),f.assertIsBuffer(t),n&&64!==t.length&&(t=e.from(m(t,!1).slice(1))),r(64===t.length),u.keccak(t).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(t){return f.assertIsBuffer(t),e.from(p(t,!1)).slice(1)},t.importPublic=function(t){return f.assertIsBuffer(t),64!==t.length&&(t=e.from(m(t,!1).slice(1))),t},t.zeroAddress=function(){var e=c.zeros(20);return c.bufferToHex(e)},t.isZeroAddress=function(e){return f.assertIsHexString(e),t.zeroAddress()===e}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"5636fa66dfd5aaf6ddf5":function(e,t,n){var r=n("519392fffe1816d387c2");function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}i.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=i},"56489002f05c742ec123":function(e,t,n){e.exports=n("d7119e9726a6a26f5d9c")},"564f3ba9c7c1bdde2666":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("b4b201559b81ce48ed31"));t.injectCssReset=function(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},"56597460bb82d95ef29f":function(e,t,n){"use strict";(function(e){var n=Object.prototype.toString;t.isArray=function(e,t){if(!Array.isArray(e))throw TypeError(t)},t.isBoolean=function(e,t){if("[object Boolean]"!==n.call(e))throw TypeError(t)},t.isBuffer=function(t,n){if(!e.isBuffer(t))throw TypeError(n)},t.isFunction=function(e,t){if("[object Function]"!==n.call(e))throw TypeError(t)},t.isNumber=function(e,t){if("[object Number]"!==n.call(e))throw TypeError(t)},t.isObject=function(e,t){if("[object Object]"!==n.call(e))throw TypeError(t)},t.isBufferLength=function(e,t,n){if(e.length!==t)throw RangeError(n)},t.isBufferLength2=function(e,t,n,r){if(e.length!==t&&e.length!==n)throw RangeError(r)},t.isLengthGTZero=function(e,t){if(0===e.length)throw RangeError(t)},t.isNumberInInterval=function(e,t,n,r){if(e<=t||e>=n)throw RangeError(r)}}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"56fe7adecc271cd03827":function(e,t,n){"use strict";(function(t,r){var i;e.exports=S,S.ReadableState=k;n("09565c4a498df1f319eb").EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n("b92ad26bcee5df198835"),s=n("4de17b50d35d24f9c74a").Buffer,c=t.Uint8Array||function(){};var u,f=n(6);u=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,d,p=n("4ea11220a6d6106ac8c6"),b=n("3423509cb73912ff3c58"),m=n("e73231efab5c93941182").getHighWaterMark,g=n("c42d4b9e9f9d6b9f82c0").codes,y=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("fe04f3dffedf971443f1")(S,a);var A=b.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,r){i=i||n("9e2b5934d8e1de6fa3a4"),e=e||{},"boolean"!==typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n("5465ad408e1ee4c0ae12").StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function S(e){if(i=i||n("9e2b5934d8e1de6fa3a4"),!(this instanceof S))return new S(e);var t=this instanceof i;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function x(e,t,n,r,i){u("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof c||"string"===typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)A(e,o);else if(a.objectMode||t&&t.length>0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?A(e,new _):M(e,a,t,!0);else if(a.ended)A(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?M(e,a,t,!1):O(e,a)):M(e,a,t,!1)}else r||(a.reading=!1,O(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(R,e))}function R(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function O(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){u("readable nexttick read 0"),e.read(0)}function N(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(F,t,e))}function F(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):I(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){A(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:m;function s(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",d),e.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",m),n.removeListener("data",h),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){u("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var f=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",f);var l=!1;function h(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!l&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){u("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&A(e,t)}function p(){e.removeListener("finish",b),m()}function b(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",b),e.emit("pipe",n),i.flowing||(u("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?I(this):i.reading||r.nextTick(L,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(B,this),n},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(B,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))}),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o{let n;if(r.isBuffer(e))n=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");n=a[e]}return r.concat([n,t])}),t.rmPrefix=(e=>(i.decode(e),e.slice(i.decode.bytes))),t.getCodec=(e=>{const t=i.decode(e),n=o.get(t);if(void 0===n)throw new Error(`Code ${t} not found`);return n}),t.getName=(e=>o.get(e)),t.getNumber=(e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]}),t.getCode=(e=>i.decode(e)),t.getCodeVarint=(e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t}),t.getVarint=(e=>i.encode(e));const c=n("ee77a87db93b0d68e5a6");Object.assign(t,c),t.print=n("f52f1030df509d82aba0")}).call(this,n("4de17b50d35d24f9c74a").Buffer)},"5712f1b9446531a0f3b8":function(e,t,n){"use strict";var r=n("8af190b70a6bc55c6f1b"),i=n("83406643bfb209d249f4"),o=n("5fb01c067ce2a2533619");function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;rthis.eventPool.length&&this.eventPool.push(e)}function le(e){e.eventPool=[],e.getPooled=ue,e.release=fe}i(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,le(n),n},le(ce);var he=ce.extend({data:null}),de=ce.extend({data:null}),pe=[9,13,27,32],be=V&&"CompositionEvent"in window,me=null;V&&"documentMode"in document&&(me=document.documentMode);var ge=V&&"TextEvent"in window&&!me,ye=V&&(!be||me&&8=me),ve=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_e=!1;function Ae(e,t){switch(e){case"keyup":return-1!==pe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ke=!1;var Se={eventTypes:we,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(be)e:{switch(e){case"compositionstart":i=we.compositionStart;break e;case"compositionend":i=we.compositionEnd;break e;case"compositionupdate":i=we.compositionUpdate;break e}i=void 0}else ke?Ae(e,n)&&(i=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=we.compositionStart);return i?(ye&&"ko"!==n.locale&&(ke||i!==we.compositionStart?i===we.compositionEnd&&ke&&(o=oe()):(re="value"in(ne=r)?ne.value:ne.textContent,ke=!0)),i=he.getPooled(i,t,n,r),o?i.data=o:null!==(o=Ee(n))&&(i.data=o),K(i),o=i):o=null,(e=ge?function(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(_e=!0,ve);case"textInput":return(e=t.data)===ve&&_e?null:e;default:return null}}(e,n):function(e,t){if(ke)return"compositionend"===e||!be&&Ae(e,t)?(e=oe(),ie=re=ne=null,ke=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1