nova-ui-minified/_nuxt/workers/nullifier.worker.js

2 lines
722 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see ../LICENSES */
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},r.p="/_nuxt/",r(r.s=146)}([function(e,t,r){"use strict";r.d(t,"k",(function(){return l})),r.d(t,"j",(function(){return d})),r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return h})),r.d(t,"o",(function(){return m})),r.d(t,"p",(function(){return y})),r.d(t,"l",(function(){return v})),r.d(t,"i",(function(){return w})),r.d(t,"d",(function(){return A})),r.d(t,"e",(function(){return E})),r.d(t,"c",(function(){return S})),r.d(t,"g",(function(){return O})),r.d(t,"f",(function(){return _})),r.d(t,"h",(function(){return M})),r.d(t,"n",(function(){return k})),r.d(t,"m",(function(){return C}));const n=new(r(2).b)("bytes/5.4.0");function o(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function l(e){return v(e)&&!(e.length%2)||d(e)}function d(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(let i=0;i<e.length;i++){const t=e[i];if("number"!=typeof t||t<0||t>=256||t%1)return!1}return!0}function f(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),c(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),v(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0x0"+r.substring(2):"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const o=[];for(let i=0;i<r.length;i+=2)o.push(parseInt(r.substring(i,i+2),16));return c(new Uint8Array(o))}return d(e)?c(new Uint8Array(e)):n.throwArgumentError("invalid arrayify value","value",e)}function h(e){const t=e.map((e=>f(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,object)=>(n.set(object,e),e+object.length)),0),c(n)}function m(e){let t=f(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function y(e,t){(e=f(e)).length>t&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),c(r)}function v(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const T="0123456789abcdef";function w(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=T[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(v(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(d(e)){let t="0x";for(let i=0;i<e.length;i++){let r=e[i];t+=T[(240&r)>>4]+T[15&r]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function A(data){if("string"!=typeof data)data=w(data);else if(!v(data)||data.length%2)return null;return(data.length-2)/2}function E(data,e,t){return"string"!=typeof data?data=w(data):(!v(data)||data.length%2)&&n.throwArgumentError("invalid hexData","value",data),e=2+2*e,null!=t?"0x"+data.substring(e,2+2*t):"0x"+data.substring(e)}function S(e){let t="0x";return e.forEach((e=>{t+=w(e).substring(2)})),t}function O(e){const t=_(w(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function _(e){"string"!=typeof e&&(e=w(e)),v(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function M(e,t){for("string"!=typeof e?e=w(e):v(e)||n.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function k(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(l(e)){const r=f(e);65!==r.length&&n.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=w(r.slice(0,32)),t.s=w(r.slice(32,64)),t.v=r[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=w(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=y(f(t._vs),32);t._vs=w(r);const o=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const s=w(r);null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&v(t.r)?t.r=M(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&v(t.s)?t.s=M(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const r=f(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const o=w(r);t._vs&&(v(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=M(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function C(e){return w(h([(e=k(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict";r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return d})),r.d(t,"f",(function(){return f})),r.d(t,"b",(function(){return h})),r.d(t,"g",(function(){return m})),r.d(t,"c",(function(){return w})),r.d(t,"a",(function(){return A}));var n=r(2);var o=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const c=new n.b("properties/5.4.1");function l(object,e,t){Object.defineProperty(object,e,{enumerable:!0,value:t,writable:!1})}function d(e,t){for(let i=0;i<32;i++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function f(object){return o(this,void 0,void 0,(function*(){const e=Object.keys(object).map((e=>{const t=object[e];return Promise.resolve(t).then((t=>({key:e,value:t})))}));return(yield Promise.all(e)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function h(object,e){object&&"object"==typeof object||c.throwArgumentError("invalid object","object",object),Object.keys(object).forEach((t=>{e[t]||c.throwArgumentError("invalid object key - "+t,"transaction:"+t,object)}))}function m(object){const e={};for(const t in object)e[t]=object[t];return e}const y={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function v(object){if(null==object||y[typeof object])return!0;if(Array.isArray(object)||"object"==typeof object){if(!Object.isFrozen(object))return!1;const e=Object.keys(object);for(let i=0;i<e.length;i++){let t=null;try{t=object[e[i]]}catch(e){continue}if(!v(t))return!1}return!0}return c.throwArgumentError("Cannot deepCopy "+typeof object,"object",object)}function T(object){if(v(object))return object;if(Array.isArray(object))return Object.freeze(object.map((e=>w(e))));if("object"==typeof object){const e={};for(const t in object){const r=object[t];void 0!==r&&l(e,t,w(r))}return e}return c.throwArgumentError("Cannot deepCopy "+typeof object,"object",object)}function w(object){return T(object)}class A{constructor(e){for(const t in e)this[t]=w(e[t])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return v}));let n=!1,o=!1;const c={debug:1,default:2,info:2,warning:3,error:4,off:5};let l=c.default,d=null;const f=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((form=>{try{if("test"!=="test".normalize(form))throw new Error("bad normalize")}catch(t){e.push(form)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var h,m;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(h||(h={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(m||(m={}));const y="0123456789abcdef";class v{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==c[r]&&this.throwArgumentError("invalid log level name","logLevel",e),l>c[r]||console.log.apply(console,t)}debug(...e){this._log(v.levels.DEBUG,e)}info(...e){this._log(v.levels.INFO,e)}warn(...e){this._log(v.levels.WARNING,e)}makeError(e,code,t){if(o)return this.makeError("censored error",code,{});code||(code=v.errors.UNKNOWN_ERROR),t||(t={});const r=[];Object.keys(t).forEach((e=>{const n=t[e];try{if(n instanceof Uint8Array){let t="";for(let i=0;i<n.length;i++)t+=y[n[i]>>4],t+=y[15&n[i]];r.push(e+"=Uint8Array(0x"+t+")")}else r.push(e+"="+JSON.stringify(n))}catch(n){r.push(e+"="+JSON.stringify(t[e].toString()))}})),r.push(`code=${code}`),r.push(`version=${this.version}`);const n=e;r.length&&(e+=" ("+r.join(", ")+")");const c=new Error(e);return c.reason=n,c.code=code,Object.keys(t).forEach((function(e){c[e]=t[e]})),c}throwError(e,code,t){throw this.makeError(e,code,t)}throwArgumentError(e,t,r){return this.throwError(e,v.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,code,r){e||this.throwError(t,code,r)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",v.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,v.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,v.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,v.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,v.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",v.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",v.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",v.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return d||(d=new v("logger/5.4.1")),d}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",v.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",v.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!e,n=!!t}static setLogLevel(e){const t=c[e.toLowerCase()];null!=t?l=t:v.globalLogger().warn("invalid log level - "+e)}static from(e){return new v(e)}}v.errors=m,v.levels=h},function(e,t,r){"use strict";r.d(t,"a",(function(){return T})),r.d(t,"e",(function(){return w})),r.d(t,"d",(function(){return A})),r.d(t,"b",(function(){return E})),r.d(t,"c",(function(){return S}));var n=r(0),o=r(12),c=r(5),l=r(28);const d=new(r(2).b)("address/5.4.0");function f(address){Object(n.l)(address,20)||d.throwArgumentError("invalid address","address",address);const e=(address=address.toLowerCase()).substring(2).split(""),t=new Uint8Array(40);for(let i=0;i<40;i++)t[i]=e[i].charCodeAt(0);const r=Object(n.a)(Object(c.a)(t));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&r[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const h={};for(let i=0;i<10;i++)h[String(i)]=String(i);for(let i=0;i<26;i++)h[String.fromCharCode(65+i)]=String(10+i);const m=Math.floor((y=9007199254740991,Math.log10?Math.log10(y):Math.log(y)/Math.LN10));var y;function v(address){let e=(address=(address=address.toUpperCase()).substring(4)+address.substring(0,2)+"00").split("").map((e=>h[e])).join("");for(;e.length>=m;){let t=e.substring(0,m);e=parseInt(t,10)%97+e.substring(t.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}function T(address){let e=null;if("string"!=typeof address&&d.throwArgumentError("invalid address","address",address),address.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==address.substring(0,2)&&(address="0x"+address),e=f(address),address.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==address&&d.throwArgumentError("bad address checksum","address",address);else if(address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(address.substring(2,4)!==v(address)&&d.throwArgumentError("bad icap checksum","address",address),e=Object(o.c)(address.substring(4));e.length<40;)e="0"+e;e=f("0x"+e)}else d.throwArgumentError("invalid address","address",address);return e}function w(address){try{return T(address),!0}catch(e){}return!1}function A(address){let e=Object(o.b)(T(address).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+v("XE00"+e)+e}function E(e){let t=null;try{t=T(e.from)}catch(t){d.throwArgumentError("missing from address","transaction",e)}const r=Object(n.o)(Object(n.a)(o.a.from(e.nonce).toHexString()));return T(Object(n.e)(Object(c.a)(Object(l.encode)([t,r])),12))}function S(e,t,r){return 32!==Object(n.d)(t)&&d.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(n.d)(r)&&d.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),T(Object(n.e)(Object(c.a)(Object(n.b)(["0xff",T(e),t,r])),12))}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function c(e,base,t){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==base&&"be"!==base||(t=base,base=10),this._init(e||0,base||10,t||"be"))}var l;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(149).Buffer}catch(e){}function d(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function f(e,t,r){var n=d(e,r);return r-1>=t&&(n|=d(e,r-1)<<4),n}function h(e,t,r,n){for(var o=0,c=Math.min(e.length,r),i=t;i<c;i++){var l=e.charCodeAt(i)-48;o*=n,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===base?this._parseHex(e,r,t):(this._parseBase(e,base,r),"le"===t&&this._initArray(this.toArray(),base,t)))},c.prototype._initNumber=function(e,base,t){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):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===t&&this._initArray(this.toArray(),base,t)},c.prototype._initArray=function(e,base,t){if(n("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<this.length;i++)this.words[i]=0;var r,o,c=0;if("be"===t)for(i=e.length-1,r=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[r]|=o<<c&67108863,this.words[r+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,r++);else if("le"===t)for(i=0,r=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[r]|=o<<c&67108863,this.words[r+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,r++);return this.strip()},c.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o=0,c=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=f(e,t,i)<<o,this.words[c]|=67108863&n,o>=18?(o-=18,c+=1,this.words[c]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=f(e,t,i)<<o,this.words[c]|=67108863&n,o>=18?(o-=18,c+=1,this.words[c]|=n>>>26):o+=8;this.strip()},c.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=e.length-t,c=o%r,l=Math.min(o,o-c)+t,d=0,i=t;i<l;i+=r)d=h(e,i,i+r,base),this.imuln(n),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(0!==c){var f=1;for(d=h(e,i,e.length,base),i=0;i<c;i++)f*=base;this.imuln(f),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},c.prototype.copy=function(e){e.words=new Array(this.length);for(var i=0;i<this.length;i++)e.words[i]=this.words[i];e.length=this.length,e.negative=this.negative,e.red=this.red},c.prototype.clone=function(){var e=new c(null);return this.copy(e),e},c.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","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"],y=[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],v=[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 T(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,c=67108863&o,l=o/67108864|0;r.words[0]=c;for(var d=1;d<n;d++){for(var f=l>>>26,h=67108863&l,m=Math.min(d,t.length-1),y=Math.max(0,d-e.length+1);y<=m;y++){var i=d-y|0;f+=(o=(a=0|e.words[i])*(b=0|t.words[y])+h)/67108864|0,h=67108863&o}r.words[d]=0|h,l=0|f}return 0!==l?r.words[d]=0|l:r.length--,r.strip()}c.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var r=0,o=0,i=0;i<this.length;i++){var c=this.words[i],l=(16777215&(c<<r|o)).toString(16);t=0!==(o=c>>>24-r&16777215)||i!==this.length-1?m[6-l.length]+l+t:l+t,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var d=y[base],f=v[base];t="";var h=this.clone();for(h.negative=0;!h.isZero();){var T=h.modn(f).toString(base);t=(h=h.idivn(f)).isZero()?T+t:m[d-T.length]+T+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}n(!1,"Base should be between 2 and 36")},c.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,r){var o=this.byteLength(),c=r||Math.max(1,o);n(o<=c,"byte array longer than desired length"),n(c>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===t,d=new e(c),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),d[i]=b;for(;i<c;i++)d[i]=0}else{for(i=0;i<c-o;i++)d[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),d[c-i-1]=b}return d},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(e+=b,26!==b)break}return e},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},c.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return 0!==this.negative},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]|e.words[i];return this.strip()},c.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},c.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=b.length,this.strip()},c.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},c.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},c.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},c.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},c.prototype.iadd=function(e){var t,a,b;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i<b.length;i++)t=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&t,r=t>>>26;for(;0!==r&&i<a.length;i++)t=(0|a.words[i])+r,this.words[i]=67108863&t,r=t>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},c.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,b,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i<b.length;i++)n=(t=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&t;for(;0!==n&&i<a.length;i++)n=(t=(0|a.words[i])+n)>>26,this.words[i]=67108863&t;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(e){return this.clone().isub(e)};var w=function(e,t,r){var n,o,c,a=e.words,b=t.words,l=r.words,d=0,f=0|a[0],h=8191&f,m=f>>>13,y=0|a[1],v=8191&y,T=y>>>13,w=0|a[2],A=8191&w,E=w>>>13,S=0|a[3],O=8191&S,_=S>>>13,M=0|a[4],k=8191&M,C=M>>>13,P=0|a[5],F=8191&P,L=P>>>13,R=0|a[6],B=8191&R,N=R>>>13,x=0|a[7],j=8191&x,I=x>>>13,J=0|a[8],D=8191&J,X=J>>>13,G=0|a[9],H=8191&G,U=G>>>13,V=0|b[0],z=8191&V,Z=V>>>13,K=0|b[1],Q=8191&K,W=K>>>13,Y=0|b[2],$=8191&Y,ee=Y>>>13,te=0|b[3],re=8191&te,ne=te>>>13,ie=0|b[4],ae=8191&ie,oe=ie>>>13,se=0|b[5],ue=8191&se,ce=se>>>13,le=0|b[6],de=8191&le,fe=le>>>13,he=0|b[7],pe=8191&he,me=he>>>13,ye=0|b[8],ge=8191&ye,be=ye>>>13,ve=0|b[9],Te=8191&ve,we=ve>>>13;r.negative=e.negative^t.negative,r.length=19;var Ae=(d+(n=Math.imul(h,z))|0)+((8191&(o=(o=Math.imul(h,Z))+Math.imul(m,z)|0))<<13)|0;d=((c=Math.imul(m,Z))+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(v,z),o=(o=Math.imul(v,Z))+Math.imul(T,z)|0,c=Math.imul(T,Z);var Ee=(d+(n=n+Math.imul(h,Q)|0)|0)+((8191&(o=(o=o+Math.imul(h,W)|0)+Math.imul(m,Q)|0))<<13)|0;d=((c=c+Math.imul(m,W)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(A,z),o=(o=Math.imul(A,Z))+Math.imul(E,z)|0,c=Math.imul(E,Z),n=n+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,W)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,W)|0;var Se=(d+(n=n+Math.imul(h,$)|0)|0)+((8191&(o=(o=o+Math.imul(h,ee)|0)+Math.imul(m,$)|0))<<13)|0;d=((c=c+Math.imul(m,ee)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(O,z),o=(o=Math.imul(O,Z))+Math.imul(_,z)|0,c=Math.imul(_,Z),n=n+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,W)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,W)|0,n=n+Math.imul(v,$)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0;var Oe=(d+(n=n+Math.imul(h,re)|0)|0)+((8191&(o=(o=o+Math.imul(h,ne)|0)+Math.imul(m,re)|0))<<13)|0;d=((c=c+Math.imul(m,ne)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(k,z),o=(o=Math.imul(k,Z))+Math.imul(C,z)|0,c=Math.imul(C,Z),n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,W)|0)+Math.imul(_,Q)|0,c=c+Math.imul(_,W)|0,n=n+Math.imul(A,$)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,ee)|0,n=n+Math.imul(v,re)|0,o=(o=o+Math.imul(v,ne)|0)+Math.imul(T,re)|0,c=c+Math.imul(T,ne)|0;var _e=(d+(n=n+Math.imul(h,ae)|0)|0)+((8191&(o=(o=o+Math.imul(h,oe)|0)+Math.imul(m,ae)|0))<<13)|0;d=((c=c+Math.imul(m,oe)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(F,z),o=(o=Math.imul(F,Z))+Math.imul(L,z)|0,c=Math.imul(L,Z),n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,W)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,W)|0,n=n+Math.imul(O,$)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(_,$)|0,c=c+Math.imul(_,ee)|0,n=n+Math.imul(A,re)|0,o=(o=o+Math.imul(A,ne)|0)+Math.imul(E,re)|0,c=c+Math.imul(E,ne)|0,n=n+Math.imul(v,ae)|0,o=(o=o+Math.imul(v,oe)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,oe)|0;var Me=(d+(n=n+Math.imul(h,ue)|0)|0)+((8191&(o=(o=o+Math.imul(h,ce)|0)+Math.imul(m,ue)|0))<<13)|0;d=((c=c+Math.imul(m,ce)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,z),o=(o=Math.imul(B,Z))+Math.imul(N,z)|0,c=Math.imul(N,Z),n=n+Math.imul(F,Q)|0,o=(o=o+Math.imul(F,W)|0)+Math.imul(L,Q)|0,c=c+Math.imul(L,W)|0,n=n+Math.imul(k,$)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,ee)|0,n=n+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ne)|0)+Math.imul(_,re)|0,c=c+Math.imul(_,ne)|0,n=n+Math.imul(A,ae)|0,o=(o=o+Math.imul(A,oe)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,oe)|0,n=n+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,ce)|0;var ke=(d+(n=n+Math.imul(h,de)|0)|0)+((8191&(o=(o=o+Math.imul(h,fe)|0)+Math.imul(m,de)|0))<<13)|0;d=((c=c+Math.imul(m,fe)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),o=(o=Math.imul(j,Z))+Math.imul(I,z)|0,c=Math.imul(I,Z),n=n+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,W)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,W)|0,n=n+Math.imul(F,$)|0,o=(o=o+Math.imul(F,ee)|0)+Math.imul(L,$)|0,c=c+Math.imul(L,ee)|0,n=n+Math.imul(k,re)|0,o=(o=o+Math.imul(k,ne)|0)+Math.imul(C,re)|0,c=c+Math.imul(C,ne)|0,n=n+Math.imul(O,ae)|0,o=(o=o+Math.imul(O,oe)|0)+Math.imul(_,ae)|0,c=c+Math.imul(_,oe)|0,n=n+Math.imul(A,ue)|0,o=(o=o+Math.imul(A,ce)|0)+Math.imul(E,ue)|0,c=c+Math.imul(E,ce)|0,n=n+Math.imul(v,de)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,fe)|0;var Ce=(d+(n=n+Math.imul(h,pe)|0)|0)+((8191&(o=(o=o+Math.imul(h,me)|0)+Math.imul(m,pe)|0))<<13)|0;d=((c=c+Math.imul(m,me)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,z),o=(o=Math.imul(D,Z))+Math.imul(X,z)|0,c=Math.imul(X,Z),n=n+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,W)|0)+Math.imul(I,Q)|0,c=c+Math.imul(I,W)|0,n=n+Math.imul(B,$)|0,o=(o=o+Math.imul(B,ee)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,ee)|0,n=n+Math.imul(F,re)|0,o=(o=o+Math.imul(F,ne)|0)+Math.imul(L,re)|0,c=c+Math.imul(L,ne)|0,n=n+Math.imul(k,ae)|0,o=(o=o+Math.imul(k,oe)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,oe)|0,n=n+Math.imul(O,ue)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(_,ue)|0,c=c+Math.imul(_,ce)|0,n=n+Math.imul(A,de)|0,o=(o=o+Math.imul(A,fe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,fe)|0,n=n+Math.imul(v,pe)|0,o=(o=o+Math.imul(v,me)|0)+Math.imul(T,pe)|0,c=c+Math.imul(T,me)|0;var Pe=(d+(n=n+Math.imul(h,ge)|0)|0)+((8191&(o=(o=o+Math.imul(h,be)|0)+Math.imul(m,ge)|0))<<13)|0;d=((c=c+Math.imul(m,be)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(H,z),o=(o=Math.imul(H,Z))+Math.imul(U,z)|0,c=Math.imul(U,Z),n=n+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,W)|0)+Math.imul(X,Q)|0,c=c+Math.imul(X,W)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(I,$)|0,c=c+Math.imul(I,ee)|0,n=n+Math.imul(B,re)|0,o=(o=o+Math.imul(B,ne)|0)+Math.imul(N,re)|0,c=c+Math.imul(N,ne)|0,n=n+Math.imul(F,ae)|0,o=(o=o+Math.imul(F,oe)|0)+Math.imul(L,ae)|0,c=c+Math.imul(L,oe)|0,n=n+Math.imul(k,ue)|0,o=(o=o+Math.imul(k,ce)|0)+Math.imul(C,ue)|0,c=c+Math.imul(C,ce)|0,n=n+Math.imul(O,de)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(_,de)|0,c=c+Math.imul(_,fe)|0,n=n+Math.imul(A,pe)|0,o=(o=o+Math.imul(A,me)|0)+Math.imul(E,pe)|0,c=c+Math.imul(E,me)|0,n=n+Math.imul(v,ge)|0,o=(o=o+Math.imul(v,be)|0)+Math.imul(T,ge)|0,c=c+Math.imul(T,be)|0;var Fe=(d+(n=n+Math.imul(h,Te)|0)|0)+((8191&(o=(o=o+Math.imul(h,we)|0)+Math.imul(m,Te)|0))<<13)|0;d=((c=c+Math.imul(m,we)|0)+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,W))+Math.imul(U,Q)|0,c=Math.imul(U,W),n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,ee)|0)+Math.imul(X,$)|0,c=c+Math.imul(X,ee)|0,n=n+Math.imul(j,re)|0,o=(o=o+Math.imul(j,ne)|0)+Math.imul(I,re)|0,c=c+Math.imul(I,ne)|0,n=n+Math.imul(B,ae)|0,o=(o=o+Math.imul(B,oe)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,oe)|0,n=n+Math.imul(F,ue)|0,o=(o=o+Math.imul(F,ce)|0)+Math.imul(L,ue)|0,c=c+Math.imul(L,ce)|0,n=n+Math.imul(k,de)|0,o=(o=o+Math.imul(k,fe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,fe)|0,n=n+Math.imul(O,pe)|0,o=(o=o+Math.imul(O,me)|0)+Math.imul(_,pe)|0,c=c+Math.imul(_,me)|0,n=n+Math.imul(A,ge)|0,o=(o=o+Math.imul(A,be)|0)+Math.imul(E,ge)|0,c=c+Math.imul(E,be)|0;var Le=(d+(n=n+Math.imul(v,Te)|0)|0)+((8191&(o=(o=o+Math.imul(v,we)|0)+Math.imul(T,Te)|0))<<13)|0;d=((c=c+Math.imul(T,we)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(H,$),o=(o=Math.imul(H,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),n=n+Math.imul(D,re)|0,o=(o=o+Math.imul(D,ne)|0)+Math.imul(X,re)|0,c=c+Math.imul(X,ne)|0,n=n+Math.imul(j,ae)|0,o=(o=o+Math.imul(j,oe)|0)+Math.imul(I,ae)|0,c=c+Math.imul(I,oe)|0,n=n+Math.imul(B,ue)|0,o=(o=o+Math.imul(B,ce)|0)+Math.imul(N,ue)|0,c=c+Math.imul(N,ce)|0,n=n+Math.imul(F,de)|0,o=(o=o+Math.imul(F,fe)|0)+Math.imul(L,de)|0,c=c+Math.imul(L,fe)|0,n=n+Math.imul(k,pe)|0,o=(o=o+Math.imul(k,me)|0)+Math.imul(C,pe)|0,c=c+Math.imul(C,me)|0,n=n+Math.imul(O,ge)|0,o=(o=o+Math.imul(O,be)|0)+Math.imul(_,ge)|0,c=c+Math.imul(_,be)|0;var Re=(d+(n=n+Math.imul(A,Te)|0)|0)+((8191&(o=(o=o+Math.imul(A,we)|0)+Math.imul(E,Te)|0))<<13)|0;d=((c=c+Math.imul(E,we)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(H,re),o=(o=Math.imul(H,ne))+Math.imul(U,re)|0,c=Math.imul(U,ne),n=n+Math.imul(D,ae)|0,o=(o=o+Math.imul(D,oe)|0)+Math.imul(X,ae)|0,c=c+Math.imul(X,oe)|0,n=n+Math.imul(j,ue)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(I,ue)|0,c=c+Math.imul(I,ce)|0,n=n+Math.imul(B,de)|0,o=(o=o+Math.imul(B,fe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,fe)|0,n=n+Math.imul(F,pe)|0,o=(o=o+Math.imul(F,me)|0)+Math.imul(L,pe)|0,c=c+Math.imul(L,me)|0,n=n+Math.imul(k,ge)|0,o=(o=o+Math.imul(k,be)|0)+Math.imul(C,ge)|0,c=c+Math.imul(C,be)|0;var Be=(d+(n=n+Math.imul(O,Te)|0)|0)+((8191&(o=(o=o+Math.imul(O,we)|0)+Math.imul(_,Te)|0))<<13)|0;d=((c=c+Math.imul(_,we)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(H,ae),o=(o=Math.imul(H,oe))+Math.imul(U,ae)|0,c=Math.imul(U,oe),n=n+Math.imul(D,ue)|0,o=(o=o+Math.imul(D,ce)|0)+Math.imul(X,ue)|0,c=c+Math.imul(X,ce)|0,n=n+Math.imul(j,de)|0,o=(o=o+Math.imul(j,fe)|0)+Math.imul(I,de)|0,c=c+Math.imul(I,fe)|0,n=n+Math.imul(B,pe)|0,o=(o=o+Math.imul(B,me)|0)+Math.imul(N,pe)|0,c=c+Math.imul(N,me)|0,n=n+Math.imul(F,ge)|0,o=(o=o+Math.imul(F,be)|0)+Math.imul(L,ge)|0,c=c+Math.imul(L,be)|0;var Ne=(d+(n=n+Math.imul(k,Te)|0)|0)+((8191&(o=(o=o+Math.imul(k,we)|0)+Math.imul(C,Te)|0))<<13)|0;d=((c=c+Math.imul(C,we)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(H,ue),o=(o=Math.imul(H,ce))+Math.imul(U,ue)|0,c=Math.imul(U,ce),n=n+Math.imul(D,de)|0,o=(o=o+Math.imul(D,fe)|0)+Math.imul(X,de)|0,c=c+Math.imul(X,fe)|0,n=n+Math.imul(j,pe)|0,o=(o=o+Math.imul(j,me)|0)+Math.imul(I,pe)|0,c=c+Math.imul(I,me)|0,n=n+Math.imul(B,ge)|0,o=(o=o+Math.imul(B,be)|0)+Math.imul(N,ge)|0,c=c+Math.imul(N,be)|0;var xe=(d+(n=n+Math.imul(F,Te)|0)|0)+((8191&(o=(o=o+Math.imul(F,we)|0)+Math.imul(L,Te)|0))<<13)|0;d=((c=c+Math.imul(L,we)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(H,de),o=(o=Math.imul(H,fe))+Math.imul(U,de)|0,c=Math.imul(U,fe),n=n+Math.imul(D,pe)|0,o=(o=o+Math.imul(D,me)|0)+Math.imul(X,pe)|0,c=c+Math.imul(X,me)|0,n=n+Math.imul(j,ge)|0,o=(o=o+Math.imul(j,be)|0)+Math.imul(I,ge)|0,c=c+Math.imul(I,be)|0;var je=(d+(n=n+Math.imul(B,Te)|0)|0)+((8191&(o=(o=o+Math.imul(B,we)|0)+Math.imul(N,Te)|0))<<13)|0;d=((c=c+Math.imul(N,we)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(H,pe),o=(o=Math.imul(H,me))+Math.imul(U,pe)|0,c=Math.imul(U,me),n=n+Math.imul(D,ge)|0,o=(o=o+Math.imul(D,be)|0)+Math.imul(X,ge)|0,c=c+Math.imul(X,be)|0;var Ie=(d+(n=n+Math.imul(j,Te)|0)|0)+((8191&(o=(o=o+Math.imul(j,we)|0)+Math.imul(I,Te)|0))<<13)|0;d=((c=c+Math.imul(I,we)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(H,ge),o=(o=Math.imul(H,be))+Math.imul(U,ge)|0,c=Math.imul(U,be);var Je=(d+(n=n+Math.imul(D,Te)|0)|0)+((8191&(o=(o=o+Math.imul(D,we)|0)+Math.imul(X,Te)|0))<<13)|0;d=((c=c+Math.imul(X,we)|0)+(o>>>13)|0)+(Je>>>26)|0,Je&=67108863;var De=(d+(n=Math.imul(H,Te))|0)+((8191&(o=(o=Math.imul(H,we))+Math.imul(U,Te)|0))<<13)|0;return d=((c=Math.imul(U,we))+(o>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=Ae,l[1]=Ee,l[2]=Se,l[3]=Oe,l[4]=_e,l[5]=Me,l[6]=ke,l[7]=Ce,l[8]=Pe,l[9]=Fe,l[10]=Le,l[11]=Re,l[12]=Be,l[13]=Ne,l[14]=xe,l[15]=je,l[16]=Ie,l[17]=Je,l[18]=De,0!==d&&(l[19]=d,r.length++),r};function A(e,t,r){return(new E).mulp(e,t,r)}function E(e,t){this.x=e,this.y=t}Math.imul||(w=T),c.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?w(this,e,t):n<63?T(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,c=0;c<r.length-1;c++){var l=o;o=0;for(var d=67108863&n,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var i=c-h,m=(0|e.words[i])*(0|t.words[h]),y=67108863&m;d=67108863&(y=y+d|0),o+=(l=(l=l+(m/67108864|0)|0)+(y>>>26)|0)>>>26,l&=67108863}r.words[c]=d,n=l,l=o}return 0!==n?r.words[c]=n:r.length--,r.strip()}(this,e,t):A(this,e,t),r},E.prototype.makeRBT=function(e){for(var t=new Array(e),r=c.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},E.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},E.prototype.permute=function(e,t,r,n,o,c){for(var i=0;i<c;i++)n[i]=t[e[i]],o[i]=r[e[i]]},E.prototype.transform=function(e,t,r,n,o,c){this.permute(c,e,t,r,n,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,d=Math.cos(2*Math.PI/l),f=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var h=d,m=f,y=0;y<s;y++){var v=r[p+y],T=n[p+y],w=r[p+y+s],A=n[p+y+s],E=h*w-m*A;A=h*A+m*w,w=E,r[p+y]=v+w,n[p+y]=T+A,r[p+y+s]=v-w,n[p+y+s]=T-A,y!==l&&(E=d*h-f*m,m=d*m+f*h,h=E)}},E.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},E.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},E.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},E.prototype.convert13b=function(e,t,r,o){for(var c=0,i=0;i<t;i++)c+=0|e[i],r[2*i]=8191&c,c>>>=13,r[2*i+1]=8191&c,c>>>=13;for(i=2*t;i<o;++i)r[i]=0;n(0===c),n(0==(-8192&c))},E.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},E.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),c=this.stub(n),l=new Array(n),d=new Array(n),f=new Array(n),h=new Array(n),m=new Array(n),y=new Array(n),v=r.words;v.length=n,this.convert13b(e.words,e.length,l,n),this.convert13b(t.words,t.length,h,n),this.transform(l,c,d,f,n,o),this.transform(h,c,m,y,n,o);for(var i=0;i<n;i++){var T=d[i]*m[i]-f[i]*y[i];f[i]=d[i]*y[i]+f[i]*m[i],d[i]=T}return this.conjugate(d,f,n),this.transform(d,f,v,c,n,o),this.conjugate(v,c,n),this.normalize13b(v,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},c.prototype.mul=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},c.prototype.mulf=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),A(this,e,t)},c.prototype.imul=function(e){return this.clone().mulTo(e,this)},c.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,o=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=(e.words[n]&1<<o)>>>o}return t}(e);if(0===t.length)return new c(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var q=r.sqr();i<t.length;i++,q=q.sqr())0!==t[i]&&(r=r.mul(q));return r},c.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var i,t=e%26,s=(e-t)/26,r=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&r,l=(0|this.words[i])-c<<t;this.words[i]=l|o,o=c>>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},c.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},c.prototype.iushrn=function(e,t,r){var o;n("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var c=e%26,s=Math.min((e-c)/26,this.length),mask=67108863^67108863>>>c<<c,l=r;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var d=0;for(i=this.length-1;i>=0&&(0!==d||i>=o);i--){var f=0|this.words[i];this.words[i]=d<<26-c|f>>>c,d=f&mask}return l&&0!==d&&(l.words[l.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<<t;return!(this.length<=s)&&!!(this.words[s]&q)},c.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<<t;this.words[this.length-1]&=mask}return this.strip()},c.prototype.maskn=function(e){return this.clone().imaskn(e)},c.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},c.prototype._iaddn=function(e){this.words[0]+=e;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},c.prototype.isubn=function(e){if(n("number"==typeof e),n(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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},c.prototype.addn=function(e){return this.clone().iaddn(e)},c.prototype.subn=function(e){return this.clone().isubn(e)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(e,t,r){var i,o,c=e.length+r;this._expand(c);var l=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+l;var d=(0|e.words[i])*t;l=((o-=67108863&d)>>26)-(d/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)l=(o=(0|this.words[i+r])+l)>>26,this.words[i+r]=67108863&o;if(0===l)return this.strip();for(n(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var r=(this.length,e.length),a=this.clone(),b=e,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var d=o-1;d>=0;d--){var f=67108864*(0|a.words[b.length+d])+(0|a.words[b.length+d-1]);for(f=Math.min(f/n|0,67108863),a._ishlnsubmul(b,f,d);0!==a.negative;)f--,a.negative=0,a._ishlnsubmul(b,1,d),a.isZero()||(a.negative^=1);q&&(q.words[d]=f)}return q&&q.strip(),a.strip(),"div"!==t&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},c.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(div=l.div.neg()),"div"!==t&&(o=l.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(o=l.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var div,o,l},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),c=r.cmp(n);return c<0||1===o&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){n(e<=67108863);for(var p=(1<<26)%e,t=0,i=this.length-1;i>=0;i--)t=(p*t+(0|this.words[i]))%e;return t},c.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var r=new c(1),o=new c(0),l=new c(0),d=new c(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var f=t.clone(),h=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(f),o.isub(h)),r.iushrn(1),o.iushrn(1);for(var y=0,v=1;0==(t.words[0]&v)&&y<26;++y,v<<=1);if(y>0)for(t.iushrn(y);y-- >0;)(l.isOdd()||d.isOdd())&&(l.iadd(f),d.isub(h)),l.iushrn(1),d.iushrn(1);e.cmp(t)>=0?(e.isub(t),r.isub(l),o.isub(d)):(t.isub(e),l.isub(r),d.isub(o))}return{a:l,b:d,gcd:t.iushln(g)}},c.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new c(1),r=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var d=0,f=1;0==(b.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(b.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(r)):(b.isub(a),r.isub(t))}return(e=0===a.cmpn(1)?t:r).cmpn(0)<0&&e.iadd(p),e},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<<t;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},c.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},c.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){a<b?t=-1:a>b&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new P(e)},c.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var S={k256:null,p224:null,p192:null,p25519:null};function O(e,p){this.name=e,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function F(e){P.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}O.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},O.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},O.prototype.split=function(input,e){input.iushrn(this.n,0,e)},O.prototype.imulK=function(e){return e.imul(this.k)},o(_,O),_.prototype.split=function(input,output){for(var mask=4194303,e=Math.min(input.length,9),i=0;i<e;i++)output.words[i]=input.words[i];if(output.length=e,input.length<=9)return input.words[0]=0,void(input.length=1);var t=input.words[9];for(output.words[output.length++]=t&mask,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(r&mask)<<4|t>>>22,t=r}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var r=0|e.words[i];t+=977*r,e.words[i]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(M,O),o(k,O),o(C,O),C.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var r=19*(0|e.words[i])+t,n=67108863&r;r>>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(S[e])return S[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new C}return S[e]=t,t},P.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},P.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},P.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},P.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},P.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},P.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},P.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},P.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},P.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},P.prototype.isqr=function(a){return this.imul(a,a.clone())},P.prototype.sqr=function(a){return this.mul(a,a)},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var t=this.m.add(new c(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new c(1).toRed(this),o=r.redNeg(),l=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new c(2*d*d).toRed(this);0!==this.pow(d,l).cmp(o);)d.redIAdd(o);for(var f=this.pow(d,q),h=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),y=s;0!==m.cmp(r);){for(var v=m,i=0;0!==v.cmp(r);i++)v=v.redSqr();n(i<y);var b=this.pow(f,new c(1).iushln(y-i-1));h=h.redMul(b),f=b.redSqr(),m=m.redMul(f),y=i}return h},P.prototype.invm=function(a){var e=a._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},P.prototype.pow=function(a,e){if(e.isZero())return new c(1).toRed(this);if(0===e.cmpn(1))return a.clone();var t=new Array(16);t[0]=new c(1).toRed(this),t[1]=a;for(var i=2;i<t.length;i++)t[i]=this.mul(t[i-1],a);var r=t[0],n=0,o=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var d=e.words[i],f=l-1;f>=0;f--){var h=d>>f&1;r!==t[0]&&(r=this.sqr(r)),0!==h||0!==n?(n<<=1,n|=h,(4===++o||0===i&&0===f)&&(r=this.mul(r,t[n]),o=0,n=0)):o=0}l=26}return r},P.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},P.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new F(e)},o(F,P),F.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},F.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(106)(e))},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(140),o=r.n(n),c=r(0);function l(data){return"0x"+o.a.keccak_256(Object(c.a)(data))}},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"e",(function(){return l})),r.d(t,"a",(function(){return d})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return h}));var n=r(0),o=r(22);function c(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(n.a)(e)}function l(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function d(e){return"string"==typeof e?Object(o.f)(e,o.a.NFKC):Object(n.a)(e)}function f(object,path){let e=object;const t=path.toLowerCase().split("/");for(let i=0;i<t.length;i++){let r=null;for(const n in e)if(n.toLowerCase()===t[i]){r=e[n];break}if(null===r)return null;e=r}return e}function h(e){const t=Object(n.a)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;const r=Object(n.i)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return d}));var n=r(103),o=r(1),c=r(2);const l=new c.b("wordlists/5.4.0");class d{constructor(e){l.checkAbstract(new.target,d),Object(o.d)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){const t=[];for(let i=0;i<2048;i++){const r=e.getWord(i);if(i!==e.getWordIndex(r))return"0x";t.push(r)}return Object(n.a)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",(function(){return o}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return T})),r.d(t,"c",(function(){return O})),r.d(t,"e",(function(){return _})),r.d(t,"b",(function(){return C})),r.d(t,"f",(function(){return R})),r.d(t,"d",(function(){return N}));var n=r(3),o=r(12),c=r(0),l=r(37),d=r(5),f=r(1),h=r(28),m=r(25),y=r(2);const v=new y.b("transactions/5.4.0");var T;function w(e){return"0x"===e?null:Object(n.a)(e)}function A(e){return"0x"===e?l.h:o.a.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(T||(T={}));const E=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],S={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function O(e){const t=Object(m.b)(e);return Object(n.a)(Object(c.e)(Object(d.a)(Object(c.e)(t,1)),12))}function _(e,t){return O(Object(m.c)(Object(c.a)(e),t))}function M(e,t){const r=Object(c.o)(o.a.from(e).toHexString());return r.length>32&&v.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function k(e,t){return{address:Object(n.a)(e),storageKeys:(t||[]).map(((t,r)=>(32!==Object(c.d)(t)&&v.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function C(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&v.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),k(e[0],e[1])):k(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return k(t,Object.keys(r).sort())}));return t.sort(((a,b)=>a.address.localeCompare(b.address))),t}function P(e){return C(e).map((e=>[e.address,e.storageKeys]))}function F(e,t){if(null!=e.gasPrice){const t=o.a.from(e.gasPrice),r=o.a.from(e.maxFeePerGas||0);t.eq(r)||v.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[M(e.chainId||0,"chainId"),M(e.nonce||0,"nonce"),M(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),M(e.maxFeePerGas||0,"maxFeePerGas"),M(e.gasLimit||0,"gasLimit"),null!=e.to?Object(n.a)(e.to):"0x",M(e.value||0,"value"),e.data||"0x",P(e.accessList||[])];if(t){const e=Object(c.n)(t);r.push(M(e.recoveryParam,"recoveryParam")),r.push(Object(c.o)(e.r)),r.push(Object(c.o)(e.s))}return Object(c.c)(["0x02",h.encode(r)])}function L(e,t){const r=[M(e.chainId||0,"chainId"),M(e.nonce||0,"nonce"),M(e.gasPrice||0,"gasPrice"),M(e.gasLimit||0,"gasLimit"),null!=e.to?Object(n.a)(e.to):"0x",M(e.value||0,"value"),e.data||"0x",P(e.accessList||[])];if(t){const e=Object(c.n)(t);r.push(M(e.recoveryParam,"recoveryParam")),r.push(Object(c.o)(e.r)),r.push(Object(c.o)(e.s))}return Object(c.c)(["0x01",h.encode(r)])}function R(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&v.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){Object(f.b)(e,S);const r=[];E.forEach((function(t){let n=e[t.name]||[];const o={};t.numeric&&(o.hexPad="left"),n=Object(c.a)(Object(c.i)(n,o)),t.length&&n.length!==t.length&&n.length>0&&v.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(c.o)(n),n.length>t.maxLength&&v.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push(Object(c.i)(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&v.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!Object(c.k)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(c.i)(n)),r.push("0x"),r.push("0x")),!t)return h.encode(r);const o=Object(c.n)(t);let l=27+o.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),l+=2*n+8,o.v>28&&o.v!==l&&v.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):o.v!==l&&v.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(c.i)(l)),r.push(Object(c.o)(Object(c.a)(o.r))),r.push(Object(c.o)(Object(c.a)(o.s))),h.encode(r)}(e,t);switch(e.type){case 1:return L(e,t);case 2:return F(e,t)}return v.throwError(`unsupported transaction type: ${e.type}`,y.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function B(e,t,r){try{const r=A(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(e){v.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(c.h)(t[1],32),e.s=Object(c.h)(t[2],32);try{const t=Object(d.a)(r(e));e.from=_(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){console.log(e)}}function N(e){const t=Object(c.a)(e);if(t[0]>127)return function(e){const t=h.decode(e);9!==t.length&&6!==t.length&&v.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:A(t[0]).toNumber(),gasPrice:A(t[1]),gasLimit:A(t[2]),to:w(t[3]),value:A(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.a.from(t[6]).toNumber()}catch(e){return console.log(e),r}if(r.r=Object(c.h)(t[7],32),r.s=Object(c.h)(t[8],32),o.a.from(r.r).isZero()&&o.a.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const o=t.slice(0,6);0!==r.chainId&&(o.push(Object(c.i)(r.chainId)),o.push("0x"),o.push("0x"),n-=2*r.chainId+8);const l=Object(d.a)(h.encode(o));try{r.from=_(l,{r:Object(c.i)(r.r),s:Object(c.i)(r.s),recoveryParam:n})}catch(e){console.log(e)}r.hash=Object(d.a)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=h.decode(e.slice(1));8!==t.length&&11!==t.length&&v.throwArgumentError("invalid component count for transaction type: 1","payload",Object(c.i)(e));const r={type:1,chainId:A(t[0]).toNumber(),nonce:A(t[1]).toNumber(),gasPrice:A(t[2]),gasLimit:A(t[3]),to:w(t[4]),value:A(t[5]),data:t[6],accessList:C(t[7])};return 8===t.length||(r.hash=Object(d.a)(e),B(r,t.slice(8),L)),r}(t);case 2:return function(e){const t=h.decode(e.slice(1));9!==t.length&&12!==t.length&&v.throwArgumentError("invalid component count for transaction type: 2","payload",Object(c.i)(e));const r=A(t[2]),n=A(t[3]),o={type:2,chainId:A(t[0]).toNumber(),nonce:A(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:A(t[4]),to:w(t[5]),value:A(t[6]),data:t[7],accessList:C(t[8])};return 9===t.length||(o.hash=Object(d.a)(e),B(o,t.slice(9),F)),o}(t)}return v.throwError(`unsupported transaction type: ${t[0]}`,y.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},function(e,t,r){"use strict";r.d(t,"d",(function(){return v})),r.d(t,"a",(function(){return w})),r.d(t,"c",(function(){return _})),r.d(t,"b",(function(){return M}));var n=r(4),o=r.n(n),c=r(0),l=r(2),d=r(76),f=o.a.BN;const h=new l.b(d.a),m={},y=9007199254740991;function v(e){return null!=e&&(w.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(c.l)(e)||"bigint"==typeof e||Object(c.j)(e))}let T=!1;class w{constructor(e,t){h.checkNew(new.target,w),e!==m&&h.throwError("cannot call constructor directly; use BigNumber.from",l.b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return E(S(this).fromTwos(e))}toTwos(e){return E(S(this).toTwos(e))}abs(){return"-"===this._hex[0]?w.from(this._hex.substring(1)):this}add(e){return E(S(this).add(S(e)))}sub(e){return E(S(this).sub(S(e)))}div(e){return w.from(e).isZero()&&O("division by zero","div"),E(S(this).div(S(e)))}mul(e){return E(S(this).mul(S(e)))}mod(e){const t=S(e);return t.isNeg()&&O("cannot modulo negative values","mod"),E(S(this).umod(t))}pow(e){const t=S(e);return t.isNeg()&&O("cannot raise to negative values","pow"),E(S(this).pow(t))}and(e){const t=S(e);return(this.isNegative()||t.isNeg())&&O("cannot 'and' negative values","and"),E(S(this).and(t))}or(e){const t=S(e);return(this.isNegative()||t.isNeg())&&O("cannot 'or' negative values","or"),E(S(this).or(t))}xor(e){const t=S(e);return(this.isNegative()||t.isNeg())&&O("cannot 'xor' negative values","xor"),E(S(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&O("cannot mask negative values","mask"),E(S(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&O("cannot shift negative values","shl"),E(S(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&O("cannot shift negative values","shr"),E(S(this).shrn(e))}eq(e){return S(this).eq(S(e))}lt(e){return S(this).lt(S(e))}lte(e){return S(this).lte(S(e))}gt(e){return S(this).gt(S(e))}gte(e){return S(this).gte(S(e))}isNegative(){return"-"===this._hex[0]}isZero(){return S(this).isZero()}toNumber(){try{return S(this).toNumber()}catch(e){O("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return h.throwError("this platform does not support BigInt",l.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?T||(T=!0,h.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?h.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.b.errors.UNEXPECTED_ARGUMENT,{}):h.throwError("BigNumber.toString does not accept parameters",l.b.errors.UNEXPECTED_ARGUMENT,{})),S(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof w)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new w(m,A(e)):e.match(/^-?[0-9]+$/)?new w(m,A(new f(e))):h.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&O("underflow","BigNumber.from",e),(e>=y||e<=-y)&&O("overflow","BigNumber.from",e),w.from(String(e));const t=e;if("bigint"==typeof t)return w.from(t.toString());if(Object(c.j)(t))return w.from(Object(c.i)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return w.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Object(c.l)(e)||"-"===e[0]&&Object(c.l)(e.substring(1))))return w.from(e)}return h.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function A(e){if("string"!=typeof e)return A(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&h.throwArgumentError("invalid hex","value",e),"0x00"===(e=A(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function E(e){return w.from(A(e))}function S(e){const t=w.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function O(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),h.throwError(e,l.b.errors.NUMERIC_FAULT,n)}function _(e){return new f(e,36).toString(16)}function M(e){return new f(e,16).toString(36)}},,function(e,t,r){"use strict";r.d(t,"b",(function(){return P})),r.d(t,"a",(function(){return F})),r.d(t,"g",(function(){return L})),r.d(t,"f",(function(){return R})),r.d(t,"c",(function(){return B})),r.d(t,"e",(function(){return N})),r.d(t,"d",(function(){return x}));var n=r(41),o=r(0),c=r(12),l=r(22),d=r(214),f=r(1),h=r(25),m=r(145),y=r(141),v=r(11),T=r(211);const w=new(r(2).b)("hdnode/5.4.0"),A=c.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),E=Object(l.f)("Bitcoin seed"),S=2147483648;function O(e){return(1<<e)-1<<8-e}function _(e){return Object(o.h)(Object(o.i)(e),32)}function M(data){return n.a.encode(Object(o.b)([data,Object(o.e)(Object(m.c)(Object(m.c)(data)),0,4)]))}function k(e){if(null==e)return T.a.en;if("string"==typeof e){const t=T.a[e];return null==t&&w.throwArgumentError("unknown locale","wordlist",e),t}return e}const C={},P="m/44'/60'/0'/0/0";class F{constructor(e,t,r,n,c,l,d,y){if(w.checkNew(new.target,F),e!==C)throw new Error("HDNode constructor cannot be called directly");if(t){const e=new h.a(t);Object(f.d)(this,"privateKey",e.privateKey),Object(f.d)(this,"publicKey",e.compressedPublicKey)}else Object(f.d)(this,"privateKey",null),Object(f.d)(this,"publicKey",Object(o.i)(r));Object(f.d)(this,"parentFingerprint",n),Object(f.d)(this,"fingerprint",Object(o.e)(Object(m.b)(Object(m.c)(this.publicKey)),0,4)),Object(f.d)(this,"address",Object(v.c)(this.publicKey)),Object(f.d)(this,"chainCode",c),Object(f.d)(this,"index",l),Object(f.d)(this,"depth",d),null==y?(Object(f.d)(this,"mnemonic",null),Object(f.d)(this,"path",null)):"string"==typeof y?(Object(f.d)(this,"mnemonic",null),Object(f.d)(this,"path",y)):(Object(f.d)(this,"mnemonic",y),Object(f.d)(this,"path",y.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return M(Object(o.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(o.i)(this.depth),this.parentFingerprint,Object(o.h)(Object(o.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(o.b)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new F(C,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let path=this.path;path&&(path+="/"+(2147483647&e));const data=new Uint8Array(37);if(e&S){if(!this.privateKey)throw new Error("cannot derive child of neutered node");data.set(Object(o.a)(this.privateKey),1),path&&(path+="'")}else data.set(Object(o.a)(this.publicKey));for(let i=24;i>=0;i-=8)data[33+(i>>3)]=e>>24-i&255;const t=Object(o.a)(Object(m.a)(y.a.sha512,this.chainCode,data)),r=t.slice(0,32),n=t.slice(32);let l=null,d=null;if(this.privateKey)l=_(c.a.from(r).add(this.privateKey).mod(A));else{d=new h.a(Object(o.i)(r))._addPoint(this.publicKey)}let f=path;const v=this.mnemonic;return v&&(f=Object.freeze({phrase:v.phrase,path:path,locale:v.locale||"en"})),new F(C,l,d,this.fingerprint,_(n),e,this.depth+1,f)}derivePath(path){const e=path.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw new Error("invalid path - "+path);"m"===e[0]&&e.shift();let t=this;for(let i=0;i<e.length;i++){const component=e[i];if(component.match(/^[0-9]+'$/)){const e=parseInt(component.substring(0,component.length-1));if(e>=S)throw new Error("invalid path index - "+component);t=t._derive(S+e)}else{if(!component.match(/^[0-9]+$/))throw new Error("invalid path component - "+component);{const e=parseInt(component);if(e>=S)throw new Error("invalid path index - "+component);t=t._derive(e)}}}return t}static _fromSeed(e,t){const r=Object(o.a)(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=Object(o.a)(Object(m.a)(y.a.sha512,E,r));return new F(C,_(n.slice(0,32)),null,"0x00000000",_(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=B(R(e,r=k(r)),r),F._fromSeed(L(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return F._fromSeed(e,null)}static fromExtendedKey(e){const t=n.a.decode(e);82===t.length&&M(t.slice(0,78))===e||w.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],c=Object(o.i)(t.slice(5,9)),l=parseInt(Object(o.i)(t.slice(9,13)).substring(2),16),d=Object(o.i)(t.slice(13,45)),f=t.slice(45,78);switch(Object(o.i)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new F(C,null,Object(o.i)(f),c,d,l,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==f[0])break;return new F(C,Object(o.i)(f.slice(1)),null,c,d,l,r,null)}return w.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function L(e,t){t||(t="");const r=Object(l.f)("mnemonic"+t,l.a.NFKD);return Object(d.a)(Object(l.f)(e,l.a.NFKD),r,2048,64,"sha512")}function R(e,t){t=k(t),w.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=Object(o.a)(new Uint8Array(Math.ceil(11*r.length/8)));let c=0;for(let i=0;i<r.length;i++){let e=t.getWordIndex(r[i].normalize("NFKD"));if(-1===e)throw new Error("invalid mnemonic");for(let t=0;t<11;t++)e&1<<10-t&&(n[c>>3]|=1<<7-c%8),c++}const l=32*r.length/3,d=O(r.length/3);if((Object(o.a)(Object(m.c)(n.slice(0,l/8)))[0]&d)!==(n[n.length-1]&d))throw new Error("invalid checksum");return Object(o.i)(n.slice(0,l/8))}function B(e,t){if(t=k(t),(e=Object(o.a)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let i=0;i<e.length;i++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3);const c=e.length/4,l=Object(o.a)(Object(m.c)(e))[0]&O(c);return r[r.length-1]<<=c,r[r.length-1]|=l>>8-c,t.join(r.map((e=>t.getWord(e))))}function N(e,t){try{return R(e,t),!0}catch(e){}return!1}function x(e){return("number"!=typeof e||e<0||e>=S||e%1)&&w.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},function(e,t,r){"use strict";r.d(t,"a",(function(){return w})),r.d(t,"b",(function(){return A})),r.d(t,"c",(function(){return E}));var n=r(83),o=r(0),c=r(1),l=r(22),d=r(2);var f=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};function h(e,t){return f(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},n=yield fetch(e,r),body=yield n.arrayBuffer(),c={};return n.headers.forEach?n.headers.forEach(((e,t)=>{c[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{c[e.toLowerCase()]=n.headers.get(e)})),{headers:c,statusCode:n.status,statusMessage:n.statusText,body:Object(o.a)(new Uint8Array(body))}}))}var m=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const y=new d.b("web/5.4.0");function v(e){return new Promise((t=>{setTimeout(t,e)}))}function T(e,t){if(null==e)return null;if("string"==typeof e)return e;if(Object(o.k)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Object(l.h)(e)}catch(e){}return Object(o.i)(e)}return e}function w(e,body,t){const r="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;y.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const o="object"==typeof e?e.throttleCallback:null,c="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;y.assertArgument(c>0&&c%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",c);const f={};let w=null;const A={method:"GET"};let E=!1,S=12e4;if("string"==typeof e)w=e;else if("object"==typeof e){if(null!=e&&null!=e.url||y.throwArgumentError("missing URL","connection.url",e),w=e.url,"number"==typeof e.timeout&&e.timeout>0&&(S=e.timeout),e.headers)for(const t in e.headers)f[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(E=!0);if(A.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==w.substring(0,6)&&!0!==e.allowInsecureAuthentication&&y.throwError("basic authentication requires a secure https url",d.b.errors.INVALID_ARGUMENT,{argument:"url",url:w,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;f.authorization={key:"Authorization",value:"Basic "+Object(n.b)(Object(l.f)(t))}}}body&&(A.method="POST",A.body=body,null==f["content-type"]&&(f["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==f["content-length"]&&(f["content-length"]={key:"Content-Length",value:String(body.length)}));const O={};Object.keys(f).forEach((e=>{const header=f[e];O[header.key]=header.value})),A.headers=O;const _=function(){let e=null;return{promise:new Promise((function(t,r){S&&(e=setTimeout((()=>{null!=e&&(e=null,r(y.makeError("timeout",d.b.errors.TIMEOUT,{requestBody:T(A.body,O["content-type"]),requestMethod:A.method,timeout:S,url:w})))}),S))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),M=function(){return m(this,void 0,void 0,(function*(){for(let e=0;e<r;e++){let n=null;try{if(n=yield h(w,A),429===n.statusCode&&e<r){let t=!0;if(o&&(t=yield o(e,w)),t){let t=0;const r=n.headers["retry-after"];t="string"==typeof r&&r.match(/^[1-9][0-9]*$/)?1e3*parseInt(r):c*parseInt(String(Math.random()*Math.pow(2,e))),yield v(t);continue}}}catch(e){n=e.response,null==n&&(_.cancel(),y.throwError("missing response",d.b.errors.SERVER_ERROR,{requestBody:T(A.body,O["content-type"]),requestMethod:A.method,serverError:e,url:w}))}let body=n.body;if(E&&304===n.statusCode?body=null:(n.statusCode<200||n.statusCode>=300)&&(_.cancel(),y.throwError("bad response",d.b.errors.SERVER_ERROR,{status:n.statusCode,headers:n.headers,body:T(body,n.headers?n.headers["content-type"]:null),requestBody:T(A.body,O["content-type"]),requestMethod:A.method,url:w})),t)try{const e=yield t(body,n);return _.cancel(),e}catch(t){if(t.throttleRetry&&e<r){let t=!0;if(o&&(t=yield o(e,w)),t){const t=c*parseInt(String(Math.random()*Math.pow(2,e)));yield v(t);continue}}_.cancel(),y.throwError("processing response error",d.b.errors.SERVER_ERROR,{body:T(body,n.headers?n.headers["content-type"]:null),error:t,requestBody:T(A.body,O["content-type"]),requestMethod:A.method,url:w})}return _.cancel(),body}return y.throwError("failed response",d.b.errors.SERVER_ERROR,{requestBody:T(A.body,O["content-type"]),requestMethod:A.method,url:w})}))}();return Promise.race([_.promise,M])}function A(e,t,r){let body=null;if(null!=t){body=Object(l.f)(t);const r="string"==typeof e?{url:e}:Object(c.g)(e);if(r.headers){0!==Object.keys(r.headers).filter((e=>"content-type"===e.toLowerCase())).length||(r.headers=Object(c.g)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return w(e,body,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(Object(l.h)(e))}catch(t){y.throwError("invalid JSON",d.b.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n}))}function E(e,t){return t||(t={}),null==(t=Object(c.g)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let o=null,c=!1;const l=()=>!c&&(c=!0,o&&clearTimeout(o),!0);t.timeout&&(o=setTimeout((()=>{l()&&n(new Error("timeout"))}),t.timeout));const d=t.retryLimit;let f=0;!function o(){return e().then((function(e){if(void 0!==e)l()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",o);else if(t.onceBlock)t.onceBlock.once("block",o);else if(!c){if(f++,f>d)return void(l()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,f)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(o,e)}return null}),(function(e){l()&&n(e)}))}()}))}},function(e,t,r){"use strict";function n(e,t,r,n,o,c,l){try{var d=e[c](l),f=d.value}catch(e){return void r(e)}d.done?t(f):Promise.resolve(f).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var l=e.apply(t,r);function d(e){n(l,o,c,d,f,"next",e)}function f(e){n(l,o,c,d,f,"throw",e)}d(void 0)}))}}r.d(t,"a",(function(){return o}))},,function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var n=r(23),o=r(90),c=r(29),l=r(93),d=r(94),f=r(120),h=o("wks"),m=n.Symbol,y=f?m:m&&m.withoutSetter||l;e.exports=function(e){return c(h,e)&&(d||"string"==typeof h[e])||(d&&c(m,e)?h[e]=m[e]:h[e]=y("Symbol."+e)),h[e]}},function(e,t,r){"use strict";r.r(t);var n=r(40);r.d(t,"ethers",(function(){return n}));var o=r(27);r.d(t,"Signer",(function(){return o.a}));var c=r(52);r.d(t,"Wallet",(function(){return c.a})),r.d(t,"VoidSigner",(function(){return o.b}));var l=r(62);r.d(t,"getDefaultProvider",(function(){return l.getDefaultProvider})),r.d(t,"providers",(function(){return n.providers}));var d=r(46);r.d(t,"BaseContract",(function(){return d.a})),r.d(t,"Contract",(function(){return d.b})),r.d(t,"ContractFactory",(function(){return d.c}));var f=r(12);r.d(t,"BigNumber",(function(){return f.a}));var h=r(159);r.d(t,"FixedNumber",(function(){return h.a})),r.d(t,"constants",(function(){return n.constants}));var m=r(2);r.d(t,"errors",(function(){return m.a})),r.d(t,"logger",(function(){return n.logger})),r.d(t,"utils",(function(){return n.utils}));var y=r(211);r.d(t,"wordlists",(function(){return y.a}));var v=r(75);r.d(t,"version",(function(){return v.a}));var T=r(7);r.d(t,"Wordlist",(function(){return T.a}));try{const e=window;null==e._ethers&&(e._ethers=n)}catch(e){}},function(e,t,r){var n=t;n.utils=r(34),n.common=r(56),n.sha=r(151),n.ripemd=r(155),n.hmac=r(156),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"f",(function(){return m})),r.d(t,"d",(function(){return v})),r.d(t,"e",(function(){return T})),r.d(t,"h",(function(){return w})),r.d(t,"g",(function(){return A}));var n=r(0);const o=new(r(2).b)("strings/5.4.0");var c,l;function d(e,t,r,output,n){if(e===l.BAD_PREFIX||e===l.UNEXPECTED_CONTINUE){let i=0;for(let e=t+1;e<r.length&&r[e]>>6==2;e++)i++;return i}return e===l.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(c||(c={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(l||(l={}));const f=Object.freeze({error:function(e,t,r,output,n){return o.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:d,replace:function(e,t,r,output,n){return e===l.OVERLONG?(output.push(n),0):(output.push(65533),d(e,t,r))}});function h(e,t){null==t&&(t=f.error),e=Object(n.a)(e);const r=[];let i=0;for(;i<e.length;){const n=e[i++];if(n>>7==0){r.push(n);continue}let o=null,c=null;if(192==(224&n))o=1,c=127;else if(224==(240&n))o=2,c=2047;else{if(240!=(248&n)){i+=t(128==(192&n)?l.UNEXPECTED_CONTINUE:l.BAD_PREFIX,i-1,e,r);continue}o=3,c=65535}if(i-1+o>=e.length){i+=t(l.OVERRUN,i-1,e,r);continue}let d=n&(1<<8-o-1)-1;for(let n=0;n<o;n++){let n=e[i];if(128!=(192&n)){i+=t(l.MISSING_CONTINUE,i,e,r),d=null;break}d=d<<6|63&n,i++}null!==d&&(d>1114111?i+=t(l.OUT_OF_RANGE,i-1-o,e,r,d):d>=55296&&d<=57343?i+=t(l.UTF16_SURROGATE,i-1-o,e,r,d):d<=c?i+=t(l.OVERLONG,i-1-o,e,r,d):r.push(d))}return r}function m(e,form=c.current){form!=c.current&&(o.checkNormalize(),e=e.normalize(form));let t=[];for(let i=0;i<e.length;i++){const r=e.charCodeAt(i);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192),t.push(63&r|128);else if(55296==(64512&r)){i++;const n=e.charCodeAt(i);if(i>=e.length||56320!=(64512&n))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&n);t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)}else t.push(r>>12|224),t.push(r>>6&63|128),t.push(63&r|128)}return Object(n.a)(t)}function y(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function v(e,t){return'"'+h(e,t).map((e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?y(e):y(55296+((e-=65536)>>10&1023))+y(56320+(1023&e))})).join("")+'"'}function T(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function w(e,t){return T(h(e,t))}function A(e,form=c.current){return h(m(e,form))}},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r(43))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return m})),r.d(t,"b",(function(){return y}));var n=r(139),o=r(0),c=r(1);const l=new(r(2).b)("signing-key/5.4.0");let d=null;function f(){return d||(d=new n.a("secp256k1")),d}class h{constructor(e){Object(c.d)(this,"curve","secp256k1"),Object(c.d)(this,"privateKey",Object(o.i)(e));const t=f().keyFromPrivate(Object(o.a)(this.privateKey));Object(c.d)(this,"publicKey","0x"+t.getPublic(!1,"hex")),Object(c.d)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Object(c.d)(this,"_isSigningKey",!0)}_addPoint(e){const t=f().keyFromPublic(Object(o.a)(this.publicKey)),r=f().keyFromPublic(Object(o.a)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=f().keyFromPrivate(Object(o.a)(this.privateKey)),r=Object(o.a)(e);32!==r.length&&l.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return Object(o.n)({recoveryParam:n.recoveryParam,r:Object(o.h)("0x"+n.r.toString(16),32),s:Object(o.h)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=f().keyFromPrivate(Object(o.a)(this.privateKey)),r=f().keyFromPublic(Object(o.a)(y(e)));return Object(o.h)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function m(e,t){const r=Object(o.n)(t),n={r:Object(o.a)(r.r),s:Object(o.a)(r.s)};return"0x"+f().recoverPubKey(Object(o.a)(e),n,r.recoveryParam).encode("hex",!1)}function y(e,t){const r=Object(o.a)(e);if(32===r.length){const e=new h(r);return t?"0x"+f().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?Object(o.i)(r):"0x"+f().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+f().keyFromPublic(r).getPublic(!0,"hex"):Object(o.i)(r):l.throwArgumentError("invalid public or private key","key","[REDACTED]")}},function(e,t,r){var n=r(23),o=r(49).f,c=r(59),l=r(50),d=r(92),f=r(169),h=r(128);e.exports=function(e,source){var t,r,m,y,v,T=e.target,w=e.global,A=e.stat;if(t=w?n:A?n[T]||d(T,{}):(n[T]||{}).prototype)for(r in source){if(y=source[r],m=e.noTargetGet?(v=o(t,r))&&v.value:t[r],!h(w?r:T+(A?".":"#")+r,e.forced)&&void 0!==m){if(typeof y==typeof m)continue;f(y,m)}(e.sham||m&&m.sham)&&c(y,"sham",!0),l(t,r,y,e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return m}));var n=r(1),o=r(2);var c=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const l=new o.b("abstract-signer/5.4.1"),d=["accessList","chainId","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],f=[o.b.errors.INSUFFICIENT_FUNDS,o.b.errors.NONCE_EXPIRED,o.b.errors.REPLACEMENT_UNDERPRICED];class h{constructor(){l.checkAbstract(new.target,h),Object(n.d)(this,"_isSigner",!0)}getBalance(e){return c(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return c(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return c(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield Object(n.f)(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return c(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield Object(n.f)(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return c(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return c(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return c(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return c(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return c(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const t in e)-1===d.indexOf(t)&&l.throwArgumentError("invalid transaction key: "+t,"transaction",e);const t=Object(n.g)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&l.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return c(this,void 0,void 0,(function*(){const t=yield Object(n.f)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>c(this,void 0,void 0,(function*(){if(null==e)return null;const address=yield this.resolveName(e);return null==address&&l.throwArgumentError("provided ENS name resolves to null","tx.to",e),address})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||l.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):l.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&l.throwError("network does not support EIP-1559",o.b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):l.throwError("failed to get consistent fee data",o.b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(f.indexOf(e.code)>=0)throw e;return l.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&l.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield Object(n.f)(t)}))}_checkProvider(e){this.provider||l.throwError("missing provider",o.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class m extends h{constructor(address,e){l.checkNew(new.target,m),super(),Object(n.d)(this,"address",address),Object(n.d)(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{l.throwError(e,o.b.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new m(this.address,e)}}},function(e,t,r){"use strict";r.r(t),r.d(t,"encode",(function(){return h})),r.d(t,"decode",(function(){return v}));var n=r(0),o=r(2);const c=new o.b("rlp/5.4.0");function l(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function d(data,e,t){let r=0;for(let i=0;i<t;i++)r=256*r+data[e+i];return r}function f(object){if(Array.isArray(object)){let e=[];if(object.forEach((function(t){e=e.concat(f(t))})),e.length<=55)return e.unshift(192+e.length),e;const t=l(e.length);return t.unshift(247+t.length),t.concat(e)}Object(n.k)(object)||c.throwArgumentError("RLP object must be BytesLike","object",object);const data=Array.prototype.slice.call(Object(n.a)(object));if(1===data.length&&data[0]<=127)return data;if(data.length<=55)return data.unshift(128+data.length),data;const e=l(data.length);return e.unshift(183+e.length),e.concat(data)}function h(object){return Object(n.i)(f(object))}function m(data,e,t,r){const n=[];for(;t<e+1+r;){const l=y(data,t);n.push(l.result),(t+=l.consumed)>e+1+r&&c.throwError("child data too short",o.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:n}}function y(data,e){if(0===data.length&&c.throwError("data too short",o.b.errors.BUFFER_OVERRUN,{}),data[e]>=248){const t=data[e]-247;e+1+t>data.length&&c.throwError("data short segment too short",o.b.errors.BUFFER_OVERRUN,{});const r=d(data,e+1,t);return e+1+t+r>data.length&&c.throwError("data long segment too short",o.b.errors.BUFFER_OVERRUN,{}),m(data,e,e+1+t,t+r)}if(data[e]>=192){const t=data[e]-192;return e+1+t>data.length&&c.throwError("data array too short",o.b.errors.BUFFER_OVERRUN,{}),m(data,e,e+1,t)}if(data[e]>=184){const t=data[e]-183;e+1+t>data.length&&c.throwError("data array too short",o.b.errors.BUFFER_OVERRUN,{});const r=d(data,e+1,t);e+1+t+r>data.length&&c.throwError("data array too short",o.b.errors.BUFFER_OVERRUN,{});return{consumed:1+t+r,result:Object(n.i)(data.slice(e+1+t,e+1+t+r))}}if(data[e]>=128){const t=data[e]-128;e+1+t>data.length&&c.throwError("data too short",o.b.errors.BUFFER_OVERRUN,{});return{consumed:1+t,result:Object(n.i)(data.slice(e+1,e+1+t))}}return{consumed:1,result:Object(n.i)(data[e])}}function v(data){const e=Object(n.a)(data),t=y(e,0);return t.consumed!==e.length&&c.throwArgumentError("invalid rlp data","data",data),t.result}},function(e,t,r){var n=r(44),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},function(e,t,r){var n=r(24);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return h}));var n=r(12),o=(r(0),r(1)),c=r(2);var l=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const d=new c.b("abstract-provider/5.4.1");class f extends o.a{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class h{constructor(){d.checkAbstract(new.target,h),Object(o.d)(this,"_isProvider",!0)}getFeeData(){return l(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield Object(o.f)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,c=null;return e&&e.baseFeePerGas&&(c=n.a.from("2500000000"),r=e.baseFeePerGas.mul(2).add(c)),{maxFeePerGas:r,maxPriorityFeePerGas:c,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},function(e,t,r){"use strict";!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var i=0;i<e.length;i++)if(!r(e[i])||e[i]<0||e[i]>255)return!1;return!0}function o(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function c(e){return new Uint8Array(e)}function l(e,t,r,n,o){null==n&&null==o||(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}var d,f={toBytes:function(text){var e=[],i=0;for(text=encodeURI(text);i<text.length;){var t=text.charCodeAt(i++);37===t?(e.push(parseInt(text.substr(i,2),16)),i+=2):e.push(t)}return o(e)},fromBytes:function(e){for(var t=[],i=0;i<e.length;){var r=e[i];r<128?(t.push(String.fromCharCode(r)),i++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[i+1])),i+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[i+1])<<6|63&e[i+2])),i+=3)}return t.join("")}},h=(d="0123456789abcdef",{toBytes:function(text){for(var e=[],i=0;i<text.length;i+=2)e.push(parseInt(text.substr(i,2),16));return e},fromBytes:function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];t.push(d[(240&r)>>4]+d[15&r])}return t.join("")}}),m={16:10,24:12,32:14},y=[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],v=[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],T=[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],w=[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],A=[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],E=[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],S=[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],O=[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],_=[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],M=[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],k=[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],C=[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],P=[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],F=[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],L=[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 R(e){for(var t=[],i=0;i<e.length;i+=4)t.push(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]);return t}var B=function(e){if(!(this instanceof B))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(e,!0)}),this._prepare()};B.prototype._prepare=function(){var e=m[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var i=0;i<=e;i++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var t,r=4*(e+1),n=this.key.length/4,o=R(this.key);for(i=0;i<n;i++)t=i>>2,this._Ke[t][i%4]=o[i],this._Kd[e-t][i%4]=o[i];for(var c,l=0,d=n;d<r;){if(c=o[n-1],o[0]^=v[c>>16&255]<<24^v[c>>8&255]<<16^v[255&c]<<8^v[c>>24&255]^y[l]<<24,l+=1,8!=n)for(i=1;i<n;i++)o[i]^=o[i-1];else{for(i=1;i<n/2;i++)o[i]^=o[i-1];c=o[n/2-1],o[n/2]^=v[255&c]^v[c>>8&255]<<8^v[c>>16&255]<<16^v[c>>24&255]<<24;for(i=n/2+1;i<n;i++)o[i]^=o[i-1]}for(i=0;i<n&&d<r;)f=d>>2,h=d%4,this._Ke[f][h]=o[i],this._Kd[e-f][h]=o[i++],d++}for(var f=1;f<e;f++)for(var h=0;h<4;h++)c=this._Kd[f][h],this._Kd[f][h]=C[c>>24&255]^P[c>>16&255]^F[c>>8&255]^L[255&c]},B.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,a=[0,0,0,0],r=R(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var n=1;n<t;n++){for(i=0;i<4;i++)a[i]=w[r[i]>>24&255]^A[r[(i+1)%4]>>16&255]^E[r[(i+2)%4]>>8&255]^S[255&r[(i+3)%4]]^this._Ke[n][i];r=a.slice()}var o,l=c(16);for(i=0;i<4;i++)o=this._Ke[t][i],l[4*i]=255&(v[r[i]>>24&255]^o>>24),l[4*i+1]=255&(v[r[(i+1)%4]>>16&255]^o>>16),l[4*i+2]=255&(v[r[(i+2)%4]>>8&255]^o>>8),l[4*i+3]=255&(v[255&r[(i+3)%4]]^o);return l},B.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,a=[0,0,0,0],r=R(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var n=1;n<t;n++){for(i=0;i<4;i++)a[i]=O[r[i]>>24&255]^_[r[(i+3)%4]>>16&255]^M[r[(i+2)%4]>>8&255]^k[255&r[(i+1)%4]]^this._Kd[n][i];r=a.slice()}var o,l=c(16);for(i=0;i<4;i++)o=this._Kd[t][i],l[4*i]=255&(T[r[i]>>24&255]^o>>24),l[4*i+1]=255&(T[r[(i+3)%4]>>16&255]^o>>16),l[4*i+2]=255&(T[r[(i+2)%4]>>8&255]^o>>8),l[4*i+3]=255&(T[255&r[(i+1)%4]]^o);return l};var N=function(e){if(!(this instanceof N))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new B(e)};N.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=c(e.length),r=c(16),i=0;i<e.length;i+=16)l(e,r,0,i,i+16),l(r=this._aes.encrypt(r),t,i);return t},N.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=c(e.length),r=c(16),i=0;i<e.length;i+=16)l(e,r,0,i,i+16),l(r=this._aes.decrypt(r),t,i);return t};var x=function(e,t){if(!(this instanceof x))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=c(16);this._lastCipherblock=o(t,!0),this._aes=new B(e)};x.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=c(e.length),r=c(16),i=0;i<e.length;i+=16){l(e,r,0,i,i+16);for(var n=0;n<16;n++)r[n]^=this._lastCipherblock[n];this._lastCipherblock=this._aes.encrypt(r),l(this._lastCipherblock,t,i)}return t},x.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=c(e.length),r=c(16),i=0;i<e.length;i+=16){l(e,r,0,i,i+16),r=this._aes.decrypt(r);for(var n=0;n<16;n++)t[i+n]=r[n]^this._lastCipherblock[n];l(e,this._lastCipherblock,0,i,i+16)}return t};var j=function(e,t,r){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=c(16);r||(r=1),this.segmentSize=r,this._shiftRegister=o(t,!0),this._aes=new B(e)};j.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=o(e,!0),i=0;i<r.length;i+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var n=0;n<this.segmentSize;n++)r[i+n]^=t[n];l(this._shiftRegister,this._shiftRegister,0,this.segmentSize),l(r,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return r},j.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=o(e,!0),i=0;i<r.length;i+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var n=0;n<this.segmentSize;n++)r[i+n]^=t[n];l(this._shiftRegister,this._shiftRegister,0,this.segmentSize),l(e,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return r};var I=function(e,t){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=c(16);this._lastPrecipher=o(t,!0),this._lastPrecipherIndex=16,this._aes=new B(e)};I.prototype.encrypt=function(e){for(var t=o(e,!0),i=0;i<t.length;i++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[i]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},I.prototype.decrypt=I.prototype.encrypt;var J=function(e){if(!(this instanceof J))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=c(16),this.setValue(e)):this.setBytes(e)};J.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},J.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},J.prototype.increment=function(){for(var i=15;i>=0;i--){if(255!==this._counter[i]){this._counter[i]++;break}this._counter[i]=0}};var D=function(e,t){if(!(this instanceof D))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof J||(t=new J(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new B(e)};D.prototype.encrypt=function(e){for(var t=o(e,!0),i=0;i<t.length;i++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[i]^=this._remainingCounter[this._remainingCounterIndex++];return t},D.prototype.decrypt=D.prototype.encrypt;var X={AES:B,Counter:J,ModeOfOperation:{ecb:N,cbc:x,cfb:j,ofb:I,ctr:D},utils:{hex:h,utf8:f},padding:{pkcs7:{pad:function(data){var e=16-(data=o(data,!0)).length%16,t=c(data.length+e);l(data,t);for(var i=data.length;i<t.length;i++)t[i]=e;return t},strip:function(data){if((data=o(data,!0)).length<16)throw new Error("PKCS#7 invalid length");var e=data[data.length-1];if(e>16)throw new Error("PKCS#7 padding byte out of range");for(var t=data.length-e,i=0;i<e;i++)if(data[t+i]!==e)throw new Error("PKCS#7 invalid padding byte");var r=c(t);return l(data,r,0,0,t),r}}},_arrayTest:{coerceArray:o,createArray:c,copyArray:l}};e.exports=X}()},function(e,t,r){var n=r(18);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){"use strict";var n=r(55),o=r(150);function c(e,i){return 55296==(64512&e.charCodeAt(i))&&(!(i<0||i+1>=e.length)&&56320==(64512&e.charCodeAt(i+1)))}function l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function d(e){return 1===e.length?"0"+e:e}function f(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=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];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<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var p=0,i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?r[p++]=n:n<2048?(r[p++]=n>>6|192,r[p++]=63&n|128):c(e,i)?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++i)),r[p++]=n>>18|240,r[p++]=n>>12&63|128,r[p++]=n>>6&63|128,r[p++]=63&n|128):(r[p++]=n>>12|224,r[p++]=n>>6&63|128,r[p++]=63&n|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=d(e[i].toString(16));return t},t.htonl=l,t.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];"little"===t&&(n=l(n)),r+=f(n.toString(16))}return r},t.zero2=d,t.zero8=f,t.join32=function(e,t,r,o){var c=r-t;n(c%4==0);for(var l=new Array(c/4),i=0,d=t;i<l.length;i++,d+=4){var f;f="big"===o?e[d]<<24|e[d+1]<<16|e[d+2]<<8|e[d+3]:e[d+3]<<24|e[d+2]<<16|e[d+1]<<8|e[d],l[i]=f>>>0}return l},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var o=e[i];"big"===t?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},t.rotr32=function(e,b){return e>>>b|e<<32-b},t.rotl32=function(e,b){return e<<b|e>>>32-b},t.sum32=function(a,b){return a+b>>>0},t.sum32_3=function(a,b,e){return a+b+e>>>0},t.sum32_4=function(a,b,e,t){return a+b+e+t>>>0},t.sum32_5=function(a,b,e,t,r){return a+b+e+t+r>>>0},t.sum64=function(e,t,r,n){var o=e[t],c=n+e[t+1]>>>0,l=(c<n?1:0)+r+o;e[t]=l>>>0,e[t+1]=c},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,c,l,dl){var d=0,f=t;return d+=(f=f+n>>>0)<t?1:0,d+=(f=f+c>>>0)<c?1:0,e+r+o+l+(d+=(f=f+dl>>>0)<dl?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,o,c,l,dl){return t+n+c+dl>>>0},t.sum64_5_hi=function(e,t,r,n,o,c,l,dl,d,f){var h=0,m=t;return h+=(m=m+n>>>0)<t?1:0,h+=(m=m+c>>>0)<c?1:0,h+=(m=m+dl>>>0)<dl?1:0,e+r+o+l+d+(h+=(m=m+f>>>0)<f?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,o,c,l,dl,d,f){return t+n+c+dl+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){var n=r(30),o=r(121),c=r(36),l=r(68),d=Object.defineProperty;t.f=n?d:function(e,t,r){if(c(e),t=l(t),c(r),o)try{return d(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(33);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t,r){"use strict";r.d(t,"d",(function(){return o})),r.d(t,"h",(function(){return c})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return d})),r.d(t,"g",(function(){return f})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return m})),r.d(t,"a",(function(){return y}));var n=r(12);const o=n.a.from(-1),c=n.a.from(0),l=n.a.from(1),d=n.a.from(2),f=n.a.from("1000000000000000000"),h=n.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),m=n.a.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),y=n.a.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},function(e,t,r){var n=r(115),o=r(58);e.exports=function(e){return n(o(e))}},function(e,t,r){"use strict";r.r(t),r.d(t,"AddressZero",(function(){return n.a})),r.d(t,"NegativeOne",(function(){return o.d})),r.d(t,"Zero",(function(){return o.h})),r.d(t,"One",(function(){return o.e})),r.d(t,"Two",(function(){return o.f})),r.d(t,"WeiPerEther",(function(){return o.g})),r.d(t,"MaxUint256",(function(){return o.b})),r.d(t,"MinInt256",(function(){return o.c})),r.d(t,"MaxInt256",(function(){return o.a})),r.d(t,"HashZero",(function(){return c.a})),r.d(t,"EtherSymbol",(function(){return l}));var n=r(112),o=r(37),c=r(111);const l="Ξ"},function(e,t,r){"use strict";r.r(t),r.d(t,"Signer",(function(){return d.a})),r.d(t,"Wallet",(function(){return f.a})),r.d(t,"VoidSigner",(function(){return d.b})),r.d(t,"getDefaultProvider",(function(){return m.getDefaultProvider})),r.d(t,"providers",(function(){return m})),r.d(t,"BaseContract",(function(){return o.a})),r.d(t,"Contract",(function(){return o.b})),r.d(t,"ContractFactory",(function(){return o.c})),r.d(t,"BigNumber",(function(){return c.a})),r.d(t,"FixedNumber",(function(){return l.a})),r.d(t,"constants",(function(){return h})),r.d(t,"errors",(function(){return A.a})),r.d(t,"logger",(function(){return ht})),r.d(t,"utils",(function(){return n})),r.d(t,"wordlists",(function(){return y.a})),r.d(t,"version",(function(){return ft.a})),r.d(t,"Wordlist",(function(){return v.a}));var n={};r.r(n),r.d(n,"AbiCoder",(function(){return ve})),r.d(n,"defaultAbiCoder",(function(){return Te})),r.d(n,"Fragment",(function(){return ne})),r.d(n,"ConstructorFragment",(function(){return ue})),r.d(n,"ErrorFragment",(function(){return de})),r.d(n,"EventFragment",(function(){return ie})),r.d(n,"FunctionFragment",(function(){return ce})),r.d(n,"ParamType",(function(){return te})),r.d(n,"FormatTypes",(function(){return $})),r.d(n,"checkResultErrors",(function(){return O})),r.d(n,"Logger",(function(){return A.b})),r.d(n,"RLP",(function(){return Ke})),r.d(n,"_fetchData",(function(){return ct.a})),r.d(n,"fetchJson",(function(){return ct.b})),r.d(n,"poll",(function(){return ct.c})),r.d(n,"checkProperties",(function(){return w.b})),r.d(n,"deepCopy",(function(){return w.c})),r.d(n,"defineReadOnly",(function(){return w.d})),r.d(n,"getStatic",(function(){return w.e})),r.d(n,"resolveProperties",(function(){return w.f})),r.d(n,"shallowCopy",(function(){return w.g})),r.d(n,"arrayify",(function(){return T.a})),r.d(n,"concat",(function(){return T.b})),r.d(n,"stripZeros",(function(){return T.o})),r.d(n,"zeroPad",(function(){return T.p})),r.d(n,"isBytes",(function(){return T.j})),r.d(n,"isBytesLike",(function(){return T.k})),r.d(n,"defaultPath",(function(){return xe.b})),r.d(n,"HDNode",(function(){return xe.a})),r.d(n,"SigningKey",(function(){return qe.a})),r.d(n,"Interface",(function(){return Pe})),r.d(n,"LogDescription",(function(){return Se})),r.d(n,"TransactionDescription",(function(){return Oe})),r.d(n,"base58",(function(){return Le.a})),r.d(n,"base64",(function(){return Fe})),r.d(n,"hexlify",(function(){return T.i})),r.d(n,"isHexString",(function(){return T.l})),r.d(n,"hexConcat",(function(){return T.c})),r.d(n,"hexStripZeros",(function(){return T.f})),r.d(n,"hexValue",(function(){return T.g})),r.d(n,"hexZeroPad",(function(){return T.h})),r.d(n,"hexDataLength",(function(){return T.d})),r.d(n,"hexDataSlice",(function(){return T.e})),r.d(n,"nameprep",(function(){return Qe.a})),r.d(n,"_toEscapedUtf8String",(function(){return H.d})),r.d(n,"toUtf8Bytes",(function(){return H.f})),r.d(n,"toUtf8CodePoints",(function(){return H.g})),r.d(n,"toUtf8String",(function(){return H.h})),r.d(n,"Utf8ErrorFuncs",(function(){return H.b})),r.d(n,"formatBytes32String",(function(){return Ye})),r.d(n,"parseBytes32String",(function(){return $e})),r.d(n,"hashMessage",(function(){return Re.a})),r.d(n,"namehash",(function(){return Be.b})),r.d(n,"isValidName",(function(){return Be.a})),r.d(n,"id",(function(){return we.a})),r.d(n,"_TypedDataEncoder",(function(){return Ne.a})),r.d(n,"getAddress",(function(){return C.a})),r.d(n,"getIcapAddress",(function(){return C.d})),r.d(n,"getContractAddress",(function(){return C.b})),r.d(n,"getCreate2Address",(function(){return C.c})),r.d(n,"isAddress",(function(){return C.e})),r.d(n,"formatEther",(function(){return st})),r.d(n,"parseEther",(function(){return ut})),r.d(n,"formatUnits",(function(){return at})),r.d(n,"parseUnits",(function(){return ot})),r.d(n,"commify",(function(){return it})),r.d(n,"computeHmac",(function(){return Ie.a})),r.d(n,"keccak256",(function(){return Ae.a})),r.d(n,"ripemd160",(function(){return Ie.b})),r.d(n,"sha256",(function(){return Ie.c})),r.d(n,"sha512",(function(){return Ie.d})),r.d(n,"randomBytes",(function(){return ze.a})),r.d(n,"shuffled",(function(){return Ze.a})),r.d(n,"solidityPack",(function(){return He})),r.d(n,"solidityKeccak256",(function(){return Ue})),r.d(n,"soliditySha256",(function(){return Ve})),r.d(n,"splitSignature",(function(){return T.n})),r.d(n,"joinSignature",(function(){return T.m})),r.d(n,"accessListify",(function(){return et.b})),r.d(n,"parseTransaction",(function(){return et.d})),r.d(n,"serializeTransaction",(function(){return et.f})),r.d(n,"TransactionTypes",(function(){return et.a})),r.d(n,"getJsonWalletAddress",(function(){return je.a})),r.d(n,"computeAddress",(function(){return et.c})),r.d(n,"recoverAddress",(function(){return et.e})),r.d(n,"computePublicKey",(function(){return qe.b})),r.d(n,"recoverPublicKey",(function(){return qe.c})),r.d(n,"verifyMessage",(function(){return f.b})),r.d(n,"verifyTypedData",(function(){return f.c})),r.d(n,"getAccountPath",(function(){return xe.d})),r.d(n,"mnemonicToEntropy",(function(){return xe.f})),r.d(n,"entropyToMnemonic",(function(){return xe.c})),r.d(n,"isValidMnemonic",(function(){return xe.e})),r.d(n,"mnemonicToSeed",(function(){return xe.g})),r.d(n,"SupportedAlgorithm",(function(){return lt.a})),r.d(n,"UnicodeNormalizationForm",(function(){return H.a})),r.d(n,"Utf8ErrorReason",(function(){return H.c})),r.d(n,"Indexed",(function(){return Me}));var o=r(46),c=r(12),l=r(159),d=r(27),f=r(52),h=r(39),m=r(62),y=r(211),v=r(7),T=r(0),w=r(1),A=r(2);const E="abi/5.4.1",S=new A.b(E);function O(e){const t=[],r=function(path,object){if(Array.isArray(object))for(let e in object){const n=path.slice();n.push(e);try{r(n,object[e])}catch(e){t.push({path:n,error:e})}}};return r([],e),t}class _{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){S.throwArgumentError(e,this.localName,t)}}class M{constructor(e){Object(w.d)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Object(T.c)(this._data)}get length(){return this._dataLength}_writeData(data){return this._data.push(data),this._dataLength+=data.length,data.length}appendWriter(e){return this._writeData(Object(T.b)(e._data))}writeBytes(e){let t=Object(T.a)(e);const r=t.length%this.wordSize;return r&&(t=Object(T.b)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=Object(T.a)(c.a.from(e));return t.length>this.wordSize&&S.throwError("value out-of-bounds",A.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(T.b)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class k{constructor(data,e,t,r){Object(w.d)(this,"_data",Object(T.a)(data)),Object(w.d)(this,"wordSize",e||32),Object(w.d)(this,"_coerceFunc",t),Object(w.d)(this,"allowLoose",r),this._offset=0}get data(){return Object(T.i)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):k.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:S.throwError("data out-of-bounds",A.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new k(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return c.a.from(this.readBytes(this.wordSize))}}var C=r(3);class P extends _{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Object(C.a)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return Object(C.a)(Object(T.h)(e.readValue().toHexString(),20))}}class F extends _{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const L=new A.b(E);function R(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||L.throwError("cannot encode object for signature with missing names",A.b.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&L.throwError("cannot encode object for signature with duplicate names",A.b.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else L.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&L.throwArgumentError("types/value length mismatch","tuple",r);let o=new M(e.wordSize),c=new M(e.wordSize),l=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=c.length;e.encode(c,r);let n=o.writeUpdatableValue();l.push((e=>{n(e+t)}))}else e.encode(o,r)})),l.forEach((e=>{e(o.length)}));let d=e.appendWriter(o);return d+=e.appendWriter(c),d}function B(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let o=null;if(t.dynamic){let r=e.readValue(),c=n.subReader(r.toNumber());try{o=t.decode(c)}catch(e){if(e.code===A.b.errors.BUFFER_OVERRUN)throw e;o=e,o.baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(e){if(e.code===A.b.errors.BUFFER_OVERRUN)throw e;o=e,o.baseType=t.name,o.name=t.localName,o.type=t.type}null!=o&&r.push(o)}));const o=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==o[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const c=r[t];c instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw c}}):r[n]=c}));for(let i=0;i<r.length;i++){const e=r[i];e instanceof Error&&Object.defineProperty(r,i,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class N extends _{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let i=0;i<this.length;i++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),L.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let i=0;i<t.length;i++)n.push(this.coder);return R(e,n,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber(),32*t>e._data.length&&L.throwError("insufficient data length",A.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let i=0;i<t;i++)r.push(new F(this.coder));return e.coerce(this.name,B(e,r))}}class x extends _{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class j extends _{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=Object(T.a)(t);let r=e.writeValue(t.length);return r+=e.writeBytes(t),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class I extends j{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Object(T.i)(super.decode(e)))}}class J extends _{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let data=Object(T.a)(t);return data.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(data)}decode(e){return e.coerce(this.name,Object(T.i)(e.readBytes(this.size)))}}class D extends _{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var X=r(37);class G extends _{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=c.a.from(t),n=X.b.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(X.e).mul(X.d)))&&this._throwError("value out-of-bounds",t)}else(r.lt(X.h)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var H=r(22);class U extends j{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Object(H.f)(t))}decode(e){return Object(H.h)(super.decode(e))}}class V extends _{constructor(e,t){let r=!1;const n=[];e.forEach((e=>{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let o=r.localName;o&&1===t[o]&&("length"===o&&(o="_length"),null==e[o]&&(e[o]=e[n]))})),Object.freeze(e)}encode(e,t){return R(e,this.coders,t)}decode(e){return e.coerce(this.name,B(e,this.coders))}}const z=new A.b(E),Z={};let K={calldata:!0,memory:!0,storage:!0},Q={calldata:!0,memory:!0};function W(e,t){if("bytes"===e||"string"===e){if(K[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&Q[t])return!0;return(K[t]||"payable"===t)&&z.throwArgumentError("invalid modifier","name",t),!1}function Y(object,e){for(let t in e)Object(w.d)(object,t,e[t])}const $=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),ee=new RegExp(/^(.*)\[([0-9]*)\]$/);class te{constructor(e,t){e!==Z&&z.throwError("use fromString",A.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Y(this,t);let r=this.type.match(ee);Y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:te.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=$.sighash),$[e]||z.throwArgumentError("invalid format type","format",e),e===$.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==$.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===$.full?", ":",")+")"):t+=this.type,e!==$.sighash&&(!0===this.indexed&&(t+=" indexed"),e===$.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?te.fromString(e,t):te.fromObject(e)}static fromObject(e){return te.isParamType(e)?e:new te(Z,{name:e.name||null,type:fe(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(te.fromObject):null})}static fromString(e,t){return r=function(param,e){let t=param;function r(i){z.throwArgumentError(`unexpected character at position ${i}`,"param",param)}function n(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}param=param.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},c=o;for(let i=0;i<param.length;i++){let t=param[i];switch(t){case"(":c.state.allowType&&""===c.type?c.type="tuple":c.state.allowParams||r(i),c.state.allowType=!1,c.type=fe(c.type),c.components=[n(c)],c=c.components[0];break;case")":delete c.state,"indexed"===c.name&&(e||r(i),c.indexed=!0,c.name=""),W(c.type,c.name)&&(c.name=""),c.type=fe(c.type);let o=c;c=c.parent,c||r(i),delete o.parent,c.state.allowParams=!1,c.state.allowName=!0,c.state.allowArray=!0;break;case",":delete c.state,"indexed"===c.name&&(e||r(i),c.indexed=!0,c.name=""),W(c.type,c.name)&&(c.name=""),c.type=fe(c.type);let l=n(c.parent);c.parent.components.push(l),delete c.parent,c=l;break;case" ":c.state.allowType&&""!==c.type&&(c.type=fe(c.type),delete c.state.allowType,c.state.allowName=!0,c.state.allowParams=!0),c.state.allowName&&""!==c.name&&("indexed"===c.name?(e||r(i),c.indexed&&r(i),c.indexed=!0,c.name=""):W(c.type,c.name)?c.name="":c.state.allowName=!1);break;case"[":c.state.allowArray||r(i),c.type+=t,c.state.allowArray=!1,c.state.allowName=!1,c.state.readArray=!0;break;case"]":c.state.readArray||r(i),c.type+=t,c.state.readArray=!1,c.state.allowArray=!0,c.state.allowName=!0;break;default:c.state.allowType?(c.type+=t,c.state.allowParams=!0,c.state.allowArray=!0):c.state.allowName?(c.name+=t,delete c.state.allowArray):c.state.readArray?c.type+=t:r(i)}}return c.parent&&z.throwArgumentError("unexpected eof","param",param),delete o.state,"indexed"===c.name?(e||r(t.length-7),c.indexed&&r(t.length-7),c.indexed=!0,c.name=""):W(c.type,c.name)&&(c.name=""),o.type=fe(o.type),o}(e,!!t),te.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(e){return!(null==e||!e._isParamType)}}function re(e,t){return function(e){e=e.trim();let t=[],r="",n=0;for(let o=0;o<e.length;o++){let c=e[o];","===c&&0===n?(t.push(r),r=""):(r+=c,"("===c?n++:")"===c&&(n--,-1===n&&z.throwArgumentError("unbalanced parenthesis","value",e)))}r&&t.push(r);return t}(e).map((param=>te.fromString(param,t)))}class ne{constructor(e,t){e!==Z&&z.throwError("use a static from method",A.b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Y(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return ne.isFragment(e)?e:"string"==typeof e?ne.fromString(e):ne.fromObject(e)}static fromObject(e){if(ne.isFragment(e))return e;switch(e.type){case"function":return ce.fromObject(e);case"event":return ie.fromObject(e);case"constructor":return ue.fromObject(e);case"error":return de.fromObject(e);case"fallback":case"receive":return null}return z.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?ie.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?ce.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?ue.fromString(e.trim()):"error"===e.split(" ")[0]?de.fromString(e.substring(5).trim()):z.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class ie extends ne{format(e){if(e||(e=$.sighash),$[e]||z.throwArgumentError("invalid format type","format",e),e===$.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});let t="";return e!==$.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===$.full?", ":",")+") ",e!==$.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?ie.fromString(e):ie.fromObject(e)}static fromObject(e){if(ie.isEventFragment(e))return e;"event"!==e.type&&z.throwArgumentError("invalid event object","value",e);const t={name:pe(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(te.fromObject):[],type:"event"};return new ie(Z,t)}static fromString(e){let t=e.match(me);t||z.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:z.warn("unknown modifier: "+e)}})),ie.fromObject({name:t[1].trim(),anonymous:r,inputs:re(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function ae(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&z.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||z.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=c.a.from(r[1]),r[0]):e}function oe(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function se(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&z.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&z.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||z.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&z.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&z.throwArgumentError("unable to determine stateMutability","value",e),t}class ue extends ne{format(e){if(e||(e=$.sighash),$[e]||z.throwArgumentError("invalid format type","format",e),e===$.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});e===$.sighash&&z.throwError("cannot format a constructor for sighash",A.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((input=>input.format(e))).join(e===$.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?ue.fromString(e):ue.fromObject(e)}static fromObject(e){if(ue.isConstructorFragment(e))return e;"constructor"!==e.type&&z.throwArgumentError("invalid constructor object","value",e);let t=se(e);t.constant&&z.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(te.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?c.a.from(e.gas):null};return new ue(Z,r)}static fromString(e){let t={type:"constructor"},r=(e=ae(e,t)).match(me);return r&&"constructor"===r[1].trim()||z.throwArgumentError("invalid constructor string","value",e),t.inputs=re(r[2].trim(),!1),oe(r[3].trim(),t),ue.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class ce extends ue{format(e){if(e||(e=$.sighash),$[e]||z.throwArgumentError("invalid format type","format",e),e===$.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((input=>JSON.parse(input.format(e)))),outputs:this.outputs.map((output=>JSON.parse(output.format(e))))});let t="";return e!==$.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===$.full?", ":",")+") ",e!==$.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((output=>output.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?ce.fromString(e):ce.fromObject(e)}static fromObject(e){if(ce.isFunctionFragment(e))return e;"function"!==e.type&&z.throwArgumentError("invalid function object","value",e);let t=se(e);const r={type:e.type,name:pe(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(te.fromObject):[],outputs:e.outputs?e.outputs.map(te.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?c.a.from(e.gas):null};return new ce(Z,r)}static fromString(e){let t={type:"function"},r=(e=ae(e,t)).split(" returns ");r.length>2&&z.throwArgumentError("invalid function string","value",e);let n=r[0].match(me);if(n||z.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&pe(t.name),t.inputs=re(n[2],!1),oe(n[3].trim(),t),r.length>1){let n=r[1].match(me);""==n[1].trim()&&""==n[3].trim()||z.throwArgumentError("unexpected tokens","value",e),t.outputs=re(n[2],!1)}else t.outputs=[];return ce.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function le(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||z.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class de extends ne{format(e){if(e||(e=$.sighash),$[e]||z.throwArgumentError("invalid format type","format",e),e===$.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});let t="";return e!==$.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===$.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?de.fromString(e):de.fromObject(e)}static fromObject(e){if(de.isErrorFragment(e))return e;"error"!==e.type&&z.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:pe(e.name),inputs:e.inputs?e.inputs.map(te.fromObject):[]};return le(new de(Z,t))}static fromString(e){let t={type:"error"},r=e.match(me);return r||z.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&pe(t.name),t.inputs=re(r[2],!1),le(de.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function fe(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const he=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function pe(e){return e&&e.match(he)||z.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const me=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const ye=new A.b(E),ge=new RegExp(/^bytes([0-9]*)$/),be=new RegExp(/^(u?int)([0-9]*)$/);class ve{constructor(e){ye.checkNew(new.target,ve),Object(w.d)(this,"coerceFunc",e||null)}_getCoder(param){switch(param.baseType){case"address":return new P(param.name);case"bool":return new x(param.name);case"string":return new U(param.name);case"bytes":return new I(param.name);case"array":return new N(this._getCoder(param.arrayChildren),param.arrayLength,param.name);case"tuple":return new V((param.components||[]).map((component=>this._getCoder(component))),param.name);case"":return new D(param.name)}let e=param.type.match(be);if(e){let t=parseInt(e[2]||"256");return(0===t||t>256||t%8!=0)&&ye.throwArgumentError("invalid "+e[1]+" bit length","param",param),new G(t/8,"int"===e[1],param.name)}if(e=param.type.match(ge),e){let t=parseInt(e[1]);return(0===t||t>32)&&ye.throwArgumentError("invalid bytes length","param",param),new J(t,param.name)}return ye.throwArgumentError("invalid type","type",param.type)}_getWordSize(){return 32}_getReader(data,e){return new k(data,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new M(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(te.from(e))));return new V(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&ye.throwError("types/values length mismatch",A.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(te.from(e)))),n=new V(r,"_"),o=this._getWriter();return n.encode(o,t),o.data}decode(e,data,t){const r=e.map((e=>this._getCoder(te.from(e))));return new V(r,"_").decode(this._getReader(Object(T.a)(data),t))}}const Te=new ve;var we=r(103),Ae=r(5);const Ee=new A.b(E);class Se extends w.a{}class Oe extends w.a{}class _e extends w.a{}class Me extends w.a{static isIndexed(e){return!(!e||!e._isIndexed)}}const ke={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Ce(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class Pe{constructor(e){Ee.checkNew(new.target,Pe);let t=[];t="string"==typeof e?JSON.parse(e):e,Object(w.d)(this,"fragments",t.map((e=>ne.from(e))).filter((e=>null!=e))),Object(w.d)(this,"_abiCoder",Object(w.e)(new.target,"getAbiCoder")()),Object(w.d)(this,"functions",{}),Object(w.d)(this,"errors",{}),Object(w.d)(this,"events",{}),Object(w.d)(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void Ee.warn("duplicate definition - constructor"):void Object(w.d)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?Ee.warn("duplicate definition - "+r):t[r]=e})),this.deploy||Object(w.d)(this,"deploy",ue.from({payable:!1,type:"constructor"})),Object(w.d)(this,"_isInterface",!0)}format(e){e||(e=$.full),e===$.sighash&&Ee.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===$.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return Te}static getAddress(address){return Object(C.a)(address)}static getSighash(e){return Object(T.e)(Object(we.a)(e.format()),0,4)}static getEventTopic(e){return Object(we.a)(e.format())}getFunction(e){if(Object(T.l)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];Ee.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?Ee.throwArgumentError("no matching function","name",t):r.length>1&&Ee.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[ce.fromString(e).format()];return t||Ee.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Object(T.l)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];Ee.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?Ee.throwArgumentError("no matching event","name",t):r.length>1&&Ee.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[ie.fromString(e).format()];return t||Ee.throwArgumentError("no matching event","signature",e),t}getError(e){if(Object(T.l)(e)){const t=Object(w.e)(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}Ee.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?Ee.throwArgumentError("no matching error","name",t):r.length>1&&Ee.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[ce.fromString(e).format()];return t||Ee.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return Object(w.e)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(w.e)(this.constructor,"getEventTopic")(e)}_decodeParams(e,data){return this._abiCoder.decode(e,data)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,data){"string"==typeof e&&(e=this.getError(e));const t=Object(T.a)(data);return Object(T.i)(t.slice(0,4))!==this.getSighash(e)&&Ee.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Object(T.i)(t)),this._decodeParams(e.inputs,t.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(T.i)(Object(T.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,data){"string"==typeof e&&(e=this.getFunction(e));const t=Object(T.a)(data);return Object(T.i)(t.slice(0,4))!==this.getSighash(e)&&Ee.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Object(T.i)(t)),this._decodeParams(e.inputs,t.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(T.i)(Object(T.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,data){"string"==typeof e&&(e=this.getFunction(e));let t=Object(T.a)(data),r=null,n=null,o=null,c=null;switch(t.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,t)}catch(e){}break;case 4:{const e=Object(T.i)(t.slice(0,4)),l=ke[e];if(l)n=this._abiCoder.decode(l.inputs,t.slice(4)),o=l.name,c=l.signature,l.reason&&(r=n[0]);else try{const r=this.getError(e);n=this._abiCoder.decode(r.inputs,t.slice(4)),o=r.name,c=r.format()}catch(e){console.log(e)}break}}return Ee.throwError("call revert exception",A.b.errors.CALL_EXCEPTION,{method:e.format(),errorArgs:n,errorName:o,errorSignature:c,reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(T.i)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Ee.throwError("too many arguments for "+e.format(),A.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(param,e)=>"string"===param.type?Object(we.a)(e):"bytes"===param.type?Object(Ae.a)(Object(T.i)(e)):("address"===param.type&&this._abiCoder.encode(["address"],[e]),Object(T.h)(Object(T.i)(e),32));for(t.forEach(((t,o)=>{let param=e.inputs[o];param.indexed?null==t?r.push(null):"array"===param.baseType||"tuple"===param.baseType?Ee.throwArgumentError("filtering with tuples or arrays not supported","contract."+param.name,t):Array.isArray(t)?r.push(t.map((e=>n(param,e)))):r.push(n(param,t)):null!=t&&Ee.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+param.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],o=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Ee.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((param,e)=>{const c=t[e];if(param.indexed)if("string"===param.type)r.push(Object(we.a)(c));else if("bytes"===param.type)r.push(Object(Ae.a)(c));else{if("tuple"===param.baseType||"array"===param.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([param.type],[c]))}else n.push(param),o.push(c)})),{data:this._abiCoder.encode(n,o),topics:r}}decodeEventLog(e,data,t){if("string"==typeof e&&(e=this.getEvent(e)),null!=t&&!e.anonymous){let r=this.getEventTopic(e);Object(T.l)(t[0],32)&&t[0].toLowerCase()===r||Ee.throwError("fragment/topic mismatch",A.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:t[0]}),t=t.slice(1)}let r=[],n=[],o=[];e.inputs.forEach(((param,e)=>{param.indexed?"string"===param.type||"bytes"===param.type||"tuple"===param.baseType||"array"===param.baseType?(r.push(te.fromObject({type:"bytes32",name:param.name})),o.push(!0)):(r.push(param),o.push(!1)):(n.push(param),o.push(!1))}));let c=null!=t?this._abiCoder.decode(r,Object(T.b)(t)):null,l=this._abiCoder.decode(n,data,!0),d=[],f=0,h=0;e.inputs.forEach(((param,e)=>{if(param.indexed)if(null==c)d[e]=new Me({_isIndexed:!0,hash:null});else if(o[e])d[e]=new Me({_isIndexed:!0,hash:c[h++]});else try{d[e]=c[h++]}catch(t){d[e]=t}else try{d[e]=l[f++]}catch(t){d[e]=t}if(param.name&&null==d[param.name]){const t=d[e];t instanceof Error?Object.defineProperty(d,param.name,{enumerable:!0,get:()=>{throw Ce(`property ${JSON.stringify(param.name)}`,t)}}):d[param.name]=t}}));for(let i=0;i<d.length;i++){const e=d[i];e instanceof Error&&Object.defineProperty(d,i,{enumerable:!0,get:()=>{throw Ce(`index ${i}`,e)}})}return Object.freeze(d)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new Oe({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:c.a.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new Se({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(data){const e=Object(T.i)(data);let t=this.getError(e.substring(0,10).toLowerCase());return t?new _e({args:this._abiCoder.decode(t.inputs,"0x"+e.substring(10)),errorFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var Fe=r(84),Le=r(41),Re=r(217),Be=r(219),Ne=r(218),xe=r(14),je=r(42),Ie=r(145);const Je=new RegExp("^bytes([0-9]+)$"),De=new RegExp("^(u?int)([0-9]*)$"),Xe=new RegExp("^(.*)\\[([0-9]*)\\]$");function Ge(e,t,r){switch(e){case"address":return r?Object(T.p)(t,32):Object(T.a)(t);case"string":return Object(H.f)(t);case"bytes":return Object(T.a)(t);case"bool":return t=t?"0x01":"0x00",r?Object(T.p)(t,32):Object(T.a)(t)}let n=e.match(De);if(n){let o=parseInt(n[2]||"256");if(n[2]&&String(o)!==n[2]||o%8!=0||0===o||o>256)throw new Error("invalid number type - "+e);return r&&(o=256),t=c.a.from(t).toTwos(o),Object(T.p)(t,o/8)}if(n=e.match(Je),n){const o=parseInt(n[1]);if(String(o)!==n[1]||0===o||o>32)throw new Error("invalid bytes type - "+e);if(Object(T.a)(t).byteLength!==o)throw new Error("invalid value for "+e);return r?Object(T.a)((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if(n=e.match(Xe),n&&Array.isArray(t)){const r=n[1];if(parseInt(n[2]||String(t.length))!=t.length)throw new Error("invalid value for "+e);const o=[];return t.forEach((function(e){o.push(Ge(r,e,!0))})),Object(T.b)(o)}throw new Error("invalid type - "+e)}function He(e,t){if(e.length!=t.length)throw new Error("type/value count mismatch");const r=[];return e.forEach((function(e,n){r.push(Ge(e,t[n]))})),Object(T.i)(Object(T.b)(r))}function Ue(e,t){return Object(Ae.a)(He(e,t))}function Ve(e,t){return Object(Ie.c)(He(e,t))}var ze=r(81),Ze=r(220),Ke=r(28),qe=r(25),Qe=r(144),We=r(111);function Ye(text){const e=Object(H.f)(text);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(T.i)(Object(T.b)([e,We.a]).slice(0,32))}function $e(e){const data=Object(T.a)(e);if(32!==data.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==data[31])throw new Error("invalid bytes32 string - no null terminator");let t=31;for(;0===data[t-1];)t--;return Object(H.h)(data.slice(0,t))}var et=r(11);const tt=new A.b("units/5.4.0"),nt=["wei","kwei","mwei","gwei","szabo","finney","ether"];function it(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&tt.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let o="";for(2===t.length&&(o="."+(t[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);const c=[];for(;r.length;){if(r.length<=3){c.unshift(r);break}{const e=r.length-3;c.unshift(r.substring(e)),r=r.substring(0,e)}}return n+c.join(",")+o}function at(e,t){if("string"==typeof t){const e=nt.indexOf(t);-1!==e&&(t=3*e)}return Object(l.b)(e,null!=t?t:18)}function ot(e,t){if("string"!=typeof e&&tt.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=nt.indexOf(t);-1!==e&&(t=3*e)}return Object(l.c)(e,null!=t?t:18)}function st(e){return at(e,18)}function ut(e){return ot(e,18)}var ct=r(15),lt=r(141),ft=r(75);const ht=new A.b(ft.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),o=r(1);class c{constructor(e){Object(o.d)(this,"alphabet",e),Object(o.d)(this,"base",e.length),Object(o.d)(this,"_alphabetMap",{}),Object(o.d)(this,"_leader",e.charAt(0));for(let i=0;i<e.length;i++)this._alphabetMap[e.charAt(i)]=i}encode(e){let source=Object(n.a)(e);if(0===source.length)return"";let t=[0];for(let i=0;i<source.length;++i){let e=source[i];for(let r=0;r<t.length;++r)e+=t[r]<<8,t[r]=e%this.base,e=e/this.base|0;for(;e>0;)t.push(e%this.base),e=e/this.base|0}let r="";for(let e=0;0===source[e]&&e<source.length-1;++e)r+=this._leader;for(let q=t.length-1;q>=0;--q)r+=this.alphabet[t[q]];return r}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let i=0;i<e.length;i++){let r=this._alphabetMap[e[i]];if(void 0===r)throw new Error("Non-base"+this.base+" character");let n=r;for(let e=0;e<t.length;++e)n+=t[e]*this.base,t[e]=255&n,n>>=8;for(;n>0;)t.push(255&n),n>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return Object(n.a)(new Uint8Array(t.reverse()))}}new c("abcdefghijklmnopqrstuvwxyz234567");const l=new c("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return l}));var n=r(3);function o(e){let data=null;try{data=JSON.parse(e)}catch(e){return!1}return data.encseed&&data.ethaddr}function c(e){let data=null;try{data=JSON.parse(e)}catch(e){return!1}return!(!data.version||parseInt(data.version)!==data.version||3!==parseInt(data.version))}function l(e){if(o(e))try{return Object(n.a)(JSON.parse(e).ethaddr)}catch(e){return null}if(c(e))try{return Object(n.a)(JSON.parse(e).address)}catch(e){return null}return null}},function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},function(e,t,r){var n=r(58);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(23),o=r(18),c=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?c(n[e]):n[e]&&n[e][t]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return je})),r.d(t,"b",(function(){return Ie})),r.d(t,"c",(function(){return Je}));var n=r(0),o=r(12),c=r(1),l=r(2);const d="abi/5.4.1",f=new l.b(d);class h{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){f.throwArgumentError(e,this.localName,t)}}class m{constructor(e){Object(c.d)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Object(n.c)(this._data)}get length(){return this._dataLength}_writeData(data){return this._data.push(data),this._dataLength+=data.length,data.length}appendWriter(e){return this._writeData(Object(n.b)(e._data))}writeBytes(e){let t=Object(n.a)(e);const r=t.length%this.wordSize;return r&&(t=Object(n.b)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=Object(n.a)(o.a.from(e));return t.length>this.wordSize&&f.throwError("value out-of-bounds",l.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(n.b)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class y{constructor(data,e,t,r){Object(c.d)(this,"_data",Object(n.a)(data)),Object(c.d)(this,"wordSize",e||32),Object(c.d)(this,"_coerceFunc",t),Object(c.d)(this,"allowLoose",r),this._offset=0}get data(){return Object(n.i)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):y.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:f.throwError("data out-of-bounds",l.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new y(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return o.a.from(this.readBytes(this.wordSize))}}var v=r(3),T=r(103),w=r(5);class A extends h{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Object(v.a)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return Object(v.a)(Object(n.h)(e.readValue().toHexString(),20))}}class E extends h{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const S=new l.b(d);function O(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||S.throwError("cannot encode object for signature with missing names",l.b.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&S.throwError("cannot encode object for signature with duplicate names",l.b.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else S.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&S.throwArgumentError("types/value length mismatch","tuple",r);let o=new m(e.wordSize),c=new m(e.wordSize),d=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=c.length;e.encode(c,r);let n=o.writeUpdatableValue();d.push((e=>{n(e+t)}))}else e.encode(o,r)})),d.forEach((e=>{e(o.length)}));let f=e.appendWriter(o);return f+=e.appendWriter(c),f}function _(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let o=null;if(t.dynamic){let r=e.readValue(),c=n.subReader(r.toNumber());try{o=t.decode(c)}catch(e){if(e.code===l.b.errors.BUFFER_OVERRUN)throw e;o=e,o.baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(e){if(e.code===l.b.errors.BUFFER_OVERRUN)throw e;o=e,o.baseType=t.name,o.name=t.localName,o.type=t.type}null!=o&&r.push(o)}));const o=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==o[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const c=r[t];c instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw c}}):r[n]=c}));for(let i=0;i<r.length;i++){const e=r[i];e instanceof Error&&Object.defineProperty(r,i,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class M extends h{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let i=0;i<this.length;i++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),S.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let i=0;i<t.length;i++)n.push(this.coder);return O(e,n,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber(),32*t>e._data.length&&S.throwError("insufficient data length",l.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let i=0;i<t;i++)r.push(new E(this.coder));return e.coerce(this.name,_(e,r))}}class k extends h{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class C extends h{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=Object(n.a)(t);let r=e.writeValue(t.length);return r+=e.writeBytes(t),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class P extends C{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Object(n.i)(super.decode(e)))}}class F extends h{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let data=Object(n.a)(t);return data.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(data)}decode(e){return e.coerce(this.name,Object(n.i)(e.readBytes(this.size)))}}class L extends h{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var R=r(37);class B extends h{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=o.a.from(t),n=R.b.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(R.e).mul(R.d)))&&this._throwError("value out-of-bounds",t)}else(r.lt(R.h)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var N=r(22);class x extends C{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Object(N.f)(t))}decode(e){return Object(N.h)(super.decode(e))}}class j extends h{constructor(e,t){let r=!1;const n=[];e.forEach((e=>{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let o=r.localName;o&&1===t[o]&&("length"===o&&(o="_length"),null==e[o]&&(e[o]=e[n]))})),Object.freeze(e)}encode(e,t){return O(e,this.coders,t)}decode(e){return e.coerce(this.name,_(e,this.coders))}}const I=new l.b(d),J={};let D={calldata:!0,memory:!0,storage:!0},X={calldata:!0,memory:!0};function G(e,t){if("bytes"===e||"string"===e){if(D[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&X[t])return!0;return(D[t]||"payable"===t)&&I.throwArgumentError("invalid modifier","name",t),!1}function H(object,e){for(let t in e)Object(c.d)(object,t,e[t])}const U=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),V=new RegExp(/^(.*)\[([0-9]*)\]$/);class z{constructor(e,t){e!==J&&I.throwError("use fromString",l.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),H(this,t);let r=this.type.match(V);H(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:z.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=U.sighash),U[e]||I.throwArgumentError("invalid format type","format",e),e===U.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==U.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===U.full?", ":",")+")"):t+=this.type,e!==U.sighash&&(!0===this.indexed&&(t+=" indexed"),e===U.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?z.fromString(e,t):z.fromObject(e)}static fromObject(e){return z.isParamType(e)?e:new z(J,{name:e.name||null,type:ie(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(z.fromObject):null})}static fromString(e,t){return r=function(param,e){let t=param;function r(i){I.throwArgumentError(`unexpected character at position ${i}`,"param",param)}function n(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}param=param.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},c=o;for(let i=0;i<param.length;i++){let t=param[i];switch(t){case"(":c.state.allowType&&""===c.type?c.type="tuple":c.state.allowParams||r(i),c.state.allowType=!1,c.type=ie(c.type),c.components=[n(c)],c=c.components[0];break;case")":delete c.state,"indexed"===c.name&&(e||r(i),c.indexed=!0,c.name=""),G(c.type,c.name)&&(c.name=""),c.type=ie(c.type);let o=c;c=c.parent,c||r(i),delete o.parent,c.state.allowParams=!1,c.state.allowName=!0,c.state.allowArray=!0;break;case",":delete c.state,"indexed"===c.name&&(e||r(i),c.indexed=!0,c.name=""),G(c.type,c.name)&&(c.name=""),c.type=ie(c.type);let l=n(c.parent);c.parent.components.push(l),delete c.parent,c=l;break;case" ":c.state.allowType&&""!==c.type&&(c.type=ie(c.type),delete c.state.allowType,c.state.allowName=!0,c.state.allowParams=!0),c.state.allowName&&""!==c.name&&("indexed"===c.name?(e||r(i),c.indexed&&r(i),c.indexed=!0,c.name=""):G(c.type,c.name)?c.name="":c.state.allowName=!1);break;case"[":c.state.allowArray||r(i),c.type+=t,c.state.allowArray=!1,c.state.allowName=!1,c.state.readArray=!0;break;case"]":c.state.readArray||r(i),c.type+=t,c.state.readArray=!1,c.state.allowArray=!0,c.state.allowName=!0;break;default:c.state.allowType?(c.type+=t,c.state.allowParams=!0,c.state.allowArray=!0):c.state.allowName?(c.name+=t,delete c.state.allowArray):c.state.readArray?c.type+=t:r(i)}}return c.parent&&I.throwArgumentError("unexpected eof","param",param),delete o.state,"indexed"===c.name?(e||r(t.length-7),c.indexed&&r(t.length-7),c.indexed=!0,c.name=""):G(c.type,c.name)&&(c.name=""),o.type=ie(o.type),o}(e,!!t),z.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(e){return!(null==e||!e._isParamType)}}function Z(e,t){return function(e){e=e.trim();let t=[],r="",n=0;for(let o=0;o<e.length;o++){let c=e[o];","===c&&0===n?(t.push(r),r=""):(r+=c,"("===c?n++:")"===c&&(n--,-1===n&&I.throwArgumentError("unbalanced parenthesis","value",e)))}r&&t.push(r);return t}(e).map((param=>z.fromString(param,t)))}class K{constructor(e,t){e!==J&&I.throwError("use a static from method",l.b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),H(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return K.isFragment(e)?e:"string"==typeof e?K.fromString(e):K.fromObject(e)}static fromObject(e){if(K.isFragment(e))return e;switch(e.type){case"function":return te.fromObject(e);case"event":return Q.fromObject(e);case"constructor":return ee.fromObject(e);case"error":return ne.fromObject(e);case"fallback":case"receive":return null}return I.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Q.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?te.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?ee.fromString(e.trim()):"error"===e.split(" ")[0]?ne.fromString(e.substring(5).trim()):I.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class Q extends K{format(e){if(e||(e=U.sighash),U[e]||I.throwArgumentError("invalid format type","format",e),e===U.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});let t="";return e!==U.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===U.full?", ":",")+") ",e!==U.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?Q.fromString(e):Q.fromObject(e)}static fromObject(e){if(Q.isEventFragment(e))return e;"event"!==e.type&&I.throwArgumentError("invalid event object","value",e);const t={name:oe(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(z.fromObject):[],type:"event"};return new Q(J,t)}static fromString(e){let t=e.match(se);t||I.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:I.warn("unknown modifier: "+e)}})),Q.fromObject({name:t[1].trim(),anonymous:r,inputs:Z(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function W(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&I.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||I.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=o.a.from(r[1]),r[0]):e}function Y(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function $(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&I.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&I.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||I.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&I.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&I.throwArgumentError("unable to determine stateMutability","value",e),t}class ee extends K{format(e){if(e||(e=U.sighash),U[e]||I.throwArgumentError("invalid format type","format",e),e===U.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});e===U.sighash&&I.throwError("cannot format a constructor for sighash",l.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((input=>input.format(e))).join(e===U.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?ee.fromString(e):ee.fromObject(e)}static fromObject(e){if(ee.isConstructorFragment(e))return e;"constructor"!==e.type&&I.throwArgumentError("invalid constructor object","value",e);let t=$(e);t.constant&&I.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(z.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?o.a.from(e.gas):null};return new ee(J,r)}static fromString(e){let t={type:"constructor"},r=(e=W(e,t)).match(se);return r&&"constructor"===r[1].trim()||I.throwArgumentError("invalid constructor string","value",e),t.inputs=Z(r[2].trim(),!1),Y(r[3].trim(),t),ee.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class te extends ee{format(e){if(e||(e=U.sighash),U[e]||I.throwArgumentError("invalid format type","format",e),e===U.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((input=>JSON.parse(input.format(e)))),outputs:this.outputs.map((output=>JSON.parse(output.format(e))))});let t="";return e!==U.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===U.full?", ":",")+") ",e!==U.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((output=>output.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?te.fromString(e):te.fromObject(e)}static fromObject(e){if(te.isFunctionFragment(e))return e;"function"!==e.type&&I.throwArgumentError("invalid function object","value",e);let t=$(e);const r={type:e.type,name:oe(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(z.fromObject):[],outputs:e.outputs?e.outputs.map(z.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?o.a.from(e.gas):null};return new te(J,r)}static fromString(e){let t={type:"function"},r=(e=W(e,t)).split(" returns ");r.length>2&&I.throwArgumentError("invalid function string","value",e);let n=r[0].match(se);if(n||I.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&oe(t.name),t.inputs=Z(n[2],!1),Y(n[3].trim(),t),r.length>1){let n=r[1].match(se);""==n[1].trim()&&""==n[3].trim()||I.throwArgumentError("unexpected tokens","value",e),t.outputs=Z(n[2],!1)}else t.outputs=[];return te.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function re(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||I.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class ne extends K{format(e){if(e||(e=U.sighash),U[e]||I.throwArgumentError("invalid format type","format",e),e===U.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});let t="";return e!==U.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===U.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?ne.fromString(e):ne.fromObject(e)}static fromObject(e){if(ne.isErrorFragment(e))return e;"error"!==e.type&&I.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:oe(e.name),inputs:e.inputs?e.inputs.map(z.fromObject):[]};return re(new ne(J,t))}static fromString(e){let t={type:"error"},r=e.match(se);return r||I.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&oe(t.name),t.inputs=Z(r[2],!1),re(ne.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function ie(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const ae=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function oe(e){return e&&e.match(ae)||I.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const se=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const ue=new l.b(d),ce=new RegExp(/^bytes([0-9]*)$/),le=new RegExp(/^(u?int)([0-9]*)$/);class de{constructor(e){ue.checkNew(new.target,de),Object(c.d)(this,"coerceFunc",e||null)}_getCoder(param){switch(param.baseType){case"address":return new A(param.name);case"bool":return new k(param.name);case"string":return new x(param.name);case"bytes":return new P(param.name);case"array":return new M(this._getCoder(param.arrayChildren),param.arrayLength,param.name);case"tuple":return new j((param.components||[]).map((component=>this._getCoder(component))),param.name);case"":return new L(param.name)}let e=param.type.match(le);if(e){let t=parseInt(e[2]||"256");return(0===t||t>256||t%8!=0)&&ue.throwArgumentError("invalid "+e[1]+" bit length","param",param),new B(t/8,"int"===e[1],param.name)}if(e=param.type.match(ce),e){let t=parseInt(e[1]);return(0===t||t>32)&&ue.throwArgumentError("invalid bytes length","param",param),new F(t,param.name)}return ue.throwArgumentError("invalid type","type",param.type)}_getWordSize(){return 32}_getReader(data,e){return new y(data,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new m(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(z.from(e))));return new j(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&ue.throwError("types/values length mismatch",l.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(z.from(e)))),n=new j(r,"_"),o=this._getWriter();return n.encode(o,t),o.data}decode(e,data,t){const r=e.map((e=>this._getCoder(z.from(e))));return new j(r,"_").decode(this._getReader(Object(n.a)(data),t))}}const fe=new de,he=new l.b(d);class pe extends c.a{}class me extends c.a{}class ye extends c.a{}class ge extends c.a{static isIndexed(e){return!(!e||!e._isIndexed)}}const be={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function ve(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class Te{constructor(e){he.checkNew(new.target,Te);let t=[];t="string"==typeof e?JSON.parse(e):e,Object(c.d)(this,"fragments",t.map((e=>K.from(e))).filter((e=>null!=e))),Object(c.d)(this,"_abiCoder",Object(c.e)(new.target,"getAbiCoder")()),Object(c.d)(this,"functions",{}),Object(c.d)(this,"errors",{}),Object(c.d)(this,"events",{}),Object(c.d)(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void he.warn("duplicate definition - constructor"):void Object(c.d)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?he.warn("duplicate definition - "+r):t[r]=e})),this.deploy||Object(c.d)(this,"deploy",ee.from({payable:!1,type:"constructor"})),Object(c.d)(this,"_isInterface",!0)}format(e){e||(e=U.full),e===U.sighash&&he.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===U.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return fe}static getAddress(address){return Object(v.a)(address)}static getSighash(e){return Object(n.e)(Object(T.a)(e.format()),0,4)}static getEventTopic(e){return Object(T.a)(e.format())}getFunction(e){if(Object(n.l)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];he.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?he.throwArgumentError("no matching function","name",t):r.length>1&&he.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[te.fromString(e).format()];return t||he.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Object(n.l)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];he.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?he.throwArgumentError("no matching event","name",t):r.length>1&&he.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[Q.fromString(e).format()];return t||he.throwArgumentError("no matching event","signature",e),t}getError(e){if(Object(n.l)(e)){const t=Object(c.e)(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}he.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?he.throwArgumentError("no matching error","name",t):r.length>1&&he.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[te.fromString(e).format()];return t||he.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return Object(c.e)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(c.e)(this.constructor,"getEventTopic")(e)}_decodeParams(e,data){return this._abiCoder.decode(e,data)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,data){"string"==typeof e&&(e=this.getError(e));const t=Object(n.a)(data);return Object(n.i)(t.slice(0,4))!==this.getSighash(e)&&he.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Object(n.i)(t)),this._decodeParams(e.inputs,t.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(n.i)(Object(n.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,data){"string"==typeof e&&(e=this.getFunction(e));const t=Object(n.a)(data);return Object(n.i)(t.slice(0,4))!==this.getSighash(e)&&he.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Object(n.i)(t)),this._decodeParams(e.inputs,t.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(n.i)(Object(n.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,data){"string"==typeof e&&(e=this.getFunction(e));let t=Object(n.a)(data),r=null,o=null,c=null,d=null;switch(t.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,t)}catch(e){}break;case 4:{const e=Object(n.i)(t.slice(0,4)),l=be[e];if(l)o=this._abiCoder.decode(l.inputs,t.slice(4)),c=l.name,d=l.signature,l.reason&&(r=o[0]);else try{const r=this.getError(e);o=this._abiCoder.decode(r.inputs,t.slice(4)),c=r.name,d=r.format()}catch(e){console.log(e)}break}}return he.throwError("call revert exception",l.b.errors.CALL_EXCEPTION,{method:e.format(),errorArgs:o,errorName:c,errorSignature:d,reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(n.i)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&he.throwError("too many arguments for "+e.format(),l.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const o=(param,e)=>"string"===param.type?Object(T.a)(e):"bytes"===param.type?Object(w.a)(Object(n.i)(e)):("address"===param.type&&this._abiCoder.encode(["address"],[e]),Object(n.h)(Object(n.i)(e),32));for(t.forEach(((t,n)=>{let param=e.inputs[n];param.indexed?null==t?r.push(null):"array"===param.baseType||"tuple"===param.baseType?he.throwArgumentError("filtering with tuples or arrays not supported","contract."+param.name,t):Array.isArray(t)?r.push(t.map((e=>o(param,e)))):r.push(o(param,t)):null!=t&&he.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+param.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],o=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&he.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((param,e)=>{const c=t[e];if(param.indexed)if("string"===param.type)r.push(Object(T.a)(c));else if("bytes"===param.type)r.push(Object(w.a)(c));else{if("tuple"===param.baseType||"array"===param.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([param.type],[c]))}else n.push(param),o.push(c)})),{data:this._abiCoder.encode(n,o),topics:r}}decodeEventLog(e,data,t){if("string"==typeof e&&(e=this.getEvent(e)),null!=t&&!e.anonymous){let r=this.getEventTopic(e);Object(n.l)(t[0],32)&&t[0].toLowerCase()===r||he.throwError("fragment/topic mismatch",l.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:t[0]}),t=t.slice(1)}let r=[],o=[],c=[];e.inputs.forEach(((param,e)=>{param.indexed?"string"===param.type||"bytes"===param.type||"tuple"===param.baseType||"array"===param.baseType?(r.push(z.fromObject({type:"bytes32",name:param.name})),c.push(!0)):(r.push(param),c.push(!1)):(o.push(param),c.push(!1))}));let d=null!=t?this._abiCoder.decode(r,Object(n.b)(t)):null,f=this._abiCoder.decode(o,data,!0),h=[],m=0,y=0;e.inputs.forEach(((param,e)=>{if(param.indexed)if(null==d)h[e]=new ge({_isIndexed:!0,hash:null});else if(c[e])h[e]=new ge({_isIndexed:!0,hash:d[y++]});else try{h[e]=d[y++]}catch(t){h[e]=t}else try{h[e]=f[m++]}catch(t){h[e]=t}if(param.name&&null==h[param.name]){const t=h[e];t instanceof Error?Object.defineProperty(h,param.name,{enumerable:!0,get:()=>{throw ve(`property ${JSON.stringify(param.name)}`,t)}}):h[param.name]=t}}));for(let i=0;i<h.length;i++){const e=h[i];e instanceof Error&&Object.defineProperty(h,i,{enumerable:!0,get:()=>{throw ve(`index ${i}`,e)}})}return Object.freeze(h)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new me({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:o.a.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new pe({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(data){const e=Object(n.i)(data);let t=this.getError(e.substring(0,10).toLowerCase());return t?new ye({args:this._abiCoder.decode(t.inputs,"0x"+e.substring(10)),errorFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var we=r(31),Ae=r(27),Ee=r(11);var Se=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const Oe=new l.b("contracts/5.4.1"),_e={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};function Me(e,t){return Se(this,void 0,void 0,(function*(){const r=yield t;try{return Object(v.a)(r)}catch(e){}e||Oe.throwError("a provider or signer is needed to resolve ENS names",l.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const address=yield e.resolveName(r);return null==address&&Oe.throwArgumentError("resolver or addr is not configured for ENS name","name",r),address}))}function ke(e,t,r){return Se(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>ke(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield Me(e,t):"tuple"===r.type?yield ke(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>ke(e,t,r.arrayChildren)))):Promise.reject(new Error("invalid value for array")):t}))}function Ce(e,t,r){return Se(this,void 0,void 0,(function*(){let d={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(d=Object(c.g)(r.pop())),Oe.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?d.from?d.from=Object(c.f)({override:Me(e.signer,d.from),signer:e.signer.getAddress()}).then((e=>Se(this,void 0,void 0,(function*(){return Object(v.a)(e.signer)!==e.override&&Oe.throwError("Contract with a Signer cannot override from",l.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):d.from=e.signer.getAddress():d.from&&(d.from=Me(e.provider,d.from));const f=yield Object(c.f)({args:ke(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:Object(c.f)(d)||{}}),data=e.interface.encodeFunctionData(t,f.args),h={data:data,to:f.address},m=f.overrides;if(null!=m.nonce&&(h.nonce=o.a.from(m.nonce).toNumber()),null!=m.gasLimit&&(h.gasLimit=o.a.from(m.gasLimit)),null!=m.gasPrice&&(h.gasPrice=o.a.from(m.gasPrice)),null!=m.maxFeePerGas&&(h.maxFeePerGas=o.a.from(m.maxFeePerGas)),null!=m.maxPriorityFeePerGas&&(h.maxPriorityFeePerGas=o.a.from(m.maxPriorityFeePerGas)),null!=m.from&&(h.from=m.from),null!=m.type&&(h.type=m.type),null!=m.accessList&&(h.accessList=Object(Ee.b)(m.accessList)),null==h.gasLimit&&null!=t.gas){let e=21e3;const r=Object(n.a)(data);for(let i=0;i<r.length;i++)e+=4,r[i]&&(e+=64);h.gasLimit=o.a.from(t.gas).add(e)}if(m.value){const e=o.a.from(m.value);e.isZero()||t.payable||Oe.throwError("non-payable method cannot override value",l.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:d.value}),h.value=e}delete d.nonce,delete d.gasLimit,delete d.gasPrice,delete d.from,delete d.value,delete d.type,delete d.accessList,delete d.maxFeePerGas,delete d.maxPriorityFeePerGas;const y=Object.keys(d).filter((e=>null!=d[e]));return y.length&&Oe.throwError(`cannot override ${y.map((e=>JSON.stringify(e))).join(",")}`,l.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:y}),h}))}function Pe(e,t,r){const n=e.signer||e.provider;return function(...o){return Se(this,void 0,void 0,(function*(){let d;if(o.length===t.inputs.length+1&&"object"==typeof o[o.length-1]){const e=Object(c.g)(o.pop());null!=e.blockTag&&(d=yield e.blockTag),delete e.blockTag,o.push(e)}null!=e.deployTransaction&&(yield e._deployed(d));const f=yield Ce(e,t,o),h=yield n.call(f,d);try{let n=e.interface.decodeFunctionResult(t,h);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===l.b.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=o,t.transaction=f),t}}))}}function Fe(e,t,r){return t.constant?Pe(e,t,r):function(e,t){return function(...r){return Se(this,void 0,void 0,(function*(){e.signer||Oe.throwError("sending a transaction requires a signer",l.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield Ce(e,t,r),o=yield e.signer.sendTransaction(n),d=o.wait.bind(o);return o.wait=t=>d(t).then((t=>(t.events=t.logs.map((r=>{let n=Object(c.c)(r),o=null;try{o=e.interface.parseLog(r)}catch(e){}return o&&(n.args=o.args,n.decode=(data,t)=>e.interface.decodeEventLog(o.eventFragment,data,t),n.event=o.name,n.eventSignature=o.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t))),o}))}}(e,t)}function Le(filter){return!filter.address||null!=filter.topics&&0!==filter.topics.length?(filter.address||"*")+"@"+(filter.topics?filter.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class Re{constructor(e,filter){Object(c.d)(this,"tag",e),Object(c.d)(this,"filter",filter),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((i=>i.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class Be extends Re{constructor(){super("error",null)}}class Ne extends Re{constructor(address,e,t,r){const filter={address:address};let n=e.getEventTopic(t);r?(n!==r[0]&&Oe.throwArgumentError("topic mismatch","topics",r),filter.topics=r.slice()):filter.topics=[n],super(Le(filter),filter),Object(c.d)(this,"address",address),Object(c.d)(this,"interface",e),Object(c.d)(this,"fragment",t)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(data,e)=>this.interface.decodeEventLog(this.fragment,data,e);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=function(e){const t=[],r=function(path,object){if(Array.isArray(object))for(let e in object){const n=path.slice();n.push(e);try{r(n,object[e])}catch(e){t.push({path:n,error:e})}}};return r([],e),t}(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class xe extends Re{constructor(address,e){super("*",{address:address}),Object(c.d)(this,"address",address),Object(c.d)(this,"interface",e)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(data,e)=>this.interface.decodeEventLog(t.eventFragment,data,e),e.args=t.args}catch(e){}}}class je{constructor(e,t,r){Oe.checkNew(new.target,Ie),Object(c.d)(this,"interface",Object(c.e)(new.target,"getInterface")(t)),null==r?(Object(c.d)(this,"provider",null),Object(c.d)(this,"signer",null)):Ae.a.isSigner(r)?(Object(c.d)(this,"provider",r.provider||null),Object(c.d)(this,"signer",r)):we.b.isProvider(r)?(Object(c.d)(this,"provider",r),Object(c.d)(this,"signer",null)):Oe.throwArgumentError("invalid signer or provider","signerOrProvider",r),Object(c.d)(this,"callStatic",{}),Object(c.d)(this,"estimateGas",{}),Object(c.d)(this,"functions",{}),Object(c.d)(this,"populateTransaction",{}),Object(c.d)(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];Object(c.d)(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)}))),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?Object(c.d)(this.filters,t,this.filters[r[0]]):Oe.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if(Object(c.d)(this,"_runningEvents",{}),Object(c.d)(this,"_wrappedEmits",{}),null==e&&Oe.throwArgumentError("invalid contract address or ENS name","addressOrName",e),Object(c.d)(this,"address",e),this.provider)Object(c.d)(this,"resolvedAddress",Me(this.provider,e));else try{Object(c.d)(this,"resolvedAddress",Promise.resolve(Object(v.a)(e)))}catch(e){Oe.throwError("provider is required to use ENS name as contract address",l.b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}const n={},o={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(o[e])Oe.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{o[e]=!0;{const r=t.name;n[r]||(n[r]=[]),n[r].push(e)}null==this[e]&&Object(c.d)(this,e,Fe(this,t,!0)),null==this.functions[e]&&Object(c.d)(this.functions,e,Fe(this,t,!1)),null==this.callStatic[e]&&Object(c.d)(this.callStatic,e,Pe(this,t,!0)),null==this.populateTransaction[e]&&Object(c.d)(this.populateTransaction,e,function(e,t){return function(...r){return Ce(e,t,r)}}(this,t)),null==this.estimateGas[e]&&Object(c.d)(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return Se(this,void 0,void 0,(function*(){r||Oe.throwError("estimate require a provider or signer",l.b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const o=yield Ce(e,t,n);return yield r.estimateGas(o)}))}}(this,t))}})),Object.keys(n).forEach((e=>{const t=n[e];if(t.length>1)return;const r=t[0];try{null==this[e]&&Object(c.d)(this,e,this[r])}catch(e){}null==this.functions[e]&&Object(c.d)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&Object(c.d)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&Object(c.d)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&Object(c.d)(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return Object(v.b)(e)}static getInterface(e){return Te.isInterface(e)?e:new Te(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((code=>("0x"===code&&Oe.throwError("contract not deployed",l.b.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||Oe.throwError("sending a transactions require a signer",l.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=Object(c.g)(e||{});return["from","to"].forEach((function(e){null!=t[e]&&Oe.throwError("cannot override "+e,l.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new Ae.b(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Object(c.d)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return ge.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new Be);if("event"===e)return this._normalizeRunningEvent(new Re("event",null));if("*"===e)return this._normalizeRunningEvent(new xe(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Ne(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new Ne(this.address,this.interface,r,e.topics))}catch(e){}const filter={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Re(Le(filter),filter))}return this._normalizeRunningEvent(new xe(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=Object(c.c)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||Oe.throwError("events require a provider or a signer with a provider",l.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const o=this._getRunningEvent(e),filter=Object(c.g)(o.filter);return"string"==typeof t&&Object(n.l)(t,32)?(null!=r&&Oe.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),filter.blockHash=t):(filter.fromBlock=null!=t?t:0,filter.toBlock=null!=r?r:"latest"),this.provider.getLogs(filter).then((e=>e.map((e=>this._wrapEvent(o,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class Ie extends je{}class Je{constructor(e,t,r){let o=null;o="string"==typeof t?t:Object(n.j)(t)?Object(n.i)(t):t&&"string"==typeof t.object?t.object:"!","0x"!==o.substring(0,2)&&(o="0x"+o),(!Object(n.l)(o)||o.length%2)&&Oe.throwArgumentError("invalid bytecode","bytecode",t),r&&!Ae.a.isSigner(r)&&Oe.throwArgumentError("invalid signer","signer",r),Object(c.d)(this,"bytecode",o),Object(c.d)(this,"interface",Object(c.e)(new.target,"getInterface")(e)),Object(c.d)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=Object(c.g)(e.pop());for(const e in t)if(!_e[e])throw new Error("unknown transaction override "+e)}if(["data","from","to"].forEach((e=>{null!=t[e]&&Oe.throwError("cannot override "+e,l.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.value){o.a.from(t.value).isZero()||this.interface.deploy.payable||Oe.throwError("non-payable constructor cannot override value",l.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return Oe.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=Object(n.i)(Object(n.b)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return Se(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),Oe.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield ke(this.signer,e,this.interface.deploy.inputs);r.push(t);const n=this.getDeployTransaction(...r),o=yield this.signer.sendTransaction(n),address=Object(c.e)(this.constructor,"getContractAddress")(o),l=Object(c.e)(this.constructor,"getContract")(address,this.interface,this.signer);return Object(c.d)(l,"deployTransaction",o),l}))}attach(address){return this.constructor.getContract(address,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&Oe.throwError("missing compiler output",l.b.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const r=e.abi;let n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return Ie.getInterface(e)}static getContractAddress(e){return Object(v.b)(e)}static getContract(address,e,t){return new Ie(address,e,t)}}},function(e,t,r){"use strict";r.r(t),r.d(t,"workerEvents",(function(){return n})),r.d(t,"numbers",(function(){return o}));var n={INIT_WORKER:"initWorker",GET_COMMITMENT_EVENTS:"get_commitment_events",GET_UNSPENT_EVENTS:"get_unspent_events",GET_NULLIFIER_EVENT:"get_nullifier_event",GET_NULLIFIER_EVENTS_FROM_TX_HASH:"get_nullifier_events_from_tx_hash",UPDATE_NULLIFIER_EVENTS:"update_nullifier_events",GET_BATCH_EVENTS:"get_batch_events",GET_BATCH_COMMITMENTS_EVENTS:"get_batch_commitments_events",GET_EVENTS_FROM_TX_HASH:"get_events_from_tx_hash",SAVE_EVENTS:"save_events",GET_CACHED_EVENTS:"get_cached_events",GET_CACHED_COMMITMENTS_EVENTS:"get_cached_commitments_events",SAVE_LAST_SYNC_BLOCK:"save_last_sync_block"},o={ZERO:0,TWO:2,ONE:1,BYTES_31:31,BYTES_62:62,IS_SPENT_INDEX:1,OX_LENGTH:2,RECALL_DELAY:500,NULLIFIER_LENGTH:66,NONCE_BUF_LENGTH:24,COMMITMENTS_CHAIN:100,DEPLOYED_BLOCK:19097755,DECRYPT_WORKERS_COUNT:8,MIN_BLOCKS_INTERVAL_LINE:2e5,EPHEM_PUBLIC_KEY_BUF_LENGTH:56}},,function(e,t,r){var n=r(30),o=r(97),c=r(60),l=r(38),d=r(68),f=r(29),h=r(121),m=Object.getOwnPropertyDescriptor;t.f=n?m:function(e,t){if(e=l(e),t=d(t),h)try{return m(e,t)}catch(e){}if(f(e,t))return c(!o.f.call(e,t),e[t])}},function(e,t,r){var n=r(23),o=r(18),c=r(29),l=r(59),d=r(92),f=r(95),h=r(98),m=r(99).CONFIGURABLE,y=h.get,v=h.enforce,T=String(String).split("String");(e.exports=function(e,t,r,f){var h,y=!!f&&!!f.unsafe,w=!!f&&!!f.enumerable,A=!!f&&!!f.noTargetGet,E=f&&void 0!==f.name?f.name:t;o(r)&&("Symbol("===String(E).slice(0,7)&&(E="["+String(E).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!c(r,"name")||m&&r.name!==E)&&l(r,"name",E),(h=v(r)).source||(h.source=T.join("string"==typeof E?E:""))),e!==n?(y?!A&&e[t]&&(w=!0):delete e[t],w?e[t]=r:l(e,t,r)):w?e[t]=r:d(t,r)})(Function.prototype,"toString",(function(){return o(this)&&y(this).source||f(this)}))},function(e,t,r){var n,o=r(36),c=r(173),l=r(100),d=r(71),html=r(174),f=r(86),h=r(70),m=h("IE_PROTO"),y=function(){},v=function(content){return"<script>"+content+"</"+"script>"},T=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,iframe;w="undefined"!=typeof document?document.domain&&n?T(n):((iframe=f("iframe")).style.display="none",html.appendChild(iframe),iframe.src=String("javascript:"),(e=iframe.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):T(n);for(var t=l.length;t--;)delete w.prototype[l[t]];return w()};d[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(y.prototype=o(e),r=new y,y.prototype=null,r[m]=e):r=w(),void 0===t?r:c(r,t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return M})),r.d(t,"b",(function(){return k})),r.d(t,"c",(function(){return C}));var n=r(3),o=r(31),c=r(27),l=r(0),d=r(217),f=r(218),h=r(14),m=r(5),y=r(1),v=r(81),T=r(25),w=r(53),A=r(79),E=r(11),S=r(2);var O=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const _=new S.b("wallet/5.4.0");class M extends c.a{constructor(e,t){if(_.checkNew(new.target,M),super(),null!=(r=e)&&Object(l.l)(r.privateKey,32)&&null!=r.address){const t=new T.a(e.privateKey);if(Object(y.d)(this,"_signingKey",(()=>t)),Object(y.d)(this,"address",Object(E.c)(this.publicKey)),this.address!==Object(n.a)(e.address)&&_.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;Object(y.d)(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||h.b,locale:t.locale||"en"})));const r=this.mnemonic,n=h.a.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);Object(E.c)(n.privateKey)!==this.address&&_.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(y.d)(this,"_mnemonic",(()=>null))}else{if(T.a.isSigningKey(e))"secp256k1"!==e.curve&&_.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(y.d)(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new T.a(e);Object(y.d)(this,"_signingKey",(()=>t))}Object(y.d)(this,"_mnemonic",(()=>null)),Object(y.d)(this,"address",Object(E.c)(this.publicKey))}var r;t&&!o.b.isProvider(t)&&_.throwArgumentError("invalid provider","provider",t),Object(y.d)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new M(this,e)}signTransaction(e){return Object(y.f)(e).then((t=>{null!=t.from&&(Object(n.a)(t.from)!==this.address&&_.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest(Object(m.a)(Object(E.f)(t)));return Object(E.f)(t,r)}))}signMessage(e){return O(this,void 0,void 0,(function*(){return Object(l.m)(this._signingKey().signDigest(Object(d.a)(e)))}))}_signTypedData(e,t,r){return O(this,void 0,void 0,(function*(){const n=yield f.a.resolveNames(e,t,r,(e=>(null==this.provider&&_.throwError("cannot resolve ENS names without a provider",S.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return Object(l.m)(this._signingKey().signDigest(f.a.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),Object(w.c)(this,e,t,r)}static createRandom(e){let t=Object(v.a)(16);e||(e={}),e.extraEntropy&&(t=Object(l.a)(Object(l.e)(Object(m.a)(Object(l.b)([t,e.extraEntropy])),0,16)));const r=Object(h.c)(t,e.locale);return M.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return Object(A.a)(e,t,r).then((e=>new M(e)))}static fromEncryptedJsonSync(e,t){return new M(Object(A.b)(e,t))}static fromMnemonic(e,path,t){return path||(path=h.b),new M(h.a.fromMnemonic(e,null,t).derivePath(path))}}function k(e,t){return Object(E.e)(Object(d.a)(e),t)}function C(e,t,r,n){return Object(E.e)(f.a.hash(e,t,r),n)}},function(e,t,r){"use strict";r.d(t,"b",(function(){return R})),r.d(t,"a",(function(){return B})),r.d(t,"c",(function(){return N}));var n=r(32),o=r.n(n),c=r(80),l=r.n(c),d=r(3),f=r(0),h=r(14),m=r(5),y=r(214),v=r(81),T=r(1),w=r(11),A=r(6),E=r(2),S=r(78),O=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const _=new E.b(S.a);function M(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class k extends T.a{isKeystoreAccount(e){return!(!e||!e._isKeystoreAccount)}}function C(data,e){const t=Object(A.b)(Object(A.c)(data,"crypto/ciphertext"));if(Object(f.i)(Object(m.a)(Object(f.b)([e.slice(16,32),t]))).substring(2)!==Object(A.c)(data,"crypto/mac").toLowerCase())throw new Error("invalid password");const r=function(data,e,t){if("aes-128-ctr"===Object(A.c)(data,"crypto/cipher")){const r=Object(A.b)(Object(A.c)(data,"crypto/cipherparams/iv")),n=new o.a.Counter(r),c=new o.a.ModeOfOperation.ctr(e,n);return Object(f.a)(c.decrypt(t))}return null}(data,e.slice(0,16),t);r||_.throwError("unsupported cipher",E.b.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const n=e.slice(32,64),address=Object(w.c)(r);if(data.address){let e=data.address.toLowerCase();if("0x"!==e.substring(0,2)&&(e="0x"+e),Object(d.a)(e)!==address)throw new Error("address mismatch")}const c={_isKeystoreAccount:!0,address:address,privateKey:Object(f.i)(r)};if("0.1"===Object(A.c)(data,"x-ethers/version")){const e=Object(A.b)(Object(A.c)(data,"x-ethers/mnemonicCiphertext")),t=Object(A.b)(Object(A.c)(data,"x-ethers/mnemonicCounter")),r=new o.a.Counter(t),l=new o.a.ModeOfOperation.ctr(n,r),path=Object(A.c)(data,"x-ethers/path")||h.b,d=Object(A.c)(data,"x-ethers/locale")||"en",m=Object(f.a)(l.decrypt(e));try{const e=Object(h.c)(m,d),t=h.a.fromMnemonic(e,null,d).derivePath(path);if(t.privateKey!=c.privateKey)throw new Error("mnemonic mismatch");c.mnemonic=t.mnemonic}catch(e){if(e.code!==E.b.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new k(c)}function P(e,t,r,n,o){return Object(f.a)(Object(y.a)(e,t,r,n,o))}function F(e,t,r,n,o){return Promise.resolve(P(e,t,r,n,o))}function L(data,e,t,r,n){const o=Object(A.a)(e),c=Object(A.c)(data,"crypto/kdf");if(c&&"string"==typeof c){const e=function(e,t){return _.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===c.toLowerCase()){const t=Object(A.b)(Object(A.c)(data,"crypto/kdfparams/salt")),l=parseInt(Object(A.c)(data,"crypto/kdfparams/n")),d=parseInt(Object(A.c)(data,"crypto/kdfparams/r")),p=parseInt(Object(A.c)(data,"crypto/kdfparams/p"));l&&d&&p||e("kdf",c),0!=(l&l-1)&&e("N",l);const f=parseInt(Object(A.c)(data,"crypto/kdfparams/dklen"));return 32!==f&&e("dklen",f),r(o,t,l,d,p,64,n)}if("pbkdf2"===c.toLowerCase()){const r=Object(A.b)(Object(A.c)(data,"crypto/kdfparams/salt"));let n=null;const c=Object(A.c)(data,"crypto/kdfparams/prf");"hmac-sha256"===c?n="sha256":"hmac-sha512"===c?n="sha512":e("prf",c);const l=parseInt(Object(A.c)(data,"crypto/kdfparams/c")),d=parseInt(Object(A.c)(data,"crypto/kdfparams/dklen"));return 32!==d&&e("dklen",d),t(o,r,l,d,n)}}return _.throwArgumentError("unsupported key-derivation function","kdf",c)}function R(e,t){const data=JSON.parse(e);return C(data,L(data,t,P,l.a.syncScrypt))}function B(e,t,r){return O(this,void 0,void 0,(function*(){const data=JSON.parse(e);return C(data,yield L(data,t,F,l.a.scrypt,r))}))}function N(e,t,r,n){try{if(Object(d.a)(e.address)!==Object(w.c)(e.privateKey))throw new Error("address/privateKey mismatch");if(M(e)){const t=e.mnemonic;if(h.a.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||h.b).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||n||(n=r,r={}),r||(r={});const c=Object(f.a)(e.privateKey),y=Object(A.a)(t);let T=null,path=null,E=null;if(M(e)){const t=e.mnemonic;T=Object(f.a)(Object(h.f)(t.phrase,t.locale||"en")),path=t.path||h.b,E=t.locale||"en"}let S=r.client;S||(S="ethers.js");let O=null;O=r.salt?Object(f.a)(r.salt):Object(v.a)(32);let _=null;if(r.iv){if(_=Object(f.a)(r.iv),16!==_.length)throw new Error("invalid iv")}else _=Object(v.a)(16);let k=null;if(r.uuid){if(k=Object(f.a)(r.uuid),16!==k.length)throw new Error("invalid uuid")}else k=Object(v.a)(16);let C=1<<17,P=8,p=1;return r.scrypt&&(r.scrypt.N&&(C=r.scrypt.N),r.scrypt.r&&(P=r.scrypt.r),r.scrypt.p&&(p=r.scrypt.p)),l.a.scrypt(y,O,C,P,p,64,n).then((t=>{const r=(t=Object(f.a)(t)).slice(0,16),n=t.slice(16,32),l=t.slice(32,64),d=new o.a.Counter(_),h=new o.a.ModeOfOperation.ctr(r,d),y=Object(f.a)(h.encrypt(c)),w=Object(m.a)(Object(f.b)([n,y])),data={address:e.address.substring(2).toLowerCase(),id:Object(A.d)(k),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(f.i)(_).substring(2)},ciphertext:Object(f.i)(y).substring(2),kdf:"scrypt",kdfparams:{salt:Object(f.i)(O).substring(2),n:C,dklen:32,p:p,r:P},mac:w.substring(2)}};if(T){const e=Object(v.a)(16),t=new o.a.Counter(e),r=new o.a.ModeOfOperation.ctr(l,t),n=Object(f.a)(r.encrypt(T)),c=new Date,d=c.getUTCFullYear()+"-"+Object(A.e)(c.getUTCMonth()+1,2)+"-"+Object(A.e)(c.getUTCDate(),2)+"T"+Object(A.e)(c.getUTCHours(),2)+"-"+Object(A.e)(c.getUTCMinutes(),2)+"-"+Object(A.e)(c.getUTCSeconds(),2)+".0Z";data["x-ethers"]={client:S,gethFilename:"UTC--"+d+"--"+data.address,mnemonicCounter:Object(f.i)(e).substring(2),mnemonicCiphertext:Object(f.i)(n).substring(2),path:path,locale:E,version:"0.1"}}return JSON.stringify(data)}))}},,function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(34),o=r(55);function c(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=c,c.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},c.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},c.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(30),o=r(35),c=r(60);e.exports=n?function(object,e,t){return o.f(object,e,c(1,t))}:function(object,e,t){return object[e]=t,object}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(66);e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},function(e,t,r){"use strict";r.r(t),r.d(t,"Provider",(function(){return n.b})),r.d(t,"BaseProvider",(function(){return ne})),r.d(t,"Resolver",(function(){return ee})),r.d(t,"UrlJsonRpcProvider",(function(){return _e})),r.d(t,"FallbackProvider",(function(){return at})),r.d(t,"AlchemyProvider",(function(){return Pe})),r.d(t,"AlchemyWebSocketProvider",(function(){return Ce})),r.d(t,"CloudflareProvider",(function(){return Re})),r.d(t,"EtherscanProvider",(function(){return Ge})),r.d(t,"InfuraProvider",(function(){return lt})),r.d(t,"InfuraWebSocketProvider",(function(){return ct})),r.d(t,"JsonRpcProvider",(function(){return ge})),r.d(t,"JsonRpcBatchProvider",(function(){return ft})),r.d(t,"NodesmithProvider",(function(){return pt})),r.d(t,"PocketProvider",(function(){return gt})),r.d(t,"StaticJsonRpcProvider",(function(){return Oe})),r.d(t,"Web3Provider",(function(){return wt})),r.d(t,"WebSocketProvider",(function(){return Ae})),r.d(t,"IpcProvider",(function(){return ot})),r.d(t,"JsonRpcSigner",(function(){return pe})),r.d(t,"getDefaultProvider",(function(){return Et})),r.d(t,"getNetwork",(function(){return v})),r.d(t,"isCommunityResource",(function(){return I})),r.d(t,"isCommunityResourcable",(function(){return j})),r.d(t,"showThrottleMessage",(function(){return D})),r.d(t,"Formatter",(function(){return x}));var n=r(31),o=r(2);const c=new o.b("networks/5.4.2");function l(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider){const r=["goerli","ropsten","rinkeby"];try{const o=new t.PocketProvider(e);o.network&&-1===r.indexOf(o.network.name)&&n.push(o)}catch(e){}}if(t.CloudflareProvider)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let o=1;return null!=r.quorum?o=r.quorum:"homestead"===e&&(o=2),new t.FallbackProvider(n,o)}return n[0]};return t.renetwork=function(e){return l(e)},t}function d(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return d(e,t)},r}const f={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:l("homestead")},h={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:l("ropsten")},m={chainId:63,name:"classicMordor",_defaultProvider:d("https://www.ethercluster.com/mordor","classicMordor")},y={unspecified:{chainId:0,name:"unspecified"},homestead:f,mainnet:f,morden:{chainId:2,name:"morden"},ropsten:h,testnet:h,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:l("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:l("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:l("goerli")},classic:{chainId:61,name:"classic",_defaultProvider:d("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:m,classicTestnet:m,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:d("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic"},maticmum:{chainId:80001,name:"maticmum"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function v(e){if(null==e)return null;if("number"==typeof e){for(const t in y){const r=y[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=y[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=y[e.name];if(!t)return"number"!=typeof e.chainId&&c.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&c.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var n;return null==r&&t._defaultProvider&&(r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}var T=r(41),w=r(12),A=r(0),E=r(111),S=r(219),O=r(1),_=r(145),M=r(22),k=r(15),C=r(104),P=r.n(C);const F="providers/5.4.5";var L=r(3),R=r(112),B=r(11);const N=new o.b(F);class x{constructor(){N.checkNew(new.target,x),this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},address=this.address.bind(this),t=this.bigNumber.bind(this),r=this.blockTag.bind(this),data=this.data.bind(this),n=this.hash.bind(this),o=this.hex.bind(this),c=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:n,type:l,accessList:x.allowNull(this.accessList.bind(this),null),blockHash:x.allowNull(n,null),blockNumber:x.allowNull(c,null),transactionIndex:x.allowNull(c,null),confirmations:x.allowNull(c,null),from:address,gasPrice:x.allowNull(t),maxPriorityFeePerGas:x.allowNull(t),maxFeePerGas:x.allowNull(t),gasLimit:t,to:x.allowNull(address,null),value:t,nonce:c,data:data,r:x.allowNull(this.uint256),s:x.allowNull(this.uint256),v:x.allowNull(c),creates:x.allowNull(address,null),raw:x.allowNull(data)},e.transactionRequest={from:x.allowNull(address),nonce:x.allowNull(c),gasLimit:x.allowNull(t),gasPrice:x.allowNull(t),maxPriorityFeePerGas:x.allowNull(t),maxFeePerGas:x.allowNull(t),to:x.allowNull(address),value:x.allowNull(t),data:x.allowNull((e=>this.data(e,!0))),type:x.allowNull(c),accessList:x.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:n,address:address,topics:x.arrayOf(n),data:data,logIndex:c,blockHash:n},e.receipt={to:x.allowNull(this.address,null),from:x.allowNull(this.address,null),contractAddress:x.allowNull(address,null),transactionIndex:c,root:x.allowNull(o),gasUsed:t,logsBloom:x.allowNull(data),blockHash:n,transactionHash:n,logs:x.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:x.allowNull(c,null),cumulativeGasUsed:t,effectiveGasPrice:x.allowNull(t),status:x.allowNull(c),type:l},e.block={hash:n,parentHash:n,number:c,timestamp:c,nonce:x.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:t,gasUsed:t,miner:address,extraData:data,transactions:x.allowNull(x.arrayOf(n)),baseFeePerGas:x.allowNull(t)},e.blockWithTransactions=Object(O.g)(e.block),e.blockWithTransactions.transactions=x.allowNull(x.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:x.allowNull(r,void 0),toBlock:x.allowNull(r,void 0),blockHash:x.allowNull(n,void 0),address:x.allowNull(address,void 0),topics:x.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:x.allowNull(c),blockHash:x.allowNull(n),transactionIndex:c,removed:x.allowNull(this.boolean.bind(this)),address:address,data:x.allowFalsish(data,"0x"),topics:x.arrayOf(n),transactionHash:n,logIndex:c},e}accessList(e){return Object(B.b)(e||[])}number(e){return"0x"===e?0:w.a.from(e).toNumber()}type(e){return"0x"===e||null==e?0:w.a.from(e).toNumber()}bigNumber(e){return w.a.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Object(A.l)(e))?e.toLowerCase():N.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return Object(L.a)(e)}callAddress(e){if(!Object(A.l)(e,32))return null;const address=Object(L.a)(Object(A.e)(e,12));return address===R.a?null:address}contractAddress(e){return Object(L.b)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";if("latest"===e||"pending"===e)return e;if("number"==typeof e||Object(A.l)(e))return Object(A.g)(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==Object(A.d)(r)?N.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=w.a.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!Object(A.l)(e))throw new Error("invalid uint256");return Object(A.h)(e,32)}_block(e,t){return null!=e.author&&null==e.miner&&(e.miner=e.author),x.check(t,e)}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return x.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&w.a.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=x.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;Object(A.l)(r)&&(r=w.a.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),Object(A.l)(r)&&(r=w.a.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return Object(B.d)(e)}receiptLog(e){return x.check(this.formats.receiptLog,e)}receipt(e){const t=x.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=w.a.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&N.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):N.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&N.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return x.check(this.formats.filter,e)}filterLog(e){return x.check(this.formats.filterLog,e)}static check(e,object){const t={};for(const r in e)try{const n=e[r](object[r]);void 0!==n&&(t[r]=n)}catch(e){throw e.checkKey=r,e.checkValue=object[r],e}return t}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function j(e){return e&&"function"==typeof e.isCommunityResource}function I(e){return j(e)&&e.isCommunityResource()}let J=!1;function D(){J||(J=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var X=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const G=new o.b(F);function H(e){return null==e?"null":(32!==Object(A.d)(e)&&G.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function U(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[H(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return H(e)})).join("&")}function V(e){if("string"==typeof e){if(e=e.toLowerCase(),32===Object(A.d)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+U(e);if(n.a.isForkEvent(e))throw G.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+U(e.topics||[])}throw new Error("invalid event - "+e)}function z(){return(new Date).getTime()}function Z(e){return new Promise((t=>{setTimeout(t,e)}))}const K=["block","network","pending","poll"];class Q{constructor(e,t,r){Object(O.d)(this,"tag",e),Object(O.d)(this,"listener",t),Object(O.d)(this,"once",r)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const address=e[1],t=""===(data=e[2])?[]:data.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var data;const filter={};return t.length>0&&(filter.topics=t),address&&"*"!==address&&(filter.address=address),filter}pollable(){return this.tag.indexOf(":")>=0||K.indexOf(this.tag)>=0}}const W={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Y(e){return Object(A.h)(w.a.from(e).toHexString(),32)}function $(data){return T.a.encode(Object(A.b)([data,Object(A.e)(Object(_.c)(Object(_.c)(data)),0,4)]))}class ee{constructor(e,address,t){Object(O.d)(this,"provider",e),Object(O.d)(this,"name",t),Object(O.d)(this,"address",e.formatter.address(address))}_fetchBytes(e,t){return X(this,void 0,void 0,(function*(){const r={to:this.address,data:Object(A.c)([e,Object(S.b)(this.name),t||"0x"])};try{const e=yield this.provider.call(r);if("0x"===e)return null;const t=w.a.from(Object(A.e)(e,0,32)).toNumber(),n=w.a.from(Object(A.e)(e,t,t+32)).toNumber();return Object(A.e)(e,t+32,t+32+n)}catch(e){return e.code,o.b.errors.CALL_EXCEPTION,null}}))}_getAddress(e,t){const r=W[String(e)];if(null==r&&G.throwError(`unsupported coin type: ${e}`,o.b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=Object(A.a)(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return $(Object(A.b)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return $(Object(A.b)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=P.a.toWords(n.slice(2));return e.unshift(t),P.a.encode(r.prefix,e)}}return null}getAddress(e){return X(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e={to:this.address,data:"0x3b3b57de"+Object(S.b)(this.name).substring(2)},t=yield this.provider.call(e);return"0x"===t||t===E.a?null:this.provider.formatter.callAddress(t)}catch(e){if(e.code===o.b.errors.CALL_EXCEPTION)return null;throw e}const t=yield this._fetchBytes("0xf1cb7e06",Y(e));if(null==t||"0x"===t)return null;const address=this._getAddress(e,t);return null==address&&G.throwError("invalid or unsupported coin data",o.b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),address}))}getContentHash(){return X(this,void 0,void 0,(function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;const t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+T.a.encode("0x"+t[1])}const r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);return r&&64===r[1].length?"bzz://"+r[1]:G.throwError("invalid or unsupported content hash data",o.b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return X(this,void 0,void 0,(function*(){let t=Object(M.f)(e);t=Object(A.b)([Y(64),Y(t.length),t]),t.length%32!=0&&(t=Object(A.b)([t,Object(A.h)("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",Object(A.i)(t));return null==r||"0x"===r?null:Object(M.h)(r)}))}}let te=null,re=1;class ne extends n.b{constructor(e){if(G.checkNew(new.target,n.b),super(),this._events=[],this._emitted={block:-2},this.formatter=new.target.getFormatter(),Object(O.d)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=Object(O.e)(new.target,"getNetwork")(e);t?(Object(O.d)(this,"_network",t),this.emit("network",t,null)):G.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return X(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||G.throwError("no network detected",o.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:Object(O.d)(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return Object(k.c)((()=>this._ready().then((e=>e),(e=>{if(e.code!==o.b.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==te&&(te=new x),te}static getNetwork(e){return v(null==e?"homestead":e)}_getInternalBlockNumber(e){return X(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(z()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}const t=z(),r=Object(O.f)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const o=z();return(e=w.a.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:o}}));return this._internalBlockNumber=r,r.catch((e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return X(this,void 0,void 0,(function*(){const e=re++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){return void this.emit("error",e)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)G.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",G.makeError("network block skew detected",o.b.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let i=this._emitted.block+1;i<=r;i++)this.emit("block",i);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":{const filter=e.filter;filter.fromBlock=this._lastBlockNumber+1,filter.toBlock=r;const n=this.getLogs(filter).then((e=>{0!==e.length&&e.forEach((e=>{this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(filter,e)}))})).catch((e=>{this.emit("error",e)}));t.push(n);break}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return X(this,void 0,void 0,(function*(){return G.throwError("provider does not support network detection",o.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return X(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield Z(0),this._network;const r=G.makeError("underlying network changed",o.b.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=z();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=z(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return X(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return X(this,void 0,void 0,(function*(){const c=yield this.getTransactionReceipt(e);return(c?c.confirmations:0)>=t?c:new Promise(((c,l)=>{const d=[];let f=!1;const h=function(){return!!f||(f=!0,d.forEach((e=>{e()})),!1)},m=e=>{e.confirmations<t||h()||c(e)};if(this.on(e,m),d.push((()=>{this.removeListener(e,m)})),n){let r=n.startBlock,c=null;const m=d=>X(this,void 0,void 0,(function*(){f||(yield Z(1e3),this.getTransactionCount(n.from).then((y=>X(this,void 0,void 0,(function*(){if(!f){if(y<=n.nonce)r=d;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==c&&(c=r-3,c<n.startBlock&&(c=n.startBlock));c<=d;){if(f)return;const r=yield this.getBlockWithTransactions(c);for(let c=0;c<r.transactions.length;c++){const d=r.transactions[c];if(d.hash===e)return;if(d.from===n.from&&d.nonce===n.nonce){if(f)return;const r=yield this.waitForTransaction(d.hash,t);if(h())return;let c="replaced";return d.data===n.data&&d.to===n.to&&d.value.eq(n.value)?c="repriced":"0x"===d.data&&d.from===d.to&&d.value.isZero()&&(c="cancelled"),void l(G.makeError("transaction was replaced",o.b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===c||"cancelled"===c,reason:c,replacement:this._wrapTransaction(d),hash:e,receipt:r}))}}c++}}f||this.once("block",m)}}))),(e=>{f||this.once("block",m)})))}));if(f)return;this.once("block",m),d.push((()=>{this.removeListener("block",m)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{h()||l(G.makeError("timeout exceeded",o.b.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),d.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return X(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return w.a.from(e)}catch(t){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield Object(O.f)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return w.a.from(n)}catch(e){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}}))}getTransactionCount(e,t){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield Object(O.f)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return w.a.from(n).toNumber()}catch(e){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}}))}getCode(e,t){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield Object(O.f)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return Object(A.i)(n)}catch(e){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}}))}getStorageAt(e,t,r){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield Object(O.f)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((p=>Object(A.g)(p)))}),c=yield this.perform("getStorageAt",n);try{return Object(A.i)(c)}catch(e){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:c,error:e})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==Object(A.d)(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&G.throwError("Transaction hash mismatch from Provider.sendTransaction.",o.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>X(this,void 0,void 0,(function*(){let c;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(c={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const l=yield this._waitForTransaction(e.hash,t,n,c);return null==l&&0===t?null:(this._emitted["t:"+e.hash]=l.blockNumber,0===l.status&&G.throwError("transaction failed",o.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)})),n}sendTransaction(e){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>Object(A.i)(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}}))}_getTransactionRequest(e){return X(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?w.a.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?Object(A.i)(e):null)))})),this.formatter.transactionRequest(yield Object(O.f)(r))}))}_getFilter(filter){return X(this,void 0,void 0,(function*(){filter=yield filter;const e={};return null!=filter.address&&(e.address=this._getAddress(filter.address)),["blockHash","topics"].forEach((t=>{null!=filter[t]&&(e[t]=filter[t])})),["fromBlock","toBlock"].forEach((t=>{null!=filter[t]&&(e[t]=this._getBlockTag(filter[t]))})),this.formatter.filter(yield Object(O.f)(e))}))}call(e,t){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield Object(O.f)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("call",r);try{return Object(A.i)(n)}catch(e){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"call",params:r,result:n,error:e})}}))}estimateGas(e){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Object(O.f)({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return w.a.from(r)}catch(e){return G.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:e})}}))}_getAddress(e){return X(this,void 0,void 0,(function*(){const address=yield this.resolveName(e);return null==address&&G.throwError("ENS name not configured",o.b.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),address}))}_getBlock(e,t){return X(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;let r=-128;const n={includeTransactions:!!t};if(Object(A.l)(e,32))n.blockHash=e;else try{n.blockTag=this.formatter.blockTag(yield this._getBlockTag(e)),Object(A.l)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(t){G.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return Object(k.c)((()=>X(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let i=0;i<e.transactions.length;i++){const r=e.transactions[i];if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}}const r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map((e=>this._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return X(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return Object(k.c)((()=>X(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return X(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return Object(k.c)((()=>X(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(filter){return X(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Object(O.f)({filter:this._getFilter(filter)}),t=yield this.perform("getLogs",e);return t.forEach((e=>{null==e.removed&&(e.removed=!1)})),x.arrayOf(this.formatter.filterLog.bind(this.formatter))(t)}))}getEtherPrice(){return X(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return X(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&G.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return X(this,void 0,void 0,(function*(){try{const address=yield this._getResolver(e);return null==address?null:new ee(this,address,e)}catch(e){return e.code,o.b.errors.CALL_EXCEPTION,null}}))}_getResolver(e){return X(this,void 0,void 0,(function*(){const t=yield this.getNetwork();t.ensAddress||G.throwError("network does not support ENS",o.b.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:t.name});const r={to:t.ensAddress,data:"0x0178b8bf"+Object(S.b)(e).substring(2)};try{return this.formatter.callAddress(yield this.call(r))}catch(e){if(e.code===o.b.errors.CALL_EXCEPTION)return null;throw e}}))}resolveName(e){return X(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if(Object(A.l)(e))throw t}"string"!=typeof e&&G.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(address){return X(this,void 0,void 0,(function*(){address=yield address;const e=(address=this.formatter.address(address)).substring(2).toLowerCase()+".addr.reverse",t=yield this._getResolver(e);if(!t)return null;let r=Object(A.a)(yield this.call({to:t,data:"0x691f3431"+Object(S.b)(e).substring(2)}));if(r.length<32||!w.a.from(r.slice(0,32)).eq(32))return null;if(r=r.slice(32),r.length<32)return null;const n=w.a.from(r.slice(0,32)).toNumber();if(r=r.slice(32),n>r.length)return null;const o=Object(M.h)(r.slice(0,n));return(yield this.resolveName(o))!=address?null:o}))}perform(e,t){return G.throwError(e+" not implemented",o.b.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new Q(V(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],o=V(e);return this._events=this._events.filter((e=>e.tag!==o||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=V(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=V(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,o=V(e);return this._events=this._events.filter((e=>e.tag!==o||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=V(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var ie=r(27),ae=r(218),oe=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const se=new o.b(F),ue=["call","estimateGas"];function ce(e,t,r){if("call"===e&&t.code===o.b.errors.SERVER_ERROR){const e=t.error;if(e&&e.message.match("reverted")&&Object(A.l)(e.data))return e.data;se.throwError("missing revert data in call exception",o.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}let n=t.message;t.code===o.b.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText),n=(n||"").toLowerCase();const c=r.transaction||r.signedTransaction;throw n.match(/insufficient funds|base fee exceeds gas limit/)&&se.throwError("insufficient funds for intrinsic transaction cost",o.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:c}),n.match(/nonce too low/)&&se.throwError("nonce has already been used",o.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:c}),n.match(/replacement transaction underpriced/)&&se.throwError("replacement fee too low",o.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:c}),n.match(/only replay-protected/)&&se.throwError("legacy pre-eip-155 transactions not supported",o.b.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:c}),ue.indexOf(e)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&se.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:c}),t}function le(e){return new Promise((function(t){setTimeout(t,e)}))}function de(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function fe(e){return e?e.toLowerCase():e}const he={};class pe extends ie.a{constructor(e,t,r){if(se.checkNew(new.target,pe),super(),e!==he)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Object(O.d)(this,"provider",t),null==r&&(r=0),"string"==typeof r?(Object(O.d)(this,"_address",this.provider.formatter.address(r)),Object(O.d)(this,"_index",null)):"number"==typeof r?(Object(O.d)(this,"_index",r),Object(O.d)(this,"_address",null)):se.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return se.throwError("cannot alter JSON-RPC Signer connection",o.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new me(he,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&se.throwError("unknown account #"+this._index,o.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=Object(O.g)(e);const t=this.getAddress().then((address=>(address&&(address=address.toLowerCase()),address)));if(null==e.gasLimit){const r=Object(O.g)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>oe(this,void 0,void 0,(function*(){if(null==e)return null;const address=yield this.provider.resolveName(e);return null==address&&se.throwArgumentError("provided ENS name resolves to null","tx.to",e),address}))))),Object(O.f)({tx:Object(O.f)(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&se.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>ce("sendTransaction",e,n)))}))}signTransaction(e){return se.throwError("signing transactions is unsupported",o.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return oe(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield Object(k.c)((()=>oe(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}}))}signMessage(e){return oe(this,void 0,void 0,(function*(){const data="string"==typeof e?Object(M.f)(e):e,address=yield this.getAddress();return yield this.provider.send("eth_sign",[address.toLowerCase(),Object(A.i)(data)])}))}_signTypedData(e,t,r){return oe(this,void 0,void 0,(function*(){const n=yield ae.a.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),address=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[address.toLowerCase(),JSON.stringify(ae.a.getPayload(n.domain,t,n.value))])}))}unlock(e){return oe(this,void 0,void 0,(function*(){const t=this.provider,address=yield this.getAddress();return t.send("personal_unlockAccount",[address.toLowerCase(),e,null])}))}}class me extends pe{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const ye={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ge extends ne{constructor(e,t){se.checkNew(new.target,ge);let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=Object(O.e)(this.constructor,"defaultUrl")()),"string"==typeof e?Object(O.d)(this,"connection",Object.freeze({url:e})):Object(O.d)(this,"connection",Object.freeze(Object(O.g)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return oe(this,void 0,void 0,(function*(){yield le(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){const t=Object(O.e)(this.constructor,"getNetwork");try{return t(w.a.from(e).toNumber())}catch(t){return se.throwError("could not detect network",o.b.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return se.throwError("could not detect network",o.b.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new pe(he,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((a=>this.formatter.address(a)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Object(O.c)(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const o=Object(k.b)(this.connection,JSON.stringify(r),de).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=o,setTimeout((()=>{this._cache[e]=null}),0)),o}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[fe(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[fe(t.address),t.blockTag]];case"getCode":return["eth_getCode",[fe(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[fe(t.address),t.position,t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[Object(O.e)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[Object(O.e)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=fe(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return oe(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&w.a.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=Object(O.g)(t)).transaction=Object(O.g)(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&se.throwError(e+" not implemented",o.b.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return ce(e,r,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return le(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=Object(O.g)(ye);if(t)for(const e in t)t[e]&&(r[e]=!0);Object(O.b)(e,r);const n={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=Object(A.g)(e[t]);"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=Object(A.i)(e[t]))})),e.accessList&&(n.accessList=Object(B.b)(e.accessList)),n}}let be=null;try{if(be=WebSocket,null==be)throw new Error("inject please")}catch(e){const t=new o.b(F);be=function(){t.throwError("WebSockets not supported in this environment",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var ve=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const Te=new o.b(F);let we=1;class Ae extends ge{constructor(e,t){"any"===t&&Te.throwError("WebSocketProvider does not support 'any' network yet",o.b.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super(e,t),this._pollingInterval=-1,this._wsReady=!1,Object(O.d)(this,"_websocket",new be(this.connection.url)),Object(O.d)(this,"_requests",{}),Object(O.d)(this,"_subs",{}),Object(O.d)(this,"_subIds",{}),Object(O.d)(this,"_detectNetwork",super.detectNetwork()),this._websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this._websocket.send(this._requests[e].payload)}))},this._websocket.onmessage=e=>{const data=e.data,t=JSON.parse(data);if(null!=t.id){const e=String(t.id),r=this._requests[e];if(delete this._requests[e],void 0!==t.result)r.callback(null,t.result),this.emit("debug",{action:"response",request:JSON.parse(r.payload),response:t.result,provider:this});else{let e=null;t.error?(e=new Error(t.error.message||"unknown error"),Object(O.d)(e,"code",t.error.code||null),Object(O.d)(e,"response",data)):e=new Error("unknown error"),r.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(r.payload),provider:this})}}else if("eth_subscription"===t.method){const sub=this._subs[t.params.subscription];sub&&sub.processFunc(t.params.result)}else console.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){Te.throwError("cannot reset events block on WebSocketProvider",o.b.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){Te.throwError("cannot set polling interval on WebSocketProvider",o.b.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return ve(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&Te.throwError("cannot set polling on WebSocketProvider",o.b.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=we++;return new Promise(((n,o)=>{const c=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(c),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?o(e):n(t)},payload:c},this._wsReady&&this._websocket.send(c)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,param,t){return ve(this,void 0,void 0,(function*(){let r=this._subIds[e];null==r&&(r=Promise.all(param).then((param=>this.send("eth_subscribe",param))),this._subIds[e]=r);const n=yield r;this._subs[n]={tag:e,processFunc:t}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=w.a.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return ve(this,void 0,void 0,(function*(){this._websocket.readyState===be.CONNECTING&&(yield new Promise((e=>{this._websocket.onopen=function(){e(!0)},this._websocket.onerror=function(){e(!1)}}))),this._websocket.close(1e3)}))}}var Ee=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const Se=new o.b(F);class Oe extends ge{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return Ee(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||Se.throwError("no network detected",o.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(Object(O.d)(this,"_network",t),this.emit("network",t,null))),t}))}}class _e extends Oe{constructor(e,t){Se.checkAbstract(new.target,_e),e=Object(O.e)(new.target,"getNetwork")(e),t=Object(O.e)(new.target,"getApiKey")(t);super(Object(O.e)(new.target,"getUrl")(e,t),e),"string"==typeof t?Object(O.d)(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{Object(O.d)(this,e,t[e])}))}_startPending(){Se.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(address){return Se.throwError("API provider does not support signing",o.b.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return Se.throwError("not implemented; sub-classes must override getUrl",o.b.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Me=new o.b(F),ke="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class Ce extends Ae{constructor(e,t){const r=new Pe(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),Object(O.d)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===ke}}class Pe extends _e{static getWebSocketProvider(e,t){return new Ce(e,t)}static getApiKey(e){return null==e?ke:(e&&"string"!=typeof e&&Me.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":r="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.alchemyapi.io/v2/";break;case"kovan":r="eth-kovan.alchemyapi.io/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;default:Me.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===ke&&D(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===ke}}var Fe=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const Le=new o.b(F);class Re extends _e{static getApiKey(e){return null!=e&&Le.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else Le.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return Fe(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var Be=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const Ne=new o.b(F);function xe(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?Object(A.g)(Object(A.i)(n)):"accessList"===r?"["+Object(B.b)(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":Object(A.i)(n),t[r]=n)}return t}function je(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"OK"!=e.message){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function Ie(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function Je(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}const De="9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";function Xe(e,t,r){if("call"===e&&t.code===o.b.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let data=e.data;if(data&&(data="0x"+data.replace(/^.*0x/i,"")),Object(A.l)(data))return data;Ne.throwError("missing revert data in call exception",o.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===o.b.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&Ne.throwError("insufficient funds for intrinsic transaction cost",o.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Ne.throwError("nonce has already been used",o.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&Ne.throwError("replacement fee too low",o.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&Ne.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class Ge extends ne{constructor(e,t){Ne.checkNew(new.target,Ge),super(e),Object(O.d)(this,"baseUrl",this.getBaseUrl()),Object(O.d)(this,"apiKey",t||De)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io"}return Ne.throwArgumentError("unsupported network","network",name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return Be(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,c="proxy"===e?Ie:je;this.emit("debug",{action:"request",request:n,provider:this});const l={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&D(),Promise.resolve(!0))};let d=null;o&&(l.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},d=Object.keys(o).map((e=>`${e}=${o[e]}`)).join("&"));const f=yield Object(k.b)(l,d,c||Ie);return this.emit("debug",{action:"response",request:n,response:Object(O.c)(f),provider:this}),f}))}detectNetwork(){return Be(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return Be(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>Xe("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=xe(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return Xe("call",e,t.transaction)}}case"estimateGas":{const e=xe(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return Xe("estimateGas",e,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=Je(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=Je(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Ne.throwError("unsupported topic count",o.b.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||Ne.throwError("unsupported topic format",o.b.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let i=0;i<r.length;i++){const e=r[i];if(null==e.blockHash){if(null==n[e.blockNumber]){const t=yield this.getBlock(e.blockNumber);t&&(n[e.blockNumber]=t.hash)}e.blockHash=n[e.blockNumber]}}return r}case"getEtherPrice":return"homestead"!==this.network.name?0:parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return r.perform.call(this,e,t)}))}getHistory(e,t,r){return Be(this,void 0,void 0,(function*(){const n={action:"txlist",address:yield this.resolveName(e),startblock:null==t?0:t,endblock:null==r?99999999:r,sort:"asc"};return(yield this.fetch("account",n)).map((e=>{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return this.apiKey===De}}var He=r(220),Ue=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const Ve=new o.b(F);function ze(){return(new Date).getTime()}function Ze(e){let t=null;for(let i=0;i<e.length;i++){const r=e[i];if(null==r)return null;t?t.name===r.name&&t.chainId===r.chainId&&(t.ensAddress===r.ensAddress||null==t.ensAddress&&null==r.ensAddress)||Ve.throwArgumentError("provider mismatch","networks",e):t=r}return t}function Ke(e,t){e=e.slice().sort();const r=Math.floor(e.length/2);if(e.length%2)return e[r];const a=e[r-1],b=e[r];return null!=t&&Math.abs(a-b)>t?null:(a+b)/2}function qe(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(w.a.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((i=>qe(i))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":qe(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let Qe=1;function We(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const Ye=[o.b.errors.CALL_EXCEPTION,o.b.errors.INSUFFICIENT_FUNDS,o.b.errors.NONCE_EXPIRED,o.b.errors.REPLACEMENT_UNDERPRICED,o.b.errors.UNPREDICTABLE_GAS_LIMIT],$e=["address","args","errorArgs","errorSignature","method","transaction"];function et(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function tt(e,t,r){let n=qe;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=Ke(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return Ke(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=Object(O.g)(e)).confirmations=-1,qe(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=Object(O.g)(e)).transactions=e.transactions.map((e=>((e=Object(O.g)(e)).confirmations=-1,e))),qe(e))}:function(e){return null==e?null:qe(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const o=Object.keys(n);for(let i=0;i<o.length;i++){const e=n[o[i]];if(e.count>=t)return e.result}}}(n,e.quorum)}function nt(e,t){return Ue(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:Object(k.c)((()=>new Promise(((n,o)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function it(e,t,r,n){return Ue(this,void 0,void 0,(function*(){let c=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return c[r]();case"getEtherPrice":if(c.getEtherPrice)return c.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&Object(A.l)(n.blockTag)&&(c=yield nt(e,t)),c[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&Object(A.l)(n.blockTag)&&(c=yield nt(e,t)),c.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&Object(A.l)(n.blockTag)&&(c=yield nt(e,t)),c[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&Object(A.l)(n.blockTag)&&(c=yield nt(e,t)),c[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return c[r](n.transactionHash);case"getLogs":{let filter=n.filter;return(filter.fromBlock&&Object(A.l)(filter.fromBlock)||filter.toBlock&&Object(A.l)(filter.toBlock))&&(c=yield nt(e,t)),c.getLogs(filter)}}return Ve.throwError("unknown method error",o.b.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class at extends ne{constructor(e,t){Ve.checkNew(new.target,at),0===e.length&&Ve.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(n.b.isProvider(e)){const t=I(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=Object(O.g)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=I(e)?2e3:750),null==r.weight&&(r.weight=1);const o=r.weight;return(o%1||o>512||o<1)&&Ve.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,o),Object.freeze(r)})),o=r.reduce(((e,t)=>e+t.weight),0);null==t?t=o/2:t>o&&Ve.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let c=Ze(r.map((e=>e.provider.network)));null==c&&(c=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(c),Object(O.d)(this,"providerConfigs",Object.freeze(r)),Object(O.d)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return Ue(this,void 0,void 0,(function*(){return Ze(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return Ue(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let i=0;i<e.length;i++){const t=e[i];if("string"==typeof t)return t}throw e[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==e&&(yield this.getBlockNumber());const r=tt(this,e,t),n=Object(He.a)(this.providerConfigs.map(O.g));n.sort(((a,b)=>a.priority-b.priority));const c=this._highestBlockNumber;let i=0,l=!0;for(;;){const o=ze();let d=n.filter((e=>e.runner&&o-e.start<e.stallTimeout)).reduce(((e,t)=>e+t.weight),0);for(;d<this.quorum&&i<n.length;){const r=n[i++],o=Qe++;r.start=ze(),r.staller=We(r.stallTimeout),r.staller.wait((()=>{r.staller=null})),r.runner=it(r,c,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:et(r,ze()),request:{method:e,params:Object(O.c)(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:et(r,ze()),request:{method:e,params:Object(O.c)(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:et(r,null),request:{method:e,params:Object(O.c)(t)},provider:this}),d+=r.weight}const f=[];n.forEach((e=>{!e.done&&e.runner&&(f.push(e.runner),e.staller&&f.push(e.staller.getPromise()))})),f.length&&(yield Promise.race(f));const h=n.filter((e=>e.done&&null==e.error));if(h.length>=this.quorum){const e=r(h);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;l||(yield We(100).getPromise()),l=!1}const m=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const code=t.error.code;return Ye.indexOf(code)>=0&&(e[code]||(e[code]={error:t.error,weight:0}),e[code].weight+=t.weight),e}),{});if(Object.keys(m).forEach((e=>{const t=m[e];if(t.weight<this.quorum)return;n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,o={};$e.forEach((e=>{null!=r[e]&&(o[e]=r[e])})),Ve.throwError(r.reason||r.message,e,o)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),Ve.throwError("failed to meet quorum",o.b.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>et(e))),provider:this})}))}}const ot=null,st=new o.b(F),ut="84842078b09946638c03157f83405213";class ct extends Ae{constructor(e,t){const r=new lt(e,t),n=r.connection;n.password&&st.throwError("INFURA WebSocket project secrets unsupported",o.b.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),Object(O.d)(this,"apiKey",r.projectId),Object(O.d)(this,"projectId",r.projectId),Object(O.d)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===ut}}class lt extends _e{static getWebSocketProvider(e,t){return new ct(e,t)}static getApiKey(e){const t={apiKey:ut,projectId:ut,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(st.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),st.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"ropsten":r="ropsten.infura.io";break;case"rinkeby":r="rinkeby.infura.io";break;case"kovan":r="kovan.infura.io";break;case"goerli":r="goerli.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;default:st.throwError("unsupported network",o.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===ut&&D(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===ut}}class ft extends ge{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},o=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:Object(O.c)(t),provider:this}),Object(k.b)(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),o}}const ht=new o.b(F);class pt extends _e{static getApiKey(e){return e&&"string"!=typeof e&&ht.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){ht.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:ht.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const mt=new o.b(F),yt={homestead:"6004bcd10040261633ade990",ropsten:"6004bd4d0040261633ade991",rinkeby:"6004bda20040261633ade994",goerli:"6004bd860040261633ade992"};class gt extends _e{constructor(e,t){if(null==t){const r=Object(O.e)(new.target,"getNetwork")(e);if(r){const e=yt[r.name];e&&(t={applicationId:e,loadBalancer:!0})}null==t&&mt.throwError("unsupported network",o.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}super(e,t)}static getApiKey(e){null==e&&mt.throwArgumentError("PocketProvider.getApiKey does not support null apiKey","apiKey",e);const t={applicationId:null,loadBalancer:!1,applicationSecretKey:null};return"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(mt.assertArgument("string"==typeof e.applicationId,"applicationSecretKey requires an applicationId","applicationId",e.applicationId),mt.assertArgument("string"==typeof e.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey,t.loadBalancer=!!e.loadBalancer):e.applicationId?(mt.assertArgument("string"==typeof e.applicationId,"apiKey.applicationId must be a string","apiKey.applicationId",e.applicationId),t.applicationId=e.applicationId,t.loadBalancer=!!e.loadBalancer):mt.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"goerli":r="eth-goerli.gateway.pokt.network";break;default:mt.throwError("unsupported network",o.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n=null;n=t.loadBalancer?`https://${r}/v1/lb/${t.applicationId}`:`https://${r}/v1/${t.applicationId}`;const c={url:n,headers:{}};return null!=t.applicationSecretKey&&(c.user="",c.password=t.applicationSecretKey),c}isCommunityResource(){return this.applicationId===yt[this.network.name]}}const bt=new o.b(F);let vt=1;function Tt(e,t){const r="Web3LegacyFetcher";return function(n,o){"eth_sign"==n&&(e.isMetaMask||e.isStatus)&&(n="personal_sign",o=[o[1],o[0]]);const c={method:n,params:o,id:vt++,jsonrpc:"2.0"};return new Promise(((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:Object(O.c)(c),provider:this}),t(c,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:c,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:c,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)}))}))}}class wt extends ge{constructor(e,t){bt.checkNew(new.target,wt),null==e&&bt.throwArgumentError("missing provider","provider",e);let path=null,r=null,n=null;"function"==typeof e?(path="unknown:",r=e):(path=e.host||e.path||"",!path&&e.isMetaMask&&(path="metamask"),n=e,e.request?(""===path&&(path="eip-1193:"),r=function(e){return function(t,r){null==r&&(r=[]),"eth_sign"==t&&(e.isMetaMask||e.isStatus)&&(t="personal_sign",r=[r[1],r[0]]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Object(O.c)(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?r=Tt(e,e.sendAsync.bind(e)):e.send?r=Tt(e,e.send.bind(e)):bt.throwArgumentError("unsupported provider","provider",e),path||(path="unknown:")),super(path,t),Object(O.d)(this,"jsonRpcFetchFunc",r),Object(O.d)(this,"provider",n)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const At=new o.b(F);function Et(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1]){case"http":return new ge(e);case"ws":return new Ae(e);default:At.throwArgumentError("unsupported URL scheme","network",e)}}const r=v(e);return r&&r._defaultProvider||At.throwError("unsupported getDefaultProvider network",o.b.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:at,AlchemyProvider:Pe,CloudflareProvider:Re,EtherscanProvider:Ge,InfuraProvider:lt,JsonRpcProvider:ge,NodesmithProvider:pt,PocketProvider:gt,Web3Provider:wt,IpcProvider:ot},t)}},function(e,t,r){var n=r(18),o=r(114);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a function")}},function(e,t,r){var n=r(65),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(89),o=r(18),c=r(57),l=r(19)("toStringTag"),d="Arguments"==c(function(){return arguments}());e.exports=n?c:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),l))?r:d?c(t):"Object"==(n=c(t))&&o(t.callee)?"Arguments":n}},function(e,t){e.exports=!1},function(e,t,r){var n=r(122),o=r(69);e.exports=function(e){var t=n(e,"string");return o(t)?t:String(t)}},function(e,t,r){var n=r(18),o=r(45),c=r(120);e.exports=c?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return n(t)&&Object(e)instanceof t}},function(e,t,r){var n=r(90),o=r(93),c=n("keys");e.exports=function(e){return c[e]||(c[e]=o(e))}},function(e,t){e.exports={}},function(e,t,r){var n=r(124),o=r(100).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(124),o=r(100);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t){e.exports={}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="ethers/5.4.7"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="bignumber/5.4.2"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="hash/5.4.0"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="json-wallets/5.4.0"},function(e,t,r){"use strict";r.d(t,"a",(function(){return _})),r.d(t,"b",(function(){return M}));var n=r(32),o=r.n(n),c=r(3),l=r(0),d=r(5),f=r(214),h=r(22),m=r(1),y=r(2),v=r(78),T=r(6);const w=new y.b(v.a);class A extends m.a{isCrowdsaleAccount(e){return!(!e||!e._isCrowdsaleAccount)}}function E(e,t){const data=JSON.parse(e);t=Object(T.a)(t);const r=Object(c.a)(Object(T.c)(data,"ethaddr")),n=Object(T.b)(Object(T.c)(data,"encseed"));n&&n.length%16==0||w.throwArgumentError("invalid encseed","json",e);const m=Object(l.a)(Object(f.a)(t,t,2e3,32,"sha256")).slice(0,16),y=n.slice(0,16),v=n.slice(16),E=new o.a.ModeOfOperation.cbc(m,y),S=o.a.padding.pkcs7.strip(Object(l.a)(E.decrypt(v)));let O="";for(let i=0;i<S.length;i++)O+=String.fromCharCode(S[i]);const _=Object(h.f)(O),M=Object(d.a)(_);return new A({_isCrowdsaleAccount:!0,address:r,privateKey:M})}var S=r(42),O=r(53);function _(e,t,r){if(Object(S.b)(e)){r&&r(0);const n=E(e,t);return r&&r(1),Promise.resolve(n)}return Object(S.c)(e)?Object(O.a)(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function M(e,t){if(Object(S.b)(e))return E(e,t);if(Object(S.c)(e))return Object(O.b)(e,t);throw new Error("invalid JSON wallet")}},function(e,t,r){"use strict";(function(t){!function(r){const n=2147483647;function o(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let r=1779033703,h1=3144134277,h2=1013904242,h3=2773480762,h4=1359893119,h5=2600822924,h6=528734635,n=1541459225;const o=new Uint32Array(64);function c(p){let e=0,c=p.length;for(;c>=64;){let u,i,l,d,f,a=r,b=h1,h=h2,m=h3,y=h4,v=h5,g=h6,T=n;for(i=0;i<16;i++)l=e+4*i,o[i]=(255&p[l])<<24|(255&p[l+1])<<16|(255&p[l+2])<<8|255&p[l+3];for(i=16;i<64;i++)u=o[i-2],d=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,u=o[i-15],f=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3,o[i]=(d+o[i-7]|0)+(f+o[i-16]|0)|0;for(i=0;i<64;i++)d=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&v^~y&g)|0)+(T+(t[i]+o[i]|0)|0)|0,f=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&b^a&h^b&h)|0,T=g,g=v,v=y,y=m+d|0,m=h,h=b,b=a,a=d+f|0;r=r+a|0,h1=h1+b|0,h2=h2+h|0,h3=h3+m|0,h4=h4+y|0,h5=h5+v|0,h6=h6+g|0,n=n+T|0,e+=64,c-=64}}c(e);let i,l=e.length%64,d=e.length/536870912|0,f=e.length<<3,h=l<56?56:120,p=e.slice(e.length-l,e.length);for(p.push(128),i=l+1;i<h;i++)p.push(0);return p.push(d>>>24&255),p.push(d>>>16&255),p.push(d>>>8&255),p.push(d>>>0&255),p.push(f>>>24&255),p.push(f>>>16&255),p.push(f>>>8&255),p.push(f>>>0&255),c(p),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,h1>>>24&255,h1>>>16&255,h1>>>8&255,h1>>>0&255,h2>>>24&255,h2>>>16&255,h2>>>8&255,h2>>>0&255,h3>>>24&255,h3>>>16&255,h3>>>8&255,h3>>>0&255,h4>>>24&255,h4>>>16&255,h4>>>8&255,h4>>>0&255,h5>>>24&255,h5>>>16&255,h5>>>8&255,h5>>>0&255,h6>>>24&255,h6>>>16&255,h6>>>8&255,h6>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255]}function c(e,t,r){e=e.length<=64?e:o(e);const n=64+t.length+4,c=new Array(n),l=new Array(64);let i,d=[];for(i=0;i<64;i++)c[i]=54;for(i=0;i<e.length;i++)c[i]^=e[i];for(i=0;i<t.length;i++)c[64+i]=t[i];for(i=n-4;i<n;i++)c[i]=0;for(i=0;i<64;i++)l[i]=92;for(i=0;i<e.length;i++)l[i]^=e[i];function f(){for(let i=n-1;i>=n-4;i--){if(c[i]++,c[i]<=255)return;c[i]=0}}for(;r>=32;)f(),d=d.concat(o(l.concat(o(c)))),r-=32;return r>0&&(f(),d=d.concat(o(l.concat(o(c))).slice(0,r))),d}function l(e,t,r,n,o){let i;for(m(e,16*(2*r-1),o,0,16),i=0;i<2*r;i++)h(e,16*i,o,16),f(o,n),m(o,0,e,t+16*i,16);for(i=0;i<r;i++)m(e,t+2*i*16,e,16*i,16);for(i=0;i<r;i++)m(e,t+16*(2*i+1),e,16*(i+r),16)}function d(a,b){return a<<b|a>>>32-b}function f(e,t){m(e,0,t,0,16);for(let i=8;i>0;i-=2)t[4]^=d(t[0]+t[12],7),t[8]^=d(t[4]+t[0],9),t[12]^=d(t[8]+t[4],13),t[0]^=d(t[12]+t[8],18),t[9]^=d(t[5]+t[1],7),t[13]^=d(t[9]+t[5],9),t[1]^=d(t[13]+t[9],13),t[5]^=d(t[1]+t[13],18),t[14]^=d(t[10]+t[6],7),t[2]^=d(t[14]+t[10],9),t[6]^=d(t[2]+t[14],13),t[10]^=d(t[6]+t[2],18),t[3]^=d(t[15]+t[11],7),t[7]^=d(t[3]+t[15],9),t[11]^=d(t[7]+t[3],13),t[15]^=d(t[11]+t[7],18),t[1]^=d(t[0]+t[3],7),t[2]^=d(t[1]+t[0],9),t[3]^=d(t[2]+t[1],13),t[0]^=d(t[3]+t[2],18),t[6]^=d(t[5]+t[4],7),t[7]^=d(t[6]+t[5],9),t[4]^=d(t[7]+t[6],13),t[5]^=d(t[4]+t[7],18),t[11]^=d(t[10]+t[9],7),t[8]^=d(t[11]+t[10],9),t[9]^=d(t[8]+t[11],13),t[10]^=d(t[9]+t[8],18),t[12]^=d(t[15]+t[14],7),t[13]^=d(t[12]+t[15],9),t[14]^=d(t[13]+t[12],13),t[15]^=d(t[14]+t[13],18);for(let i=0;i<16;++i)e[i]+=t[i]}function h(e,t,r,n){for(let i=0;i<n;i++)r[i]^=e[t+i]}function m(e,t,r,n,o){for(;o--;)r[n++]=e[t++]}function y(e){if(!e||"number"!=typeof e.length)return!1;for(let i=0;i<e.length;i++){const t=e[i];if("number"!=typeof t||t%1||t<0||t>=256)return!1}return!0}function v(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function T(e,r,o,d,p,f,T){if(o=v(o,"N"),d=v(d,"r"),p=v(p,"p"),f=v(f,"dkLen"),0===o||0!=(o&o-1))throw new Error("N must be power of 2");if(o>n/128/d)throw new Error("N too large");if(d>n/128/p)throw new Error("r too large");if(!y(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!y(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let b=c(e,r,128*p*d);const w=new Uint32Array(32*p*d);for(let i=0;i<w.length;i++){const e=4*i;w[i]=(255&b[e+3])<<24|(255&b[e+2])<<16|(255&b[e+1])<<8|(255&b[e+0])<<0}const A=new Uint32Array(64*d),E=new Uint32Array(32*d*o),S=32*d,O=new Uint32Array(16),_=new Uint32Array(16),M=p*o*2;let k,C,P=0,F=null,L=!1,R=0,B=0;const N=T?parseInt(1e3/d):4294967295,x=void 0!==t?t:setTimeout,j=function(){if(L)return T(new Error("cancelled"),P/M);let t;switch(R){case 0:C=32*B*d,m(w,C,A,0,S),R=1,k=0;case 1:t=o-k,t>N&&(t=N);for(let i=0;i<t;i++)m(A,0,E,(k+i)*S,S),l(A,S,d,O,_);if(k+=t,P+=t,T){const e=parseInt(1e3*P/M);if(e!==F){if(L=T(null,P/M),L)break;F=e}}if(k<o)break;k=0,R=2;case 2:t=o-k,t>N&&(t=N);for(let i=0;i<t;i++){const e=A[16*(2*d-1)]&o-1;h(E,e*S,A,S),l(A,S,d,O,_)}if(k+=t,P+=t,T){const e=parseInt(1e3*P/M);if(e!==F){if(L=T(null,P/M),L)break;F=e}}if(k<o)break;if(m(A,0,w,C,S),B++,B<p){R=0;break}b=[];for(let i=0;i<w.length;i++)b.push(w[i]>>0&255),b.push(w[i]>>8&255),b.push(w[i]>>16&255),b.push(w[i]>>24&255);const r=c(e,b,f);return T&&T(null,1,r),r}T&&x(j)};if(!T)for(;;){const e=j();if(null!=e)return e}j()}const w={scrypt:function(e,t,r,n,p,o,c){return new Promise((function(l,d){let f=0;c&&c(0),T(e,t,r,n,p,o,(function(e,progress,t){if(e)d(e);else if(t)c&&1!==f&&c(1),l(new Uint8Array(t));else if(c&&progress!==f)return f=progress,c(progress)}))}))},syncScrypt:function(e,t,r,n,p,o){return new Uint8Array(T(e,t,r,n,p,o))}};e.exports=w}()}).call(this,r(157).setImmediate)},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return h}));var n=r(0),o=r(2),c=r(142);const l=new o.b(c.a);let d=null;try{if(d=window,null==d)throw new Error("try next")}catch(t){try{if(d=e,null==d)throw new Error("try next")}catch(e){d={}}}let f=d.crypto||d.msCrypto;function h(e){(e<=0||e>1024||e%1)&&l.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return f.getRandomValues(t),Object(n.a)(t)}f&&f.getRandomValues||(l.warn("WARNING: Missing strong random number source"),f={getRandomValues:function(e){return l.throwError("no secure random source avaialble",o.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(43))},,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(0);function o(e){e=atob(e);const data=[];for(let i=0;i<e.length;i++)data.push(e.charCodeAt(i));return Object(n.a)(data)}function c(data){data=Object(n.a)(data);let e="";for(let i=0;i<data.length;i++)e+=String.fromCharCode(data[i]);return btoa(e)}},function(e,t,r){"use strict";r.r(t);var n=r(83);r.d(t,"decode",(function(){return n.a})),r.d(t,"encode",(function(){return n.b}))},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,c=Object.create(o.prototype),l=new N(n||[]);return c._invoke=function(e,t,r){var n=y;return function(o,c){if(n===T)throw new Error("Generator is already running");if(n===w){if("throw"===o)throw c;return j()}for(r.method=o,r.arg=c;;){var l=r.delegate;if(l){var d=L(l,r);if(d){if(d===A)continue;return d}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===y)throw n=w,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=T;var f=m(e,t,r);if("normal"===f.type){if(n=r.done?w:v,f.arg===A)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n=w,r.method="throw",r.arg=f.arg)}}}(e,r,l),c}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=h;var y="suspendedStart",v="suspendedYield",T="executing",w="completed",A={};function E(){}function S(){}function O(){}var _={};f(_,c,(function(){return this}));var M=Object.getPrototypeOf,k=M&&M(M(x([])));k&&k!==r&&n.call(k,c)&&(_=k);var C=O.prototype=E.prototype=Object.create(_);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function F(e,t){function r(o,c,l,d){var f=m(e[o],e,c);if("throw"!==f.type){var h=f.arg,y=h.value;return y&&"object"==typeof y&&n.call(y,"__await")?t.resolve(y.__await).then((function(e){r("next",e,l,d)}),(function(e){r("throw",e,l,d)})):t.resolve(y).then((function(e){h.value=e,l(h)}),(function(e){return r("throw",e,l,d)}))}d(f.arg)}var o;this._invoke=function(e,n){function c(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(c,c):c()}}function L(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return A;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=m(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,A;var c=o.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,A):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,A)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function x(e){if(e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:j}}function j(){return{value:t,done:!0}}return S.prototype=O,f(C,"constructor",O),f(O,"constructor",S),S.displayName=f(O,d,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,f(e,d,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},P(F.prototype),f(F.prototype,l,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,o,c){void 0===c&&(c=Promise);var l=new F(h(t,r,n,o),c);return e.isGeneratorFunction(r)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},P(C),f(C,d,"Generator"),f(C,c,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),e.keys=function(object){var e=[];for(var t in object)e.push(t);return e.reverse(),function t(){for(;e.length;){var r=e.pop();if(r in object)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=x,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],l=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var d=n.call(c,"catchLoc"),f=n.call(c,"finallyLoc");if(d&&f){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(d){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),B(t),A}},catch:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var n=r.arg;B(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),A}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(23),o=r(33),c=n.document,l=o(c)&&o(c.createElement);e.exports=function(e){return l?c.createElement(e):{}}},function(e,t,r){var n=r(113),o=r(115),c=r(44),l=r(64),d=r(116),f=[].push,h=function(e){var t=1==e,r=2==e,h=3==e,m=4==e,y=6==e,v=7==e,T=5==e||y;return function(w,A,E,S){for(var O,_,M=c(w),k=o(M),C=n(A,E,3),P=l(k.length),F=0,L=S||d,R=t?L(w,P):r||v?L(w,0):void 0;P>F;F++)if((T||F in k)&&(_=C(O=k[F],F,M),e))if(t)R[F]=_;else if(_)switch(e){case 3:return!0;case 5:return O;case 6:return F;case 2:f.call(R,O)}else switch(e){case 4:return!1;case 7:f.call(R,O)}return y?-1:h||m?m:R}};e.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},function(e,t,r){var n=r(24),o=r(18),c=r(66),l=r(45),d=r(95),f=[],h=l("Reflect","construct"),m=/^\s*(?:class|function)\b/,y=m.exec,v=!m.exec((function(){})),T=function(e){if(!o(e))return!1;try{return h(Object,f,e),!0}catch(e){return!1}};e.exports=!h||n((function(){var e;return T(T.call)||!T(Object)||!T((function(){e=!0}))||e}))?function(e){if(!o(e))return!1;switch(c(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v||!!y.call(m,d(e))}:T},function(e,t,r){var n={};n[r(19)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(67),o=r(91);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(23),o=r(92),c="__core-js_shared__",l=n[c]||o(c,{});e.exports=l},function(e,t,r){var n=r(23);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(118),o=r(24);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var symbol=Symbol();return!String(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){var n=r(18),o=r(91),c=Function.toString;n(o.inspectSource)||(o.inspectSource=function(e){return c.call(e)}),e.exports=o.inspectSource},function(e,t,r){var n=r(63);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!n.call({1:2},1);t.f=c?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n,o,c,l=r(168),d=r(23),f=r(33),h=r(59),m=r(29),y=r(91),v=r(70),T=r(71),w="Object already initialized",A=d.WeakMap;if(l||y.state){var E=y.state||(y.state=new A),S=E.get,O=E.has,_=E.set;n=function(e,t){if(O.call(E,e))throw new TypeError(w);return t.facade=e,_.call(E,e,t),t},o=function(e){return S.call(E,e)||{}},c=function(e){return O.call(E,e)}}else{var M=v("state");T[M]=!0,n=function(e,t){if(m(e,M))throw new TypeError(w);return t.facade=e,h(e,M,t),t},o=function(e){return m(e,M)?e[M]:{}},c=function(e){return m(e,M)}}e.exports={set:n,get:o,has:c,enforce:function(e){return c(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!f(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(30),o=r(29),c=Function.prototype,l=n&&Object.getOwnPropertyDescriptor,d=o(c,"name"),f=d&&"something"===function(){}.name,h=d&&(!n||n&&l(c,"name").configurable);e.exports={EXISTS:d,PROPER:f,CONFIGURABLE:h}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(35).f,o=r(29),c=r(19)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,c)&&n(e,c,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(68),o=r(35),c=r(60);e.exports=function(object,e,t){var r=n(e);r in object?o.f(object,r,c(0,t)):object[r]=t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(5),o=r(22);function c(text){return Object(n.a)(Object(o.f)(text))}},function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},c=0;c<n.length;c++){var l=n.charAt(c);if(void 0!==o[l])throw new TypeError(l+" is ambiguous");o[l]=c}function d(pre){var b=pre>>25;return(33554431&pre)<<5^996825010&-(b>>0&1)^642813549&-(b>>1&1)^513874426&-(b>>2&1)^1027748829&-(b>>3&1)^705979059&-(b>>4&1)}function f(e){for(var t=1,i=0;i<e.length;++i){var r=e.charCodeAt(i);if(r<33||r>126)return"Invalid prefix ("+e+")";t=d(t)^r>>5}for(t=d(t),i=0;i<e.length;++i){var n=e.charCodeAt(i);t=d(t)^31&n}return t}function h(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var c=(e=r).lastIndexOf("1");if(-1===c)return"No separator character for "+e;if(0===c)return"Missing prefix for "+e;var l=e.slice(0,c),h=e.slice(c+1);if(h.length<6)return"Data too short";var m=f(l);if("string"==typeof m)return m;for(var y=[],i=0;i<h.length;++i){var v=h.charAt(i),T=o[v];if(void 0===T)return"Unknown character "+v;m=d(m)^T,i+6>=h.length||y.push(T)}return 1!==m?"Invalid checksum for "+e:{prefix:l,words:y}}function m(data,e,t,r){for(var n=0,o=0,c=(1<<t)-1,l=[],i=0;i<data.length;++i)for(n=n<<e|data[i],o+=e;o>=t;)o-=t,l.push(n>>o&c);if(r)o>0&&l.push(n<<t-o&c);else{if(o>=e)return"Excess padding";if(n<<t-o&c)return"Non-zero padding"}return l}e.exports={decodeUnsafe:function(){var e=h.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=h.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");var o=f(e=e.toLowerCase());if("string"==typeof o)throw new Error(o);for(var c=e+"1",i=0;i<t.length;++i){var l=t[i];if(l>>5!=0)throw new Error("Non 5-bit word");o=d(o)^l,c+=n.charAt(l)}for(i=0;i<6;++i)o=d(o);for(o^=1,i=0;i<6;++i){c+=n.charAt(o>>5*(5-i)&31)}return c},toWordsUnsafe:function(e){var t=m(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=m(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=m(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=m(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=r(34).rotr32;function o(e,t,r){return e&t^~e&r}function c(e,t,r){return e&t^e&r^t&r}function l(e,t,r){return e^t^r}t.ft_1=function(s,e,t,r){return 0===s?o(e,t,r):1===s||3===s?l(e,t,r):2===s?c(e,t,r):void 0},t.ch32=o,t.maj32=c,t.p32=l,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(34),o=r(56),c=r(107),l=r(55),d=n.sum32,f=n.sum32_4,h=n.sum32_5,m=c.ch32,y=c.maj32,v=c.s0_256,T=c.s1_256,w=c.g0_256,A=c.g1_256,E=o.BlockHash,S=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function O(){if(!(this instanceof O))return new O;E.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=S,this.W=new Array(64)}n.inherits(O,E),e.exports=O,O.blockSize=512,O.outSize=256,O.hmacStrength=192,O.padLength=64,O.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=f(A(r[i-2]),r[i-7],w(r[i-15]),r[i-16]);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],c=this.h[4],E=this.h[5],g=this.h[6],S=this.h[7];for(l(this.k.length===r.length),i=0;i<r.length;i++){var O=h(S,T(c),m(c,E,g),this.k[i],r[i]),_=d(v(a),y(a,b,n));S=g,g=E,E=c,c=d(o,O),o=n,n=b,b=a,a=d(O,_)}this.h[0]=d(this.h[0],a),this.h[1]=d(this.h[1],b),this.h[2]=d(this.h[2],n),this.h[3]=d(this.h[3],o),this.h[4]=d(this.h[4],c),this.h[5]=d(this.h[5],E),this.h[6]=d(this.h[6],g),this.h[7]=d(this.h[7],S)},O.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(34),o=r(56),c=r(55),l=n.rotr64_hi,d=n.rotr64_lo,f=n.shr64_hi,h=n.shr64_lo,m=n.sum64,y=n.sum64_hi,v=n.sum64_lo,T=n.sum64_4_hi,w=n.sum64_4_lo,A=n.sum64_5_hi,E=n.sum64_5_lo,S=o.BlockHash,O=[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];function _(){if(!(this instanceof _))return new _;S.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=O,this.W=new Array(160)}function M(e,t,r,n,o){var c=e&r^~e&o;return c<0&&(c+=4294967296),c}function k(e,t,r,n,o,c){var l=t&n^~t&c;return l<0&&(l+=4294967296),l}function C(e,t,r,n,o){var c=e&r^e&o^r&o;return c<0&&(c+=4294967296),c}function P(e,t,r,n,o,c){var l=t&n^t&c^n&c;return l<0&&(l+=4294967296),l}function F(e,t){var r=l(e,t,28)^l(t,e,2)^l(t,e,7);return r<0&&(r+=4294967296),r}function L(e,t){var r=d(e,t,28)^d(t,e,2)^d(t,e,7);return r<0&&(r+=4294967296),r}function R(e,t){var r=l(e,t,14)^l(e,t,18)^l(t,e,9);return r<0&&(r+=4294967296),r}function B(e,t){var r=d(e,t,14)^d(e,t,18)^d(t,e,9);return r<0&&(r+=4294967296),r}function N(e,t){var r=l(e,t,1)^l(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=d(e,t,1)^d(e,t,8)^h(e,t,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=l(e,t,19)^l(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}function I(e,t){var r=d(e,t,19)^d(t,e,29)^h(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(_,S),e.exports=_,_.blockSize=1024,_.outSize=512,_.hmacStrength=192,_.padLength=128,_.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=j(r[i-4],r[i-3]),o=I(r[i-4],r[i-3]),c=r[i-14],l=r[i-13],d=N(r[i-30],r[i-29]),f=x(r[i-30],r[i-29]),h=r[i-32],m=r[i-31];r[i]=T(n,o,c,l,d,f,h,m),r[i+1]=w(n,o,c,l,d,f,h,m)}},_.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],f=this.h[4],h=this.h[5],T=this.h[6],dl=this.h[7],w=this.h[8],S=this.h[9],O=this.h[10],_=this.h[11],N=this.h[12],x=this.h[13],j=this.h[14],I=this.h[15];c(this.k.length===r.length);for(var i=0;i<r.length;i+=2){var J=j,D=I,X=R(w,S),G=B(w,S),H=M(w,S,O,_,N),U=k(w,S,O,_,N,x),V=this.k[i],z=this.k[i+1],Z=r[i],K=r[i+1],Q=A(J,D,X,G,H,U,V,z,Z,K),W=E(J,D,X,G,H,U,V,z,Z,K);J=F(n,o),D=L(n,o),X=C(n,o,l,d,f),G=P(n,o,l,d,f,h);var Y=y(J,D,X,G),$=v(J,D,X,G);j=N,I=x,N=O,x=_,O=w,_=S,w=y(T,dl,Q,W),S=v(dl,dl,Q,W),T=f,dl=h,f=l,h=d,l=n,d=o,n=y(Q,W,Y,$),o=v(Q,W,Y,$)}m(this.h,0,n,o),m(this.h,2,l,d),m(this.h,4,f,h),m(this.h,6,T,dl),m(this.h,8,w,S),m(this.h,10,O,_),m(this.h,12,N,x),m(this.h,14,j,I)},_.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t){var r,n,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function d(e){if(r===setTimeout)return setTimeout(e,0);if((r===c||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:c}catch(e){r=c}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var f,h=[],m=!1,y=-1;function v(){m&&f&&(m=!1,f.length?h=f.concat(h):y=-1,h.length&&T())}function T(){if(!m){var e=d(v);m=!0;for(var t=h.length;t;){for(f=h,h=[];++y<t;)f&&f[y].run();y=-1,t=h.length}f=null,m=!1,function(marker){if(n===clearTimeout)return clearTimeout(marker);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(marker);try{n(marker)}catch(e){try{return n.call(null,marker)}catch(e){return n.call(this,marker)}}}(e)}}function w(e,t){this.fun=e,this.array=t}function A(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];h.push(new w(e,t)),1!==h.length||m||d(T)},w.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=A,o.addListener=A,o.once=A,o.off=A,o.removeListener=A,o.removeAllListeners=A,o.emit=A,o.prependListener=A,o.prependOnceListener=A,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="0x0000000000000000000000000000000000000000000000000000000000000000"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="0x0000000000000000000000000000000000000000"},function(e,t,r){var n=r(63);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,r){return e.call(t,a,b,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return String(e)}catch(e){return"Object"}}},function(e,t,r){var n=r(24),o=r(57),c="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?c.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(164);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},function(e,t,r){var n=r(57);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n,o,c=r(23),l=r(119),d=c.process,f=c.Deno,h=d&&d.versions||f&&f.version,m=h&&h.v8;m?o=(n=m.split("."))[0]<4?1:n[0]+n[1]:l&&(!(n=l.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=l.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},function(e,t,r){var n=r(45);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(94);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(30),o=r(24),c=r(86);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(33),o=r(69),c=r(96),l=r(166),d=r(19)("toPrimitive");e.exports=function(input,e){if(!n(input)||o(input))return input;var t,r=c(input,d);if(r){if(void 0===e&&(e="default"),t=r.call(input,e),!n(t)||o(t))return t;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(input,e)}},function(e,t,r){var n=r(45),o=r(72),c=r(127),l=r(36);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(l(e)),r=c.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(29),o=r(38),c=r(125).indexOf,l=r(71);e.exports=function(object,e){var t,r=o(object),i=0,d=[];for(t in r)!n(l,t)&&n(r,t)&&d.push(t);for(;e.length>i;)n(r,t=e[i++])&&(~c(d,t)||d.push(t));return d}},function(e,t,r){var n=r(38),o=r(64),c=r(126),l=function(e){return function(t,r,l){var d,f=n(t),h=o(f.length),m=c(l,h);if(e&&r!=r){for(;h>m;)if((d=f[m++])!=d)return!0}else for(;h>m;m++)if((e||m in f)&&f[m]===r)return e||m||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},function(e,t,r){var n=r(65),o=Math.max,c=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):c(r,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(24),o=r(18),c=/#|\.prototype\./,l=function(e,t){var r=data[d(e)];return r==h||r!=f&&(o(t)?n(t):!!t)},d=l.normalize=function(e){return String(e).replace(c,".").toLowerCase()},data=l.data={},f=l.NATIVE="N",h=l.POLYFILL="P";e.exports=l},function(e,t,r){"use strict";var n=r(26),o=r(125).includes,c=r(172);n({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(e,t,r){"use strict";var n=r(26),o=r(175),c=r(58),l=r(61);n({target:"String",proto:!0,forced:!r(177)("includes")},{includes:function(e){return!!~l(c(this)).indexOf(l(o(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(19);t.f=n},function(e,t,r){var n=r(24),o=r(19),c=r(118),l=o("species");e.exports=function(e){return c>=51||!n((function(){var t=[];return(t.constructor={})[l]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){var n=r(66),o=r(96),c=r(74),l=r(19)("iterator");e.exports=function(e){if(null!=e)return o(e,l)||o(e,"@@iterator")||c[n(e)]}},function(e,t,r){"use strict";var n,o,c,l=r(24),d=r(18),f=r(51),h=r(135),m=r(50),y=r(19),v=r(67),T=y("iterator"),w=!1;[].keys&&("next"in(c=[].keys())?(o=h(h(c)))!==Object.prototype&&(n=o):w=!0),null==n||l((function(){var e={};return n[T].call(e)!==e}))?n={}:v&&(n=f(n)),d(n[T])||m(n,T,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:w}},function(e,t,r){var n=r(29),o=r(18),c=r(44),l=r(70),d=r(199),f=l("IE_PROTO"),h=Object.prototype;e.exports=d?Object.getPrototypeOf:function(e){var object=c(e);if(n(object,f))return object[f];var t=object.constructor;return o(t)&&object instanceof t?t.prototype:object instanceof Object?h:null}},function(e,t,r){var n=r(36),o=r(200);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,c){return n(r),o(c),t?e.call(r,c):r.__proto__=c,r}}():void 0)},function(e,t,r){var n=r(89),o=r(50),c=r(205);n||o(Object.prototype,"toString",c,{unsafe:!0})},function(e,t,r){var n=r(26),o=r(23),c=r(18),l=r(119),d=[].slice,f=function(e){return function(t,r){var n=arguments.length>2,o=n?d.call(arguments,2):void 0;return e(n?function(){(c(t)?t:Function(t)).apply(this,o)}:t,r)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(l)},{setTimeout:f(o.setTimeout),setInterval:f(o.setInterval)})},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return K}));var n=r(4),o=r.n(n),c=r(21),l=r.n(c);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function d(e,t,r){return r={path:t,exports:{},require:function(path,base){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==base&&r.path)}},e(r,r.exports),r.exports}var f=h;function h(e,t){if(!e)throw new Error(t||"Assertion failed")}h.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var m=d((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",i=0;i<e.length;i++)t+=n(e[i].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(i=0;i<e.length;i++){var n=e.charCodeAt(i),o=n>>8,c=255&n;o?r.push(o,c):r.push(c)}return r},r.zero2=n,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}})),y=d((function(e,t){var r=t;r.assert=f,r.toArray=m.toArray,r.zero2=m.zero2,r.toHex=m.toHex,r.encode=m.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<<t+1,c=e.clone(),i=0;i<n.length;i++){var l,d=c.andln(o-1);c.isOdd()?(l=d>(o>>1)-1?(o>>1)-d:d,c.isubn(l)):l=0,n[i]=l,c.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,o=0,c=0;e.cmpn(-o)>0||t.cmpn(-c)>0;){var l,d,f=e.andln(3)+o&3,h=t.andln(3)+c&3;3===f&&(f=-1),3===h&&(h=-1),l=0==(1&f)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==h?f:-f,r[0].push(l),d=0==(1&h)?0:3!==(n=t.andln(7)+c&7)&&5!==n||2!==f?h:-h,r[1].push(d),2*o===l+1&&(o=1-o),2*c===d+1&&(c=1-c),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o.a(e,"hex","le")}})),v=y.getNAF,T=y.getJSF,w=y.assert;function A(e,t){this.type=e,this.p=new o.a(t.p,16),this.red=t.prime?o.a.red(t.prime):o.a.mont(this.p),this.zero=new o.a(0).toRed(this.red),this.one=new o.a(1).toRed(this.red),this.two=new o.a(2).toRed(this.red),this.n=t.n&&new o.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base=A;function E(e,t){this.curve=e,this.type=t,this.precomputed=null}A.prototype.point=function(){throw new Error("Not implemented")},A.prototype.validate=function(){throw new Error("Not implemented")},A.prototype._fixedNafMul=function(p,e){w(p.precomputed);var t=p._getDoubles(),r=v(e,1,this._bitLength),n=(1<<t.step+1)-(t.step%2==0?2:1);n/=3;var o,c,l=[];for(o=0;o<r.length;o+=t.step){c=0;for(var d=o+t.step-1;d>=o;d--)c=(c<<1)+r[d];l.push(c)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=n;i>0;i--){for(o=0;o<l.length;o++)(c=l[o])===i?b=b.mixedAdd(t.points[o]):c===-i&&(b=b.mixedAdd(t.points[o].neg()));a=a.add(b)}return a.toP()},A.prototype._wnafMul=function(p,e){var t=4,r=p._getNAFPoints(t);t=r.wnd;for(var n=r.points,o=v(e,t,this._bitLength),c=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(var l=0;i>=0&&0===o[i];i--)l++;if(i>=0&&l++,c=c.dblp(l),i<0)break;var d=o[i];w(0!==d),c="affine"===p.type?d>0?c.mixedAdd(n[d-1>>1]):c.mixedAdd(n[-d-1>>1].neg()):d>0?c.add(n[d-1>>1]):c.add(n[-d-1>>1].neg())}return"affine"===p.type?c.toP():c},A.prototype._wnafMulAdd=function(e,t,r,n,o){var i,c,p,l=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(i=0;i<n;i++){var m=(p=t[i])._getNAFPoints(e);l[i]=m.wnd,d[i]=m.points}for(i=n-1;i>=1;i-=2){var a=i-1,b=i;if(1===l[a]&&1===l[b]){var y=[t[a],null,null,t[b]];0===t[a].y.cmp(t[b].y)?(y[1]=t[a].add(t[b]),y[2]=t[a].toJ().mixedAdd(t[b].neg())):0===t[a].y.cmp(t[b].y.redNeg())?(y[1]=t[a].toJ().mixedAdd(t[b]),y[2]=t[a].add(t[b].neg())):(y[1]=t[a].toJ().mixedAdd(t[b]),y[2]=t[a].toJ().mixedAdd(t[b].neg()));var w=[-3,-1,-5,-7,0,7,5,1,3],A=T(r[a],r[b]);for(h=Math.max(A[0].length,h),f[a]=new Array(h),f[b]=new Array(h),c=0;c<h;c++){var E=0|A[0][c],S=0|A[1][c];f[a][c]=w[3*(E+1)+(S+1)],f[b][c]=0,d[a]=y}}else f[a]=v(r[a],l[a],this._bitLength),f[b]=v(r[b],l[b],this._bitLength),h=Math.max(f[a].length,h),h=Math.max(f[b].length,h)}var O=this.jpoint(null,null,null),_=this._wnafT4;for(i=h;i>=0;i--){for(var M=0;i>=0;){var k=!0;for(c=0;c<n;c++)_[c]=0|f[c][i],0!==_[c]&&(k=!1);if(!k)break;M++,i--}if(i>=0&&M++,O=O.dblp(M),i<0)break;for(c=0;c<n;c++){var C=_[c];0!==C&&(C>0?p=d[c][C-1>>1]:C<0&&(p=d[c][-C-1>>1].neg()),O="affine"===p.type?O.mixedAdd(p):O.add(p))}}for(i=0;i<n;i++)d[i]=null;return o?O:O.toP()},A.BasePoint=E,E.prototype.eq=function(){throw new Error("Not implemented")},E.prototype.validate=function(){return this.curve.validate(this)},A.prototype.decodePoint=function(e,t){e=y.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?w(e[e.length-1]%2==0):7===e[0]&&w(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},E.prototype.encodeCompressed=function(e){return this.encode(e,!0)},E.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},E.prototype.encode=function(e,t){return y.encode(this._encode(t),e)},E.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},E.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},E.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},E.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},E.prototype._getBeta=function(){return null},E.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t};var S=d((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),O=y.assert;function _(e){base.call(this,"short",e),this.a=new o.a(e.a,16).toRed(this.red),this.b=new o.a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}S(_,base);var M=_;function k(e,t,r,n){base.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o.a(t,16),this.y=new o.a(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function C(e,t,r,n){base.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o.a(0)):(this.x=new o.a(t,16),this.y=new o.a(r,16),this.z=new o.a(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}_.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o.a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o.a(e.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(t))?r=c[0]:(r=c[1],O(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new o.a(e.a,16),b:new o.a(e.b,16)}})):this._getEndoBasis(r)}}},_.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.a.mont(e),r=new o.a(2).toRed(t).redInvm(),n=r.redNeg(),s=new o.a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},_.prototype._getEndoBasis=function(e){for(var t,r,n,c,l,d,f,h,m,y=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,v=this.n.clone(),T=new o.a(1),w=new o.a(0),A=new o.a(0),E=new o.a(1),i=0;0!==u.cmpn(0);){var q=v.div(u);h=v.sub(q.mul(u)),m=A.sub(q.mul(T));var S=E.sub(q.mul(w));if(!n&&h.cmp(y)<0)t=f.neg(),r=T,n=h.neg(),c=m;else if(n&&2==++i)break;f=h,v=u,u=h,A=T,T=m,E=w,w=S}l=h.neg(),d=m;var O=n.sqr().add(c.sqr());return l.sqr().add(d.sqr()).cmp(O)>=0&&(l=t,d=r),n.negative&&(n=n.neg(),c=c.neg()),l.negative&&(l=l.neg(),d=d.neg()),[{a:n,b:c},{a:l,b:d}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),c=r.b.neg().mul(e).divRound(this.n),l=o.mul(r.a),d=c.mul(n.a),f=o.mul(r.b),h=c.mul(n.b);return{k1:e.sub(l).sub(d),k2:f.add(h).neg()}},_.prototype.pointFromX=function(e,t){(e=new o.a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var c=n.fromRed().isOdd();return(t&&!c||!t&&c)&&(n=n.redNeg()),this.point(e,n)},_.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var c=this._endoSplit(t[i]),p=e[i],l=p._getBeta();c.k1.negative&&(c.k1.ineg(),p=p.neg(!0)),c.k2.negative&&(c.k2.ineg(),l=l.neg(!0)),n[2*i]=p,n[2*i+1]=l,o[2*i]=c.k1,o[2*i+1]=c.k2}for(var d=this._wnafMulAdd(1,n,o,2*i,r),f=0;f<2*i;f++)n[f]=null,o[f]=null;return d},S(k,base.BasePoint),_.prototype.point=function(e,t,r){return new k(this,e,t,r)},_.prototype.pointFromJSON=function(e,t){return k.fromJSON(this,e,t)},k.prototype._getBeta=function(){if(this.curve.endo){var pre=this.precomputed;if(pre&&pre.beta)return pre.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var t=this.curve,r=function(p){return t.point(p.x.redMul(t.endo.beta),p.y)};pre.beta=e,e.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return e}},k.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},k.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function o(t){return e.point(t[0],t[1],r)}var pre=t[2];return n.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[n].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[n].concat(pre.naf.points.map(o))}},n},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var e=this.y.redSub(p.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(p.x).redInvm()));var t=e.redSqr().redISub(this.x).redISub(p.x),r=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,r)},k.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var a=this.curve.a,t=this.x.redSqr(),r=e.redInvm(),n=t.redAdd(t).redIAdd(t).redIAdd(a).redMul(r),o=n.redSqr().redISub(this.x.redAdd(this.x)),c=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,c)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new o.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},k.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},k.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var pre=this.precomputed,r=function(p){return p.neg()};t.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},S(C,base.BasePoint),_.prototype.jpoint=function(e,t,r){return new C(this,e,t,r)},C.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},C.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},C.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var e=p.z.redSqr(),t=this.z.redSqr(),r=this.x.redMul(e),n=p.x.redMul(t),o=this.y.redMul(e.redMul(p.z)),c=p.y.redMul(t.redMul(this.z)),l=r.redSub(n),d=o.redSub(c);if(0===l.cmpn(0))return 0!==d.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=l.redSqr(),h3=h2.redMul(l),f=r.redMul(h2),h=d.redSqr().redIAdd(h3).redISub(f).redISub(f),m=d.redMul(f.redISub(h)).redISub(o.redMul(h3)),y=this.z.redMul(p.z).redMul(l);return this.curve.jpoint(h,m,y)},C.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var e=this.z.redSqr(),t=this.x,r=p.x.redMul(e),n=this.y,o=p.y.redMul(e).redMul(this.z),c=t.redSub(r),l=n.redSub(o);if(0===c.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=c.redSqr(),h3=h2.redMul(c),d=t.redMul(h2),f=l.redSqr().redIAdd(h3).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(n.redMul(h3)),m=this.z.redMul(c);return this.curve.jpoint(f,h,m)},C.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var i;if(this.curve.zeroA||this.curve.threeA){var t=this;for(i=0;i<e;i++)t=t.dbl();return t}var a=this.curve.a,r=this.curve.tinv,n=this.x,o=this.y,c=this.z,l=c.redSqr().redSqr(),d=o.redAdd(o);for(i=0;i<e;i++){var f=n.redSqr(),h=d.redSqr(),m=h.redSqr(),y=f.redAdd(f).redIAdd(f).redIAdd(a.redMul(l)),v=n.redMul(h),T=y.redSqr().redISub(v.redAdd(v)),w=v.redISub(T),A=y.redMul(w);A=A.redIAdd(A).redISub(m);var E=d.redMul(c);i+1<e&&(l=l.redMul(m)),n=T,c=E,d=A}return this.curve.jpoint(n,d.redMul(r),c)},C.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},C.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(c);s=s.redIAdd(s);var l=n.redAdd(n).redIAdd(n),d=l.redSqr().redISub(s).redISub(s),f=c.redIAdd(c);f=(f=f.redIAdd(f)).redIAdd(f),e=d,t=l.redMul(s.redISub(d)).redISub(f),r=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),b=this.y.redSqr(),h=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(h);m=m.redIAdd(m);var y=a.redAdd(a).redIAdd(a),v=y.redSqr(),T=h.redIAdd(h);T=(T=T.redIAdd(T)).redIAdd(T),e=v.redISub(m).redISub(m),t=y.redMul(m.redISub(e)).redISub(T),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},C.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(c);s=s.redIAdd(s);var l=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),d=l.redSqr().redISub(s).redISub(s);e=d;var f=c.redIAdd(c);f=(f=f.redIAdd(f)).redIAdd(f),t=l.redMul(s.redISub(d)).redISub(f),r=this.y.redAdd(this.y)}else{var h=this.z.redSqr(),m=this.y.redSqr(),y=this.x.redMul(m),v=this.x.redSub(h).redMul(this.x.redAdd(h));v=v.redAdd(v).redIAdd(v);var T=y.redIAdd(y),w=(T=T.redIAdd(T)).redAdd(T);e=v.redSqr().redISub(w),r=this.y.redAdd(this.z).redSqr().redISub(m).redISub(h);var A=m.redSqr();A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A),t=v.redMul(T.redISub(e)).redISub(A)}return this.curve.jpoint(e,t,r)},C.prototype._dbl=function(){var a=this.curve.a,e=this.x,t=this.y,r=this.z,n=r.redSqr().redSqr(),o=e.redSqr(),c=t.redSqr(),l=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(n)),d=e.redAdd(e),f=(d=d.redIAdd(d)).redMul(c),h=l.redSqr().redISub(f.redAdd(f)),m=f.redISub(h),y=c.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var v=l.redMul(m).redISub(y),T=t.redAdd(t).redMul(r);return this.curve.jpoint(h,v,T)},C.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),o=e.redAdd(e).redIAdd(e),c=o.redSqr(),l=this.x.redAdd(t).redSqr().redISub(e).redISub(n),d=(l=(l=(l=l.redIAdd(l)).redAdd(l).redIAdd(l)).redISub(c)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var u=o.redIAdd(l).redSqr().redISub(c).redISub(d).redISub(f),h=t.redMul(u);h=(h=h.redIAdd(h)).redIAdd(h);var m=this.x.redMul(d).redISub(h);m=(m=m.redIAdd(m)).redIAdd(m);var y=this.y.redMul(u.redMul(f.redISub(u)).redISub(l.redMul(d)));y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var v=this.z.redAdd(l).redSqr().redISub(r).redISub(d);return this.curve.jpoint(m,y,v)},C.prototype.mul=function(e,t){return e=new o.a(e,t),this.curve._wnafMul(this,e)},C.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var e=this.z.redSqr(),t=p.z.redSqr();if(0!==this.x.redMul(t).redISub(p.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),n=t.redMul(p.z);return 0===this.y.redMul(n).redISub(p.y.redMul(r)).cmpn(0)},C.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),o=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},C.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},C.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var P=d((function(e,t){var r=t;r.base=base,r.short=M,r.mont=null,r.edwards=null})),F=d((function(e,t){var pre,r=t,n=y.assert;function o(e){"short"===e.type?this.curve=new P.short(e):"edwards"===e.type?this.curve=new P.edwards(e):this.curve=new P.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:l.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:l.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:l.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:l.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:l.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{pre=null.crash()}catch(e){pre=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:l.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})}));function L(e){if(!(this instanceof L))return new L(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=m.toArray(e.entropy,e.entropyEnc||"hex"),r=m.toArray(e.nonce,e.nonceEnc||"hex"),n=m.toArray(e.pers,e.persEnc||"hex");f(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var R=L;L.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},L.prototype._hmac=function(){return new l.a.hmac(this.hash,this.K)},L.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},L.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=m.toArray(e,t),r=m.toArray(r,n),f(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},L.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=m.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var c=o.slice(0,e);return this._update(r),this._reseed++,m.encode(c,t)};var B=y.assert;function N(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var x=N;N.fromPublic=function(e,t,r){return t instanceof N?t:new N(e,{pub:t,pubEnc:r})},N.fromPrivate=function(e,t,r){return t instanceof N?t:new N(e,{priv:t,privEnc:r})},N.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},N.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},N.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},N.prototype._importPrivate=function(e,t){this.priv=new o.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},N.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?B(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||B(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},N.prototype.derive=function(e){return e.validate()||B(e.validate(),"public point not validated"),e.mul(this.priv).getX()},N.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},N.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},N.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var j=y.assert;function I(e,t){if(e instanceof I)return e;this._importDER(e,t)||(j(e.r&&e.s,"Signature without r or s"),this.r=new o.a(e.r,16),this.s=new o.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var J=I;function D(){this.place=0}function X(e,p){var t=e[p.place++];if(!(128&t))return t;var r=15&t;if(0===r||r>4)return!1;for(var n=0,i=0,o=p.place;i<r;i++,o++)n<<=8,n|=e[o],n>>>=0;return!(n<=127)&&(p.place=o,n)}function G(e){for(var i=0,t=e.length-1;!e[i]&&!(128&e[i+1])&&i<t;)i++;return 0===i?e:e.slice(i)}function H(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}I.prototype._importDER=function(data,e){data=y.toArray(data,e);var p=new D;if(48!==data[p.place++])return!1;var t=X(data,p);if(!1===t)return!1;if(t+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var r=X(data,p);if(!1===r)return!1;var n=data.slice(p.place,r+p.place);if(p.place+=r,2!==data[p.place++])return!1;var c=X(data,p);if(!1===c)return!1;if(data.length!==c+p.place)return!1;var s=data.slice(p.place,c+p.place);if(0===n[0]){if(!(128&n[1]))return!1;n=n.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new o.a(n),this.s=new o.a(s),this.recoveryParam=null,!0},I.prototype.toDER=function(e){var t=this.r.toArray(),s=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&s[0]&&(s=[0].concat(s)),t=G(t),s=G(s);!(s[0]||128&s[1]);)s=s.slice(1);var r=[2];H(r,t.length),(r=r.concat(t)).push(2),H(r,s.length);var n=r.concat(s),o=[48];return H(o,n.length),o=o.concat(n),y.encode(o,e)};var U=function(){throw new Error("unsupported")},V=y.assert;function z(e){if(!(this instanceof z))return new z(e);"string"==typeof e&&(V(Object.prototype.hasOwnProperty.call(F,e),"Unknown curve "+e),e=F[e]),e instanceof F.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}var Z=z;z.prototype.keyPair=function(e){return new x(this,e)},z.prototype.keyFromPrivate=function(e,t){return x.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return x.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={});for(var t=new R({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||U(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new o.a(2));;){var c=new o.a(t.generate(r));if(!(c.cmp(n)>0))return c.iaddn(1),this.keyFromPrivate(c)}},z.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},z.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new o.a(e,16));for(var c=this.n.byteLength(),l=t.getPrivate().toArray("be",c),d=e.toArray("be",c),f=new R({hash:this.hash,entropy:l,nonce:d,pers:n.pers,persEnc:n.persEnc||"utf8"}),h=this.n.sub(new o.a(1)),m=0;;m++){var y=n.k?n.k(m):new o.a(f.generate(this.n.byteLength()));if(!((y=this._truncateToN(y,!0)).cmpn(1)<=0||y.cmp(h)>=0)){var v=this.g.mul(y);if(!v.isInfinity()){var T=v.getX(),w=T.umod(this.n);if(0!==w.cmpn(0)){var s=y.invm(this.n).mul(w.mul(t.getPrivate()).iadd(e));if(0!==(s=s.umod(this.n)).cmpn(0)){var A=(v.getY().isOdd()?1:0)|(0!==T.cmp(w)?2:0);return n.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),A^=1),new J({r:w,s:s,recoveryParam:A})}}}}}},z.prototype.verify=function(e,t,r,n){e=this._truncateToN(new o.a(e,16)),r=this.keyFromPublic(r,n);var c=(t=new J(t,"hex")).r,s=t.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,l=s.invm(this.n),d=l.mul(e).umod(this.n),f=l.mul(c).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(d,r.getPublic(),f)).isInfinity()&&p.eqXToP(c):!(p=this.g.mulAdd(d,r.getPublic(),f)).isInfinity()&&0===p.getX().umod(this.n).cmp(c)},z.prototype.recoverPubKey=function(e,t,r,n){V((3&r)===r,"The recovery param is more than two bits"),t=new J(t,n);var c=this.n,l=new o.a(e),d=t.r,s=t.s,f=1&r,h=r>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");d=h?this.curve.pointFromX(d.add(this.curve.n),f):this.curve.pointFromX(d,f);var m=t.r.invm(c),y=c.sub(l).mul(m).umod(c),v=s.mul(m).umod(c);return this.g.mulAdd(y,d,v)},z.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new J(t,n)).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(r))return i}throw new Error("Unable to find valid recovery factor")};var K=d((function(e,t){var r=t;r.version="6.5.4",r.utils=y,r.rand=function(){throw new Error("unsupported")},r.curve=P,r.curves=F,r.ec=Z,r.eddsa=null})).ec}).call(this,r(43))},function(e,t,r){(function(t,r){!function(){"use strict";var n="object"==typeof window?window:{};!n.JS_SHA3_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(n=r);for(var o=!n.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,c="0123456789abcdef".split(""),l=[0,8,16,24],d=[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],f=[224,256,384,512],h=["hex","buffer","arrayBuffer","array"],m=function(e,t,r){return function(n){return new M(e,t,e).update(n)[r]()}},y=function(e,t,r){return function(n,o){return new M(e,t,o).update(n)[r]()}},v=function(e,t){var r=m(e,t,"hex");r.create=function(){return new M(e,t,e)},r.update=function(e){return r.create().update(e)};for(var i=0;i<h.length;++i){var n=h[i];r[n]=m(e,t,n)}return r},T=[{name:"keccak",padding:[1,256,65536,16777216],bits:f,createMethod:v},{name:"sha3",padding:[6,1536,393216,100663296],bits:f,createMethod:v},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=y(e,t,"hex");r.create=function(r){return new M(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var i=0;i<h.length;++i){var n=h[i];r[n]=y(e,t,n)}return r}}],w={},A=[],i=0;i<T.length;++i)for(var E=T[i],S=E.bits,O=0;O<S.length;++O){var _=E.name+"_"+S[O];A.push(_),w[_]=E.createMethod(S[O],E.padding)}function M(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}M.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var i,code,r=e.length,n=this.blocks,o=this.byteCount,c=this.blockCount,d=0,s=this.s;d<r;){if(this.reset)for(this.reset=!1,n[0]=this.block,i=1;i<c+1;++i)n[i]=0;if(t)for(i=this.start;d<r&&i<o;++d)n[i>>2]|=e[d]<<l[3&i++];else for(i=this.start;d<r&&i<o;++d)(code=e.charCodeAt(d))<128?n[i>>2]|=code<<l[3&i++]:code<2048?(n[i>>2]|=(192|code>>6)<<l[3&i++],n[i>>2]|=(128|63&code)<<l[3&i++]):code<55296||code>=57344?(n[i>>2]|=(224|code>>12)<<l[3&i++],n[i>>2]|=(128|code>>6&63)<<l[3&i++],n[i>>2]|=(128|63&code)<<l[3&i++]):(code=65536+((1023&code)<<10|1023&e.charCodeAt(++d)),n[i>>2]|=(240|code>>18)<<l[3&i++],n[i>>2]|=(128|code>>12&63)<<l[3&i++],n[i>>2]|=(128|code>>6&63)<<l[3&i++],n[i>>2]|=(128|63&code)<<l[3&i++]);if(this.lastByteIndex=i,i>=o){for(this.start=i-o,this.block=n[c],i=0;i<c;++i)s[i]^=n[i];k(s),this.reset=!0}else this.start=i}return this},M.prototype.finalize=function(){var e=this.blocks,i=this.lastByteIndex,t=this.blockCount,s=this.s;if(e[i>>2]|=this.padding[3&i],this.lastByteIndex===this.byteCount)for(e[0]=e[t],i=1;i<t+1;++i)e[i]=0;for(e[t-1]|=2147483648,i=0;i<t;++i)s[i]^=e[i];k(s)},M.prototype.toString=M.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,s=this.s,r=this.outputBlocks,n=this.extraBytes,i=0,o=0,l="";o<r;){for(i=0;i<t&&o<r;++i,++o)e=s[i],l+=c[e>>4&15]+c[15&e]+c[e>>12&15]+c[e>>8&15]+c[e>>20&15]+c[e>>16&15]+c[e>>28&15]+c[e>>24&15];o%t==0&&(k(s),i=0)}return n&&(e=s[i],n>0&&(l+=c[e>>4&15]+c[15&e]),n>1&&(l+=c[e>>12&15]+c[e>>8&15]),n>2&&(l+=c[e>>20&15]+c[e>>16&15])),l},M.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,s=this.s,r=this.outputBlocks,n=this.extraBytes,i=0,o=0,c=this.outputBits>>3;e=n?new ArrayBuffer(r+1<<2):new ArrayBuffer(c);for(var l=new Uint32Array(e);o<r;){for(i=0;i<t&&o<r;++i,++o)l[o]=s[i];o%t==0&&k(s)}return n&&(l[i]=s[i],e=e.slice(0,c)),e},M.prototype.buffer=M.prototype.arrayBuffer,M.prototype.digest=M.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,s=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,c=0,l=[];c<n;){for(i=0;i<r&&c<n;++i,++c)e=c<<2,t=s[i],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;c%r==0&&k(s)}return o&&(e=c<<2,t=s[i],o>0&&(l[e]=255&t),o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l};var k=function(s){var e,t,r,n,o,c,l,f,h,m,y,v,T,w,A,E,S,O,_,M,k,C,P,F,L,R,B,N,x,j,I,J,D,X,G,H,U,V,z,Z,K,Q,W,Y,$,ee,te,re,ne,ie,ae,oe,se,ue,ce,le,de,fe,he,pe,me,ye,ge;for(r=0;r<48;r+=2)n=s[0]^s[10]^s[20]^s[30]^s[40],o=s[1]^s[11]^s[21]^s[31]^s[41],c=s[2]^s[12]^s[22]^s[32]^s[42],l=s[3]^s[13]^s[23]^s[33]^s[43],f=s[4]^s[14]^s[24]^s[34]^s[44],h=s[5]^s[15]^s[25]^s[35]^s[45],m=s[6]^s[16]^s[26]^s[36]^s[46],y=s[7]^s[17]^s[27]^s[37]^s[47],e=(v=s[8]^s[18]^s[28]^s[38]^s[48])^(c<<1|l>>>31),t=(T=s[9]^s[19]^s[29]^s[39]^s[49])^(l<<1|c>>>31),s[0]^=e,s[1]^=t,s[10]^=e,s[11]^=t,s[20]^=e,s[21]^=t,s[30]^=e,s[31]^=t,s[40]^=e,s[41]^=t,e=n^(f<<1|h>>>31),t=o^(h<<1|f>>>31),s[2]^=e,s[3]^=t,s[12]^=e,s[13]^=t,s[22]^=e,s[23]^=t,s[32]^=e,s[33]^=t,s[42]^=e,s[43]^=t,e=c^(m<<1|y>>>31),t=l^(y<<1|m>>>31),s[4]^=e,s[5]^=t,s[14]^=e,s[15]^=t,s[24]^=e,s[25]^=t,s[34]^=e,s[35]^=t,s[44]^=e,s[45]^=t,e=f^(v<<1|T>>>31),t=h^(T<<1|v>>>31),s[6]^=e,s[7]^=t,s[16]^=e,s[17]^=t,s[26]^=e,s[27]^=t,s[36]^=e,s[37]^=t,s[46]^=e,s[47]^=t,e=m^(n<<1|o>>>31),t=y^(o<<1|n>>>31),s[8]^=e,s[9]^=t,s[18]^=e,s[19]^=t,s[28]^=e,s[29]^=t,s[38]^=e,s[39]^=t,s[48]^=e,s[49]^=t,w=s[0],A=s[1],ee=s[11]<<4|s[10]>>>28,te=s[10]<<4|s[11]>>>28,N=s[20]<<3|s[21]>>>29,x=s[21]<<3|s[20]>>>29,pe=s[31]<<9|s[30]>>>23,me=s[30]<<9|s[31]>>>23,Q=s[40]<<18|s[41]>>>14,W=s[41]<<18|s[40]>>>14,X=s[2]<<1|s[3]>>>31,G=s[3]<<1|s[2]>>>31,E=s[13]<<12|s[12]>>>20,S=s[12]<<12|s[13]>>>20,re=s[22]<<10|s[23]>>>22,ne=s[23]<<10|s[22]>>>22,j=s[33]<<13|s[32]>>>19,I=s[32]<<13|s[33]>>>19,ye=s[42]<<2|s[43]>>>30,ge=s[43]<<2|s[42]>>>30,ue=s[5]<<30|s[4]>>>2,ce=s[4]<<30|s[5]>>>2,H=s[14]<<6|s[15]>>>26,U=s[15]<<6|s[14]>>>26,O=s[25]<<11|s[24]>>>21,_=s[24]<<11|s[25]>>>21,ie=s[34]<<15|s[35]>>>17,ae=s[35]<<15|s[34]>>>17,J=s[45]<<29|s[44]>>>3,D=s[44]<<29|s[45]>>>3,F=s[6]<<28|s[7]>>>4,L=s[7]<<28|s[6]>>>4,le=s[17]<<23|s[16]>>>9,de=s[16]<<23|s[17]>>>9,V=s[26]<<25|s[27]>>>7,z=s[27]<<25|s[26]>>>7,M=s[36]<<21|s[37]>>>11,k=s[37]<<21|s[36]>>>11,oe=s[47]<<24|s[46]>>>8,se=s[46]<<24|s[47]>>>8,Y=s[8]<<27|s[9]>>>5,$=s[9]<<27|s[8]>>>5,R=s[18]<<20|s[19]>>>12,B=s[19]<<20|s[18]>>>12,fe=s[29]<<7|s[28]>>>25,he=s[28]<<7|s[29]>>>25,Z=s[38]<<8|s[39]>>>24,K=s[39]<<8|s[38]>>>24,C=s[48]<<14|s[49]>>>18,P=s[49]<<14|s[48]>>>18,s[0]=w^~E&O,s[1]=A^~S&_,s[10]=F^~R&N,s[11]=L^~B&x,s[20]=X^~H&V,s[21]=G^~U&z,s[30]=Y^~ee&re,s[31]=$^~te&ne,s[40]=ue^~le&fe,s[41]=ce^~de&he,s[2]=E^~O&M,s[3]=S^~_&k,s[12]=R^~N&j,s[13]=B^~x&I,s[22]=H^~V&Z,s[23]=U^~z&K,s[32]=ee^~re&ie,s[33]=te^~ne&ae,s[42]=le^~fe&pe,s[43]=de^~he&me,s[4]=O^~M&C,s[5]=_^~k&P,s[14]=N^~j&J,s[15]=x^~I&D,s[24]=V^~Z&Q,s[25]=z^~K&W,s[34]=re^~ie&oe,s[35]=ne^~ae&se,s[44]=fe^~pe&ye,s[45]=he^~me&ge,s[6]=M^~C&w,s[7]=k^~P&A,s[16]=j^~J&F,s[17]=I^~D&L,s[26]=Z^~Q&X,s[27]=K^~W&G,s[36]=ie^~oe&Y,s[37]=ae^~se&$,s[46]=pe^~ye&ue,s[47]=me^~ge&ce,s[8]=C^~w&E,s[9]=P^~A&S,s[18]=J^~F&R,s[19]=D^~L&B,s[28]=Q^~X&H,s[29]=W^~G&U,s[38]=oe^~Y&ee,s[39]=se^~$&te,s[48]=ye^~ue&le,s[49]=ge^~ce&de,s[0]^=d[r],s[1]^=d[r+1]};if(o)e.exports=w;else for(i=0;i<A.length;++i)n[A[i]]=w[A[i]]}()}).call(this,r(110),r(43))},function(e,t,r){"use strict";var n;r.d(t,"a",(function(){return n})),function(e){e.sha256="sha256",e.sha512="sha512"}(n||(n={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="random/5.4.0"},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";r.d(t,"a",(function(){return w}));var n=r(22);function o(data,e){e||(e=function(e){return[parseInt(e,16)]});let t=0,r={};return data.split(",").forEach((n=>{let o=n.split(":");t+=parseInt(o[0],16),r[t]=e(o[1])})),r}function c(data){let e=0;return data.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}function l(e,t){let r=0;for(let i=0;i<t.length;i++){let n=t[i];if(r+=n.l,e>=r&&e<=r+n.h&&(e-r)%(n.d||1)==0){if(n.e&&-1!==n.e.indexOf(e-r))continue;return n}}return null}const d=c("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),f="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),h=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],m=o("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),y=o("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),v=o("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(data){if(data.length%4!=0)throw new Error("bad data");let e=[];for(let i=0;i<data.length;i+=4)e.push(parseInt(data.substring(i,i+4),16));return e})),T=c("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function w(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();let t=Object(n.g)(e);var r;r=t.map((code=>{if(f.indexOf(code)>=0)return[];if(code>=65024&&code<=65039)return[];let e=function(e){let t=l(e,h);if(t)return[e+t.s];let r=m[e];if(r)return r;let n=y[e];return n?[e+n[0]]:v[e]||null}(code);return e||[code]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=Object(n.g)(Object(n.e)(t),n.a.NFKC),t.forEach((code=>{if(l(code,T))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((code=>{if(l(code,d))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let o=Object(n.e)(t);if("-"===o.substring(0,1)||"--"===o.substring(2,4)||"-"===o.substring(o.length-1))throw new Error("invalid hyphen");if(o.length>63)throw new Error("too long");return o}},function(e,t,r){"use strict";r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return m})),r.d(t,"d",(function(){return y})),r.d(t,"a",(function(){return v}));var n=r(21),o=r.n(n),c=r(0),l=r(141),d=r(2);const f=new d.b("sha2/5.4.0");function h(data){return"0x"+o.a.ripemd160().update(Object(c.a)(data)).digest("hex")}function m(data){return"0x"+o.a.sha256().update(Object(c.a)(data)).digest("hex")}function y(data){return"0x"+o.a.sha512().update(Object(c.a)(data)).digest("hex")}function v(e,t,data){return l.a[e]||f.throwError("unsupported algorithm "+e,d.b.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+o.a.hmac(o.a[e],Object(c.a)(t)).update(Object(c.a)(data)).digest("hex")}},function(e,t,r){const{isEmpty:n}=r(148),{BigNumber:o}=r(20),{IndexedDB:c}=r(213),{sleep:l}=r(186),{workerEvents:d,numbers:f}=r(47),{ExtendedProvider:h}=r(212),{POOL_CONTRACT:m,RPC_LIST:y,FALLBACK_RPC_LIST:v}=r(209),{TornadoPool__factory:T}=r(210),w=e=>{self.chainId=e;const t=(e=>new h(y[e],e,v[e]))(e);A(e,t),(async()=>{try{const e=new c({stores:[{keyPath:"nullifier",name:"nullifier_events_100",indexes:[{name:"transactionHash",unique:!1}]}],dbName:"tornado_pool_nullifier"});await e.initDB(),self.$indexedDB=e}catch(e){console.log("err",e.message)}})()},A=(e,t)=>{self.poolContract=T.connect(m[e],t)},E=async(e,t=!0)=>{let r={blockFrom:f.DEPLOYED_BLOCK,cachedEvents:[]};try{if(e&&e.length){const[t]=e.sort(((a,b)=>b.blockNumber-a.blockNumber)),n=await self.poolContract.provider.getBlockNumber(),o=Number(t.blockNumber)+f.ONE;t.blockNumber===n&&(r.blockFrom=f.DEPLOYED_BLOCK),r.blockFrom=o>n?n:o,r.cachedEvents=e}else r=await(async()=>{let e=f.DEPLOYED_BLOCK;self.$indexedDB||await l(f.RECALL_DELAY);const t=await self.$indexedDB.getAll({storeName:"nullifier_events_100"});if(t&&t.length){const[r]=t.sort(((a,b)=>b.blockNumber-a.blockNumber)),n=await self.poolContract.provider.getBlockNumber(),o=Number(r.blockNumber)+f.ONE;if(r.blockNumber===n)return{blockFrom:e,cachedEvents:t};e=o>n?n:o}return{blockFrom:e,cachedEvents:t}})();const{blockFrom:o=f.DEPLOYED_BLOCK,cachedEvents:c=[]}=r,d=await(async e=>{try{const filter=self.poolContract.filters.NewNullifier();return(await self.poolContract.queryFilter(filter,e)).map((({blockNumber:e,transactionHash:t,args:r})=>({blockNumber:e,transactionHash:t,nullifier:r.nullifier})))}catch(e){return console.error("getNullifiers",e.message),[]}})(o);return d.length&&(async({events:e})=>{try{if(await O()||!_()||n(e))return;self.$indexedDB.createMultipleTransactions({data:e,storeName:"nullifier_events_100"})}catch(e){console.error(`saveEvents has error: ${e.message}`)}})({events:d}),t?c.concat(d):d}catch(e){throw new Error(`Method getNullifierEvents has error: ${e.message}`)}},S=async({cachedNullifiers:e,decryptedEvents:t})=>{try{if(t.length===f.ZERO)return{unspentUtxo:[],totalAmount:0};const r=await E(e);let n=o.from("0");const c=[],l=await Promise.all(t.map((e=>(async(e,t)=>{try{const{nullifierHash:r}=e;if(await O()&&await self.$indexedDB.getFromIndex({key:r,indexName:"nullifier",storeName:"nullifier_events_100"}))return;if(t.find((e=>e.nullifier===r)))return;return e}catch(e){throw new Error(`Method getNullifierEvent has error: ${e.message}`)}})(e,r))));return l.forEach((e=>{e&&!o.from(e.amount).isZero()&&(c.push(e),n=n.add(e.amount))})),{totalAmount:n,unspentUtxo:c}}catch(e){throw new Error(`Method checkUnspentEvents has error: ${e.message}`)}},O=async()=>(self.$indexedDB||await l(f.RECALL_DELAY),!self.$indexedDB||self.$indexedDB.isBlocked),_=()=>!!self.location.host.includes("compassionate-payne-b9dc6b.netlify.app")||["localhost:3000","nova.tornadocash.eth","nova.tornadocash.eth.link","nova.tornadocash.eth.limo"].includes(self.location.host);self.addEventListener("message",(({data:data,ports:e})=>{switch(self.postMessage(data),data.eventName){case d.INIT_WORKER:w(data.payload);break;case d.GET_NULLIFIER_EVENT:(async({cachedNullifiers:e,nullifierHash:t},[r])=>{try{const n=await self.$indexedDB.getFromIndex({key:t,indexName:"nullifier",storeName:"nullifier_events_100"});if(n)return void r.postMessage({result:n});const o=await E(e),[c]=o.filter((e=>e.nullifier===t));r.postMessage({result:c})}catch(e){r.postMessage({errorMessage:e.message})}})(data.payload,e);break;case d.UPDATE_NULLIFIER_EVENTS:(async(e,[t])=>{try{const r=await E(e);t.postMessage({result:r})}catch(e){t.postMessage({errorMessage:e.message})}})(data.payload,e);break;case d.GET_UNSPENT_EVENTS:(async({decryptedEvents:e,cachedNullifiers:t},[r])=>{try{const n=await S({decryptedEvents:e,cachedNullifiers:t});r.postMessage({result:n})}catch(e){r.postMessage({errorMessage:e.message})}})(data.payload,e);break;case d.GET_NULLIFIER_EVENTS_FROM_TX_HASH:(async({cachedNullifiers:e,txHash:t},[r])=>{try{const n=await self.$indexedDB.getAllFromIndex({key:t.toLowerCase(),indexName:"transactionHash",storeName:"nullifier_events_100"});if(n&&n.length>f.ZERO)return void r.postMessage({result:n});const o=(await E(e,!0)).filter((e=>e.transactionHash.toLowerCase()===t.toLowerCase()));r.postMessage({result:o})}catch(e){r.postMessage({errorMessage:e.message})}})(data.payload,e)}}),!1)},,function(e,t,r){(function(e,n){var o;(function(){var c,l="Expected a function",d="__lodash_hash_undefined__",f="__lodash_placeholder__",h=16,m=32,y=64,v=128,T=256,w=1/0,A=9007199254740991,E=NaN,S=4294967295,O=[["ary",v],["bind",1],["bindKey",2],["curry",8],["curryRight",h],["flip",512],["partial",m],["partialRight",y],["rearg",T]],_="[object Arguments]",M="[object Array]",k="[object Boolean]",C="[object Date]",P="[object Error]",F="[object Function]",L="[object GeneratorFunction]",R="[object Map]",B="[object Number]",N="[object Object]",x="[object Promise]",j="[object RegExp]",I="[object Set]",J="[object String]",D="[object Symbol]",X="[object WeakMap]",G="[object ArrayBuffer]",H="[object DataView]",U="[object Float32Array]",V="[object Float64Array]",z="[object Int8Array]",Z="[object Int16Array]",K="[object Int32Array]",Q="[object Uint8Array]",W="[object Uint8ClampedArray]",Y="[object Uint16Array]",$="[object Uint32Array]",ee=/\b__p \+= '';/g,te=/\b(__p \+=) '' \+/g,re=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ne=/&(?:amp|lt|gt|quot|#39);/g,ie=/[&<>"']/g,ae=RegExp(ne.source),oe=RegExp(ie.source),se=/<%-([\s\S]+?)%>/g,ue=/<%([\s\S]+?)%>/g,ce=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,de=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,he=/[\\^$.*+?()[\]{}|]/g,pe=RegExp(he.source),me=/^\s+/,ye=/\s/,ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,be=/\{\n\/\* \[wrapped with (.+)\] \*/,ve=/,? & /,Te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/[()=,{}\[\]\/\s]/,Ae=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Se=/\w*$/,Oe=/^[-+]0x[0-9a-f]+$/i,_e=/^0b[01]+$/i,Me=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,Ce=/^(?:0|[1-9]\d*)$/,Pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fe=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,Re="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Be="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Je="[']",De="[\\ud800-\\udfff]",Xe="["+Ie+"]",Ge="["+Re+"]",He="\\d+",Ue="[\\u2700-\\u27bf]",Ve="["+Ne+"]",ze="[^\\ud800-\\udfff"+Ie+He+Be+Ne+xe+"]",Ze="\\ud83c[\\udffb-\\udfff]",Ke="[^\\ud800-\\udfff]",qe="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+xe+"]",Ye="(?:"+Ve+"|"+ze+")",$e="(?:"+We+"|"+ze+")",et="(?:['](?:d|ll|m|re|s|t|ve))?",tt="(?:['](?:D|LL|M|RE|S|T|VE))?",nt="(?:"+Ge+"|"+Ze+")"+"?",it="[\\ufe0e\\ufe0f]?",at=it+nt+("(?:\\u200d(?:"+[Ke,qe,Qe].join("|")+")"+it+nt+")*"),ot="(?:"+[Ue,qe,Qe].join("|")+")"+at,st="(?:"+[Ke+Ge+"?",Ge,qe,Qe,De].join("|")+")",ut=RegExp(Je,"g"),ct=RegExp(Ge,"g"),lt=RegExp(Ze+"(?="+Ze+")|"+st+at,"g"),ft=RegExp([We+"?"+Ve+"+"+et+"(?="+[Xe,We,"$"].join("|")+")",$e+"+"+tt+"(?="+[Xe,We+Ye,"$"].join("|")+")",We+"?"+Ye+"+"+et,We+"+"+tt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",He,ot].join("|"),"g"),ht=RegExp("[\\u200d\\ud800-\\udfff"+Re+je+"]"),pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yt=-1,gt={};gt[U]=gt[V]=gt[z]=gt[Z]=gt[K]=gt[Q]=gt[W]=gt[Y]=gt[$]=!0,gt[_]=gt[M]=gt[G]=gt[k]=gt[H]=gt[C]=gt[P]=gt[F]=gt[R]=gt[B]=gt[N]=gt[j]=gt[I]=gt[J]=gt[X]=!1;var bt={};bt[_]=bt[M]=bt[G]=bt[H]=bt[k]=bt[C]=bt[U]=bt[V]=bt[z]=bt[Z]=bt[K]=bt[R]=bt[B]=bt[N]=bt[j]=bt[I]=bt[J]=bt[D]=bt[Q]=bt[W]=bt[Y]=bt[$]=!0,bt[P]=bt[F]=bt[X]=!1;var vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,wt=parseInt,At="object"==typeof e&&e&&e.Object===Object&&e,Et="object"==typeof self&&self&&self.Object===Object&&self,St=At||Et||Function("return this")(),Ot=t&&!t.nodeType&&t,_t=Ot&&"object"==typeof n&&n&&!n.nodeType&&n,Mt=_t&&_t.exports===Ot,kt=Mt&&At.process,Ct=function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||kt&&kt.binding&&kt.binding("util")}catch(e){}}(),Pt=Ct&&Ct.isArrayBuffer,Ft=Ct&&Ct.isDate,Lt=Ct&&Ct.isMap,Rt=Ct&&Ct.isRegExp,Bt=Ct&&Ct.isSet,Nt=Ct&&Ct.isTypedArray;function xt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function jt(e,t,r,n){for(var o=-1,c=null==e?0:e.length;++o<c;){var l=e[o];t(n,l,r(l),e)}return n}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Jt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Dt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Xt(e,t){for(var r=-1,n=null==e?0:e.length,o=0,c=[];++r<n;){var l=e[r];t(l,r,e)&&(c[o++]=l)}return c}function Gt(e,t){return!!(null==e?0:e.length)&&Yt(e,t,0)>-1}function Ht(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Ut(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Vt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function zt(e,t,r,n){var o=-1,c=null==e?0:e.length;for(n&&c&&(r=e[++o]);++o<c;)r=t(r,e[o],o,e);return r}function Zt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var qt=nr("length");function Qt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Wt(e,t,r,n){for(var o=e.length,c=r+(n?1:-1);n?c--:++c<o;)if(t(e[c],c,e))return c;return-1}function Yt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Wt(e,er,r)}function $t(e,t,r,n){for(var o=r-1,c=e.length;++o<c;)if(n(e[o],t))return o;return-1}function er(e){return e!=e}function rr(e,t){var r=null==e?0:e.length;return r?or(e,t)/r:E}function nr(e){return function(object){return null==object?c:object[e]}}function ir(object){return function(e){return null==object?c:object[e]}}function ar(e,t,r,n,o){return o(e,(function(e,o,c){r=n?(n=!1,e):t(r,e,o,c)})),r}function or(e,t){for(var r,n=-1,o=e.length;++n<o;){var l=t(e[n]);l!==c&&(r=r===c?l:r+l)}return r}function sr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function ur(e){return e?e.slice(0,kr(e)+1).replace(me,""):e}function cr(e){return function(t){return e(t)}}function lr(object,e){return Ut(e,(function(e){return object[e]}))}function dr(e,t){return e.has(t)}function fr(e,t){for(var r=-1,n=e.length;++r<n&&Yt(t,e[r],0)>-1;);return r}function pr(e,t){for(var r=e.length;r--&&Yt(t,e[r],0)>-1;);return r}function mr(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var yr=ir({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),gr=ir({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function vr(e){return"\\"+vt[e]}function Tr(e){return ht.test(e)}function wr(map){var e=-1,t=Array(map.size);return map.forEach((function(r,n){t[++e]=[n,r]})),t}function Ar(e,t){return function(r){return e(t(r))}}function Er(e,t){for(var r=-1,n=e.length,o=0,c=[];++r<n;){var l=e[r];l!==t&&l!==f||(e[r]=f,c[o++]=r)}return c}function Sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function Or(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function _r(e){return Tr(e)?function(e){var t=lt.lastIndex=0;for(;lt.test(e);)++t;return t}(e):qt(e)}function Mr(e){return Tr(e)?function(e){return e.match(lt)||[]}(e):function(e){return e.split("")}(e)}function kr(e){for(var t=e.length;t--&&ye.test(e.charAt(t)););return t}var Cr=ir({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Pr=function e(t){var r,n=(t=null==t?St:Pr.defaults(St.Object(),t,Pr.pick(St,mt))).Array,o=t.Date,ye=t.Error,Re=t.Function,Be=t.Math,Ne=t.Object,xe=t.RegExp,je=t.String,Ie=t.TypeError,Je=n.prototype,De=Re.prototype,Xe=Ne.prototype,Ge=t["__core-js_shared__"],He=De.toString,Ue=Xe.hasOwnProperty,Ve=0,ze=(r=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ze=Xe.toString,Ke=He.call(Ne),qe=St._,Qe=xe("^"+He.call(Ue).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=Mt?t.Buffer:c,Ye=t.Symbol,$e=t.Uint8Array,et=We?We.allocUnsafe:c,tt=Ar(Ne.getPrototypeOf,Ne),nt=Ne.create,it=Xe.propertyIsEnumerable,at=Je.splice,ot=Ye?Ye.isConcatSpreadable:c,st=Ye?Ye.iterator:c,lt=Ye?Ye.toStringTag:c,ht=function(){try{var e=Ma(Ne,"defineProperty");return e({},"",{}),e}catch(e){}}(),vt=t.clearTimeout!==St.clearTimeout&&t.clearTimeout,At=o&&o.now!==St.Date.now&&o.now,Et=t.setTimeout!==St.setTimeout&&t.setTimeout,Ot=Be.ceil,_t=Be.floor,kt=Ne.getOwnPropertySymbols,Ct=We?We.isBuffer:c,qt=t.isFinite,ir=Je.join,Fr=Ar(Ne.keys,Ne),Lr=Be.max,Rr=Be.min,Br=o.now,Nr=t.parseInt,xr=Be.random,jr=Je.reverse,Ir=Ma(t,"DataView"),Jr=Ma(t,"Map"),Dr=Ma(t,"Promise"),Xr=Ma(t,"Set"),Gr=Ma(t,"WeakMap"),Hr=Ma(Ne,"create"),Ur=Gr&&new Gr,Vr={},zr=eo(Ir),Zr=eo(Jr),Kr=eo(Dr),qr=eo(Xr),Qr=eo(Gr),Wr=Ye?Ye.prototype:c,Yr=Wr?Wr.valueOf:c,$r=Wr?Wr.toString:c;function en(e){if(ys(e)&&!as(e)&&!(e instanceof an)){if(e instanceof nn)return e;if(Ue.call(e,"__wrapped__"))return to(e)}return new nn(e)}var tn=function(){function object(){}return function(e){if(!ms(e))return{};if(nt)return nt(e);object.prototype=e;var t=new object;return object.prototype=c,t}}();function rn(){}function nn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=c}function an(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function on(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function sn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function un(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function cn(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new un;++t<r;)this.add(e[t])}function ln(e){var data=this.__data__=new sn(e);this.size=data.size}function dn(e,t){var r=as(e),n=!r&&is(e),o=!r&&!n&&cs(e),c=!r&&!n&&!o&&Ss(e),l=r||n||o||c,d=l?sr(e.length,je):[],f=d.length;for(var h in e)!t&&!Ue.call(e,h)||l&&("length"==h||o&&("offset"==h||"parent"==h)||c&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||Ba(h,f))||d.push(h);return d}function fn(e){var t=e.length;return t?e[ci(0,t-1)]:c}function hn(e,t){return Wa(Vi(e),An(t,0,e.length))}function pn(e){return Wa(Vi(e))}function mn(object,e,t){(t!==c&&!ts(object[e],t)||t===c&&!(e in object))&&Tn(object,e,t)}function yn(object,e,t){var r=object[e];Ue.call(object,e)&&ts(r,t)&&(t!==c||e in object)||Tn(object,e,t)}function gn(e,t){for(var r=e.length;r--;)if(ts(e[r][0],t))return r;return-1}function bn(e,t,r,n){return Mn(e,(function(e,o,c){t(n,e,r(e),c)})),n}function vn(object,source){return object&&zi(source,zs(source),object)}function Tn(object,e,t){"__proto__"==e&&ht?ht(object,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):object[e]=t}function wn(object,e){for(var t=-1,r=e.length,o=n(r),l=null==object;++t<r;)o[t]=l?c:Xs(object,e[t]);return o}function An(e,t,r){return e==e&&(r!==c&&(e=e<=r?e:r),t!==c&&(e=e>=t?e:t)),e}function En(e,t,r,n,object,o){var l,d=1&t,f=2&t,h=4&t;if(r&&(l=object?r(e,n,object,o):r(e)),l!==c)return l;if(!ms(e))return e;var m=as(e);if(m){if(l=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!d)return Vi(e,l)}else{var y=Pa(e),v=y==F||y==L;if(cs(e))return Ji(e,d);if(y==N||y==_||v&&!object){if(l=f||v?{}:La(e),!d)return f?function(source,object){return zi(source,Ca(source),object)}(e,function(object,source){return object&&zi(source,Zs(source),object)}(l,e)):function(source,object){return zi(source,ka(source),object)}(e,vn(l,e))}else{if(!bt[y])return object?e:{};l=function(object,e,t){var r=object.constructor;switch(e){case G:return Di(object);case k:case C:return new r(+object);case H:return function(e,t){var r=t?Di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(object,t);case U:case V:case z:case Z:case K:case Q:case W:case Y:case $:return Xi(object,t);case R:return new r;case B:case J:return new r(object);case j:return function(e){var t=new e.constructor(e.source,Se.exec(e));return t.lastIndex=e.lastIndex,t}(object);case I:return new r;case D:return symbol=object,Yr?Ne(Yr.call(symbol)):{}}var symbol}(e,y,d)}}o||(o=new ln);var T=o.get(e);if(T)return T;o.set(e,l),ws(e)?e.forEach((function(n){l.add(En(n,t,r,n,e,o))})):gs(e)&&e.forEach((function(n,c){l.set(c,En(n,t,r,c,e,o))}));var w=m?c:(h?f?Ta:va:f?Zs:zs)(e);return It(w||e,(function(n,c){w&&(n=e[c=n]),yn(l,c,En(n,t,r,c,e,o))})),l}function Sn(object,source,e){var t=e.length;if(null==object)return!t;for(object=Ne(object);t--;){var r=e[t],n=source[r],o=object[r];if(o===c&&!(r in object)||!n(o))return!1}return!0}function On(e,t,r){if("function"!=typeof e)throw new Ie(l);return Za((function(){e.apply(c,r)}),t)}function _n(e,t,r,n){var o=-1,c=Gt,l=!0,d=e.length,f=[],h=t.length;if(!d)return f;r&&(t=Ut(t,cr(r))),n?(c=Ht,l=!1):t.length>=200&&(c=dr,l=!1,t=new cn(t));e:for(;++o<d;){var m=e[o],y=null==r?m:r(m);if(m=n||0!==m?m:0,l&&y==y){for(var v=h;v--;)if(t[v]===y)continue e;f.push(m)}else c(t,y,n)||f.push(m)}return f}en.templateSettings={escape:se,evaluate:ue,interpolate:ce,variable:"",imports:{_:en}},en.prototype=rn.prototype,en.prototype.constructor=en,nn.prototype=tn(rn.prototype),nn.prototype.constructor=nn,an.prototype=tn(rn.prototype),an.prototype.constructor=an,on.prototype.clear=function(){this.__data__=Hr?Hr(null):{},this.size=0},on.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},on.prototype.get=function(e){var data=this.__data__;if(Hr){var t=data[e];return t===d?c:t}return Ue.call(data,e)?data[e]:c},on.prototype.has=function(e){var data=this.__data__;return Hr?data[e]!==c:Ue.call(data,e)},on.prototype.set=function(e,t){var data=this.__data__;return this.size+=this.has(e)?0:1,data[e]=Hr&&t===c?d:t,this},sn.prototype.clear=function(){this.__data__=[],this.size=0},sn.prototype.delete=function(e){var data=this.__data__,t=gn(data,e);return!(t<0)&&(t==data.length-1?data.pop():at.call(data,t,1),--this.size,!0)},sn.prototype.get=function(e){var data=this.__data__,t=gn(data,e);return t<0?c:data[t][1]},sn.prototype.has=function(e){return gn(this.__data__,e)>-1},sn.prototype.set=function(e,t){var data=this.__data__,r=gn(data,e);return r<0?(++this.size,data.push([e,t])):data[r][1]=t,this},un.prototype.clear=function(){this.size=0,this.__data__={hash:new on,map:new(Jr||sn),string:new on}},un.prototype.delete=function(e){var t=Oa(this,e).delete(e);return this.size-=t?1:0,t},un.prototype.get=function(e){return Oa(this,e).get(e)},un.prototype.has=function(e){return Oa(this,e).has(e)},un.prototype.set=function(e,t){var data=Oa(this,e),r=data.size;return data.set(e,t),this.size+=data.size==r?0:1,this},cn.prototype.add=cn.prototype.push=function(e){return this.__data__.set(e,d),this},cn.prototype.has=function(e){return this.__data__.has(e)},ln.prototype.clear=function(){this.__data__=new sn,this.size=0},ln.prototype.delete=function(e){var data=this.__data__,t=data.delete(e);return this.size=data.size,t},ln.prototype.get=function(e){return this.__data__.get(e)},ln.prototype.has=function(e){return this.__data__.has(e)},ln.prototype.set=function(e,t){var data=this.__data__;if(data instanceof sn){var r=data.__data__;if(!Jr||r.length<199)return r.push([e,t]),this.size=++data.size,this;data=this.__data__=new un(r)}return data.set(e,t),this.size=data.size,this};var Mn=qi(Nn),kn=qi(xn,!0);function Cn(e,t){var r=!0;return Mn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function Pn(e,t,r){for(var n=-1,o=e.length;++n<o;){var l=e[n],d=t(l);if(null!=d&&(f===c?d==d&&!Es(d):r(d,f)))var f=d,h=l}return h}function Fn(e,t){var r=[];return Mn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Ln(e,t,r,n,o){var c=-1,l=e.length;for(r||(r=Ra),o||(o=[]);++c<l;){var d=e[c];t>0&&r(d)?t>1?Ln(d,t-1,r,n,o):Vt(o,d):n||(o[o.length]=d)}return o}var Rn=Qi(),Bn=Qi(!0);function Nn(object,e){return object&&Rn(object,e,zs)}function xn(object,e){return object&&Bn(object,e,zs)}function jn(object,e){return Xt(e,(function(e){return fs(object[e])}))}function In(object,path){for(var e=0,t=(path=Ni(path,object)).length;null!=object&&e<t;)object=object[$a(path[e++])];return e&&e==t?object:c}function Jn(object,e,t){var r=e(object);return as(object)?r:Vt(r,t(object))}function Dn(e){return null==e?e===c?"[object Undefined]":"[object Null]":lt&&lt in Ne(e)?function(e){var t=Ue.call(e,lt),r=e[lt];try{e[lt]=c;var n=!0}catch(e){}var o=Ze.call(e);n&&(t?e[lt]=r:delete e[lt]);return o}(e):function(e){return Ze.call(e)}(e)}function Xn(e,t){return e>t}function Gn(object,e){return null!=object&&Ue.call(object,e)}function Hn(object,e){return null!=object&&e in Ne(object)}function Un(e,t,r){for(var o=r?Ht:Gt,l=e[0].length,d=e.length,f=d,h=n(d),m=1/0,y=[];f--;){var v=e[f];f&&t&&(v=Ut(v,cr(t))),m=Rr(v.length,m),h[f]=!r&&(t||l>=120&&v.length>=120)?new cn(f&&v):c}v=e[0];var T=-1,w=h[0];e:for(;++T<l&&y.length<m;){var A=v[T],E=t?t(A):A;if(A=r||0!==A?A:0,!(w?dr(w,E):o(y,E,r))){for(f=d;--f;){var S=h[f];if(!(S?dr(S,E):o(e[f],E,r)))continue e}w&&w.push(E),y.push(A)}}return y}function Vn(object,path,e){var t=null==(object=Ha(object,path=Ni(path,object)))?object:object[$a(fo(path))];return null==t?c:xt(t,object,e)}function zn(e){return ys(e)&&Dn(e)==_}function Zn(e,t,r,n,o){return e===t||(null==e||null==t||!ys(e)&&!ys(t)?e!=e&&t!=t:function(object,e,t,r,n,o){var l=as(object),d=as(e),f=l?M:Pa(object),h=d?M:Pa(e),m=(f=f==_?N:f)==N,y=(h=h==_?N:h)==N,v=f==h;if(v&&cs(object)){if(!cs(e))return!1;l=!0,m=!1}if(v&&!m)return o||(o=new ln),l||Ss(object)?ga(object,e,t,r,n,o):function(object,e,t,r,n,o,c){switch(t){case H:if(object.byteLength!=e.byteLength||object.byteOffset!=e.byteOffset)return!1;object=object.buffer,e=e.buffer;case G:return!(object.byteLength!=e.byteLength||!o(new $e(object),new $e(e)));case k:case C:case B:return ts(+object,+e);case P:return object.name==e.name&&object.message==e.message;case j:case J:return object==e+"";case R:var l=wr;case I:var d=1&r;if(l||(l=Sr),object.size!=e.size&&!d)return!1;var f=c.get(object);if(f)return f==e;r|=2,c.set(object,e);var h=ga(l(object),l(e),r,n,o,c);return c.delete(object),h;case D:if(Yr)return Yr.call(object)==Yr.call(e)}return!1}(object,e,f,t,r,n,o);if(!(1&t)){var T=m&&Ue.call(object,"__wrapped__"),w=y&&Ue.call(e,"__wrapped__");if(T||w){var A=T?object.value():object,E=w?e.value():e;return o||(o=new ln),n(A,E,t,r,o)}}if(!v)return!1;return o||(o=new ln),function(object,e,t,r,n,o){var l=1&t,d=va(object),f=d.length,h=va(e).length;if(f!=h&&!l)return!1;var m=f;for(;m--;){var y=d[m];if(!(l?y in e:Ue.call(e,y)))return!1}var v=o.get(object),T=o.get(e);if(v&&T)return v==e&&T==object;var w=!0;o.set(object,e),o.set(e,object);var A=l;for(;++m<f;){var E=object[y=d[m]],S=e[y];if(r)var O=l?r(S,E,y,e,object,o):r(E,S,y,object,e,o);if(!(O===c?E===S||n(E,S,t,r,o):O)){w=!1;break}A||(A="constructor"==y)}if(w&&!A){var _=object.constructor,M=e.constructor;_==M||!("constructor"in object)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof M&&M instanceof M||(w=!1)}return o.delete(object),o.delete(e),w}(object,e,t,r,n,o)}(e,t,r,n,Zn,o))}function Kn(object,source,e,t){var r=e.length,n=r,o=!t;if(null==object)return!n;for(object=Ne(object);r--;){var data=e[r];if(o&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++r<n;){var l=(data=e[r])[0],d=object[l],f=data[1];if(o&&data[2]){if(d===c&&!(l in object))return!1}else{var h=new ln;if(t)var m=t(d,f,l,object,source,h);if(!(m===c?Zn(f,d,3,t,h):m))return!1}}return!0}function qn(e){return!(!ms(e)||(t=e,ze&&ze in t))&&(fs(e)?Qe:Me).test(eo(e));var t}function Qn(e){return"function"==typeof e?e:null==e?bu:"object"==typeof e?as(e)?ri(e[0],e[1]):ti(e):Mu(e)}function Wn(object){if(!Ja(object))return Fr(object);var e=[];for(var t in Ne(object))Ue.call(object,t)&&"constructor"!=t&&e.push(t);return e}function Yn(object){if(!ms(object))return function(object){var e=[];if(null!=object)for(var t in Ne(object))e.push(t);return e}(object);var e=Ja(object),t=[];for(var r in object)("constructor"!=r||!e&&Ue.call(object,r))&&t.push(r);return t}function $n(e,t){return e<t}function ei(e,t){var r=-1,o=ss(e)?n(e.length):[];return Mn(e,(function(e,n,c){o[++r]=t(e,n,c)})),o}function ti(source){var e=_a(source);return 1==e.length&&e[0][2]?Xa(e[0][0],e[0][1]):function(object){return object===source||Kn(object,source,e)}}function ri(path,e){return xa(path)&&Da(e)?Xa($a(path),e):function(object){var t=Xs(object,path);return t===c&&t===e?Gs(object,path):Zn(e,t,3)}}function ni(object,source,e,t,r){object!==source&&Rn(source,(function(n,o){if(r||(r=new ln),ms(n))!function(object,source,e,t,r,n,o){var l=Va(object,e),d=Va(source,e),f=o.get(d);if(f)return void mn(object,e,f);var h=n?n(l,d,e+"",object,source,o):c,m=h===c;if(m){var y=as(d),v=!y&&cs(d),T=!y&&!v&&Ss(d);h=d,y||v||T?as(l)?h=l:us(l)?h=Vi(l):v?(m=!1,h=Ji(d,!0)):T?(m=!1,h=Xi(d,!0)):h=[]:vs(d)||is(d)?(h=l,is(l)?h=Ls(l):ms(l)&&!fs(l)||(h=La(d))):m=!1}m&&(o.set(d,h),r(h,d,t,n,o),o.delete(d));mn(object,e,h)}(object,source,o,e,ni,t,r);else{var l=t?t(Va(object,o),n,o+"",object,source,r):c;l===c&&(l=n),mn(object,o,l)}}),Zs)}function ii(e,t){var r=e.length;if(r)return Ba(t+=t<0?r:0,r)?e[t]:c}function ai(e,t,r){t=t.length?Ut(t,(function(e){return as(e)?function(t){return In(t,1===e.length?e[0]:e)}:e})):[bu];var n=-1;t=Ut(t,cr(Sa()));var o=ei(e,(function(e,r,o){var c=Ut(t,(function(t){return t(e)}));return{criteria:c,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(object,e){return function(object,e,t){var r=-1,n=object.criteria,o=e.criteria,c=n.length,l=t.length;for(;++r<c;){var d=Gi(n[r],o[r]);if(d)return r>=l?d:d*("desc"==t[r]?-1:1)}return object.index-e.index}(object,e,r)}))}function oi(object,e,t){for(var r=-1,n=e.length,o={};++r<n;){var path=e[r],c=In(object,path);t(c,path)&&mi(o,Ni(path,object),c)}return o}function si(e,t,r,n){var o=n?$t:Yt,c=-1,l=t.length,d=e;for(e===t&&(t=Vi(t)),r&&(d=Ut(e,cr(r)));++c<l;)for(var f=0,h=t[c],m=r?r(h):h;(f=o(d,m,f,n))>-1;)d!==e&&at.call(d,f,1),at.call(e,f,1);return e}function ui(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==c){var c=o;Ba(o)?at.call(e,o,1):Mi(e,o)}}return e}function ci(e,t){return e+_t(xr()*(t-e+1))}function di(e,t){var r="";if(!e||t<1||t>A)return r;do{t%2&&(r+=e),(t=_t(t/2))&&(e+=e)}while(t);return r}function fi(e,t){return Ka(Ga(e,t,bu),e+"")}function hi(e){return fn(tu(e))}function pi(e,t){var r=tu(e);return Wa(r,An(t,0,r.length))}function mi(object,path,e,t){if(!ms(object))return object;for(var r=-1,n=(path=Ni(path,object)).length,o=n-1,l=object;null!=l&&++r<n;){var d=$a(path[r]),f=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return object;if(r!=o){var h=l[d];(f=t?t(h,d,l):c)===c&&(f=ms(h)?h:Ba(path[r+1])?[]:{})}yn(l,d,f),l=l[d]}return object}var yi=Ur?function(e,data){return Ur.set(e,data),e}:bu,gi=ht?function(e,t){return ht(e,"toString",{configurable:!0,enumerable:!1,value:mu(t),writable:!0})}:bu;function bi(e){return Wa(tu(e))}function vi(e,t,r){var o=-1,c=e.length;t<0&&(t=-t>c?0:c+t),(r=r>c?c:r)<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var l=n(c);++o<c;)l[o]=e[o+t];return l}function Ti(e,t){var r;return Mn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function wi(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var c=n+o>>>1,l=e[c];null!==l&&!Es(l)&&(r?l<=t:l<t)?n=c+1:o=c}return o}return Ai(e,t,bu,r)}function Ai(e,t,r,n){var o=0,l=null==e?0:e.length;if(0===l)return 0;for(var d=(t=r(t))!=t,f=null===t,h=Es(t),m=t===c;o<l;){var y=_t((o+l)/2),v=r(e[y]),T=v!==c,w=null===v,A=v==v,E=Es(v);if(d)var S=n||A;else S=m?A&&(n||T):f?A&&T&&(n||!w):h?A&&T&&!w&&(n||!E):!w&&!E&&(n?v<=t:v<t);S?o=y+1:l=y}return Rr(l,4294967294)}function Ei(e,t){for(var r=-1,n=e.length,o=0,c=[];++r<n;){var l=e[r],d=t?t(l):l;if(!r||!ts(d,f)){var f=d;c[o++]=0===l?0:l}}return c}function Si(e){return"number"==typeof e?e:Es(e)?E:+e}function Oi(e){if("string"==typeof e)return e;if(as(e))return Ut(e,Oi)+"";if(Es(e))return $r?$r.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function _i(e,t,r){var n=-1,o=Gt,c=e.length,l=!0,d=[],f=d;if(r)l=!1,o=Ht;else if(c>=200){var h=t?null:da(e);if(h)return Sr(h);l=!1,o=dr,f=new cn}else f=t?[]:d;e:for(;++n<c;){var m=e[n],y=t?t(m):m;if(m=r||0!==m?m:0,l&&y==y){for(var v=f.length;v--;)if(f[v]===y)continue e;t&&f.push(y),d.push(m)}else o(f,y,r)||(f!==d&&f.push(y),d.push(m))}return d}function Mi(object,path){return null==(object=Ha(object,path=Ni(path,object)))||delete object[$a(fo(path))]}function ki(object,path,e,t){return mi(object,path,e(In(object,path)),t)}function Ci(e,t,r,n){for(var o=e.length,c=n?o:-1;(n?c--:++c<o)&&t(e[c],c,e););return r?vi(e,n?0:c,n?c+1:o):vi(e,n?c+1:0,n?o:c)}function Pi(e,t){var r=e;return r instanceof an&&(r=r.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,Vt([e],t.args))}),r)}function Fi(e,t,r){var o=e.length;if(o<2)return o?_i(e[0]):[];for(var c=-1,l=n(o);++c<o;)for(var d=e[c],f=-1;++f<o;)f!=c&&(l[c]=_n(l[c]||d,e[f],t,r));return _i(Ln(l,1),t,r)}function Li(e,t,r){for(var n=-1,o=e.length,l=t.length,d={};++n<o;){var f=n<l?t[n]:c;r(d,e[n],f)}return d}function Ri(e){return us(e)?e:[]}function Bi(e){return"function"==typeof e?e:bu}function Ni(e,object){return as(e)?e:xa(e,object)?[e]:Ya(Rs(e))}var xi=fi;function ji(e,t,r){var n=e.length;return r=r===c?n:r,!t&&r>=n?e:vi(e,t,r)}var Ii=vt||function(e){return St.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var r=e.length,n=et?et(r):new e.constructor(r);return e.copy(n),n}function Di(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Xi(e,t){var r=t?Di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Gi(e,t){if(e!==t){var r=e!==c,n=null===e,o=e==e,l=Es(e),d=t!==c,f=null===t,h=t==t,m=Es(t);if(!f&&!m&&!l&&e>t||l&&d&&h&&!f&&!m||n&&d&&h||!r&&h||!o)return 1;if(!n&&!l&&!m&&e<t||m&&r&&o&&!n&&!l||f&&r&&o||!d&&o||!h)return-1}return 0}function Hi(e,t,r,o){for(var c=-1,l=e.length,d=r.length,f=-1,h=t.length,m=Lr(l-d,0),y=n(h+m),v=!o;++f<h;)y[f]=t[f];for(;++c<d;)(v||c<l)&&(y[r[c]]=e[c]);for(;m--;)y[f++]=e[c++];return y}function Ui(e,t,r,o){for(var c=-1,l=e.length,d=-1,f=r.length,h=-1,m=t.length,y=Lr(l-f,0),v=n(y+m),T=!o;++c<y;)v[c]=e[c];for(var w=c;++h<m;)v[w+h]=t[h];for(;++d<f;)(T||c<l)&&(v[w+r[d]]=e[c++]);return v}function Vi(source,e){var t=-1,r=source.length;for(e||(e=n(r));++t<r;)e[t]=source[t];return e}function zi(source,e,object,t){var r=!object;object||(object={});for(var n=-1,o=e.length;++n<o;){var l=e[n],d=t?t(object[l],source[l],l,object,source):c;d===c&&(d=source[l]),r?Tn(object,l,d):yn(object,l,d)}return object}function Zi(e,t){return function(r,n){var o=as(r)?jt:bn,c=t?t():{};return o(r,e,Sa(n,2),c)}}function Ki(e){return fi((function(object,t){var r=-1,n=t.length,o=n>1?t[n-1]:c,l=n>2?t[2]:c;for(o=e.length>3&&"function"==typeof o?(n--,o):c,l&&Na(t[0],t[1],l)&&(o=n<3?c:o,n=1),object=Ne(object);++r<n;){var source=t[r];source&&e(object,source,r,o)}return object}))}function qi(e,t){return function(r,n){if(null==r)return r;if(!ss(r))return e(r,n);for(var o=r.length,c=t?o:-1,l=Ne(r);(t?c--:++c<o)&&!1!==n(l[c],c,l););return r}}function Qi(e){return function(object,t,r){for(var n=-1,o=Ne(object),c=r(object),l=c.length;l--;){var d=c[e?l:++n];if(!1===t(o[d],d,o))break}return object}}function Wi(e){return function(t){var r=Tr(t=Rs(t))?Mr(t):c,n=r?r[0]:t.charAt(0),o=r?ji(r,1).join(""):t.slice(1);return n[e]()+o}}function Yi(e){return function(t){return zt(fu(iu(t).replace(ut,"")),e,"")}}function $i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=tn(e.prototype),n=e.apply(r,t);return ms(n)?n:r}}function ea(e){return function(t,r,n){var o=Ne(t);if(!ss(t)){var l=Sa(r,3);t=zs(t),r=function(e){return l(o[e],e,o)}}var d=e(t,r,n);return d>-1?o[l?t[d]:d]:c}}function ta(e){return ba((function(t){var r=t.length,n=r,o=nn.prototype.thru;for(e&&t.reverse();n--;){var d=t[n];if("function"!=typeof d)throw new Ie(l);if(o&&!f&&"wrapper"==Aa(d))var f=new nn([],!0)}for(n=f?n:r;++n<r;){var h=Aa(d=t[n]),data="wrapper"==h?wa(d):c;f=data&&ja(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?f[Aa(data[0])].apply(f,data[3]):1==d.length&&ja(d)?f[h]():f.thru(d)}return function(){var e=arguments,n=e[0];if(f&&1==e.length&&as(n))return f.plant(n).value();for(var o=0,c=r?t[o].apply(this,e):n;++o<r;)c=t[o].call(this,c);return c}}))}function ra(e,t,r,o,l,d,f,h,m,y){var T=t&v,w=1&t,A=2&t,E=24&t,S=512&t,O=A?c:$i(e);return function c(){for(var v=arguments.length,_=n(v),M=v;M--;)_[M]=arguments[M];if(E)var k=Ea(c),C=mr(_,k);if(o&&(_=Hi(_,o,l,E)),d&&(_=Ui(_,d,f,E)),v-=C,E&&v<y){var P=Er(_,k);return ca(e,t,ra,c.placeholder,r,_,P,h,m,y-v)}var F=w?r:this,L=A?F[e]:e;return v=_.length,h?_=Ua(_,h):S&&v>1&&_.reverse(),T&&m<v&&(_.length=m),this&&this!==St&&this instanceof c&&(L=O||$i(L)),L.apply(F,_)}}function na(e,t){return function(object,r){return function(object,e,t,r){return Nn(object,(function(n,o,object){e(r,t(n),o,object)})),r}(object,e,t(r),{})}}function ia(e,t){return function(r,n){var o;if(r===c&&n===c)return t;if(r!==c&&(o=r),n!==c){if(o===c)return n;"string"==typeof r||"string"==typeof n?(r=Oi(r),n=Oi(n)):(r=Si(r),n=Si(n)),o=e(r,n)}return o}}function aa(e){return ba((function(t){return t=Ut(t,cr(Sa())),fi((function(r){var n=this;return e(t,(function(e){return xt(e,n,r)}))}))}))}function oa(e,t){var r=(t=t===c?" ":Oi(t)).length;if(r<2)return r?di(t,e):t;var n=di(t,Ot(e/_r(t)));return Tr(t)?ji(Mr(n),0,e).join(""):n.slice(0,e)}function sa(e){return function(t,r,o){return o&&"number"!=typeof o&&Na(t,r,o)&&(r=o=c),t=ks(t),r===c?(r=t,t=0):r=ks(r),function(e,t,r,o){for(var c=-1,l=Lr(Ot((t-e)/(r||1)),0),d=n(l);l--;)d[o?l:++c]=e,e+=r;return d}(t,r,o=o===c?t<r?1:-1:ks(o),e)}}function ua(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=Fs(t),r=Fs(r)),e(t,r)}}function ca(e,t,r,n,o,l,d,f,h,v){var T=8&t;t|=T?m:y,4&(t&=~(T?y:m))||(t&=-4);var w=[e,t,o,T?l:c,T?d:c,T?c:l,T?c:d,f,h,v],A=r.apply(c,w);return ja(e)&&za(A,w),A.placeholder=n,qa(A,e,t)}function la(e){var t=Be[e];return function(e,r){if(e=Fs(e),(r=null==r?0:Rr(Cs(r),292))&&qt(e)){var n=(Rs(e)+"e").split("e");return+((n=(Rs(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var da=Xr&&1/Sr(new Xr([,-0]))[1]==w?function(e){return new Xr(e)}:Eu;function fa(e){return function(object){var t=Pa(object);return t==R?wr(object):t==I?Or(object):function(object,e){return Ut(e,(function(e){return[e,object[e]]}))}(object,e(object))}}function ha(e,t,r,o,d,w,A,E){var S=2&t;if(!S&&"function"!=typeof e)throw new Ie(l);var O=o?o.length:0;if(O||(t&=-97,o=d=c),A=A===c?A:Lr(Cs(A),0),E=E===c?E:Cs(E),O-=d?d.length:0,t&y){var _=o,M=d;o=d=c}var data=S?c:wa(e),k=[e,t,r,o,d,_,M,w,A,E];if(data&&function(data,source){var e=data[1],t=source[1],r=e|t,n=r<131,o=t==v&&8==e||t==v&&e==T&&data[7].length<=source[8]||384==t&&source[7].length<=source[8]&&8==e;if(!n&&!o)return data;1&t&&(data[2]=source[2],r|=1&e?0:4);var c=source[3];if(c){var l=data[3];data[3]=l?Hi(l,c,source[4]):c,data[4]=l?Er(data[3],f):source[4]}(c=source[5])&&(l=data[5],data[5]=l?Ui(l,c,source[6]):c,data[6]=l?Er(data[5],f):source[6]);(c=source[7])&&(data[7]=c);t&v&&(data[8]=null==data[8]?source[8]:Rr(data[8],source[8]));null==data[9]&&(data[9]=source[9]);data[0]=source[0],data[1]=r}(k,data),e=k[0],t=k[1],r=k[2],o=k[3],d=k[4],!(E=k[9]=k[9]===c?S?0:e.length:Lr(k[9]-O,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==h?function(e,t,r){var o=$i(e);return function l(){for(var d=arguments.length,f=n(d),h=d,m=Ea(l);h--;)f[h]=arguments[h];var y=d<3&&f[0]!==m&&f[d-1]!==m?[]:Er(f,m);return(d-=y.length)<r?ca(e,t,ra,l.placeholder,c,f,y,c,c,r-d):xt(this&&this!==St&&this instanceof l?o:e,this,f)}}(e,t,E):t!=m&&33!=t||d.length?ra.apply(c,k):function(e,t,r,o){var c=1&t,l=$i(e);return function t(){for(var d=-1,f=arguments.length,h=-1,m=o.length,y=n(m+f),v=this&&this!==St&&this instanceof t?l:e;++h<m;)y[h]=o[h];for(;f--;)y[h++]=arguments[++d];return xt(v,c?r:this,y)}}(e,t,r,o);else var C=function(e,t,r){var n=1&t,o=$i(e);return function t(){return(this&&this!==St&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return qa((data?yi:za)(C,k),e,t)}function pa(e,t,r,object){return e===c||ts(e,Xe[r])&&!Ue.call(object,r)?t:e}function ma(e,t,r,object,source,n){return ms(e)&&ms(t)&&(n.set(t,e),ni(e,t,c,ma,n),n.delete(t)),e}function ya(e){return vs(e)?c:e}function ga(e,t,r,n,o,l){var d=1&r,f=e.length,h=t.length;if(f!=h&&!(d&&h>f))return!1;var m=l.get(e),y=l.get(t);if(m&&y)return m==t&&y==e;var v=-1,T=!0,w=2&r?new cn:c;for(l.set(e,t),l.set(t,e);++v<f;){var A=e[v],E=t[v];if(n)var S=d?n(E,A,v,t,e,l):n(A,E,v,e,t,l);if(S!==c){if(S)continue;T=!1;break}if(w){if(!Kt(t,(function(e,t){if(!dr(w,t)&&(A===e||o(A,e,r,n,l)))return w.push(t)}))){T=!1;break}}else if(A!==E&&!o(A,E,r,n,l)){T=!1;break}}return l.delete(e),l.delete(t),T}function ba(e){return Ka(Ga(e,c,so),e+"")}function va(object){return Jn(object,zs,ka)}function Ta(object){return Jn(object,Zs,Ca)}var wa=Ur?function(e){return Ur.get(e)}:Eu;function Aa(e){for(var t=e.name+"",r=Vr[t],n=Ue.call(Vr,t)?r.length:0;n--;){var data=r[n],o=data.func;if(null==o||o==e)return data.name}return t}function Ea(e){return(Ue.call(en,"placeholder")?en:e).placeholder}function Sa(){var e=en.iteratee||vu;return e=e===vu?Qn:e,arguments.length?e(arguments[0],arguments[1]):e}function Oa(map,e){var t,r,data=map.__data__;return("string"==(r=typeof(t=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?data["string"==typeof e?"string":"hash"]:data.map}function _a(object){for(var e=zs(object),t=e.length;t--;){var r=e[t],n=object[r];e[t]=[r,n,Da(n)]}return e}function Ma(object,e){var t=function(object,e){return null==object?c:object[e]}(object,e);return qn(t)?t:c}var ka=kt?function(object){return null==object?[]:(object=Ne(object),Xt(kt(object),(function(symbol){return it.call(object,symbol)})))}:Pu,Ca=kt?function(object){for(var e=[];object;)Vt(e,ka(object)),object=tt(object);return e}:Pu,Pa=Dn;function Fa(object,path,e){for(var t=-1,r=(path=Ni(path,object)).length,n=!1;++t<r;){var o=$a(path[t]);if(!(n=null!=object&&e(object,o)))break;object=object[o]}return n||++t!=r?n:!!(r=null==object?0:object.length)&&ps(r)&&Ba(o,r)&&(as(object)||is(object))}function La(object){return"function"!=typeof object.constructor||Ja(object)?{}:tn(tt(object))}function Ra(e){return as(e)||is(e)||!!(ot&&e&&e[ot])}function Ba(e,t){var r=typeof e;return!!(t=null==t?A:t)&&("number"==r||"symbol"!=r&&Ce.test(e))&&e>-1&&e%1==0&&e<t}function Na(e,t,object){if(!ms(object))return!1;var r=typeof t;return!!("number"==r?ss(object)&&Ba(t,object.length):"string"==r&&t in object)&&ts(object[t],e)}function xa(e,object){if(as(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Es(e))||(de.test(e)||!le.test(e)||null!=object&&e in Ne(object))}function ja(e){var t=Aa(e),r=en[t];if("function"!=typeof r||!(t in an.prototype))return!1;if(e===r)return!0;var data=wa(r);return!!data&&e===data[0]}(Ir&&Pa(new Ir(new ArrayBuffer(1)))!=H||Jr&&Pa(new Jr)!=R||Dr&&Pa(Dr.resolve())!=x||Xr&&Pa(new Xr)!=I||Gr&&Pa(new Gr)!=X)&&(Pa=function(e){var t=Dn(e),r=t==N?e.constructor:c,n=r?eo(r):"";if(n)switch(n){case zr:return H;case Zr:return R;case Kr:return x;case qr:return I;case Qr:return X}return t});var Ia=Ge?fs:Fu;function Ja(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xe)}function Da(e){return e==e&&!ms(e)}function Xa(e,t){return function(object){return null!=object&&(object[e]===t&&(t!==c||e in Ne(object)))}}function Ga(e,t,r){return t=Lr(t===c?e.length-1:t,0),function(){for(var o=arguments,c=-1,l=Lr(o.length-t,0),d=n(l);++c<l;)d[c]=o[t+c];c=-1;for(var f=n(t+1);++c<t;)f[c]=o[c];return f[t]=r(d),xt(e,this,f)}}function Ha(object,path){return path.length<2?object:In(object,vi(path,0,-1))}function Ua(e,t){for(var r=e.length,n=Rr(t.length,r),o=Vi(e);n--;){var l=t[n];e[n]=Ba(l,r)?o[l]:c}return e}function Va(object,e){if(("constructor"!==e||"function"!=typeof object[e])&&"__proto__"!=e)return object[e]}var za=Qa(yi),Za=Et||function(e,t){return St.setTimeout(e,t)},Ka=Qa(gi);function qa(e,t,r){var source=t+"";return Ka(e,function(source,details){var e=details.length;if(!e)return source;var t=e-1;return details[t]=(e>1?"& ":"")+details[t],details=details.join(e>2?", ":" "),source.replace(ge,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,e){return It(O,(function(t){var r="_."+t[0];e&t[1]&&!Gt(details,r)&&details.push(r)})),details.sort()}(function(source){var e=source.match(be);return e?e[1].split(ve):[]}(source),r)))}function Qa(e){var t=0,r=0;return function(){var n=Br(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(c,arguments)}}function Wa(e,t){var r=-1,n=e.length,o=n-1;for(t=t===c?n:t;++r<t;){var l=ci(r,o),d=e[l];e[l]=e[r],e[r]=d}return e.length=t,e}var Ya=function(e){var t=qo(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fe,(function(e,r,n,o){t.push(n?o.replace(Ae,"$1"):r||e)})),t}));function $a(e){if("string"==typeof e||Es(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eo(e){if(null!=e){try{return He.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function to(e){if(e instanceof an)return e.clone();var t=new nn(e.__wrapped__,e.__chain__);return t.__actions__=Vi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ro=fi((function(e,t){return us(e)?_n(e,Ln(t,1,us,!0)):[]})),no=fi((function(e,t){var r=fo(t);return us(r)&&(r=c),us(e)?_n(e,Ln(t,1,us,!0),Sa(r,2)):[]})),io=fi((function(e,t){var r=fo(t);return us(r)&&(r=c),us(e)?_n(e,Ln(t,1,us,!0),c,r):[]}));function ao(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:Cs(r);return o<0&&(o=Lr(n+o,0)),Wt(e,Sa(t,3),o)}function oo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==c&&(o=Cs(r),o=r<0?Lr(n+o,0):Rr(o,n-1)),Wt(e,Sa(t,3),o,!0)}function so(e){return(null==e?0:e.length)?Ln(e,1):[]}function head(e){return e&&e.length?e[0]:c}var uo=fi((function(e){var t=Ut(e,Ri);return t.length&&t[0]===e[0]?Un(t):[]})),co=fi((function(e){var t=fo(e),r=Ut(e,Ri);return t===fo(r)?t=c:r.pop(),r.length&&r[0]===e[0]?Un(r,Sa(t,2)):[]})),lo=fi((function(e){var t=fo(e),r=Ut(e,Ri);return(t="function"==typeof t?t:c)&&r.pop(),r.length&&r[0]===e[0]?Un(r,c,t):[]}));function fo(e){var t=null==e?0:e.length;return t?e[t-1]:c}var ho=fi(po);function po(e,t){return e&&e.length&&t&&t.length?si(e,t):e}var mo=ba((function(e,t){var r=null==e?0:e.length,n=wn(e,t);return ui(e,Ut(t,(function(e){return Ba(e,r)?+e:e})).sort(Gi)),n}));function yo(e){return null==e?e:jr.call(e)}var go=fi((function(e){return _i(Ln(e,1,us,!0))})),bo=fi((function(e){var t=fo(e);return us(t)&&(t=c),_i(Ln(e,1,us,!0),Sa(t,2))})),vo=fi((function(e){var t=fo(e);return t="function"==typeof t?t:c,_i(Ln(e,1,us,!0),c,t)}));function To(e){if(!e||!e.length)return[];var t=0;return e=Xt(e,(function(e){if(us(e))return t=Lr(e.length,t),!0})),sr(t,(function(t){return Ut(e,nr(t))}))}function wo(e,t){if(!e||!e.length)return[];var r=To(e);return null==t?r:Ut(r,(function(e){return xt(t,c,e)}))}var Ao=fi((function(e,t){return us(e)?_n(e,t):[]})),Eo=fi((function(e){return Fi(Xt(e,us))})),So=fi((function(e){var t=fo(e);return us(t)&&(t=c),Fi(Xt(e,us),Sa(t,2))})),Oo=fi((function(e){var t=fo(e);return t="function"==typeof t?t:c,Fi(Xt(e,us),c,t)})),_o=fi(To);var Mo=fi((function(e){var t=e.length,r=t>1?e[t-1]:c;return r="function"==typeof r?(e.pop(),r):c,wo(e,r)}));function ko(e){var t=en(e);return t.__chain__=!0,t}function Co(e,t){return t(e)}var Po=ba((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(object){return wn(object,e)};return!(t>1||this.__actions__.length)&&n instanceof an&&Ba(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:Co,args:[o],thisArg:c}),new nn(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(c),e}))):this.thru(o)}));var Fo=Zi((function(e,t,r){Ue.call(e,r)?++e[r]:Tn(e,r,1)}));var Lo=ea(ao),Ro=ea(oo);function Bo(e,t){return(as(e)?It:Mn)(e,Sa(t,3))}function No(e,t){return(as(e)?Jt:kn)(e,Sa(t,3))}var xo=Zi((function(e,t,r){Ue.call(e,r)?e[r].push(t):Tn(e,r,[t])}));var jo=fi((function(e,path,t){var r=-1,o="function"==typeof path,c=ss(e)?n(e.length):[];return Mn(e,(function(e){c[++r]=o?xt(path,e,t):Vn(e,path,t)})),c})),Io=Zi((function(e,t,r){Tn(e,r,t)}));function map(e,t){return(as(e)?Ut:ei)(e,Sa(t,3))}var Jo=Zi((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Do=fi((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Na(e,t[0],t[1])?t=[]:r>2&&Na(t[0],t[1],t[2])&&(t=[t[0]]),ai(e,Ln(t,1),[])})),Xo=At||function(){return St.Date.now()};function Go(e,t,r){return t=r?c:t,t=e&&null==t?e.length:t,ha(e,v,c,c,c,c,t)}function Ho(e,t){var r;if("function"!=typeof t)throw new Ie(l);return e=Cs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=c),r}}var Uo=fi((function(e,t,r){var n=1;if(r.length){var o=Er(r,Ea(Uo));n|=m}return ha(e,n,t,r,o)})),Vo=fi((function(object,e,t){var r=3;if(t.length){var n=Er(t,Ea(Vo));r|=m}return ha(e,r,object,t,n)}));function zo(e,t,r){var n,o,d,f,h,m,y=0,v=!1,T=!1,w=!0;if("function"!=typeof e)throw new Ie(l);function A(time){var t=n,r=o;return n=o=c,y=time,f=e.apply(r,t)}function E(time){return y=time,h=Za(O,t),v?A(time):f}function S(time){var e=time-m;return m===c||e>=t||e<0||T&&time-y>=d}function O(){var time=Xo();if(S(time))return _(time);h=Za(O,function(time){var e=t-(time-m);return T?Rr(e,d-(time-y)):e}(time))}function _(time){return h=c,w&&n?A(time):(n=o=c,f)}function M(){var time=Xo(),e=S(time);if(n=arguments,o=this,m=time,e){if(h===c)return E(m);if(T)return Ii(h),h=Za(O,t),A(m)}return h===c&&(h=Za(O,t)),f}return t=Fs(t)||0,ms(r)&&(v=!!r.leading,d=(T="maxWait"in r)?Lr(Fs(r.maxWait)||0,t):d,w="trailing"in r?!!r.trailing:w),M.cancel=function(){h!==c&&Ii(h),y=0,n=m=o=h=c},M.flush=function(){return h===c?f:_(Xo())},M}var Zo=fi((function(e,t){return On(e,1,t)})),Ko=fi((function(e,t,r){return On(e,Fs(t)||0,r)}));function qo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(l);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],c=r.cache;if(c.has(o))return c.get(o);var l=e.apply(this,n);return r.cache=c.set(o,l)||c,l};return r.cache=new(qo.Cache||un),r}function Qo(e){if("function"!=typeof e)throw new Ie(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}qo.Cache=un;var Wo=xi((function(e,t){var r=(t=1==t.length&&as(t[0])?Ut(t[0],cr(Sa())):Ut(Ln(t,1),cr(Sa()))).length;return fi((function(n){for(var o=-1,c=Rr(n.length,r);++o<c;)n[o]=t[o].call(this,n[o]);return xt(e,this,n)}))})),Yo=fi((function(e,t){var r=Er(t,Ea(Yo));return ha(e,m,c,t,r)})),$o=fi((function(e,t){var r=Er(t,Ea($o));return ha(e,y,c,t,r)})),es=ba((function(e,t){return ha(e,T,c,c,c,t)}));function ts(e,t){return e===t||e!=e&&t!=t}var rs=ua(Xn),ns=ua((function(e,t){return e>=t})),is=zn(function(){return arguments}())?zn:function(e){return ys(e)&&Ue.call(e,"callee")&&!it.call(e,"callee")},as=n.isArray,os=Pt?cr(Pt):function(e){return ys(e)&&Dn(e)==G};function ss(e){return null!=e&&ps(e.length)&&!fs(e)}function us(e){return ys(e)&&ss(e)}var cs=Ct||Fu,ls=Ft?cr(Ft):function(e){return ys(e)&&Dn(e)==C};function ds(e){if(!ys(e))return!1;var t=Dn(e);return t==P||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!vs(e)}function fs(e){if(!ms(e))return!1;var t=Dn(e);return t==F||t==L||"[object AsyncFunction]"==t||"[object Proxy]"==t}function hs(e){return"number"==typeof e&&e==Cs(e)}function ps(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=A}function ms(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ys(e){return null!=e&&"object"==typeof e}var gs=Lt?cr(Lt):function(e){return ys(e)&&Pa(e)==R};function bs(e){return"number"==typeof e||ys(e)&&Dn(e)==B}function vs(e){if(!ys(e)||Dn(e)!=N)return!1;var t=tt(e);if(null===t)return!0;var r=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&He.call(r)==Ke}var Ts=Rt?cr(Rt):function(e){return ys(e)&&Dn(e)==j};var ws=Bt?cr(Bt):function(e){return ys(e)&&Pa(e)==I};function As(e){return"string"==typeof e||!as(e)&&ys(e)&&Dn(e)==J}function Es(e){return"symbol"==typeof e||ys(e)&&Dn(e)==D}var Ss=Nt?cr(Nt):function(e){return ys(e)&&ps(e.length)&&!!gt[Dn(e)]};var Os=ua($n),_s=ua((function(e,t){return e<=t}));function Ms(e){if(!e)return[];if(ss(e))return As(e)?Mr(e):Vi(e);if(st&&e[st])return function(e){for(var data,t=[];!(data=e.next()).done;)t.push(data.value);return t}(e[st]());var t=Pa(e);return(t==R?wr:t==I?Sr:tu)(e)}function ks(e){return e?(e=Fs(e))===w||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Cs(e){var t=ks(e),r=t%1;return t==t?r?t-r:t:0}function Ps(e){return e?An(Cs(e),0,S):0}function Fs(e){if("number"==typeof e)return e;if(Es(e))return E;if(ms(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ms(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ur(e);var r=_e.test(e);return r||ke.test(e)?wt(e.slice(2),r?2:8):Oe.test(e)?E:+e}function Ls(e){return zi(e,Zs(e))}function Rs(e){return null==e?"":Oi(e)}var Bs=Ki((function(object,source){if(Ja(source)||ss(source))zi(source,zs(source),object);else for(var e in source)Ue.call(source,e)&&yn(object,e,source[e])})),Ns=Ki((function(object,source){zi(source,Zs(source),object)})),xs=Ki((function(object,source,e,t){zi(source,Zs(source),object,t)})),js=Ki((function(object,source,e,t){zi(source,zs(source),object,t)})),Is=ba(wn);var Js=fi((function(object,e){object=Ne(object);var t=-1,r=e.length,n=r>2?e[2]:c;for(n&&Na(e[0],e[1],n)&&(r=1);++t<r;)for(var source=e[t],o=Zs(source),l=-1,d=o.length;++l<d;){var f=o[l],h=object[f];(h===c||ts(h,Xe[f])&&!Ue.call(object,f))&&(object[f]=source[f])}return object})),Ds=fi((function(e){return e.push(c,ma),xt(qs,c,e)}));function Xs(object,path,e){var t=null==object?c:In(object,path);return t===c?e:t}function Gs(object,path){return null!=object&&Fa(object,path,Hn)}var Hs=na((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ze.call(t)),e[t]=r}),mu(bu)),Us=na((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ze.call(t)),Ue.call(e,t)?e[t].push(r):e[t]=[r]}),Sa),Vs=fi(Vn);function zs(object){return ss(object)?dn(object):Wn(object)}function Zs(object){return ss(object)?dn(object,!0):Yn(object)}var Ks=Ki((function(object,source,e){ni(object,source,e)})),qs=Ki((function(object,source,e,t){ni(object,source,e,t)})),Qs=ba((function(object,e){var t={};if(null==object)return t;var r=!1;e=Ut(e,(function(path){return path=Ni(path,object),r||(r=path.length>1),path})),zi(object,Ta(object),t),r&&(t=En(t,7,ya));for(var n=e.length;n--;)Mi(t,e[n]);return t}));var Ws=ba((function(object,e){return null==object?{}:function(object,e){return oi(object,e,(function(e,path){return Gs(object,path)}))}(object,e)}));function Ys(object,e){if(null==object)return{};var t=Ut(Ta(object),(function(e){return[e]}));return e=Sa(e),oi(object,t,(function(t,path){return e(t,path[0])}))}var $s=fa(zs),eu=fa(Zs);function tu(object){return null==object?[]:lr(object,zs(object))}var ru=Yi((function(e,t,r){return t=t.toLowerCase(),e+(r?nu(t):t)}));function nu(e){return du(Rs(e).toLowerCase())}function iu(e){return(e=Rs(e))&&e.replace(Pe,yr).replace(ct,"")}var au=Yi((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),ou=Yi((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),su=Wi("toLowerCase");var uu=Yi((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var cu=Yi((function(e,t,r){return e+(r?" ":"")+du(t)}));var lu=Yi((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),du=Wi("toUpperCase");function fu(e,pattern,t){return e=Rs(e),(pattern=t?c:pattern)===c?function(e){return pt.test(e)}(e)?function(e){return e.match(ft)||[]}(e):function(e){return e.match(Te)||[]}(e):e.match(pattern)||[]}var hu=fi((function(e,t){try{return xt(e,c,t)}catch(e){return ds(e)?e:new ye(e)}})),pu=ba((function(object,e){return It(e,(function(e){e=$a(e),Tn(object,e,Uo(object[e],object))})),object}));function mu(e){return function(){return e}}var yu=ta(),gu=ta(!0);function bu(e){return e}function vu(e){return Qn("function"==typeof e?e:En(e,1))}var Tu=fi((function(path,e){return function(object){return Vn(object,path,e)}})),wu=fi((function(object,e){return function(path){return Vn(object,path,e)}}));function Au(object,source,e){var t=zs(source),r=jn(source,t);null!=e||ms(source)&&(r.length||!t.length)||(e=source,source=object,object=this,r=jn(source,zs(source)));var n=!(ms(e)&&"chain"in e&&!e.chain),o=fs(object);return It(r,(function(e){var t=source[e];object[e]=t,o&&(object.prototype[e]=function(){var e=this.__chain__;if(n||e){var r=object(this.__wrapped__),o=r.__actions__=Vi(this.__actions__);return o.push({func:t,args:arguments,thisArg:object}),r.__chain__=e,r}return t.apply(object,Vt([this.value()],arguments))})})),object}function Eu(){}var Su=aa(Ut),Ou=aa(Dt),_u=aa(Kt);function Mu(path){return xa(path)?nr($a(path)):function(path){return function(object){return In(object,path)}}(path)}var ku=sa(),Cu=sa(!0);function Pu(){return[]}function Fu(){return!1}var Lu=ia((function(e,t){return e+t}),0),Ru=la("ceil"),Bu=ia((function(e,t){return e/t}),1),Nu=la("floor");var source,xu=ia((function(e,t){return e*t}),1),ju=la("round"),Iu=ia((function(e,t){return e-t}),0);return en.after=function(e,t){if("function"!=typeof t)throw new Ie(l);return e=Cs(e),function(){if(--e<1)return t.apply(this,arguments)}},en.ary=Go,en.assign=Bs,en.assignIn=Ns,en.assignInWith=xs,en.assignWith=js,en.at=Is,en.before=Ho,en.bind=Uo,en.bindAll=pu,en.bindKey=Vo,en.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return as(e)?e:[e]},en.chain=ko,en.chunk=function(e,t,r){t=(r?Na(e,t,r):t===c)?1:Lr(Cs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,d=0,f=n(Ot(o/t));l<o;)f[d++]=vi(e,l,l+=t);return f},en.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var c=e[t];c&&(o[n++]=c)}return o},en.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Vt(as(r)?Vi(r):[r],Ln(t,1))},en.cond=function(e){var t=null==e?0:e.length,r=Sa();return e=t?Ut(e,(function(e){if("function"!=typeof e[1])throw new Ie(l);return[r(e[0]),e[1]]})):[],fi((function(r){for(var n=-1;++n<t;){var o=e[n];if(xt(o[0],this,r))return xt(o[1],this,r)}}))},en.conforms=function(source){return function(source){var e=zs(source);return function(object){return Sn(object,source,e)}}(En(source,1))},en.constant=mu,en.countBy=Fo,en.create=function(e,t){var r=tn(e);return null==t?r:vn(r,t)},en.curry=function e(t,r,n){var o=ha(t,8,c,c,c,c,c,r=n?c:r);return o.placeholder=e.placeholder,o},en.curryRight=function e(t,r,n){var o=ha(t,h,c,c,c,c,c,r=n?c:r);return o.placeholder=e.placeholder,o},en.debounce=zo,en.defaults=Js,en.defaultsDeep=Ds,en.defer=Zo,en.delay=Ko,en.difference=ro,en.differenceBy=no,en.differenceWith=io,en.drop=function(e,t,r){var n=null==e?0:e.length;return n?vi(e,(t=r||t===c?1:Cs(t))<0?0:t,n):[]},en.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?vi(e,0,(t=n-(t=r||t===c?1:Cs(t)))<0?0:t):[]},en.dropRightWhile=function(e,t){return e&&e.length?Ci(e,Sa(t,3),!0,!0):[]},en.dropWhile=function(e,t){return e&&e.length?Ci(e,Sa(t,3),!0):[]},en.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Na(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=Cs(r))<0&&(r=-r>o?0:o+r),(n=n===c||n>o?o:Cs(n))<0&&(n+=o),n=r>n?0:Ps(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},en.filter=function(e,t){return(as(e)?Xt:Fn)(e,Sa(t,3))},en.flatMap=function(e,t){return Ln(map(e,t),1)},en.flatMapDeep=function(e,t){return Ln(map(e,t),w)},en.flatMapDepth=function(e,t,r){return r=r===c?1:Cs(r),Ln(map(e,t),r)},en.flatten=so,en.flattenDeep=function(e){return(null==e?0:e.length)?Ln(e,w):[]},en.flattenDepth=function(e,t){return(null==e?0:e.length)?Ln(e,t=t===c?1:Cs(t)):[]},en.flip=function(e){return ha(e,512)},en.flow=yu,en.flowRight=gu,en.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},en.functions=function(object){return null==object?[]:jn(object,zs(object))},en.functionsIn=function(object){return null==object?[]:jn(object,Zs(object))},en.groupBy=xo,en.initial=function(e){return(null==e?0:e.length)?vi(e,0,-1):[]},en.intersection=uo,en.intersectionBy=co,en.intersectionWith=lo,en.invert=Hs,en.invertBy=Us,en.invokeMap=jo,en.iteratee=vu,en.keyBy=Io,en.keys=zs,en.keysIn=Zs,en.map=map,en.mapKeys=function(object,e){var t={};return e=Sa(e,3),Nn(object,(function(r,n,object){Tn(t,e(r,n,object),r)})),t},en.mapValues=function(object,e){var t={};return e=Sa(e,3),Nn(object,(function(r,n,object){Tn(t,n,e(r,n,object))})),t},en.matches=function(source){return ti(En(source,1))},en.matchesProperty=function(path,e){return ri(path,En(e,1))},en.memoize=qo,en.merge=Ks,en.mergeWith=qs,en.method=Tu,en.methodOf=wu,en.mixin=Au,en.negate=Qo,en.nthArg=function(e){return e=Cs(e),fi((function(t){return ii(t,e)}))},en.omit=Qs,en.omitBy=function(object,e){return Ys(object,Qo(Sa(e)))},en.once=function(e){return Ho(2,e)},en.orderBy=function(e,t,r,n){return null==e?[]:(as(t)||(t=null==t?[]:[t]),as(r=n?c:r)||(r=null==r?[]:[r]),ai(e,t,r))},en.over=Su,en.overArgs=Wo,en.overEvery=Ou,en.overSome=_u,en.partial=Yo,en.partialRight=$o,en.partition=Jo,en.pick=Ws,en.pickBy=Ys,en.property=Mu,en.propertyOf=function(object){return function(path){return null==object?c:In(object,path)}},en.pull=ho,en.pullAll=po,en.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?si(e,t,Sa(r,2)):e},en.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?si(e,t,c,r):e},en.pullAt=mo,en.range=ku,en.rangeRight=Cu,en.rearg=es,en.reject=function(e,t){return(as(e)?Xt:Fn)(e,Qo(Sa(t,3)))},en.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],c=e.length;for(t=Sa(t,3);++n<c;){var l=e[n];t(l,n,e)&&(r.push(l),o.push(n))}return ui(e,o),r},en.rest=function(e,t){if("function"!=typeof e)throw new Ie(l);return fi(e,t=t===c?t:Cs(t))},en.reverse=yo,en.sampleSize=function(e,t,r){return t=(r?Na(e,t,r):t===c)?1:Cs(t),(as(e)?hn:pi)(e,t)},en.set=function(object,path,e){return null==object?object:mi(object,path,e)},en.setWith=function(object,path,e,t){return t="function"==typeof t?t:c,null==object?object:mi(object,path,e,t)},en.shuffle=function(e){return(as(e)?pn:bi)(e)},en.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Na(e,t,r)?(t=0,r=n):(t=null==t?0:Cs(t),r=r===c?n:Cs(r)),vi(e,t,r)):[]},en.sortBy=Do,en.sortedUniq=function(e){return e&&e.length?Ei(e):[]},en.sortedUniqBy=function(e,t){return e&&e.length?Ei(e,Sa(t,2)):[]},en.split=function(e,t,r){return r&&"number"!=typeof r&&Na(e,t,r)&&(t=r=c),(r=r===c?S:r>>>0)?(e=Rs(e))&&("string"==typeof t||null!=t&&!Ts(t))&&!(t=Oi(t))&&Tr(e)?ji(Mr(e),0,r):e.split(t,r):[]},en.spread=function(e,t){if("function"!=typeof e)throw new Ie(l);return t=null==t?0:Lr(Cs(t),0),fi((function(r){var n=r[t],o=ji(r,0,t);return n&&Vt(o,n),xt(e,this,o)}))},en.tail=function(e){var t=null==e?0:e.length;return t?vi(e,1,t):[]},en.take=function(e,t,r){return e&&e.length?vi(e,0,(t=r||t===c?1:Cs(t))<0?0:t):[]},en.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?vi(e,(t=n-(t=r||t===c?1:Cs(t)))<0?0:t,n):[]},en.takeRightWhile=function(e,t){return e&&e.length?Ci(e,Sa(t,3),!1,!0):[]},en.takeWhile=function(e,t){return e&&e.length?Ci(e,Sa(t,3)):[]},en.tap=function(e,t){return t(e),e},en.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new Ie(l);return ms(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),zo(e,t,{leading:n,maxWait:t,trailing:o})},en.thru=Co,en.toArray=Ms,en.toPairs=$s,en.toPairsIn=eu,en.toPath=function(e){return as(e)?Ut(e,$a):Es(e)?[e]:Vi(Ya(Rs(e)))},en.toPlainObject=Ls,en.transform=function(object,e,t){var r=as(object),n=r||cs(object)||Ss(object);if(e=Sa(e,4),null==t){var o=object&&object.constructor;t=n?r?new o:[]:ms(object)&&fs(o)?tn(tt(object)):{}}return(n?It:Nn)(object,(function(r,n,object){return e(t,r,n,object)})),t},en.unary=function(e){return Go(e,1)},en.union=go,en.unionBy=bo,en.unionWith=vo,en.uniq=function(e){return e&&e.length?_i(e):[]},en.uniqBy=function(e,t){return e&&e.length?_i(e,Sa(t,2)):[]},en.uniqWith=function(e,t){return t="function"==typeof t?t:c,e&&e.length?_i(e,c,t):[]},en.unset=function(object,path){return null==object||Mi(object,path)},en.unzip=To,en.unzipWith=wo,en.update=function(object,path,e){return null==object?object:ki(object,path,Bi(e))},en.updateWith=function(object,path,e,t){return t="function"==typeof t?t:c,null==object?object:ki(object,path,Bi(e),t)},en.values=tu,en.valuesIn=function(object){return null==object?[]:lr(object,Zs(object))},en.without=Ao,en.words=fu,en.wrap=function(e,t){return Yo(Bi(t),e)},en.xor=Eo,en.xorBy=So,en.xorWith=Oo,en.zip=_o,en.zipObject=function(e,t){return Li(e||[],t||[],yn)},en.zipObjectDeep=function(e,t){return Li(e||[],t||[],mi)},en.zipWith=Mo,en.entries=$s,en.entriesIn=eu,en.extend=Ns,en.extendWith=xs,Au(en,en),en.add=Lu,en.attempt=hu,en.camelCase=ru,en.capitalize=nu,en.ceil=Ru,en.clamp=function(e,t,r){return r===c&&(r=t,t=c),r!==c&&(r=(r=Fs(r))==r?r:0),t!==c&&(t=(t=Fs(t))==t?t:0),An(Fs(e),t,r)},en.clone=function(e){return En(e,4)},en.cloneDeep=function(e){return En(e,5)},en.cloneDeepWith=function(e,t){return En(e,5,t="function"==typeof t?t:c)},en.cloneWith=function(e,t){return En(e,4,t="function"==typeof t?t:c)},en.conformsTo=function(object,source){return null==source||Sn(object,source,zs(source))},en.deburr=iu,en.defaultTo=function(e,t){return null==e||e!=e?t:e},en.divide=Bu,en.endsWith=function(e,t,r){e=Rs(e),t=Oi(t);var n=e.length,o=r=r===c?n:An(Cs(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},en.eq=ts,en.escape=function(e){return(e=Rs(e))&&oe.test(e)?e.replace(ie,gr):e},en.escapeRegExp=function(e){return(e=Rs(e))&&pe.test(e)?e.replace(he,"\\$&"):e},en.every=function(e,t,r){var n=as(e)?Dt:Cn;return r&&Na(e,t,r)&&(t=c),n(e,Sa(t,3))},en.find=Lo,en.findIndex=ao,en.findKey=function(object,e){return Qt(object,Sa(e,3),Nn)},en.findLast=Ro,en.findLastIndex=oo,en.findLastKey=function(object,e){return Qt(object,Sa(e,3),xn)},en.floor=Nu,en.forEach=Bo,en.forEachRight=No,en.forIn=function(object,e){return null==object?object:Rn(object,Sa(e,3),Zs)},en.forInRight=function(object,e){return null==object?object:Bn(object,Sa(e,3),Zs)},en.forOwn=function(object,e){return object&&Nn(object,Sa(e,3))},en.forOwnRight=function(object,e){return object&&xn(object,Sa(e,3))},en.get=Xs,en.gt=rs,en.gte=ns,en.has=function(object,path){return null!=object&&Fa(object,path,Gn)},en.hasIn=Gs,en.head=head,en.identity=bu,en.includes=function(e,t,r,n){e=ss(e)?e:tu(e),r=r&&!n?Cs(r):0;var o=e.length;return r<0&&(r=Lr(o+r,0)),As(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Yt(e,t,r)>-1},en.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:Cs(r);return o<0&&(o=Lr(n+o,0)),Yt(e,t,o)},en.inRange=function(e,t,r){return t=ks(t),r===c?(r=t,t=0):r=ks(r),function(e,t,r){return e>=Rr(t,r)&&e<Lr(t,r)}(e=Fs(e),t,r)},en.invoke=Vs,en.isArguments=is,en.isArray=as,en.isArrayBuffer=os,en.isArrayLike=ss,en.isArrayLikeObject=us,en.isBoolean=function(e){return!0===e||!1===e||ys(e)&&Dn(e)==k},en.isBuffer=cs,en.isDate=ls,en.isElement=function(e){return ys(e)&&1===e.nodeType&&!vs(e)},en.isEmpty=function(e){if(null==e)return!0;if(ss(e)&&(as(e)||"string"==typeof e||"function"==typeof e.splice||cs(e)||Ss(e)||is(e)))return!e.length;var t=Pa(e);if(t==R||t==I)return!e.size;if(Ja(e))return!Wn(e).length;for(var r in e)if(Ue.call(e,r))return!1;return!0},en.isEqual=function(e,t){return Zn(e,t)},en.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:c)?r(e,t):c;return n===c?Zn(e,t,c,r):!!n},en.isError=ds,en.isFinite=function(e){return"number"==typeof e&&qt(e)},en.isFunction=fs,en.isInteger=hs,en.isLength=ps,en.isMap=gs,en.isMatch=function(object,source){return object===source||Kn(object,source,_a(source))},en.isMatchWith=function(object,source,e){return e="function"==typeof e?e:c,Kn(object,source,_a(source),e)},en.isNaN=function(e){return bs(e)&&e!=+e},en.isNative=function(e){if(Ia(e))throw new ye("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return qn(e)},en.isNil=function(e){return null==e},en.isNull=function(e){return null===e},en.isNumber=bs,en.isObject=ms,en.isObjectLike=ys,en.isPlainObject=vs,en.isRegExp=Ts,en.isSafeInteger=function(e){return hs(e)&&e>=-9007199254740991&&e<=A},en.isSet=ws,en.isString=As,en.isSymbol=Es,en.isTypedArray=Ss,en.isUndefined=function(e){return e===c},en.isWeakMap=function(e){return ys(e)&&Pa(e)==X},en.isWeakSet=function(e){return ys(e)&&"[object WeakSet]"==Dn(e)},en.join=function(e,t){return null==e?"":ir.call(e,t)},en.kebabCase=au,en.last=fo,en.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==c&&(o=(o=Cs(r))<0?Lr(n+o,0):Rr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Wt(e,er,o,!0)},en.lowerCase=ou,en.lowerFirst=su,en.lt=Os,en.lte=_s,en.max=function(e){return e&&e.length?Pn(e,bu,Xn):c},en.maxBy=function(e,t){return e&&e.length?Pn(e,Sa(t,2),Xn):c},en.mean=function(e){return rr(e,bu)},en.meanBy=function(e,t){return rr(e,Sa(t,2))},en.min=function(e){return e&&e.length?Pn(e,bu,$n):c},en.minBy=function(e,t){return e&&e.length?Pn(e,Sa(t,2),$n):c},en.stubArray=Pu,en.stubFalse=Fu,en.stubObject=function(){return{}},en.stubString=function(){return""},en.stubTrue=function(){return!0},en.multiply=xu,en.nth=function(e,t){return e&&e.length?ii(e,Cs(t)):c},en.noConflict=function(){return St._===this&&(St._=qe),this},en.noop=Eu,en.now=Xo,en.pad=function(e,t,r){e=Rs(e);var n=(t=Cs(t))?_r(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return oa(_t(o),r)+e+oa(Ot(o),r)},en.padEnd=function(e,t,r){e=Rs(e);var n=(t=Cs(t))?_r(e):0;return t&&n<t?e+oa(t-n,r):e},en.padStart=function(e,t,r){e=Rs(e);var n=(t=Cs(t))?_r(e):0;return t&&n<t?oa(t-n,r)+e:e},en.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),Nr(Rs(e).replace(me,""),t||0)},en.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Na(e,t,r)&&(t=r=c),r===c&&("boolean"==typeof t?(r=t,t=c):"boolean"==typeof e&&(r=e,e=c)),e===c&&t===c?(e=0,t=1):(e=ks(e),t===c?(t=e,e=0):t=ks(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=xr();return Rr(e+o*(t-e+Tt("1e-"+((o+"").length-1))),t)}return ci(e,t)},en.reduce=function(e,t,r){var n=as(e)?zt:ar,o=arguments.length<3;return n(e,Sa(t,4),r,o,Mn)},en.reduceRight=function(e,t,r){var n=as(e)?Zt:ar,o=arguments.length<3;return n(e,Sa(t,4),r,o,kn)},en.repeat=function(e,t,r){return t=(r?Na(e,t,r):t===c)?1:Cs(t),di(Rs(e),t)},en.replace=function(){var e=arguments,t=Rs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},en.result=function(object,path,e){var t=-1,r=(path=Ni(path,object)).length;for(r||(r=1,object=c);++t<r;){var n=null==object?c:object[$a(path[t])];n===c&&(t=r,n=e),object=fs(n)?n.call(object):n}return object},en.round=ju,en.runInContext=e,en.sample=function(e){return(as(e)?fn:hi)(e)},en.size=function(e){if(null==e)return 0;if(ss(e))return As(e)?_r(e):e.length;var t=Pa(e);return t==R||t==I?e.size:Wn(e).length},en.snakeCase=uu,en.some=function(e,t,r){var n=as(e)?Kt:Ti;return r&&Na(e,t,r)&&(t=c),n(e,Sa(t,3))},en.sortedIndex=function(e,t){return wi(e,t)},en.sortedIndexBy=function(e,t,r){return Ai(e,t,Sa(r,2))},en.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=wi(e,t);if(n<r&&ts(e[n],t))return n}return-1},en.sortedLastIndex=function(e,t){return wi(e,t,!0)},en.sortedLastIndexBy=function(e,t,r){return Ai(e,t,Sa(r,2),!0)},en.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=wi(e,t,!0)-1;if(ts(e[r],t))return r}return-1},en.startCase=cu,en.startsWith=function(e,t,r){return e=Rs(e),r=null==r?0:An(Cs(r),0,e.length),t=Oi(t),e.slice(r,r+t.length)==t},en.subtract=Iu,en.sum=function(e){return e&&e.length?or(e,bu):0},en.sumBy=function(e,t){return e&&e.length?or(e,Sa(t,2)):0},en.template=function(e,t,r){var n=en.templateSettings;r&&Na(e,t,r)&&(t=c),e=Rs(e),t=xs({},t,n,pa);var o,l,d=xs({},t.imports,n.imports,pa),f=zs(d),h=lr(d,f),m=0,y=t.interpolate||Fe,source="__p += '",v=xe((t.escape||Fe).source+"|"+y.source+"|"+(y===ce?Ee:Fe).source+"|"+(t.evaluate||Fe).source+"|$","g"),T="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yt+"]")+"\n";e.replace(v,(function(t,r,n,c,d,f){return n||(n=c),source+=e.slice(m,f).replace(Le,vr),r&&(o=!0,source+="' +\n__e("+r+") +\n'"),d&&(l=!0,source+="';\n"+d+";\n__p += '"),n&&(source+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),m=f+t.length,t})),source+="';\n";var w=Ue.call(t,"variable")&&t.variable;if(w){if(we.test(w))throw new ye("Invalid `variable` option passed into `_.template`")}else source="with (obj) {\n"+source+"\n}\n";source=(l?source.replace(ee,""):source).replace(te,"$1").replace(re,"$1;"),source="function("+(w||"obj")+") {\n"+(w?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var A=hu((function(){return Re(f,T+"return "+source).apply(c,h)}));if(A.source=source,ds(A))throw A;return A},en.times=function(e,t){if((e=Cs(e))<1||e>A)return[];var r=S,n=Rr(e,S);t=Sa(t),e-=S;for(var o=sr(n,t);++r<e;)t(r);return o},en.toFinite=ks,en.toInteger=Cs,en.toLength=Ps,en.toLower=function(e){return Rs(e).toLowerCase()},en.toNumber=Fs,en.toSafeInteger=function(e){return e?An(Cs(e),-9007199254740991,A):0===e?e:0},en.toString=Rs,en.toUpper=function(e){return Rs(e).toUpperCase()},en.trim=function(e,t,r){if((e=Rs(e))&&(r||t===c))return ur(e);if(!e||!(t=Oi(t)))return e;var n=Mr(e),o=Mr(t);return ji(n,fr(n,o),pr(n,o)+1).join("")},en.trimEnd=function(e,t,r){if((e=Rs(e))&&(r||t===c))return e.slice(0,kr(e)+1);if(!e||!(t=Oi(t)))return e;var n=Mr(e);return ji(n,0,pr(n,Mr(t))+1).join("")},en.trimStart=function(e,t,r){if((e=Rs(e))&&(r||t===c))return e.replace(me,"");if(!e||!(t=Oi(t)))return e;var n=Mr(e);return ji(n,fr(n,Mr(t))).join("")},en.truncate=function(e,t){var r=30,n="...";if(ms(t)){var o="separator"in t?t.separator:o;r="length"in t?Cs(t.length):r,n="omission"in t?Oi(t.omission):n}var l=(e=Rs(e)).length;if(Tr(e)){var d=Mr(e);l=d.length}if(r>=l)return e;var f=r-_r(n);if(f<1)return n;var h=d?ji(d,0,f).join(""):e.slice(0,f);if(o===c)return h+n;if(d&&(f+=h.length-f),Ts(o)){if(e.slice(f).search(o)){var m,y=h;for(o.global||(o=xe(o.source,Rs(Se.exec(o))+"g")),o.lastIndex=0;m=o.exec(y);)var v=m.index;h=h.slice(0,v===c?f:v)}}else if(e.indexOf(Oi(o),f)!=f){var T=h.lastIndexOf(o);T>-1&&(h=h.slice(0,T))}return h+n},en.unescape=function(e){return(e=Rs(e))&&ae.test(e)?e.replace(ne,Cr):e},en.uniqueId=function(e){var t=++Ve;return Rs(e)+t},en.upperCase=lu,en.upperFirst=du,en.each=Bo,en.eachRight=No,en.first=head,Au(en,(source={},Nn(en,(function(e,t){Ue.call(en.prototype,t)||(source[t]=e)})),source),{chain:!1}),en.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){en[e].placeholder=en})),It(["drop","take"],(function(e,t){an.prototype[e]=function(r){r=r===c?1:Lr(Cs(r),0);var n=this.__filtered__&&!t?new an(this):this.clone();return n.__filtered__?n.__takeCount__=Rr(r,n.__takeCount__):n.__views__.push({size:Rr(r,S),type:e+(n.__dir__<0?"Right":"")}),n},an.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;an.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Sa(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),It(["head","last"],(function(e,t){var r="take"+(t?"Right":"");an.prototype[e]=function(){return this[r](1).value()[0]}})),It(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");an.prototype[e]=function(){return this.__filtered__?new an(this):this[r](1)}})),an.prototype.compact=function(){return this.filter(bu)},an.prototype.find=function(e){return this.filter(e).head()},an.prototype.findLast=function(e){return this.reverse().find(e)},an.prototype.invokeMap=fi((function(path,e){return"function"==typeof path?new an(this):this.map((function(t){return Vn(t,path,e)}))})),an.prototype.reject=function(e){return this.filter(Qo(Sa(e)))},an.prototype.slice=function(e,t){e=Cs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new an(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==c&&(r=(t=Cs(t))<0?r.dropRight(-t):r.take(t-e)),r)},an.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},an.prototype.toArray=function(){return this.take(S)},Nn(an.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=en[n?"take"+("last"==t?"Right":""):t],l=n||/^find/.test(t);o&&(en.prototype[t]=function(){var t=this.__wrapped__,d=n?[1]:arguments,f=t instanceof an,h=d[0],m=f||as(t),y=function(e){var t=o.apply(en,Vt([e],d));return n&&v?t[0]:t};m&&r&&"function"==typeof h&&1!=h.length&&(f=m=!1);var v=this.__chain__,T=!!this.__actions__.length,w=l&&!v,A=f&&!T;if(!l&&m){t=A?t:new an(this);var E=e.apply(t,d);return E.__actions__.push({func:Co,args:[y],thisArg:c}),new nn(E,v)}return w&&A?e.apply(this,d):(E=this.thru(y),w?n?E.value()[0]:E.value():E)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Je[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);en.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(as(o)?o:[],e)}return this[r]((function(r){return t.apply(as(r)?r:[],e)}))}})),Nn(an.prototype,(function(e,t){var r=en[t];if(r){var n=r.name+"";Ue.call(Vr,n)||(Vr[n]=[]),Vr[n].push({name:t,func:r})}})),Vr[ra(c,2).name]=[{name:"wrapper",func:c}],an.prototype.clone=function(){var e=new an(this.__wrapped__);return e.__actions__=Vi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Vi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Vi(this.__views__),e},an.prototype.reverse=function(){if(this.__filtered__){var e=new an(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},an.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=as(e),n=t<0,o=r?e.length:0,view=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var data=r[n],c=data.size;switch(data.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=Rr(t,e+c);break;case"takeRight":e=Lr(e,t-c)}}return{start:e,end:t}}(0,o,this.__views__),c=view.start,l=view.end,d=l-c,f=n?l:c-1,h=this.__iteratees__,m=h.length,y=0,v=Rr(d,this.__takeCount__);if(!r||!n&&o==d&&v==d)return Pi(e,this.__actions__);var T=[];e:for(;d--&&y<v;){for(var w=-1,A=e[f+=t];++w<m;){var data=h[w],E=data.iteratee,S=data.type,O=E(A);if(2==S)A=O;else if(!O){if(1==S)continue e;break e}}T[y++]=A}return T},en.prototype.at=Po,en.prototype.chain=function(){return ko(this)},en.prototype.commit=function(){return new nn(this.value(),this.__chain__)},en.prototype.next=function(){this.__values__===c&&(this.__values__=Ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?c:this.__values__[this.__index__++]}},en.prototype.plant=function(e){for(var t,r=this;r instanceof rn;){var n=to(r);n.__index__=0,n.__values__=c,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},en.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof an){var t=e;return this.__actions__.length&&(t=new an(this)),(t=t.reverse()).__actions__.push({func:Co,args:[yo],thisArg:c}),new nn(t,this.__chain__)}return this.thru(yo)},en.prototype.toJSON=en.prototype.valueOf=en.prototype.value=function(){return Pi(this.__wrapped__,this.__actions__)},en.prototype.first=en.prototype.head,st&&(en.prototype[st]=function(){return this}),en}();St._=Pr,(o=function(){return Pr}.call(t,r,t,n))===c||(n.exports=o)}).call(this)}).call(this,r(43),r(106)(e))},function(e,t){},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(152),t.sha224=r(153),t.sha256=r(108),t.sha384=r(154),t.sha512=r(109)},function(e,t,r){"use strict";var n=r(34),o=r(56),c=r(107),l=n.rotl32,d=n.sum32,f=n.sum32_5,h=c.ft_1,m=o.BlockHash,y=[1518500249,1859775393,2400959708,3395469782];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=160,v.hmacStrength=80,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=l(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],c=this.h[4];for(i=0;i<r.length;i++){var s=~~(i/20),m=f(l(a,5),h(s,b,n,o),c,r[i],y[s]);c=o,o=n,n=l(b,30),b=a,a=m}this.h[0]=d(this.h[0],a),this.h[1]=d(this.h[1],b),this.h[2]=d(this.h[2],n),this.h[3]=d(this.h[3],o),this.h[4]=d(this.h[4],c)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(34),o=r(108);function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(c,o),e.exports=c,c.blockSize=512,c.outSize=224,c.hmacStrength=192,c.padLength=64,c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(34),o=r(109);function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(c,o),e.exports=c,c.blockSize=1024,c.outSize=384,c.hmacStrength=192,c.padLength=128,c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(34),o=r(56),c=n.rotl32,l=n.sum32,d=n.sum32_3,f=n.sum32_4,h=o.BlockHash;function m(){if(!(this instanceof m))return new m;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function y(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function v(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function T(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(m,h),t.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],o=this.h[2],h=this.h[3],m=this.h[4],S=r,O=n,_=o,M=h,k=m,C=0;C<80;C++){var P=l(c(f(r,y(C,n,o,h),e[w[C]+t],v(C)),s[C]),m);r=m,m=h,h=c(o,10),o=n,n=P,P=l(c(f(S,y(79-C,O,_,M),e[A[C]+t],T(C)),E[C]),k),S=k,k=M,M=c(_,10),_=O,O=P}P=d(this.h[1],o,M),this.h[1]=d(this.h[2],h,k),this.h[2]=d(this.h[3],m,S),this.h[3]=d(this.h[4],r,O),this.h[4]=d(this.h[0],n,_),this.h[0]=P},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var w=[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],A=[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],s=[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],E=[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]},function(e,t,r){"use strict";var n=r(34),o=r(55);function c(e,t,r){if(!(this instanceof c))return new c(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=c,c.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var i=e.length;i<this.blockSize;i++)e.push(0);for(i=0;i<e.length;i++)e[i]^=54;for(this.inner=(new this.Hash).update(e),i=0;i<e.length;i++)e[i]^=106;this.outer=(new this.Hash).update(e)},c.prototype.update=function(e,t){return this.inner.update(e,t),this},c.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function c(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new c(o.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new c(o.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(158),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(43))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,html,o,c,l,d=1,f={},h=!1,m=e.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(e);y=y&&y.setTimeout?y:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){T(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){T(e.data)},n=function(e){o.port2.postMessage(e)}):m&&"onreadystatechange"in m.createElement("script")?(html=m.documentElement,n=function(e){var script=m.createElement("script");script.onreadystatechange=function(){T(e),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):n=function(e){setTimeout(T,0,e)}:(c="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(c)&&T(+t.data.slice(c.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),n=function(t){e.postMessage(c+t,"*")}),y.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return f[d]=r,n(d),d++},y.clearImmediate=v}function v(e){delete f[e]}function T(e){if(h)setTimeout(T,0,e);else{var t=f[e];if(t){h=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{v(e),h=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(43),r(110))},function(e,t,r){"use strict";r.d(t,"b",(function(){return w})),r.d(t,"c",(function(){return A})),r.d(t,"a",(function(){return S}));var n=r(0),o=r(2),c=r(76),l=r(12);const d=new o.b(c.a),f={},h=l.a.from(0),m=l.a.from(-1);function y(e,t,r,n){const c={fault:t,operation:r};return void 0!==n&&(c.value=n),d.throwError(e,o.b.errors.NUMERIC_FAULT,c)}let v="0";for(;v.length<256;)v+=v;function T(e){if("number"!=typeof e)try{e=l.a.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+v.substring(0,e):d.throwArgumentError("invalid decimal size","decimals",e)}function w(e,t){null==t&&(t=0);const r=T(t),n=(e=l.a.from(e)).lt(h);n&&(e=e.mul(m));let o=e.mod(r).toString();for(;o.length<r.length-1;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];const c=e.div(r).toString();return e=1===r.length?c:c+"."+o,n&&(e="-"+e),e}function A(e,t){null==t&&(t=0);const r=T(t);"string"==typeof e&&e.match(/^-?[0-9.,]+$/)||d.throwArgumentError("invalid decimal value","value",e);const n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&d.throwArgumentError("missing value","value",e);const o=e.split(".");o.length>2&&d.throwArgumentError("too many decimal points","value",e);let c=o[0],f=o[1];for(c||(c="0"),f||(f="0");"0"===f[f.length-1];)f=f.substring(0,f.length-1);for(f.length>r.length-1&&y("fractional component exceeds decimals","underflow","parseFixed"),""===f&&(f="0");f.length<r.length-1;)f+="0";const h=l.a.from(c),v=l.a.from(f);let w=h.mul(r).add(v);return n&&(w=w.mul(m)),w}class E{constructor(e,t,r,n){e!==f&&d.throwError("cannot use FixedFormat constructor; use FixedFormat.from",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=T(n),Object.freeze(this)}static from(e){if(e instanceof E)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const o=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||d.throwArgumentError("invalid fixed format","format",e),t="u"!==o[1],r=parseInt(o[2]),n=parseInt(o[3])}else if(e){const o=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&d.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=o("signed","boolean",t),r=o("width","number",r),n=o("decimals","number",n)}return r%8&&d.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&d.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new E(f,t,r,n)}}class S{constructor(e,t,r,n){d.checkNew(new.target,S),e!==f&&d.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&d.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const a=A(this._value,this.format.decimals),b=A(e._value,e.format.decimals);return S.fromValue(a.add(b),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const a=A(this._value,this.format.decimals),b=A(e._value,e.format.decimals);return S.fromValue(a.sub(b),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const a=A(this._value,this.format.decimals),b=A(e._value,e.format.decimals);return S.fromValue(a.mul(b).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const a=A(this._value,this.format.decimals),b=A(e._value,e.format.decimals);return S.fromValue(a.mul(this.format._multiplier).div(b),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=S.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(O.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=S.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(O.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&d.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=S.from("1"+v.substring(0,e),this.format),n=_.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&d.throwArgumentError("invalid byte width","width",e);const t=l.a.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Object(n.h)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return S.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||Object(l.d)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),S.fromString(w(e,t),E.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=E.from(t),o=A(e,r.decimals);!r.signed&&o.lt(h)&&y("unsigned value cannot be negative","overflow","value",e);let c=null;r.signed?c=o.toTwos(r.width).toHexString():(c=o.toHexString(),c=Object(n.h)(c,r.width/8));const l=w(o,r.decimals);return new S(f,c,l,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=E.from(t);if(Object(n.a)(e).length>r.width/8)throw new Error("overflow");let o=l.a.from(e);r.signed&&(o=o.fromTwos(r.width));const c=o.toTwos((r.signed?0:1)+r.width).toHexString(),d=w(o,r.decimals);return new S(f,c,d,r)}static from(e,t){if("string"==typeof e)return S.fromString(e,t);if(Object(n.j)(e))return S.fromBytes(e,t);try{return S.fromValue(e,0,t)}catch(e){if(e.code!==o.b.errors.INVALID_ARGUMENT)throw e}return d.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const O=S.from(1),_=S.from("0.5")},function(e,t,r){var n=r(23),o=r(161),c=r(162),l=r(163),d=r(59),f=function(e){if(e&&e.forEach!==l)try{d(e,"forEach",l)}catch(t){e.forEach=l}};for(var h in o)f(n[h]&&n[h].prototype);f(c)},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){var n=r(86)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,r){"use strict";var n=r(87).forEach,o=r(165)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){var n=r(117),o=r(88),c=r(33),l=r(19)("species");e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===Array||n(t.prototype))||c(t)&&null===(t=t[l]))&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){"use strict";var n=r(24);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},function(e,t,r){var n=r(18),o=r(33);e.exports=function(input,e){var t,r;if("string"===e&&n(t=input.toString)&&!o(r=t.call(input)))return r;if(n(t=input.valueOf)&&!o(r=t.call(input)))return r;if("string"!==e&&n(t=input.toString)&&!o(r=t.call(input)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(26),o=r(170).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,r){var n=r(23),o=r(18),c=r(95),l=n.WeakMap;e.exports=o(l)&&/native code/.test(c(l))},function(e,t,r){var n=r(29),o=r(123),c=r(49),l=r(35);e.exports=function(e,source){for(var t=o(source),r=l.f,d=c.f,i=0;i<t.length;i++){var f=t[i];n(e,f)||r(e,f,d(source,f))}}},function(e,t,r){var n=r(30),o=r(73),c=r(38),l=r(97).f,d=function(e){return function(t){for(var r,d=c(t),f=o(d),h=f.length,i=0,m=[];h>i;)r=f[i++],n&&!l.call(d,r)||m.push(e?[r,d[r]]:d[r]);return m}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,r){var n=r(30),o=r(99).EXISTS,c=r(35).f,l=Function.prototype,d=l.toString,f=/^\s*function ([^ (]*)/;n&&!o&&c(l,"name",{configurable:!0,get:function(){try{return d.call(this).match(f)[1]}catch(e){return""}}})},function(e,t,r){var n=r(19),o=r(51),c=r(35),l=n("unscopables"),d=Array.prototype;null==d[l]&&c.f(d,l,{configurable:!0,value:o(null)}),e.exports=function(e){d[l][e]=!0}},function(e,t,r){var n=r(30),o=r(35),c=r(36),l=r(73);e.exports=n?Object.defineProperties:function(e,t){c(e);for(var r,n=l(t),d=n.length,f=0;d>f;)o.f(e,r=n[f++],t[r]);return e}},function(e,t,r){var n=r(45);e.exports=n("document","documentElement")},function(e,t,r){var n=r(176);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(33),o=r(57),c=r(19)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},function(e,t,r){var n=r(19)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,r){var n=r(26),o=r(44),c=r(73);n({target:"Object",stat:!0,forced:r(24)((function(){c(1)}))},{keys:function(e){return c(o(e))}})},function(e,t,r){"use strict";var n=r(26),o=r(23),c=r(45),l=r(67),d=r(30),f=r(94),h=r(24),m=r(29),y=r(117),v=r(18),T=r(33),w=r(69),A=r(36),E=r(44),S=r(38),O=r(68),_=r(61),M=r(60),k=r(51),C=r(73),P=r(72),F=r(180),L=r(127),R=r(49),B=r(35),N=r(97),x=r(50),j=r(90),I=r(70),J=r(71),D=r(93),X=r(19),G=r(131),H=r(181),U=r(101),V=r(98),z=r(87).forEach,Z=I("hidden"),K="Symbol",Q=X("toPrimitive"),W=V.set,Y=V.getterFor(K),$=Object.prototype,ee=o.Symbol,te=c("JSON","stringify"),re=R.f,ne=B.f,ie=F.f,ae=N.f,oe=j("symbols"),se=j("op-symbols"),ue=j("string-to-symbol-registry"),ce=j("symbol-to-string-registry"),le=j("wks"),de=o.QObject,fe=!de||!de.prototype||!de.prototype.findChild,he=d&&h((function(){return 7!=k(ne({},"a",{get:function(){return ne(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=re($,t);n&&delete $[t],ne(e,t,r),n&&e!==$&&ne($,t,n)}:ne,pe=function(e,t){var symbol=oe[e]=k(ee.prototype);return W(symbol,{type:K,tag:e,description:t}),d||(symbol.description=t),symbol},me=function(e,t,r){e===$&&me(se,t,r),A(e);var n=O(t);return A(r),m(oe,n)?(r.enumerable?(m(e,Z)&&e[Z][n]&&(e[Z][n]=!1),r=k(r,{enumerable:M(0,!1)})):(m(e,Z)||ne(e,Z,M(1,{})),e[Z][n]=!0),he(e,n,r)):ne(e,n,r)},ye=function(e,t){A(e);var r=S(t),n=C(r).concat(Te(r));return z(n,(function(t){d&&!ge.call(r,t)||me(e,t,r[t])})),e},ge=function(e){var t=O(e),r=ae.call(this,t);return!(this===$&&m(oe,t)&&!m(se,t))&&(!(r||!m(this,t)||!m(oe,t)||m(this,Z)&&this[Z][t])||r)},be=function(e,t){var r=S(e),n=O(t);if(r!==$||!m(oe,n)||m(se,n)){var o=re(r,n);return!o||!m(oe,n)||m(r,Z)&&r[Z][n]||(o.enumerable=!0),o}},ve=function(e){var t=ie(S(e)),r=[];return z(t,(function(e){m(oe,e)||m(J,e)||r.push(e)})),r},Te=function(e){var t=e===$,r=ie(t?se:S(e)),n=[];return z(r,(function(e){!m(oe,e)||t&&!m($,e)||n.push(oe[e])})),n};(f||(ee=function(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,t=D(e),r=function(e){this===$&&r.call(se,e),m(this,Z)&&m(this[Z],t)&&(this[Z][t]=!1),he(this,t,M(1,e))};return d&&fe&&he($,t,{configurable:!0,set:r}),pe(t,e)},x(ee.prototype,"toString",(function(){return Y(this).tag})),x(ee,"withoutSetter",(function(e){return pe(D(e),e)})),N.f=ge,B.f=me,R.f=be,P.f=F.f=ve,L.f=Te,G.f=function(e){return pe(X(e),e)},d&&(ne(ee.prototype,"description",{configurable:!0,get:function(){return Y(this).description}}),l||x($,"propertyIsEnumerable",ge,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:ee}),z(C(le),(function(e){H(e)})),n({target:K,stat:!0,forced:!f},{for:function(e){var t=_(e);if(m(ue,t))return ue[t];var symbol=ee(t);return ue[t]=symbol,ce[symbol]=t,symbol},keyFor:function(e){if(!w(e))throw TypeError(e+" is not a symbol");if(m(ce,e))return ce[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),n({target:"Object",stat:!0,forced:!f,sham:!d},{create:function(e,t){return void 0===t?k(e):ye(k(e),t)},defineProperty:me,defineProperties:ye,getOwnPropertyDescriptor:be}),n({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:ve,getOwnPropertySymbols:Te}),n({target:"Object",stat:!0,forced:h((function(){L.f(1)}))},{getOwnPropertySymbols:function(e){return L.f(E(e))}}),te)&&n({target:"JSON",stat:!0,forced:!f||h((function(){var symbol=ee();return"[null]"!=te([symbol])||"{}"!=te({a:symbol})||"{}"!=te(Object(symbol))}))},{stringify:function(e,t,r){for(var n,o=[e],c=1;arguments.length>c;)o.push(arguments[c++]);if(n=t,(T(t)||void 0!==e)&&!w(e))return y(t)||(t=function(e,t){if(v(n)&&(t=n.call(this,e,t)),!w(t))return t}),o[1]=t,te.apply(null,o)}});if(!ee.prototype[Q]){var we=ee.prototype.valueOf;x(ee.prototype,Q,(function(){return we.apply(this,arguments)}))}U(ee,K),J[Z]=!0},function(e,t,r){var n=r(38),o=r(72).f,c={}.toString,l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"[object Window]"==c.call(e)?function(e){try{return o(e)}catch(e){return l.slice()}}(e):o(n(e))}},function(e,t,r){var path=r(182),n=r(29),o=r(131),c=r(35).f;e.exports=function(e){var t=path.Symbol||(path.Symbol={});n(t,e)||c(t,e,{value:o.f(e)})}},function(e,t,r){var n=r(23);e.exports=n},function(e,t,r){"use strict";var n=r(26),o=r(87).filter;n({target:"Array",proto:!0,forced:!r(132)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(26),o=r(24),c=r(38),l=r(49).f,d=r(30),f=o((function(){l(1)}));n({target:"Object",stat:!0,forced:!d||f,sham:!d},{getOwnPropertyDescriptor:function(e,t){return l(c(e),t)}})},function(e,t,r){var n=r(26),o=r(30),c=r(123),l=r(38),d=r(49),f=r(102);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var e,t,r=l(object),n=d.f,o=c(r),h={},m=0;o.length>m;)void 0!==(t=n(r,e=o[m++]))&&f(h,e,t);return h}})},function(e,t,r){"use strict";r.r(t),r.d(t,"getBatches",(function(){return c})),r.d(t,"getBlocksBatches",(function(){return l})),r.d(t,"sleep",(function(){return d})),r.d(t,"isAmount",(function(){return h})),r.d(t,"getOperationChecker",(function(){return m})),r.d(t,"getIsWhitelistedDomain",(function(){return y})),r.d(t,"controlledPromise",(function(){return v}));var n=r(16),o=(r(85),r(187),r(188),r(195),r(201),r(129),r(130),r(137),r(138),r(47));function c(e,t){for(var r=[];e.length;)r.push(e.splice(0,t));return r}function l(e,t,r){var n=t-e,c=Math.ceil(n/r);return Array.from({length:r},(function(n,l){var d=e+c*l,f=d+c-o.numbers.ONE;return l+o.numbers.ONE===r&&(f=t),[d>f?f:d,f>t?t:f]}))}function d(e){return f.apply(this,arguments)}function f(){return(f=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,t)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return e&&Number(e)}function m(e){var t=e.checker,r=e.isRelayer;return e.additionalCondition?t&&!r:t}function y(){return!!window.location.host.includes("compassionate-payne-b9dc6b.netlify.app")||["localhost:3000","nova.tornadocash.eth","nova.tornadocash.eth.link","nova.tornadocash.eth.limo"].includes(window.location.host)}function v(e){var t,r;return{promise:new Promise((function(n,o){t=o,r=n,e.then(n).catch(o)})),resolve:r,reject:t}}},function(e,t,r){"use strict";var n=r(26),o=r(126),c=r(65),l=r(64),d=r(44),f=r(116),h=r(102),m=r(132)("splice"),y=Math.max,v=Math.min,T=9007199254740991,w="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!m},{splice:function(e,t){var r,n,m,A,E,S,O=d(this),_=l(O.length),M=o(e,_),k=arguments.length;if(0===k?r=n=0:1===k?(r=0,n=_-M):(r=k-2,n=v(y(c(t),0),_-M)),_+r-n>T)throw TypeError(w);for(m=f(O,n),A=0;A<n;A++)(E=M+A)in O&&h(m,A,O[E]);if(m.length=n,r<n){for(A=M;A<_-n;A++)S=A+r,(E=A+n)in O?O[S]=O[E]:delete O[S];for(A=_;A>_-n+r;A--)delete O[A-1]}else if(r>n)for(A=_-n;A>M;A--)S=A+r-1,(E=A+n-1)in O?O[S]=O[E]:delete O[S];for(A=0;A<r;A++)O[A+M]=arguments[A+2];return O.length=_-n+r,m}})},function(e,t,r){var n=r(26),o=r(189);n({target:"Array",stat:!0,forced:!r(194)((function(e){Array.from(e)}))},{from:o})},function(e,t,r){"use strict";var n=r(113),o=r(44),c=r(190),l=r(192),d=r(88),f=r(64),h=r(102),m=r(193),y=r(133);e.exports=function(e){var t=o(e),r=d(this),v=arguments.length,T=v>1?arguments[1]:void 0,w=void 0!==T;w&&(T=n(T,v>2?arguments[2]:void 0,2));var A,E,S,O,_,M,k=y(t),C=0;if(!k||this==Array&&l(k))for(A=f(t.length),E=r?new this(A):Array(A);A>C;C++)M=w?T(t[C],C):t[C],h(E,C,M);else for(_=(O=m(t,k)).next,E=r?new this:[];!(S=_.call(O)).done;C++)M=w?c(O,T,[S.value,C],!0):S.value,h(E,C,M);return E.length=C,E}},function(e,t,r){var n=r(36),o=r(191);e.exports=function(e,t,r,c){try{return c?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},function(e,t,r){var n=r(36),o=r(96);e.exports=function(e,t,r){var c,l;n(e);try{if(!(c=o(e,"return"))){if("throw"===t)throw r;return r}c=c.call(e)}catch(e){l=!0,c=e}if("throw"===t)throw r;if(l)throw c;return n(c),r}},function(e,t,r){var n=r(19),o=r(74),c=n("iterator"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||l[c]===e)}},function(e,t,r){var n=r(63),o=r(36),c=r(133);e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(n(r))return o(r.call(e));throw TypeError(String(e)+" is not iterable")}},function(e,t,r){var n=r(19)("iterator"),o=!1;try{var c=0,l={next:function(){return{done:!!c++}},return:function(){o=!0}};l[n]=function(){return this},Array.from(l,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var object={};object[n]=function(){return{next:function(){return{done:r=!0}}}},e(object)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(196).charAt,o=r(61),c=r(98),l=r(197),d="String Iterator",f=c.set,h=c.getterFor(d);l(String,"String",(function(e){f(this,{type:d,string:o(e),index:0})}),(function(){var e,t=h(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(65),o=r(61),c=r(58),l=function(e){return function(t,r){var l,d,f=o(c(t)),h=n(r),m=f.length;return h<0||h>=m?e?"":void 0:(l=f.charCodeAt(h))<55296||l>56319||h+1===m||(d=f.charCodeAt(h+1))<56320||d>57343?e?f.charAt(h):l:e?f.slice(h,h+2):d-56320+(l-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},function(e,t,r){"use strict";var n=r(26),o=r(67),c=r(99),l=r(18),d=r(198),f=r(135),h=r(136),m=r(101),y=r(59),v=r(50),T=r(19),w=r(74),A=r(134),E=c.PROPER,S=c.CONFIGURABLE,O=A.IteratorPrototype,_=A.BUGGY_SAFARI_ITERATORS,M=T("iterator"),k="keys",C="values",P="entries",F=function(){return this};e.exports=function(e,t,r,c,T,A,L){d(r,t,c);var R,B,N,x=function(e){if(e===T&&X)return X;if(!_&&e in J)return J[e];switch(e){case k:case C:case P:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",I=!1,J=e.prototype,D=J[M]||J["@@iterator"]||T&&J[T],X=!_&&D||x(T),G="Array"==t&&J.entries||D;if(G&&(R=f(G.call(new e)))!==Object.prototype&&R.next&&(o||f(R)===O||(h?h(R,O):l(R[M])||v(R,M,F)),m(R,j,!0,!0),o&&(w[j]=F)),E&&T==C&&D&&D.name!==C&&(!o&&S?y(J,"name",C):(I=!0,X=function(){return D.call(this)})),T)if(B={values:x(C),keys:A?X:x(k),entries:x(P)},L)for(N in B)(_||I||!(N in J))&&v(J,N,B[N]);else n({target:t,proto:!0,forced:_||I},B);return o&&!L||J[M]===X||v(J,M,X,{name:T}),w[t]=X,B}},function(e,t,r){"use strict";var n=r(134).IteratorPrototype,o=r(51),c=r(60),l=r(101),d=r(74),f=function(){return this};e.exports=function(e,t,r){var h=t+" Iterator";return e.prototype=o(n,{next:c(1,r)}),l(e,h,!1,!0),d[h]=f,e}},function(e,t,r){var n=r(24);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(18);e.exports=function(e){if("object"==typeof e||n(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,r){"use strict";var n=r(30),o=r(23),c=r(128),l=r(50),d=r(29),f=r(57),h=r(202),m=r(69),y=r(122),v=r(24),T=r(51),w=r(72).f,A=r(49).f,E=r(35).f,S=r(203).trim,O="Number",_=o.Number,M=_.prototype,k=f(T(M))==O,C=function(e){if(m(e))throw TypeError("Cannot convert a Symbol value to a number");var t,r,n,o,c,l,d,code,f=y(e,"number");if("string"==typeof f&&f.length>2)if(43===(t=(f=S(f)).charCodeAt(0))||45===t){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(l=(c=f.slice(2)).length,d=0;d<l;d++)if((code=c.charCodeAt(d))<48||code>o)return NaN;return parseInt(c,n)}return+f};if(c(O,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var P,F=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof F&&(k?v((function(){M.valueOf.call(r)})):f(r)!=O)?h(new _(C(t)),r,F):C(t)},L=n?w(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),R=0;L.length>R;R++)d(_,P=L[R])&&!d(F,P)&&E(F,P,A(_,P));F.prototype=M,M.constructor=F,l(o,O,F)}},function(e,t,r){var n=r(18),o=r(33),c=r(136);e.exports=function(e,t,r){var l,d;return c&&n(l=t.constructor)&&l!==r&&o(d=l.prototype)&&d!==r.prototype&&c(e,d),e}},function(e,t,r){var n=r(58),o=r(61),c="["+r(204)+"]",l=RegExp("^"+c+c+"*"),d=RegExp(c+c+"*$"),f=function(e){return function(t){var r=o(n(t));return 1&e&&(r=r.replace(l,"")),2&e&&(r=r.replace(d,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},function(e,t,r){"use strict";var n=r(89),o=r(66);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,r){var n=r(26),o=r(45),c=r(207),l=r(36),d=r(33),f=r(51),h=r(208),m=r(24),y=o("Reflect","construct"),v=m((function(){function e(){}return!(y((function(){}),[],e)instanceof e)})),T=!m((function(){y((function(){}))})),w=v||T;n({target:"Reflect",stat:!0,forced:w,sham:w},{construct:function(e,t){c(e),l(t);var r=arguments.length<3?e:c(arguments[2]);if(T&&!v)return y(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(h.apply(e,n))}var o=r.prototype,m=f(d(o)?o:Object.prototype),w=Function.apply.call(e,m,t);return d(w)?w:m}})},function(e,t,r){var n=r(88),o=r(114);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a constructor")}},function(e,t,r){"use strict";var n=r(63),o=r(33),c=[].slice,l={},d=function(e,t,r){if(!(t in l)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";l[t]=Function("C,a","return new C("+n.join(",")+")")}return l[t](e,r)};e.exports=Function.bind||function(e){var t=n(this),r=c.call(arguments,1),l=function(){var n=r.concat(c.call(arguments));return this instanceof l?d(t,n.length,n):t.apply(e,n)};return o(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t,r){"use strict";r.r(t),r.d(t,"OFFCHAIN_ORACLE_CONTRACT",(function(){return _})),r.d(t,"POOL_CONTRACT",(function(){return M})),r.d(t,"REDGISTRY_CONTRACT",(function(){return k})),r.d(t,"AGGREGATOR_FACTORY",(function(){return C})),r.d(t,"WRAPPED_TOKEN",(function(){return P})),r.d(t,"RPC_LIST",(function(){return F})),r.d(t,"FALLBACK_RPC_LIST",(function(){return L})),r.d(t,"RPC_WS_LIST",(function(){return R})),r.d(t,"MULTICALL",(function(){return B})),r.d(t,"BRIDGE_PROXY",(function(){return N})),r.d(t,"AMB_BRIDGE",(function(){return x})),r.d(t,"BRIDGE_HELPER",(function(){return j})),r.d(t,"BRIDGE_FEE_MANAGER",(function(){return I})),r.d(t,"FOREIGN_OMNIBRIDGE",(function(){return J})),r.d(t,"OMNIBRIDGE",(function(){return D})),r.d(t,"SANCTION_LIST",(function(){return X}));var n,o,c,l,d,f,h=r(8);!function(e){e.SET_ENS_NAME="SET_ENS_NAME",e.SET_PROVIDER="SET_PROVIDER",e.CLEAR_PROVIDER="CLEAR_PROVIDER",e.SET_WALLET_ADDRESS="SET_ACCOUNT",e.MISMATCH_NETWORK="MISMATCH_NETWORK",e.SET_WALLET_BALANCE="SET_WALLET_BALANCE",e.SET_PROVIDER_CONNECTION="SET_PROVIDER_CONNECTION"}(n||(n={})),function(e){e.SET_ENS_NAME="SET_ENS_NAME",e.CLEAR_ACCOUNT="CLEAR_ACCOUNT",e.SET_TRANSFER_METHOD="SET_TRANSFER_METHOD",e.SET_ACCOUNT_BALANCE="SET_ACCOUNT_BALANCE",e.SET_ACCOUNT_ADDRESS="SET_ACCOUNT_ADDRESS",e.UPDATE_ACCOUNT_BALANCE="UPDATE_ACCOUNT_BALANCE",e.SET_IS_BALANCE_FETCHING="SET_IS_BALANCE_FETCHING",e.SET_SHOULD_PRIVACY_ALERT="SET_SHOULD_PRIVACY_ALERT",e.SET_SHOULD_SHOW_RISK_ALERT="SET_SHOULD_SHOW_RISK_ALERT",e.SET_REGISTERED_IN_POOL_STATUS="SET_REGISTERED_IN_POOL_STATUS",e.SET_SHOULD_SHOW_CONFIRM_MODAL="SET_SHOULD_SHOW_CONFIRM_MODAL",e.SET_SHOULD_SHOW_ETH_LINK_ALERT="SET_SHOULD_SHOW_ETH_LINK_ALERT",e.SET_SHOULD_SHOW_POOL_TRANSFER_ALERT="SET_SHOULD_SHOW_POOL_TRANSFER_ALERT"}(o||(o={})),function(e){e.SET_ETH_RATE="SET_ETH_RATE",e.SET_RELAYERS="SET_RELAYERS",e.FINISH_ACTIVE_JOB="FINISH_ACTIVE_JOB",e.UPDATE_ACTIVE_JOB="UPDATE_ACTIVE_JOB",e.SET_ACTIVE_RELAYER="SET_ACTIVE_RELAYER",e.EDIT_RELAYERS_LIST="EDIT_RELAYERS_LIST",e.SET_RELAYERS_FETCHING="SET_RELAYERS_FETCHING"}(c||(c={})),function(e){e.SET_BASE_FEE="SET_BASE_FEE",e.SET_GAS_PRICES="SET_GAS_PRICES",e.SET_GAS_PARAMS="SET_GAS_PARAMS"}(l||(l={})),function(e){e.CLEAR_PROCESSING="CLEAR_PROCESSING",e.SET_PROCESSING_MODAL="SET_PROCESSING_MODAL",e.SET_PROCESSING_INFO="SET_PROCESSING_INFO",e.SET_PROCESSING_STATUS="SET_PROCESSING_STATUS",e.SET_CONTRACT_CONSTANTS="SET_CONTRACT_CONSTANTS"}(d||(d={})),function(e){e.SET_TRANSACTION="SET_TRANSACTION",e.REMOVE_ENTITIES="REMOVE_ENTITIES",e.UPDATE_TRANSACTION="UPDATE_TRANSACTION",e.SET_ACCOUNT_ENTITIES="SET_ACCOUNT_ENTITIES",e.SET_PENDING_TRANSACTION="SET_PENDING_TRANSACTION",e.UPDATE_PENDING_TRANSACTION="UPDATE_PENDING_TRANSACTION"}(f||(f={}));var m,y,v,T,w,A,E,S,O;!function(e){e[e.BSC=56]="BSC",e[e.XDAI=100]="XDAI",e[e.MAINNET=1]="MAINNET"}(m||(m={}));var _="0x07D91f5fb9Bf7798734C3f606dB065549F6893bb",M=Object(h.a)({},m.XDAI,"0xD692Fd2D0b2Fbd2e52CFa5B5b9424bC981C30696"),k=Object(h.a)({},m.MAINNET,"0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2"),C=Object(h.a)({},m.MAINNET,"0xE8F47A78A6D52D317D0D2FFFac56739fE14D1b49"),P=(y={},Object(h.a)(y,m.MAINNET,"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"),Object(h.a)(y,m.XDAI,"0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1"),Object(h.a)(y,m.BSC,"0xCa8d20f3e0144a72C6B5d576e9Bd3Fd8557E2B04"),y),F=(v={},Object(h.a)(v,m.BSC,"https://bsc-dataseed.binance.org/"),Object(h.a)(v,m.MAINNET,"https://mainnet.infura.io/v3/9b8f0ddb3e684ece890f594bf1710c88"),Object(h.a)(v,m.XDAI,"https://rpc.gnosischain.com/tornado"),v),L=(T={},Object(h.a)(T,m.BSC,["https://bsc-dataseed1.defibit.io/"]),Object(h.a)(T,m.MAINNET,["https://eth-mainnet.alchemyapi.io/v2/3MKhHE9x4Lz6x-tYWNiZe2Jy8C56kBq6"]),Object(h.a)(T,m.XDAI,["https://poa-xdai.gateway.pokt.network/v1/lb/61a6992dd6fbf3591b90c95b","https://rpc.gnosischain.com"]),T),R=(w={},Object(h.a)(w,m.MAINNET,"wss://mainnet.infura.io/ws/v3/9b8f0ddb3e684ece890f594bf1710c88"),Object(h.a)(w,m.BSC,"wss://bsc-ws-node.nariox.org"),Object(h.a)(w,m.XDAI,"wss://rpc.xdaichain.com/wss/"),w),B=(A={},Object(h.a)(A,m.BSC,"0xf072f255A3324198C7F653237B44E1C4e66f8C42"),Object(h.a)(A,m.XDAI,"0x8677b93D543d0217B32B8FDc20F2316E138D619B"),Object(h.a)(A,m.MAINNET,"0x1F98415757620B543A52E61c46B32eB19261F984"),A),N=(E={},Object(h.a)(E,m.BSC,"0x05185872898b6f94AA600177EF41B9334B1FA48B"),Object(h.a)(E,m.MAINNET,"0x4c36d2919e407f0cc2ee3c993ccf8ac26d9ce64e"),E),x=(S={},Object(h.a)(S,m.XDAI,"0x75Df5AF045d91108662D8080fD1FEFAd6aA0bb59"),Object(h.a)(S,m.MAINNET,"0x162E898bD0aacB578C8D5F8d6ca588c13d2A383F"),S),j=(O={},Object(h.a)(O,m.MAINNET,"0xCa0840578f57fE71599D29375e16783424023357"),Object(h.a)(O,m.BSC,"0x8845F740F8B01bC7D9A4C82a6fD4A60320c07AF1"),O),I=Object(h.a)({},m.XDAI,"0x5dbC897aEf6B18394D845A922BF107FA98E3AC55"),J=Object(h.a)({},m.MAINNET,"0x88ad09518695c6c3712ac10a214be5109a655671"),D=Object(h.a)({},m.XDAI,"0xf6A78083ca3e2a662D6dd1703c939c8aCE2e268d"),X=Object(h.a)({},m.MAINNET,"0x40C57923924B5c5c5455c48D93317139ADDaC8fb")},function(e,t,r){"use strict";r.r(t),r.d(t,"Aggregator__factory",(function(){return f})),r.d(t,"AmbBridge__factory",(function(){return m})),r.d(t,"BridgeBNB__factory",(function(){return v})),r.d(t,"BscBridgeHelper__factory",(function(){return w})),r.d(t,"FeeManager__factory",(function(){return E})),r.d(t,"ForeignOmnibridge__factory",(function(){return O})),r.d(t,"Multicall__factory",(function(){return M})),r.d(t,"OffchainOracle__factory",(function(){return C})),r.d(t,"Omnibridge__factory",(function(){return F})),r.d(t,"RelayerRegistry__factory",(function(){return R})),r.d(t,"SanctionsList__factory",(function(){return N})),r.d(t,"TornadoPool__factory",(function(){return j})),r.d(t,"WbnbXdai__factory",(function(){return J}));var n=r(9),o=r(10),c=r(40),l=r(46),d=[{inputs:[],name:"ensRegistry",outputs:[{internalType:"contract ENSRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Governance",name:"governance",type:"address"}],name:"getAllProposals",outputs:[{components:[{internalType:"address",name:"proposer",type:"address"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"bool",name:"executed",type:"bool"},{internalType:"bool",name:"extended",type:"bool"},{internalType:"enum Governance.ProposalState",name:"state",type:"uint8"}],internalType:"struct GovernanceAggregator.Proposal[]",name:"proposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Governance",name:"governance",type:"address"},{internalType:"address[]",name:"accs",type:"address[]"}],name:"getGovernanceBalances",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Governance",name:"governance",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"getUserData",outputs:[{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"latestProposalId",type:"uint256"},{internalType:"uint256",name:"latestProposalIdState",type:"uint256"},{internalType:"uint256",name:"timelock",type:"uint256"},{internalType:"address",name:"delegatee",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"relayerRegistry",outputs:[{internalType:"contract RelayerRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32[]",name:"_relayers",type:"bytes32[]"},{internalType:"string[]",name:"_subdomains",type:"string[]"}],name:"relayersData",outputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"bool",name:"isRegistered",type:"bool"},{internalType:"string[20]",name:"records",type:"string[20]"}],internalType:"struct Relayer[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"}],f=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(d)}},{key:"connect",value:function(address,e){return new l.b(address,d,e)}}]),e}();f.abi=d;var h=[{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"transactionHash",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"numMessagesSigned",inputs:[{type:"bytes32",name:"_message"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"confirmInformation",inputs:[{type:"bytes32",name:"_messageId"},{type:"bool",name:"_status"},{type:"bytes",name:"_result"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"sourceChainId",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"_sendMessage",inputs:[{type:"address",name:"_contract"},{type:"bytes",name:"_data"},{type:"uint256",name:"_gas"},{type:"uint256",name:"_dataType"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes",name:""}],name:"signature",inputs:[{type:"bytes32",name:"_hash"},{type:"uint256",name:"_index"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"initialize",inputs:[{type:"uint256",name:"_sourceChainId"},{type:"uint256",name:"_destinationChainId"},{type:"address",name:"_validatorContract"},{type:"uint256",name:"_maxGasPerTx"},{type:"uint256",name:"_gasPrice"},{type:"uint256",name:"_requiredBlockConfirmations"},{type:"address",name:"_owner"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"isInitialized",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"requiredBlockConfirmations",inputs:[],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"uint256",name:"gas"}],name:"getMinimumGasUsage",inputs:[{type:"bytes",name:"_data"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"failedMessageReceiver",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"bytes4",name:"_data"}],name:"getBridgeMode",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setChainIds",inputs:[{type:"uint256",name:"_sourceChainId"},{type:"uint256",name:"_destinationChainId"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes",name:""}],name:"message",inputs:[{type:"bytes32",name:"_hash"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"failedMessageSender",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"allowReentrantRequests",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"requireToGetInformation",inputs:[{type:"bytes32",name:"_requestSelector"},{type:"bytes",name:"_data"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"submitSignature",inputs:[{type:"bytes",name:"signature"},{type:"bytes",name:"message"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:"id"}],name:"messageId",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"numAffirmationsSigned",inputs:[{type:"bytes32",name:"_hash"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"affirmationsSigned",inputs:[{type:"bytes32",name:"_hash"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setMaxGasPerTx",inputs:[{type:"uint256",name:"_maxGasPerTx"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"requiredSignatures",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"owner",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"messagesSigned",inputs:[{type:"bytes32",name:"_message"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"requireToConfirmMessage",inputs:[{type:"address",name:"_contract"},{type:"bytes",name:"_data"},{type:"uint256",name:"_gas"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"validatorContract",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"deployedAtBlock",inputs:[],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"uint64",name:"major"},{type:"uint64",name:"minor"},{type:"uint64",name:"patch"}],name:"getBridgeInterfacesVersion",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:"id"}],name:"messageSourceChainId",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setRequiredBlockConfirmations",inputs:[{type:"uint256",name:"_blockConfirmations"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"destinationChainId",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setGasPrice",inputs:[{type:"uint256",name:"_gasPrice"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setAllowReentrantRequests",inputs:[{type:"bool",name:"_enable"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"enableAsyncRequestSelector",inputs:[{type:"bytes32",name:"_requestSelector"},{type:"bool",name:"_enable"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"messageCallStatus",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:"sender"}],name:"messageSender",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"int256",name:""}],name:"decimalShift",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"requireToPassMessage",inputs:[{type:"address",name:"_contract"},{type:"bytes",name:"_data"},{type:"uint256",name:"_gas"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"failedMessageDataHash",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"maxGasPerTx",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"executeAffirmation",inputs:[{type:"bytes",name:"message"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"transferOwnership",inputs:[{type:"address",name:"newOwner"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"isAsyncRequestSelectorEnabled",inputs:[{type:"bytes32",name:"_requestSelector"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"gasPrice",inputs:[],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"bool",name:""}],name:"isAlreadyProcessed",inputs:[{type:"uint256",name:"_number"}],constant:!0},{type:"event",name:"UserRequestForSignature",inputs:[{type:"bytes32",name:"messageId",indexed:!0},{type:"bytes",name:"encodedData",indexed:!1}],anonymous:!1},{type:"event",name:"AffirmationCompleted",inputs:[{type:"address",name:"sender",indexed:!0},{type:"address",name:"executor",indexed:!0},{type:"bytes32",name:"messageId",indexed:!0},{type:"bool",name:"status",indexed:!1}],anonymous:!1},{type:"event",name:"UserRequestForInformation",inputs:[{type:"bytes32",name:"messageId",indexed:!0},{type:"bytes32",name:"requestSelector",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"bytes",name:"data",indexed:!1}],anonymous:!1},{type:"event",name:"SignedForInformation",inputs:[{type:"address",name:"signer",indexed:!0},{type:"bytes32",name:"messageId",indexed:!0}],anonymous:!1},{type:"event",name:"InformationRetrieved",inputs:[{type:"bytes32",name:"messageId",indexed:!0},{type:"bool",name:"status",indexed:!1},{type:"bool",name:"callbackStatus",indexed:!1}],anonymous:!1},{type:"event",name:"EnabledAsyncRequestSelector",inputs:[{type:"bytes32",name:"requestSelector",indexed:!0},{type:"bool",name:"enable",indexed:!1}],anonymous:!1},{type:"event",name:"SignedForUserRequest",inputs:[{type:"address",name:"signer",indexed:!0},{type:"bytes32",name:"messageHash",indexed:!1}],anonymous:!1},{type:"event",name:"SignedForAffirmation",inputs:[{type:"address",name:"signer",indexed:!0},{type:"bytes32",name:"messageHash",indexed:!1}],anonymous:!1},{type:"event",name:"CollectedSignatures",inputs:[{type:"address",name:"authorityResponsibleForRelay",indexed:!1},{type:"bytes32",name:"messageHash",indexed:!1},{type:"uint256",name:"NumberOfCollectedSignatures",indexed:!1}],anonymous:!1},{type:"event",name:"GasPriceChanged",inputs:[{type:"uint256",name:"gasPrice",indexed:!1}],anonymous:!1},{type:"event",name:"RequiredBlockConfirmationChanged",inputs:[{type:"uint256",name:"requiredBlockConfirmations",indexed:!1}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{type:"address",name:"previousOwner",indexed:!1},{type:"address",name:"newOwner",indexed:!1}],anonymous:!1}],m=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(h)}},{key:"connect",value:function(address,e){return new l.b(address,h,e)}}]),e}();m.abi=h;var y=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"executor",type:"address"},{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"},{indexed:!1,internalType:"bool",name:"status",type:"bool"}],name:"RelayedMessage",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"encodedData",type:"bytes"}],name:"UserRequestForAffirmation",type:"event"}],v=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(y)}},{key:"connect",value:function(address,e){return new l.b(address,y,e)}}]),e}();v.abi=y;var T=[{inputs:[{internalType:"contract IOmnibridge",name:"_bridge",type:"address"},{internalType:"contract IWETH",name:"_weth",type:"address"},{internalType:"address",name:"_owner",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"key",type:"bytes"}],name:"PublicKey",type:"event"},{inputs:[],name:"WETH",outputs:[{internalType:"contract IWETH",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"bridge",outputs:[{internalType:"contract IOmnibridge",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_to",type:"address"}],name:"claimTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"onTokenBridged",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct L1Helper.Account",name:"_account",type:"tuple"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct L1Helper.Account",name:"_account",type:"tuple"}],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],w=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(T)}},{key:"connect",value:function(address,e){return new l.b(address,T,e)}}]),e}();w.abi=T;var A=[{type:"function",stateMutability:"view",outputs:[{type:"bytes32",name:"",internalType:"bytes32"}],name:"FOREIGN_TO_HOME_FEE",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"bytes32",name:"",internalType:"bytes32"}],name:"HOME_TO_FOREIGN_FEE",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"calculateFee",inputs:[{type:"bytes32",name:"_feeType",internalType:"bytes32"},{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"getFee",inputs:[{type:"bytes32",name:"_feeType",internalType:"bytes32"},{type:"address",name:"_token",internalType:"address"}]}],E=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(A)}},{key:"connect",value:function(address,e){return new l.b(address,A,e)}}]),e}();E.abi=A;var S=[{inputs:[{internalType:"string",name:"_suffix",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"newLimit",type:"uint256"}],name:"DailyLimitChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"newLimit",type:"uint256"}],name:"ExecutionDailyLimitChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"},{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"FailedMessageFixed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nativeToken",type:"address"},{indexed:!0,internalType:"address",name:"bridgedToken",type:"address"}],name:"NewTokenRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"TokensBridged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"TokensBridgingInitiated",type:"event"},{inputs:[],name:"bridgeContract",outputs:[{internalType:"contract IAMB",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_nativeToken",type:"address"}],name:"bridgedTokenAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_to",type:"address"}],name:"claimTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_bridgedToken",type:"address"},{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_to",type:"address"}],name:"claimTokensFromTokenContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"dailyLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"deployAndHandleBridgedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployAndHandleBridgedTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"disableInterest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"executionDailyLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"executionMaxPerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_messageId",type:"bytes32"}],name:"fixFailedMessage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_receiver",type:"address"}],name:"fixMediatorBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getBridgeInterfacesVersion",outputs:[{internalType:"uint64",name:"major",type:"uint64"},{internalType:"uint64",name:"minor",type:"uint64"},{internalType:"uint64",name:"patch",type:"uint64"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getBridgeMode",outputs:[{internalType:"bytes4",name:"_data",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getCurrentDay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"handleBridgedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"handleBridgedTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"handleNativeTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"handleNativeTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_bridgeContract",type:"address"},{internalType:"address",name:"_mediatorContract",type:"address"},{internalType:"uint256[3]",name:"_dailyLimitMaxPerTxMinPerTxArray",type:"uint256[3]"},{internalType:"uint256[2]",name:"_executionDailyLimitExecutionMaxPerTxArray",type:"uint256[2]"},{internalType:"uint256",name:"_requestGasLimit",type:"uint256"},{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_tokenFactory",type:"address"}],name:"initialize",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_impl",type:"address"},{internalType:"uint256",name:"_minCashThreshold",type:"uint256"}],name:"initializeInterest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"interestImplementation",outputs:[{internalType:"contract IInterestImplementation",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"invest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isBridgedTokenDeployAcknowledged",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isInitialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isRegisteredAsNativeToken",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isTokenRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"maxAvailablePerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"maxPerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"mediatorBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"mediatorContractOnOtherSide",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_messageId",type:"bytes32"}],name:"messageFixed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_tokenFactory",type:"address"},{internalType:"address",name:"_interestImplementation",type:"address"}],name:"migrateTo_3_3_0",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"minCashThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"minPerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_bridgedToken",type:"address"}],name:"nativeTokenAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"onTokenTransfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC677",name:"token",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"relayTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC677",name:"token",type:"address"},{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"relayTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC677",name:"token",type:"address"},{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"relayTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_messageId",type:"bytes32"}],name:"requestFailedMessageFix",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"requestGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_bridgeContract",type:"address"}],name:"setBridgeContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_nativeToken",type:"address"},{internalType:"address",name:"_bridgedToken",type:"address"}],name:"setCustomTokenAddressPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_dailyLimit",type:"uint256"}],name:"setDailyLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_dailyLimit",type:"uint256"}],name:"setExecutionDailyLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_maxPerTx",type:"uint256"}],name:"setExecutionMaxPerTx",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_maxPerTx",type:"uint256"}],name:"setMaxPerTx",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_mediatorContract",type:"address"}],name:"setMediatorContractOnOtherSide",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_minCashThreshold",type:"uint256"}],name:"setMinCashThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_minPerTx",type:"uint256"}],name:"setMinPerTx",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_gasLimit",type:"uint256"}],name:"setRequestGasLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_tokenFactory",type:"address"}],name:"setTokenFactory",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"tokenFactory",outputs:[{internalType:"contract TokenFactory",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_day",type:"uint256"}],name:"totalExecutedPerDay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_day",type:"uint256"}],name:"totalSpentPerDay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withinExecutionLimit",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withinLimit",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}],O=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(S)}},{key:"connect",value:function(address,e){return new l.b(address,S,e)}}]),e}();O.abi=S;var _=[{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"getEthBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"bytes",name:"callData",type:"bytes"}],internalType:"struct UniswapInterfaceMulticall.Call[]",name:"calls",type:"tuple[]"}],name:"multicall",outputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"},{components:[{internalType:"bool",name:"success",type:"bool"},{internalType:"uint256",name:"gasUsed",type:"uint256"},{internalType:"bytes",name:"returnData",type:"bytes"}],internalType:"struct UniswapInterfaceMulticall.Result[]",name:"returnData",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"}],M=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(_)}},{key:"connect",value:function(address,e){return new l.b(address,_,e)}}]),e}();M.abi=_;var k=[{inputs:[{internalType:"contract MultiWrapper",name:"_multiWrapper",type:"address"},{internalType:"contract IOracle[]",name:"existingOracles",type:"address[]"},{internalType:"enum OffchainOracle.OracleType[]",name:"oracleTypes",type:"uint8[]"},{internalType:"contract IERC20[]",name:"existingConnectors",type:"address[]"},{internalType:"contract IERC20",name:"wBase",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IERC20",name:"connector",type:"address"}],name:"ConnectorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IERC20",name:"connector",type:"address"}],name:"ConnectorRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract MultiWrapper",name:"multiWrapper",type:"address"}],name:"MultiWrapperUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IOracle",name:"oracle",type:"address"},{indexed:!1,internalType:"enum OffchainOracle.OracleType",name:"oracleType",type:"uint8"}],name:"OracleAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IOracle",name:"oracle",type:"address"},{indexed:!1,internalType:"enum OffchainOracle.OracleType",name:"oracleType",type:"uint8"}],name:"OracleRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"contract IERC20",name:"connector",type:"address"}],name:"addConnector",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IOracle",name:"oracle",type:"address"},{internalType:"enum OffchainOracle.OracleType",name:"oracleKind",type:"uint8"}],name:"addOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"connectors",outputs:[{internalType:"contract IERC20[]",name:"allConnectors",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"srcToken",type:"address"},{internalType:"contract IERC20",name:"dstToken",type:"address"},{internalType:"bool",name:"useWrappers",type:"bool"}],name:"getRate",outputs:[{internalType:"uint256",name:"weightedRate",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"srcToken",type:"address"},{internalType:"bool",name:"useSrcWrappers",type:"bool"}],name:"getRateToEth",outputs:[{internalType:"uint256",name:"weightedRate",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"multiWrapper",outputs:[{internalType:"contract MultiWrapper",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracles",outputs:[{internalType:"contract IOracle[]",name:"allOracles",type:"address[]"},{internalType:"enum OffchainOracle.OracleType[]",name:"oracleTypes",type:"uint8[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"connector",type:"address"}],name:"removeConnector",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IOracle",name:"oracle",type:"address"},{internalType:"enum OffchainOracle.OracleType",name:"oracleKind",type:"uint8"}],name:"removeOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract MultiWrapper",name:"_multiWrapper",type:"address"}],name:"setMultiWrapper",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],C=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(k)}},{key:"connect",value:function(address,e){return new l.b(address,k,e)}}]),e}();C.abi=k;var P=[{type:"constructor",stateMutability:"nonpayable",inputs:[{type:"string",name:"_suffix",internalType:"string"}]},{type:"event",name:"DailyLimitChanged",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"uint256",name:"newLimit",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"ExecutionDailyLimitChanged",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"uint256",name:"newLimit",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"FailedMessageFixed",inputs:[{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0},{type:"address",name:"token",internalType:"address",indexed:!1},{type:"address",name:"recipient",internalType:"address",indexed:!1},{type:"uint256",name:"value",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"FeeDistributed",inputs:[{type:"uint256",name:"fee",internalType:"uint256",indexed:!1},{type:"address",name:"token",internalType:"address",indexed:!0},{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0}],anonymous:!1},{type:"event",name:"FeeDistributionFailed",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"uint256",name:"fee",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"NewTokenRegistered",inputs:[{type:"address",name:"nativeToken",internalType:"address",indexed:!0},{type:"address",name:"bridgedToken",internalType:"address",indexed:!0}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{type:"address",name:"previousOwner",internalType:"address",indexed:!1},{type:"address",name:"newOwner",internalType:"address",indexed:!1}],anonymous:!1},{type:"event",name:"TokensBridged",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"address",name:"recipient",internalType:"address",indexed:!0},{type:"uint256",name:"value",internalType:"uint256",indexed:!1},{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0}],anonymous:!1},{type:"event",name:"TokensBridgingInitiated",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"address",name:"sender",internalType:"address",indexed:!0},{type:"uint256",name:"value",internalType:"uint256",indexed:!1},{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0}],anonymous:!1},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract IAMB"}],name:"bridgeContract",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"bridgedTokenAddress",inputs:[{type:"address",name:"_nativeToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"claimTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_to",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"claimTokensFromTokenContract",inputs:[{type:"address",name:"_bridgedToken",internalType:"address"},{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_to",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"dailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"deployAndHandleBridgedTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"string",name:"_name",internalType:"string"},{type:"string",name:"_symbol",internalType:"string"},{type:"uint8",name:"_decimals",internalType:"uint8"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"deployAndHandleBridgedTokensAndCall",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"string",name:"_name",internalType:"string"},{type:"string",name:"_symbol",internalType:"string"},{type:"uint8",name:"_decimals",internalType:"uint8"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"executionDailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"executionMaxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract OmnibridgeFeeManager"}],name:"feeManager",inputs:[]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"fixFailedMessage",inputs:[{type:"bytes32",name:"_messageId",internalType:"bytes32"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"fixMediatorBalance",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_receiver",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"foreignTokenAddress",inputs:[{type:"address",name:"_homeToken",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract MultiTokenForwardingRulesManager"}],name:"forwardingRulesManager",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract SelectorTokenGasLimitManager"}],name:"gasLimitManager",inputs:[]},{type:"function",stateMutability:"pure",outputs:[{type:"uint64",name:"major",internalType:"uint64"},{type:"uint64",name:"minor",internalType:"uint64"},{type:"uint64",name:"patch",internalType:"uint64"}],name:"getBridgeInterfacesVersion",inputs:[]},{type:"function",stateMutability:"pure",outputs:[{type:"bytes4",name:"_data",internalType:"bytes4"}],name:"getBridgeMode",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"getCurrentDay",inputs:[]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleBridgedTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleBridgedTokensAndCall",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleNativeTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleNativeTokensAndCall",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"homeTokenAddress",inputs:[{type:"address",name:"_foreignToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"initialize",inputs:[{type:"address",name:"_bridgeContract",internalType:"address"},{type:"address",name:"_mediatorContract",internalType:"address"},{type:"uint256[3]",name:"_dailyLimitMaxPerTxMinPerTxArray",internalType:"uint256[3]"},{type:"uint256[2]",name:"_executionDailyLimitExecutionMaxPerTxArray",internalType:"uint256[2]"},{type:"address",name:"_gasLimitManager",internalType:"address"},{type:"address",name:"_owner",internalType:"address"},{type:"address",name:"_tokenFactory",internalType:"address"},{type:"address",name:"_feeManager",internalType:"address"},{type:"address",name:"_forwardingRulesManager",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isBridgedTokenDeployAcknowledged",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isInitialized",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isRegisteredAsNativeToken",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isTokenRegistered",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"maxAvailablePerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"maxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"mediatorBalance",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"mediatorContractOnOtherSide",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"messageFixed",inputs:[{type:"bytes32",name:"_messageId",internalType:"bytes32"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"migrateTo_3_3_0",inputs:[{type:"address",name:"_tokenFactory",internalType:"address"},{type:"address",name:"_forwardingRulesManager",internalType:"address"},{type:"address",name:"_gasLimitManager",internalType:"address"},{type:"address",name:"_feeManager",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"minPerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"nativeTokenAddress",inputs:[{type:"address",name:"_bridgedToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"onTokenTransfer",inputs:[{type:"address",name:"_from",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"owner",inputs:[]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"relayTokens",inputs:[{type:"address",name:"token",internalType:"contract IERC677"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"relayTokens",inputs:[{type:"address",name:"token",internalType:"contract IERC677"},{type:"address",name:"_receiver",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"relayTokensAndCall",inputs:[{type:"address",name:"token",internalType:"contract IERC677"},{type:"address",name:"_receiver",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"requestFailedMessageFix",inputs:[{type:"bytes32",name:"_messageId",internalType:"bytes32"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setBridgeContract",inputs:[{type:"address",name:"_bridgeContract",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setCustomTokenAddressPair",inputs:[{type:"address",name:"_nativeToken",internalType:"address"},{type:"address",name:"_bridgedToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setDailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_dailyLimit",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setExecutionDailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_dailyLimit",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setExecutionMaxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_maxPerTx",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setFeeManager",inputs:[{type:"address",name:"_feeManager",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setForwardingRulesManager",inputs:[{type:"address",name:"_manager",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setGasLimitManager",inputs:[{type:"address",name:"_manager",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setMaxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_maxPerTx",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setMediatorContractOnOtherSide",inputs:[{type:"address",name:"_mediatorContract",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setMinPerTx",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_minPerTx",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setTokenFactory",inputs:[{type:"address",name:"_tokenFactory",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract TokenFactory"}],name:"tokenFactory",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"totalExecutedPerDay",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_day",internalType:"uint256"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"totalSpentPerDay",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_day",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"transferOwnership",inputs:[{type:"address",name:"newOwner",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"withinExecutionLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_amount",internalType:"uint256"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"withinLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_amount",internalType:"uint256"}]}],F=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(P)}},{key:"connect",value:function(address,e){return new l.b(address,P,e)}}]),e}();F.abi=P;var L=[{inputs:[{internalType:"address",name:"_torn",type:"address"},{internalType:"address",name:"_governance",type:"address"},{internalType:"address",name:"_ens",type:"address"},{internalType:"bytes32",name:"_staking",type:"bytes32"},{internalType:"bytes32",name:"_feeManager",type:"bytes32"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"minStakeAmount",type:"uint256"}],name:"MinimumStakeAmount",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"}],name:"RelayerBalanceNullified",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"relayer",type:"bytes32"},{indexed:!1,internalType:"string",name:"ensName",type:"string"},{indexed:!1,internalType:"address",name:"relayerAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"stakedAmount",type:"uint256"}],name:"RelayerRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tornadoRouter",type:"address"}],name:"RouterRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"uint256",name:"amountStakeAdded",type:"uint256"}],name:"StakeAddedToRelayer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"uint256",name:"amountBurned",type:"uint256"}],name:"StakeBurned",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"address",name:"worker",type:"address"}],name:"WorkerRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"address",name:"worker",type:"address"}],name:"WorkerUnregistered",type:"event"},{inputs:[{internalType:"bytes32[]",name:"domains",type:"bytes32[]"}],name:"bulkResolve",outputs:[{internalType:"address[]",name:"result",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"relayer",type:"address"},{internalType:"contract ITornadoInstance",name:"pool",type:"address"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"ens",outputs:[{internalType:"contract IENS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeManager",outputs:[{internalType:"contract FeeManager",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"getRelayerBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"getRelayerEnsHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_tornadoRouter",type:"bytes32"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"toResolve",type:"address"}],name:"isRelayer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"address",name:"toResolve",type:"address"}],name:"isRelayerRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"minStakeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"nullifyBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"ensName",type:"string"},{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"address[]",name:"workersToRegister",type:"address[]"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"ensName",type:"string"},{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"address[]",name:"workersToRegister",type:"address[]"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"registerPermit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"address",name:"worker",type:"address"}],name:"registerWorker",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"relayers",outputs:[{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"bytes32",name:"ensHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"resolve",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"minAmount",type:"uint256"}],name:"setMinStakeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tornadoRouterAddress",type:"address"}],name:"setTornadoRouter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"stake",type:"uint256"}],name:"stakeToRelayer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"address",name:"staker",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"stakeToRelayerPermit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"staking",outputs:[{internalType:"contract ITornadoStakingRewards",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"torn",outputs:[{internalType:"contract TORN",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"tornadoRouter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"worker",type:"address"}],name:"unregisterWorker",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"workers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],R=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(L)}},{key:"connect",value:function(address,e){return new l.b(address,L,e)}}]),e}();R.abi=L;var B=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"addr",type:"address"}],name:"NonSanctionedAddress",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"addr",type:"address"}],name:"SanctionedAddress",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"addrs",type:"address[]"}],name:"SanctionedAddressesAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"addrs",type:"address[]"}],name:"SanctionedAddressesRemoved",type:"event"},{inputs:[{internalType:"address[]",name:"newSanctions",type:"address[]"}],name:"addToSanctionsList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"isSanctioned",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"isSanctionedVerbose",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"removeSanctions",type:"address[]"}],name:"removeFromSanctionsList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],N=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(B)}},{key:"connect",value:function(address,e){return new l.b(address,B,e)}}]),e}();N.abi=B;var x=[{inputs:[{internalType:"contract IVerifier",name:"_verifier2",type:"address"},{internalType:"contract IVerifier",name:"_verifier16",type:"address"},{internalType:"uint32",name:"_levels",type:"uint32"},{internalType:"address",name:"_hasher",type:"address"},{internalType:"contract IERC6777",name:"_token",type:"address"},{internalType:"address",name:"_omniBridge",type:"address"},{internalType:"address",name:"_l1Unwrapper",type:"address"},{internalType:"address",name:"_governance",type:"address"},{internalType:"uint256",name:"_l1ChainId",type:"uint256"},{internalType:"address",name:"_multisig",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"commitment",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"bytes",name:"encryptedOutput",type:"bytes"}],name:"NewCommitment",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"nullifier",type:"bytes32"}],name:"NewNullifier",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"key",type:"bytes"}],name:"PublicKey",type:"event"},{inputs:[],name:"FIELD_SIZE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_EXT_AMOUNT",outputs:[{internalType:"int256",name:"",type:"int256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_FEE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MIN_EXT_AMOUNT_LIMIT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"ROOT_HISTORY_SIZE",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[],name:"ZERO_VALUE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"ambBridge",outputs:[{internalType:"contract IAMB",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"_extAmount",type:"int256"},{internalType:"uint256",name:"_fee",type:"uint256"}],name:"calculatePublicAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_minimalWithdrawalAmount",type:"uint256"},{internalType:"uint256",name:"_maximumDepositAmount",type:"uint256"}],name:"configureLimits",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"currentRootIndex",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"filledSubtrees",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastRoot",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_left",type:"bytes32"},{internalType:"bytes32",name:"_right",type:"bytes32"}],name:"hashLeftRight",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"hasher",outputs:[{internalType:"contract IHasher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_minimalWithdrawalAmount",type:"uint256"},{internalType:"uint256",name:"_maximumDepositAmount",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isCalledByOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_root",type:"bytes32"}],name:"isKnownRoot",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_nullifierHash",type:"bytes32"}],name:"isSpent",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"l1Unwrapper",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lastBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"levels",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[],name:"maximumDepositAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"minimalWithdrawalAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"multisig",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextIndex",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"nullifierHashes",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"omniBridge",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC6777",name:"_token",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"onTokenBridged",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_args",type:"tuple"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int256",name:"extAmount",type:"int256"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"fee",type:"uint256"},{internalType:"bytes",name:"encryptedOutput1",type:"bytes"},{internalType:"bytes",name:"encryptedOutput2",type:"bytes"},{internalType:"bool",name:"isL1Withdrawal",type:"bool"},{internalType:"uint256",name:"l1Fee",type:"uint256"}],internalType:"struct TornadoPool.ExtData",name:"_extData",type:"tuple"}],name:"onTransact",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerChainId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct TornadoPool.Account",name:"_account",type:"tuple"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct TornadoPool.Account",name:"_account",type:"tuple"},{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_proofArgs",type:"tuple"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int256",name:"extAmount",type:"int256"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"fee",type:"uint256"},{internalType:"bytes",name:"encryptedOutput1",type:"bytes"},{internalType:"bytes",name:"encryptedOutput2",type:"bytes"},{internalType:"bool",name:"isL1Withdrawal",type:"bool"},{internalType:"uint256",name:"l1Fee",type:"uint256"}],internalType:"struct TornadoPool.ExtData",name:"_extData",type:"tuple"}],name:"registerAndTransact",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC6777",name:"_token",type:"address"},{internalType:"address payable",name:"_to",type:"address"},{internalType:"uint256",name:"_balance",type:"uint256"}],name:"rescueTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"roots",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IERC6777",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_args",type:"tuple"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int256",name:"extAmount",type:"int256"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"fee",type:"uint256"},{internalType:"bytes",name:"encryptedOutput1",type:"bytes"},{internalType:"bytes",name:"encryptedOutput2",type:"bytes"},{internalType:"bool",name:"isL1Withdrawal",type:"bool"},{internalType:"uint256",name:"l1Fee",type:"uint256"}],internalType:"struct TornadoPool.ExtData",name:"_extData",type:"tuple"}],name:"transact",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"verifier16",outputs:[{internalType:"contract IVerifier",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"verifier2",outputs:[{internalType:"contract IVerifier",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_args",type:"tuple"}],name:"verifyProof",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"i",type:"uint256"}],name:"zeros",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"}],j=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(x)}},{key:"connect",value:function(address,e){return new l.b(address,x,e)}}]),e}();j.abi=x;var I=[{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"mintingFinished",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"string",name:""}],name:"name",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:"result"}],name:"approve",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_value"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setBridgeContract",inputs:[{type:"address",name:"_bridgeContract"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"totalSupply",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"transferFrom",inputs:[{type:"address",name:"_sender"},{type:"address",name:"_recipient"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"PERMIT_TYPEHASH",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint8",name:""}],name:"decimals",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"DOMAIN_SEPARATOR",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:"result"}],name:"increaseAllowance",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_addedValue"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"transferAndCall",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_value"},{type:"bytes",name:"_data"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"mint",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"burn",inputs:[{type:"uint256",name:"_value"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"string",name:""}],name:"version",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"decreaseApproval",inputs:[{type:"address",name:"_spender"},{type:"uint256",name:"_subtractedValue"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"claimTokens",inputs:[{type:"address",name:"_token"},{type:"address",name:"_to"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"balanceOf",inputs:[{type:"address",name:"_owner"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"renounceOwnership",inputs:[],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"isBridge",inputs:[{type:"address",name:"_address"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"finishMinting",inputs:[],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"nonces",inputs:[{type:"address",name:""}],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"uint64",name:"major"},{type:"uint64",name:"minor"},{type:"uint64",name:"patch"}],name:"getTokenInterfacesVersion",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"owner",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"permit",inputs:[{type:"address",name:"_holder"},{type:"address",name:"_spender"},{type:"uint256",name:"_nonce"},{type:"uint256",name:"_expiry"},{type:"bool",name:"_allowed"},{type:"uint8",name:"_v"},{type:"bytes32",name:"_r"},{type:"bytes32",name:"_s"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"string",name:""}],name:"symbol",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"decreaseAllowance",inputs:[{type:"address",name:"spender"},{type:"uint256",name:"subtractedValue"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"transfer",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_value"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"push",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"move",inputs:[{type:"address",name:"_from"},{type:"address",name:"_to"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"bridgeContract",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"increaseApproval",inputs:[{type:"address",name:"_spender"},{type:"uint256",name:"_addedValue"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"allowance",inputs:[{type:"address",name:"_owner"},{type:"address",name:"_spender"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"pull",inputs:[{type:"address",name:"_from"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"transferOwnership",inputs:[{type:"address",name:"_newOwner"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"expirations",inputs:[{type:"address",name:""},{type:"address",name:""}],constant:!0},{type:"constructor",stateMutability:"nonpayable",payable:!1,inputs:[{type:"string",name:"_name"},{type:"string",name:"_symbol"},{type:"uint8",name:"_decimals"},{type:"uint256",name:"_chainId"}]},{type:"event",name:"Mint",inputs:[{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount",indexed:!1}],anonymous:!1},{type:"event",name:"MintFinished",inputs:[],anonymous:!1},{type:"event",name:"OwnershipRenounced",inputs:[{type:"address",name:"previousOwner",indexed:!0}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{type:"address",name:"previousOwner",indexed:!0},{type:"address",name:"newOwner",indexed:!0}],anonymous:!1},{type:"event",name:"Burn",inputs:[{type:"address",name:"burner",indexed:!0},{type:"uint256",name:"value",indexed:!1}],anonymous:!1},{type:"event",name:"Transfer",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"value",indexed:!1},{type:"bytes",name:"data",indexed:!1}],anonymous:!1},{type:"event",name:"Approval",inputs:[{type:"address",name:"owner",indexed:!0},{type:"address",name:"spender",indexed:!0},{type:"uint256",name:"value",indexed:!1}],anonymous:!1},{type:"event",name:"Transfer",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"value",indexed:!1}],anonymous:!1}],J=function(){function e(){Object(n.a)(this,e)}return Object(o.a)(e,null,[{key:"createInterface",value:function(){return new c.utils.Interface(I)}},{key:"connect",value:function(address,e){return new l.b(address,I,e)}}]),e}();J.abi=I},function(e,t,r){"use strict";r.d(t,"a",(function(){return re}));var n=r(7);let o=null;function c(e){if(null==o&&(o="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"!==n.a.check(e)))throw o=null,new Error("BIP39 Wordlist for en (English) FAILED")}class l extends n.a{constructor(){super("cz")}getWord(e){return c(this),o[e]}getWordIndex(e){return c(this),o.indexOf(e)}}const d=new l;n.a.register(d);let f=null;function h(e){if(null==f&&(f="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==n.a.check(e)))throw f=null,new Error("BIP39 Wordlist for en (English) FAILED")}class m extends n.a{constructor(){super("en")}getWord(e){return h(this),f[e]}getWordIndex(e){return h(this),f.indexOf(e)}}const y=new m;n.a.register(y);var v=r(22);const T={};let w=null;function A(e){return n.b.checkNormalize(),Object(v.h)(Array.prototype.filter.call(Object(v.f)(e.normalize("NFD").toLowerCase()),(e=>e>=65&&e<=90||e>=97&&e<=123)))}function E(e){if(null==w&&(w="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((e=>function(e){const output=[];return Array.prototype.forEach.call(Object(v.f)(e),(e=>{47===e?(output.push(204),output.push(129)):126===e?(output.push(110),output.push(204),output.push(131)):output.push(e)})),Object(v.h)(output)}(e))),w.forEach(((e,t)=>{T[A(e)]=t})),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==n.a.check(e)))throw w=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}class S extends n.a{constructor(){super("es")}getWord(e){return E(this),w[e]}getWordIndex(e){return E(this),T[A(e)]}}const O=new S;n.a.register(O);let _=null;const M={};function k(e){return n.b.checkNormalize(),Object(v.h)(Array.prototype.filter.call(Object(v.f)(e.normalize("NFD").toLowerCase()),(e=>e>=65&&e<=90||e>=97&&e<=123)))}function C(e){if(null==_&&(_="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((e=>function(e){const output=[];return Array.prototype.forEach.call(Object(v.f)(e),(e=>{47===e?(output.push(204),output.push(129)):45===e?(output.push(204),output.push(128)):output.push(e)})),Object(v.h)(output)}(e))),_.forEach(((e,t)=>{M[k(e)]=t})),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==n.a.check(e)))throw _=null,new Error("BIP39 Wordlist for fr (French) FAILED")}class P extends n.a{constructor(){super("fr")}getWord(e){return C(this),_[e]}getWordIndex(e){return C(this),M[k(e)]}}const F=new P;n.a.register(F);var L=r(0);const data=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"];let R=null;function B(e){return Object(L.i)(Object(v.f)(e))}function N(e){if(null!==R)return;R=[];const t={};function r(e){let r="";for(let i=0;i<e.length;i++){let n=e[i];const o=t[n];!1!==o&&(o&&(n=o),r+=n)}return r}t[Object(v.h)([227,130,154])]=!1,t[Object(v.h)([227,130,153])]=!1,t[Object(v.h)([227,130,133])]=Object(v.h)([227,130,134]),t[Object(v.h)([227,129,163])]=Object(v.h)([227,129,164]),t[Object(v.h)([227,130,131])]=Object(v.h)([227,130,132]),t[Object(v.h)([227,130,135])]=Object(v.h)([227,130,136]);for(let e=3;e<=9;e++){const t=data[e-3];for(let r=0;r<t.length;r+=e){const n=[];for(let i=0;i<e;i++){const e="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt".indexOf(t[r+i]);n.push(227),n.push(64&e?130:129),n.push(128+(63&e))}R.push(Object(v.h)(n))}}if(R.sort((function(a,b){return(a=r(a))<(b=r(b))?-1:a>b?1:0})),"0xe3818de38284e3818f"===B(R[442])&&"0xe3818de38283e3818f"===B(R[443])){const e=R[442];R[442]=R[443],R[443]=e}if("0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600"!==n.a.check(e))throw R=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}class x extends n.a{constructor(){super("ja")}getWord(e){return N(this),R[e]}getWordIndex(e){return N(this),R.indexOf(e)}split(e){return n.b.checkNormalize(),e.split(/(?:\u3000| )+/g)}join(e){return e.join(" ")}}const j=new x;n.a.register(j);const I=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"];let J=null;function D(e){if(null==J&&(J=[],I.forEach(((data,e)=>{e+=4;for(let i=0;i<data.length;i+=e){let t="";for(let r=0;r<e;r++)t+=((code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*".indexOf(data[i+r]))>=40?code=code+168-40:code>=19&&(code=code+97-19),Object(v.h)([225,132+(code>>6),128+(63&code)]));J.push(t)}var code})),J.sort(),"0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"!==n.a.check(e)))throw J=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}class X extends n.a{constructor(){super("ko")}getWord(e){return D(this),J[e]}getWordIndex(e){return D(this),J.indexOf(e)}}const G=new X;n.a.register(G);let H=null;function U(e){if(null==H&&(H="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"!==n.a.check(e)))throw H=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}class V extends n.a{constructor(){super("it")}getWord(e){return U(this),H[e]}getWordIndex(e){return U(this),H.indexOf(e)}}const z=new V;n.a.register(z);const Z="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",K={zh_cn:null,zh_tw:null},Q={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Y(e){if(null!==K[e.locale])return;K[e.locale]=[];let t=0;for(let i=0;i<2048;i++){const s="~!@#$%^&*_-=[]{}|;:,.()<>?".indexOf(Z[3*i]),r=[228+(s>>2),128+W.indexOf(Z[3*i+1]),128+W.indexOf(Z[3*i+2])];if("zh_tw"===e.locale){for(let i=s%4;i<3;i++)r[i]=W.indexOf("FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL"[t++])+(0==i?228:128)}K[e.locale].push(Object(v.h)(r))}if(n.a.check(e)!==Q[e.locale])throw K[e.locale]=null,new Error("BIP39 Wordlist for "+e.locale+" (Chinese) FAILED")}class $ extends n.a{constructor(e){super("zh_"+e)}getWord(e){return Y(this),K[this.locale][e]}getWordIndex(e){return Y(this),K[this.locale].indexOf(e)}split(e){return(e=e.replace(/(?:\u3000| )+/g,"")).split("")}}const ee=new $("cn");n.a.register(ee),n.a.register(ee,"zh");const te=new $("tw");n.a.register(te);const re={cz:d,en:y,es:O,fr:F,it:z,ja:j,ko:G,zh:ee,zh_cn:ee,zh_tw:te}},function(e,t,r){"use strict";r.r(t),r.d(t,"ExtendedProvider",(function(){return E}));r(206);var n=r(16),o=r(9),c=r(10);function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t,r){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var base=function(object,e){for(;!Object.prototype.hasOwnProperty.call(object,e)&&null!==(object=l(object)););return object}(e,t);if(base){var desc=Object.getOwnPropertyDescriptor(base,t);return desc.get?desc.get.call(r):desc.value}},d(e,t,r||e)}function f(e,p){return f=Object.setPrototypeOf||function(e,p){return e.__proto__=p,e},f(e,p)}var h=r(143),m=r.n(h);function y(e,t){if(t&&("object"===m()(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}r(137),r(138),r(85);var v=r(20),T=r(15),w=r(47);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}var E=function(e){!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&&f(e,t)}(y,e);var t,r,h,m=A(y);function y(e,t,r){var n;return Object(o.a)(this,y),(n=m.call(this,e,t)).fallbackRpcs=r,n}return Object(c.a)(y,[{key:"send",value:(h=Object(n.a)(regeneratorRuntime.mark((function e(t,r){var n,o,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:0,e.prev=1,e.next=4,d(l(y.prototype),"send",this).call(this,t,r);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),n){e.next=18;break}return o=3e3,e.next=13,this.sleep(o);case 13:if(!this.fallbackRpcs){e.next=17;break}return e.next=16,this.fallbackSend(t,r,this.fallbackRpcs);case 16:return e.abrupt("return",e.sent);case 17:return e.abrupt("return",this.send(t,r,++n));case 18:throw e.t0;case 19:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t){return h.apply(this,arguments)})},{key:"fallbackSend",value:(r=Object(n.a)(regeneratorRuntime.mark((function e(t,r,n){var o,c,l,d,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result},o=f.length>3&&void 0!==f[3]?f[3]:0,e.prev=2,l={method:t,params:r,id:this._nextId+w.numbers.ONE,jsonrpc:"2.0"},d=Object(T.b)({url:n[o]},JSON.stringify(l),c).then((function(e){return e}),(function(e){throw e})),e.next=7,d;case 7:return e.abrupt("return",e.sent);case 10:if(e.prev=10,e.t0=e.catch(2),o+=w.numbers.ONE,n[o]){e.next=17;break}throw e.t0;case 17:return e.next=19,this.fallbackSend(t,r,n,o);case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e,this,[[2,10]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"sleep",value:(t=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,t)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),y}(v.ethers.providers.StaticJsonRpcProvider)},function(e,t,r){"use strict";r.r(t),r.d(t,"IndexedDB",(function(){return B}));var n=r(8),o=r(16),c=r(9),l=r(10);r(85),r(160),r(167),r(171),r(129),r(130),r(178),r(179),r(183),r(184),r(185);let d,f;const h=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,T=new WeakMap;let w={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return m.get(e);if("objectStoreNames"===t)return e.objectStoreNames||y.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return S(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function A(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(f||(f=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(O(this),t),S(h.get(this))}:function(...t){return S(e.apply(O(this),t))}:function(t,...r){const n=e.call(O(this),t,...r);return y.set(n,t.sort?t.sort():[t]),S(n)}}function E(e){return"function"==typeof e?A(e):(e instanceof IDBTransaction&&function(e){if(m.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",c),e.removeEventListener("abort",c)},o=()=>{t(),n()},c=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",o),e.addEventListener("error",c),e.addEventListener("abort",c)}));m.set(e,t)}(e),object=e,(d||(d=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>object instanceof e))?new Proxy(e,w):e);var object}function S(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",o),e.removeEventListener("error",c)},o=()=>{t(S(e.result)),n()},c=()=>{r(e.error),n()};e.addEventListener("success",o),e.addEventListener("error",c)}));return t.then((t=>{t instanceof IDBCursor&&h.set(t,e)})).catch((()=>{})),T.set(t,e),t}(e);if(v.has(e))return v.get(e);const t=E(e);return t!==e&&(v.set(e,t),T.set(t,e)),t}const O=e=>T.get(e);function _(e,t,{blocked:r,upgrade:n,blocking:o,terminated:c}={}){const l=indexedDB.open(e,t),d=S(l);return n&&l.addEventListener("upgradeneeded",(e=>{n(S(l.result),e.oldVersion,e.newVersion,S(l.transaction))})),r&&l.addEventListener("blocked",(()=>r())),d.then((e=>{c&&e.addEventListener("close",(()=>c())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),d}function M(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",(()=>t())),S(r).then((()=>{}))}const k=["get","getKey","getAll","getAllKeys","count"],C=["put","add","delete","clear"],P=new Map;function F(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(P.get(t))return P.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=C.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!o&&!k.includes(r))return;const c=async function(e,...t){const c=this.transaction(e,o?"readwrite":"readonly");let l=c.store;return n&&(l=l.index(t.shift())),(await Promise.all([l[r](...t),o&&c.done]))[0]};return P.set(t,c),c}function L(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function R(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?L(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):L(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}w=(e=>({...e,get:(t,r,n)=>F(t,r)||e.get(t,r,n),has:(t,r)=>!!F(t,r)||e.has(t,r)}))(w);var B=function(){function e(t){var r=t.stores,n=t.dbName;Object(c.a)(this,e),this.dbExists=!1,this.isBlocked=!1,this.options={upgrade:function(e){Object.values(e.objectStoreNames).forEach((function(t){e.deleteObjectStore(t)})),r.forEach((function(t){var r=t.name,n=t.keyPath,o=t.indexes,c=e.createObjectStore(r,{keyPath:n,autoIncrement:!0});Array.isArray(o)&&o.forEach((function(e){var t=e.name,r=e.unique,n=void 0!==r&&r;c.createIndex(t,String(t),{unique:n})}))}))}},this.dbName=n}var t,r,n,d,f,h,m,y,v,T,w,A;return Object(l.a)(e,[{key:"initDB",value:(A=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.dbExists){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,_(this.dbName,9,this.options);case 5:this.db=e.sent,this.onEventHandler(),this.dbExists=!0,e.next=19;break;case 10:if(e.prev=10,e.t0=e.catch(0),!e.t0.message.includes("A mutation operation was attempted on a database that did not allow mutations.")){e.next=15;break}return this.isBlocked=!0,e.abrupt("return");case 15:if(!e.t0.message.includes("less than the existing version")){e.next=18;break}return e.next=18,this.removeExist();case 18:console.error("initDB has error: ".concat(e.t0.message));case 19:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return A.apply(this,arguments)})},{key:"createTransactions",value:(w=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,data,n,o,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.storeName,data=t.data,n=t.mode,o=void 0===n?"readwrite":n,e.prev=1,c=this.db.transaction(r,o),!(l=c.objectStore(r)).add){e.next=9;break}return e.next=7,l.add(data);case 7:return e.next=9,c.done;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(1),new Error("Method createTransactions has error: ".concat(e.t0.message));case 14:case"end":return e.stop()}}),e,this,[[1,11]])}))),function(e){return w.apply(this,arguments)})},{key:"createMultipleTransactions",value:function(e){var t=e.storeName,data=e.data,r=e.index,n=e.mode,o=void 0===n?"readwrite":n;try{var c=this.db.transaction(t,o);data.forEach((function(e){e&&c.store&&c.store.put&&c.store.put(R(R({},e),r))}))}catch(e){throw new Error("Method createMultipleTransactions has error: ".concat(e.message))}}},{key:"getFromIndex",value:(T=Object(o.a)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isBlocked){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.getFromIndexHandler(t);case 5:return r=e.sent,e.abrupt("return",r);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return T.apply(this,arguments)})},{key:"getItem",value:(v=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,n,o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.storeName,n=t.key,e.prev=1,!this.isBlocked){e.next=4;break}return e.abrupt("return");case 4:return o=this.db.transaction(r).objectStore(r),e.next=7,o.get(n);case 7:return c=e.sent,e.abrupt("return",c);case 11:throw e.prev=11,e.t0=e.catch(1),new Error("Method getItem has error: ".concat(e.t0.message));case 14:case"end":return e.stop()}}),e,this,[[1,11]])}))),function(e){return v.apply(this,arguments)})},{key:"addItem",value:(y=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,data,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.storeName,data=t.data,n=t.key,e.prev=1,o=this.db.transaction(r,"readwrite"),e.next=5,o.objectStore(r).get(n);case 5:if(e.sent){e.next=9;break}return e.next=9,o.objectStore(r).add(data);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(1),new Error("Method addItem has error: ".concat(e.t0.message));case 14:case"end":return e.stop()}}),e,this,[[1,11]])}))),function(e){return y.apply(this,arguments)})},{key:"putItem",value:(m=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.storeName,data=t.data,e.prev=1,!this.isBlocked){e.next=4;break}return e.abrupt("return");case 4:return n=this.db.transaction(r,"readwrite"),e.next=7,n.objectStore(r).put(data);case 7:e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(1),new Error("Method putItem has error: ".concat(e.t0.message));case 12:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e){return m.apply(this,arguments)})},{key:"getAll",value:(h=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,n,o,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.storeName,e.prev=1,!this.isBlocked&&this.dbExists){e.next=4;break}return e.abrupt("return",[]);case 4:return n=this.db.transaction(r,"readonly"),o=n.objectStore(r),e.next=8,o.getAll();case 8:return data=e.sent,e.abrupt("return",data);case 12:throw e.prev=12,e.t0=e.catch(1),new Error("Method getAll has error: ".concat(e.t0.message));case 15:case"end":return e.stop()}}),e,this,[[1,12]])}))),function(e){return h.apply(this,arguments)})},{key:"clearStore",value:(f=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,n,o,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.storeName,n=t.mode,o=void 0===n?"readwrite":n,e.prev=1,c=this.db.transaction(r,o),!(l=c.objectStore(r)).clear){e.next=7;break}return e.next=7,l.clear();case 7:e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(1),new Error("Method clearStore has error: ".concat(e.t0.message));case 12:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e){return f.apply(this,arguments)})},{key:"getAllFromIndex",value:(d=Object(o.a)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isBlocked){e.next=2;break}return e.abrupt("return",[]);case 2:return e.prev=2,e.next=5,this.getAllFromIndexHandler(t);case 5:return r=e.sent,e.abrupt("return",r);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return d.apply(this,arguments)})},{key:"onEventHandler",value:function(){var e=this;this.db.addEventListener("onupgradeneeded",Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.removeExist();case 2:case"end":return t.stop()}}),t)}))))}},{key:"removeExist",value:(n=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M(this.dbName);case 2:return this.dbExists=!1,e.next=5,this.initDB();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getFromIndexHandler",value:(r=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,n,o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.storeName,n=t.indexName,o=t.key,e.prev=1,e.next=4,this.db.getFromIndex(r,n,o);case 4:return c=e.sent,e.abrupt("return",c);case 8:throw e.prev=8,e.t0=e.catch(1),new Error("Method getFromIndexHandler has error: ".concat(e.t0.message));case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return r.apply(this,arguments)})},{key:"getAllFromIndexHandler",value:(t=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,n,o,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.storeName,n=t.indexName,o=t.key,c=t.count,e.prev=1,e.next=4,this.db.getAllFromIndex(r,n,o,c);case 4:return l=e.sent,e.abrupt("return",l);case 8:throw e.prev=8,e.t0=e.catch(1),new Error("Method getAllFromIndex has error: ".concat(e.t0.message));case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),o=r(145);function c(e,t,r,c,l){let d;e=Object(n.a)(e),t=Object(n.a)(t);let f=1;const h=new Uint8Array(c),m=new Uint8Array(t.length+4);let y,v;m.set(t);for(let i=1;i<=f;i++){m[t.length]=i>>24&255,m[t.length+1]=i>>16&255,m[t.length+2]=i>>8&255,m[t.length+3]=255&i;let T=Object(n.a)(Object(o.a)(l,e,m));d||(d=T.length,v=new Uint8Array(d),f=Math.ceil(c/d),y=c-(f-1)*d),v.set(T);for(let t=1;t<r;t++){T=Object(n.a)(Object(o.a)(l,e,T));for(let e=0;e<d;e++)v[e]^=T[e]}const w=(i-1)*d,A=i===f?y:d;h.set(Object(n.a)(v).slice(0,A),w)}return Object(n.i)(h)}},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),o=r(5),c=r(22);function l(e){return"string"==typeof e&&(e=Object(c.f)(e)),Object(o.a)(Object(n.b)([Object(c.f)("Ethereum Signed Message:\n"),Object(c.f)(String(e.length)),e]))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return R}));var n=r(3),o=r(12),c=r(0),l=r(5),d=r(1),f=r(2),h=r(77),m=r(103),y=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,d)}f((n=n.apply(e,t||[])).next())}))};const v=new f.b(h.a),T=new Uint8Array(32);T.fill(0);const w=o.a.from(-1),A=o.a.from(0),E=o.a.from(1),S=o.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const O=Object(c.h)(E.toHexString(),32),_=Object(c.h)(A.toHexString(),32),M={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},k=["name","version","chainId","verifyingContract","salt"];function C(e){return function(t){return"string"!=typeof t&&v.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const P={name:C("name"),version:C("version"),chainId:function(e){try{return o.a.from(e).toString()}catch(e){}return v.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Object(n.a)(e).toLowerCase()}catch(e){}return v.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Object(c.a)(e);if(32!==t.length)throw new Error("bad length");return Object(c.i)(t)}catch(e){}return v.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function F(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&v.throwArgumentError("invalid numeric width","type",e);const l=S.mask(r?n-1:n),d=r?l.add(E).mul(w):A;return function(t){const r=o.a.from(t);return(r.lt(d)||r.gt(l))&&v.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),Object(c.h)(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&v.throwArgumentError("invalid bytes width","type",e),function(t){return Object(c.a)(t).length!==r&&v.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=Object(c.a)(e),r=t.length%32;return r?Object(c.c)([t,T.slice(r)]):Object(c.i)(t)}(t)}}}switch(e){case"address":return function(e){return Object(c.h)(Object(n.a)(e),32)};case"bool":return function(e){return e?O:_};case"bytes":return function(e){return Object(l.a)(e)};case"string":return function(e){return Object(m.a)(e)}}return null}function L(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class R{constructor(e){Object(d.d)(this,"types",Object.freeze(Object(d.c)(e))),Object(d.d)(this,"_encoderCache",{}),Object(d.d)(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const n in e){const o={};e[n].forEach((c=>{o[c.name]&&v.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(n)}`,"types",e),o[c.name]=!0;const l=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];l===n&&v.throwArgumentError(`circular type reference to ${JSON.stringify(l)}`,"types",e);F(l)||(r[l]||v.throwArgumentError(`unknown type ${JSON.stringify(l)}`,"types",e),r[l].push(n),t[n][l]=!0)}))}const o=Object.keys(r).filter((e=>0===r[e].length));0===o.length?v.throwArgumentError("missing primary type","types",e):o.length>1&&v.throwArgumentError(`ambiguous primary types or unused types: ${o.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),Object(d.d)(this,"primaryType",o[0]),function o(c,l){l[c]&&v.throwArgumentError(`circular type reference to ${JSON.stringify(c)}`,"types",e),l[c]=!0,Object.keys(t[c]).forEach((e=>{r[e]&&(o(e,l),Object.keys(l).forEach((t=>{n[t][e]=!0})))})),delete l[c]}(this.primaryType,{});for(const t in n){const r=Object.keys(n[t]);r.sort(),this._types[t]=L(t,e[t])+r.map((t=>L(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=F(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&v.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let o=t.map(r);return this._types[e]&&(o=o.map(l.a)),Object(l.a)(Object(c.c)(o))}}const r=this.types[e];if(r){const t=Object(m.a)(this._types[e]);return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?Object(l.a)(n):n}));return n.unshift(t),Object(c.c)(n)}}return v.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||v.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Object(l.a)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(F(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],o=parseInt(n[3]);return o>=0&&t.length!==o&&v.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const o=this.types[e];return o?o.reduce(((e,{name:n,type:o})=>(e[n]=this._visit(o,t[n],r),e)),{}):v.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new R(e)}static getPrimaryType(e){return R.from(e).primaryType}static hashStruct(e,t,r){return R.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=M[r];n||v.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((a,b)=>k.indexOf(a.name)-k.indexOf(b.name))),R.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return Object(c.c)(["0x1901",R.hashDomain(e),R.from(t).hash(r)])}static hash(e,t,r){return Object(l.a)(R.encode(e,t,r))}static resolveNames(e,t,r,n){return y(this,void 0,void 0,(function*(){e=Object(d.g)(e);const o={};e.verifyingContract&&!Object(c.l)(e.verifyingContract,20)&&(o[e.verifyingContract]="0x");const l=R.from(t);l.visit(r,((e,t)=>("address"!==e||Object(c.l)(t,20)||(o[t]="0x"),t)));for(const e in o)o[e]=yield n(e);return e.verifyingContract&&o[e.verifyingContract]&&(e.verifyingContract=o[e.verifyingContract]),r=l.visit(r,((e,t)=>"address"===e&&o[t]?o[t]:t)),{domain:e,value:r}}))}static getPayload(e,t,r){R.hashDomain(e);const n={},l=[];k.forEach((t=>{const r=e[t];null!=r&&(n[t]=P[t](r),l.push({name:t,type:M[t]}))}));const f=R.from(t),h=Object(d.g)(t);return h.EIP712Domain?v.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):h.EIP712Domain=l,f.encode(r),{types:h,domain:n,primaryType:f.primaryType,message:f.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return Object(c.i)(Object(c.a)(t));if(e.match(/^u?int/))return o.a.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&v.throwArgumentError("invalid string","value",t),t}return v.throwArgumentError("unsupported type","type",e)}))}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return T}));var n=r(0),o=r(144),c=r(22),l=r(5),d=r(2),f=r(77);const h=new d.b(f.a),m=new Uint8Array(32);m.fill(0);const y=new RegExp("^((.*)\\.)?([^.]+)$");function v(e){try{const t=e.split(".");for(let i=0;i<t.length;i++)if(0===Object(o.a)(t[i]).length)throw new Error("empty");return!0}catch(e){}return!1}function T(e){"string"!=typeof e&&h.throwArgumentError("invalid ENS name; not a string","name",e);let t=e,r=m;for(;t.length;){const d=t.match(y);null!=d&&""!==d[2]||h.throwArgumentError("invalid ENS address; missing component","name",e);const label=Object(c.f)(Object(o.a)(d[3]));r=Object(l.a)(Object(n.b)([r,Object(l.a)(label)])),t=d[2]||""}return Object(n.i)(r)}},function(e,t,r){"use strict";function n(e){for(let i=(e=e.slice()).length-1;i>0;i--){const t=Math.floor(Math.random()*(i+1)),r=e[i];e[i]=e[t],e[t]=r}return e}r.d(t,"a",(function(){return n}))}]);