@xoxno/sdk-js 0.1.304 → 0.1.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/13.cjs.js +1 -0
- package/dist/13.esm.js +1 -0
- package/dist/132.cjs.js +1 -0
- package/dist/132.esm.js +1 -0
- package/dist/145.cjs.js +1 -0
- package/dist/145.esm.js +1 -0
- package/dist/147.cjs.js +1 -0
- package/dist/147.esm.js +1 -0
- package/dist/242.cjs.js +1 -0
- package/dist/242.esm.js +1 -0
- package/dist/385.cjs.js +1 -0
- package/dist/385.esm.js +1 -0
- package/dist/392.cjs.js +1 -0
- package/dist/392.esm.js +1 -0
- package/dist/401.cjs.js +2 -0
- package/dist/{interactor.cjs.js.LICENSE.txt → 401.cjs.js.LICENSE.txt} +0 -4
- package/dist/401.esm.js +2 -0
- package/dist/{interactor.esm.js.LICENSE.txt → 401.esm.js.LICENSE.txt} +0 -4
- package/dist/403.cjs.js +1 -0
- package/dist/403.esm.js +1 -0
- package/dist/415.cjs.js +1 -0
- package/dist/415.esm.js +1 -0
- package/dist/425.cjs.js +1 -0
- package/dist/425.esm.js +1 -0
- package/dist/473.cjs.js +1 -0
- package/dist/473.esm.js +1 -0
- package/dist/528.cjs.js +1 -0
- package/dist/528.esm.js +1 -0
- package/dist/54.cjs.js +1 -0
- package/dist/54.esm.js +1 -0
- package/dist/586.cjs.js +1 -0
- package/dist/586.esm.js +1 -0
- package/dist/626.cjs.js +1 -0
- package/dist/626.esm.js +1 -0
- package/dist/661.cjs.js +1 -0
- package/dist/661.esm.js +1 -0
- package/dist/766.cjs.js +1 -0
- package/dist/766.esm.js +1 -0
- package/dist/820.cjs.js +2 -0
- package/dist/820.cjs.js.LICENSE.txt +3 -0
- package/dist/820.esm.js +2 -0
- package/dist/820.esm.js.LICENSE.txt +3 -0
- package/dist/854.cjs.js +1 -0
- package/dist/854.esm.js +1 -0
- package/dist/966.cjs.js +1 -0
- package/dist/966.esm.js +1 -0
- package/dist/979.cjs.js +1 -0
- package/dist/979.esm.js +1 -0
- package/dist/989.cjs.js +1 -0
- package/dist/989.esm.js +1 -0
- package/dist/interactions/index.d.ts +11 -12
- package/dist/interactions/index.d.ts.map +1 -1
- package/dist/interactor.cjs.js +1 -2
- package/dist/interactor.esm.js +1 -2
- package/dist/launchpad/index.d.ts +0 -1
- package/dist/launchpad/index.d.ts.map +1 -1
- package/dist/types/collection.d.ts +1 -0
- package/dist/types/collection.d.ts.map +1 -1
- package/dist/utils/SmartContractAbis.d.ts +1 -1
- package/dist/utils/SmartContractAbis.d.ts.map +1 -1
- package/dist/utils/SmartContractService.d.ts +1 -2
- package/dist/utils/SmartContractService.d.ts.map +1 -1
- package/dist/utils/scCalls.d.ts +2 -1
- package/dist/utils/scCalls.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/interactor.cjs.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/*! For license information please see interactor.cjs.js.LICENSE.txt */
|
|
2
|
-
(()=>{var __webpack_modules__={2989:(e,t,r)=>{(r=>{if("object"==typeof window){const t={};e.exports?e.exports=r(t,!1):window.bls=r(t,!1)}else r(t,!0)})(((t,n)=>{t.BN254=0,t.BN381_1=1,t.BLS12_381=5,t.ethMode=!1,t.ETH_MODE_DRAFT_05=1,t.ETH_MODE_DRAFT_06=2,t.ETH_MODE_DRAFT_07=3;const i=(e,t)=>{const r=e.mod,n=e.ethMode?4:6,i=10*n+6+(e.ethMode?200:0),a=8*n,o=144*(e.ethMode?1:2),s=144*(e.ethMode?2:1),u=e=>r._blsMalloc(e),c=e=>{r._blsFree(e)};e.toHex=(e,t,r)=>{let n="";for(let i=0;i<r;i++)n+=("0"+e[t+i].toString(16)).slice(-2);return n},e.toHexStr=t=>e.toHex(t,0,t.length),e.fromHexStr=e=>{if(1&e.length)throw new Error("fromHexStr:length must be even "+e.length);const t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=parseInt(e.slice(2*n,2*n+2),16);return r};const l=(e,t)=>{r.HEAP32.set(t,e/4)},d=(e,t=!0)=>(n,i=0)=>{const a=u(3096),o=e(a,3096,n,i);if(o<=0)throw new Error("err gen_str:"+n);let s=null;return s=t?((e,t)=>{let n="";for(let i=0;i<t;i++)n+=String.fromCharCode(r.HEAP8[e+i]);return n})(a,o):new Uint8Array(r.HEAP8.subarray(a,a+o)),c(a),s},f=e=>d(e,!1),p=e=>(t,n)=>{const i=u(n.length);r.HEAP8.set(n,i);const a=e(t,i,n.length);if(c(i),0===a)throw new Error("err _wrapDeserialize",n)},g=(e,t,n=!1)=>function(){const i=[...arguments],a=i[t],o=Object.prototype.toString.apply(a);if(["[object String]","[object Uint8Array]","[object Array]"].indexOf(o)<0)throw new Error(`err bad type:"${o}". Use String or Uint8Array.`);const s=i[t+1],l=u(a.length);"[object String]"===o?((e,t)=>{for(let n=0;n<t.length;n++)r.HEAP8[e+n]=t.charCodeAt(n)})(l,a):r.HEAP8.set(a,l);const d=e(...i.slice(0,t),l,a.length,s);if(c(l),n)return d;if(d)throw new Error("err _wrapInput "+a)},m=(e,t,r,n,i)=>{const a=t._allocAndCopy(),o=i._allocAndCopy(),s=u(r*n.length);for(let e=0;e<n.length;e++)l(s+r*e,n[e].a_);e(a,s,n.length,o),c(s),c(o),t._saveAndFree(a)},y=(e,t,r,n,i)=>{const o=n.length;if(o!=i.length)throw"recover:bad length";const s=t._alloc(),d=u(r*o),f=u(a*o);for(let e=0;e<o;e++)l(d+r*e,n[e].a_),l(f+a*e,i[e].a_);const h=e(s,d,f,o);if(c(f),c(d),t._saveAndFree(s),h)throw"callRecover"};e.blsInit=(t=(e.ethMode?e.BLS12_381:e.BN254))=>{const n=r._blsInit(t,i);if(n)throw"blsInit err "+n},e.getCurveOrder=d(r._blsGetCurveOrder),e.getFieldOrder=d(r._blsGetFieldOrder),e.blsIdSetDecStr=g(r._blsIdSetDecStr,1),e.blsIdSetHexStr=g(r._blsIdSetHexStr,1),e.blsIdGetDecStr=d(r._blsIdGetDecStr),e.blsIdGetHexStr=d(r._blsIdGetHexStr),e.blsIdSerialize=f(r._blsIdSerialize),e.blsSecretKeySerialize=f(r._blsSecretKeySerialize),e.blsPublicKeySerialize=f(r._blsPublicKeySerialize),e.blsSignatureSerialize=f(r._blsSignatureSerialize),e.blsIdDeserialize=p(r._blsIdDeserialize),e.blsSecretKeyDeserialize=p(r._blsSecretKeyDeserialize),e.blsPublicKeyDeserialize=p(r._blsPublicKeyDeserialize),e.blsSignatureDeserialize=p(r._blsSignatureDeserialize),e.blsPublicKeySerializeUncompressed=f(r._blsPublicKeySerializeUncompressed),e.blsSignatureSerializeUncompressed=f(r._blsSignatureSerializeUncompressed),e.blsPublicKeyDeserializeUncompressed=p(r._blsPublicKeyDeserializeUncompressed),e.blsSignatureDeserializeUncompressed=p(r._blsSignatureDeserializeUncompressed),e.blsSecretKeySetLittleEndian=g(r._blsSecretKeySetLittleEndian,1),e.blsSecretKeySetLittleEndianMod=g(r._blsSecretKeySetLittleEndianMod,1),e.blsHashToSecretKey=g(r._blsHashToSecretKey,1),e.blsSign=g(r._blsSign,2),e.blsVerify=g(r._blsVerify,2,!0);class b{constructor(e){this.a_=new Uint32Array(e/4)}deserializeHexStr(t){this.deserialize(e.fromHexStr(t))}serializeToHexStr(){return e.toHexStr(this.serialize())}dump(e=""){console.log(e+this.serializeToHexStr())}clear(){this.a_.fill(0)}_alloc(){return u(4*this.a_.length)}_allocAndCopy(){const e=this._alloc();return r.HEAP32.set(this.a_,e/4),e}_save(e){this.a_.set(r.HEAP32.subarray(e/4,e/4+this.a_.length))}_saveAndFree(e){this._save(e),c(e)}_setter(e,t,r){const n=this._alloc(),i=e(n,t,r);if(this._saveAndFree(n),i)throw new Error("_setter err")}_getter(e,t,r){const n=this._allocAndCopy(),i=e(n,t,r);return c(n),i}_isEqual(e,t){const r=this._allocAndCopy(),n=t._allocAndCopy(),i=e(r,n);return c(n),c(r),1===i}_op1(e){const t=new this.constructor,r=this._allocAndCopy(),n=t._alloc();return e(n,r),t._saveAndFree(n),c(r),t}_op2(e,t,r=null){const n=r?new r:new this.constructor,i=this._allocAndCopy(),a=t._allocAndCopy(),o=n._alloc();return e(o,i,a),n._saveAndFree(o),c(a),c(i),n}_update(e,t){const r=this._allocAndCopy(),n=t._allocAndCopy();e(r,n),c(n),this._saveAndFree(r)}}e.Id=class extends b{constructor(){super(a)}setInt(e){this._setter(r._blsIdSetInt,e)}isEqual(e){return this._isEqual(r._blsIdIsEqual,e)}deserialize(t){this._setter(e.blsIdDeserialize,t)}serialize(){return this._getter(e.blsIdSerialize)}setStr(t,r=10){switch(r){case 10:return void this._setter(e.blsIdSetDecStr,t);case 16:return void this._setter(e.blsIdSetHexStr,t);default:throw"BlsId.setStr:bad base:"+r}}getStr(t=10){switch(t){case 10:return this._getter(e.blsIdGetDecStr);case 16:return this._getter(e.blsIdGetHexStr);default:throw"BlsId.getStr:bad base:"+t}}setLittleEndian(t){this._setter(e.blsSecretKeySetLittleEndian,t)}setLittleEndianMod(t){this._setter(e.blsSecretKeySetLittleEndianMod,t)}setByCSPRNG(){const t=new Uint8Array(a);e.getRandomValues(t),this.setLittleEndian(t)}},e.deserializeHexStrToId=t=>{const r=new e.Id;return r.deserializeHexStr(t),r},e.SecretKey=class extends b{constructor(){super(48)}setInt(e){this._setter(r._blsIdSetInt,e)}isZero(){return 1===this._getter(r._blsSecretKeyIsZero)}isEqual(e){return this._isEqual(r._blsSecretKeyIsEqual,e)}deserialize(t){this._setter(e.blsSecretKeyDeserialize,t)}serialize(){return this._getter(e.blsSecretKeySerialize)}add(e){this._update(r._blsSecretKeyAdd,e)}share(e,t){m(r._blsSecretKeyShare,this,48,e,t)}recover(e,t){y(r._blsSecretKeyRecover,this,48,e,t)}setHashOf(t){this._setter(e.blsHashToSecretKey,t)}setLittleEndian(t){this._setter(e.blsSecretKeySetLittleEndian,t)}setLittleEndianMod(t){this._setter(e.blsSecretKeySetLittleEndianMod,t)}setByCSPRNG(){const t=new Uint8Array(48);e.getRandomValues(t),this.setLittleEndian(t)}getPublicKey(){const t=new e.PublicKey,n=this._allocAndCopy(),i=t._alloc();return r._blsGetPublicKey(i,n),t._saveAndFree(i),c(n),t}sign(t){const r=new e.Signature,n=this._allocAndCopy(),i=r._alloc();return e.blsSign(i,n,t),r._saveAndFree(i),c(n),r}},e.deserializeHexStrToSecretKey=t=>{const r=new e.SecretKey;return r.deserializeHexStr(t),r},e.PublicKey=class extends b{constructor(){super(o)}isZero(){return 1===this._getter(r._blsPublicKeyIsZero)}isEqual(e){return this._isEqual(r._blsPublicKeyIsEqual,e)}deserialize(t){this._setter(e.blsPublicKeyDeserialize,t)}serialize(){return this._getter(e.blsPublicKeySerialize)}deserializeUncompressed(t){this._setter(e.blsPublicKeyDeserializeUncompressed,t)}serializeUncompressed(){return this._getter(e.blsPublicKeySerializeUncompressed)}add(e){this._update(r._blsPublicKeyAdd,e)}share(e,t){m(r._blsPublicKeyShare,this,o,e,t)}recover(e,t){y(r._blsPublicKeyRecover,this,o,e,t)}isValidOrder(){return this._getter(r._blsPublicKeyIsValidOrder)}verify(t,r){const n=this._allocAndCopy(),i=t._allocAndCopy(),a=e.blsVerify(i,n,r);return c(i),c(n),0!=a}},e.deserializeHexStrToPublicKey=t=>{const r=new e.PublicKey;return r.deserializeHexStr(t),r},e.Signature=class extends b{constructor(){super(s)}isZero(){return 1===this._getter(r._blsSignatureIsZero)}isEqual(e){return this._isEqual(r._blsSignatureIsEqual,e)}deserialize(t){this._setter(e.blsSignatureDeserialize,t)}serialize(){return this._getter(e.blsSignatureSerialize)}deserializeUncompressed(t){this._setter(e.blsSignatureDeserializeUncompressed,t)}serializeUncompressed(){return this._getter(e.blsSignatureSerializeUncompressed)}add(e){this._update(r._blsSignatureAdd,e)}recover(e,t){y(r._blsSignatureRecover,this,s,e,t)}isValidOrder(){return this._getter(r._blsSignatureIsValidOrder)}aggregate(e){const t=e.length,n=this._allocAndCopy(),i=u(s*t);for(let n=0;n<t;n++)r.HEAP32.set(e[n].a_,(i+s*n)/4);const a=r._blsAggregateSignature(n,i,t);return c(i),this._saveAndFree(n),1==a}fastAggregateVerify(e,t){const n=e.length,i=t.length,a=this._allocAndCopy(),s=u(o*n),l=u(i);for(let t=0;t<n;t++)r.HEAP32.set(e[t].a_,(s+o*t)/4);r.HEAP8.set(t,l);const d=r._blsFastAggregateVerify(a,s,n,l,i);return c(l),c(s),c(a),1==d}aggregateVerifyNoCheck(e,t){const n=e.length;if(0==n||t.length!=32*n)return!1;const i=this._allocAndCopy(),a=u(o*n),s=u(t.length);for(let t=0;t<n;t++)r.HEAP32.set(e[t].a_,(a+o*t)/4);r.HEAP8.set(t,s);const l=r._blsAggregateVerifyNoCheck(i,a,s,32,n);return c(s),c(a),c(i),1==l}},e.deserializeHexStrToSignature=t=>{const r=new e.Signature;return r.deserializeHexStr(t),r},e.setETHmode=e=>{if(0!=r._blsSetETHmode(e))throw new Error(`bad setETHmode ${e}`)},e.verifySignatureOrder=e=>{r._blsSignatureVerifyOrder(e)},e.verifyPublicKeyOrder=e=>{r._blsPublicKeyVerifyOrder(e)},e.areAllMsgDifferent=(e,t)=>{const r=e.length/t;if(e.length!=r*t)return!1;h={};for(let n=0;n<r;n++){const r=e.subarray(n*t,(n+1)*t);if(r in h)return!1;h[r]=!0}return!0},e.multiVerify=(t,n,i)=>{const a=n.length;if(t.length!=a||i.length!=a)return!1;for(let e=0;e<a;e++)if(32!=i[e].length)return!1;const l=u(s*a),d=u(o*a),f=u(32*a),h=u(8*a);e.getRandomValues(r.HEAP8.subarray(h,h+8*a));for(let e=0;e<a;e++)r.HEAP32.set(n[e].a_,(l+s*e)/4),r.HEAP32.set(t[e].a_,(d+o*e)/4),r.HEAP8.set(i[e],f+32*e);const p=r._blsMultiVerify(l,d,f,32,h,8,a,0);return c(h),c(f),c(d),c(l),1==p},e.blsInit(t),e.ethMode&&e.setETHmode(e.ETH_MODE_DRAFT_07)},a=function(e,r){const n=new Uint8Array(r);t.getRandomValues(n);for(let i=0;i<r;i++)t.mod.HEAP8[e+i]=n[i]};return t.setRandFunc=e=>{t.getRandomValues=e},t.init=(o=t.BN254)=>{t.curveType=o;const s="bls_c";return new Promise((u=>{if(n){const e=r(899);t.getRandomValues=e.randomFillSync;const n=r(4181);r(7867)(`./${s}.js`)({cryptoGetRandomValues:a,locateFile:e=>n.join("/",e)}).then((e=>{t.mod=e,i(t,o),u()}))}else{const n=window.crypto||window.msCrypto;t.getRandomValues=e=>n.getRandomValues(e),fetch(`./${s}.wasm`).then((e=>e.arrayBuffer())).then((e=>new Uint8Array(e))).then((()=>{e.exports?t.mod=r(7683)():t.mod=Module(),t.mod.cryptoGetRandomValues=a,t.mod.onRuntimeInitialized=()=>{i(t,o),u()}}))}}))},t}))},7683:(e,t,r)=>{var n,i=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(e){e=void 0!==(e=e||{})?e:{};var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);var a,o,s,u,c=[];s="object"==typeof window,u="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,o=!s&&!a&&!u;var l,d,f,h,p="";a?(p=u?r(4181).dirname(p)+"/":"//",l=function(e,t){return f||(f=r(6137)),h||(h=r(4181)),e=h.normalize(e),f.readFileSync(e,t?null:"utf8")},d=function(e){var t=l(e,!0);return t.buffer||(t=new Uint8Array(t)),S(t.buffer),t},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"}):o?("undefined"!=typeof read&&(l=function(e){return read(e)}),d=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(S("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(s||u)&&(u?p=self.location.href:document.currentScript&&(p=document.currentScript.src),n&&(p=n),p=0!==p.indexOf("blob:")?p.substr(0,p.lastIndexOf("/")+1):"",l=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},u&&(d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var g,m,y=e.print||console.log.bind(console),b=e.printErr||console.warn.bind(console);for(t in i)i.hasOwnProperty(t)&&(e[t]=i[t]);i=null,e.arguments&&(c=e.arguments),e.thisProgram&&e.thisProgram,e.quit&&e.quit,e.wasmBinary&&(g=e.wasmBinary),e.noExitRuntime&&e.noExitRuntime,"object"!=typeof WebAssembly&&b("no native wasm support detected");var v,w,A,T=new WebAssembly.Table({initial:197,maximum:197,element:"anyfunc"}),_=!1;function S(e,t){e||R("Assertion failed: "+t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf8"),"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var E,I=e.INITIAL_MEMORY||16777216;function C(t){for(;t.length>0;){var r=t.shift();if("function"!=typeof r){var n=r.func;"number"==typeof n?void 0===r.arg?e.dynCall_v(n):e.dynCall_vi(n,r.arg):n(void 0===r.arg?null:r.arg)}else r()}}(m=e.wasmMemory?e.wasmMemory:new WebAssembly.Memory({initial:I/65536,maximum:I/65536}))&&(v=m.buffer),I=v.byteLength,v=E=v,e.HEAP8=new Int8Array(E),e.HEAP16=new Int16Array(E),e.HEAP32=A=new Int32Array(E),e.HEAPU8=w=new Uint8Array(E),e.HEAPU16=new Uint16Array(E),e.HEAPU32=new Uint32Array(E),e.HEAPF32=new Float32Array(E),e.HEAPF64=new Float64Array(E),A[19880]=5322560;var k=[],B=[],O=[],x=[],N=0,P=null,D=null;function R(t){throw e.onAbort&&e.onAbort(t),y(t+=""),b(t),_=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}e.preloadedImages={},e.preloadedAudios={};var L="data:application/octet-stream;base64,";function U(e){return String.prototype.startsWith?e.startsWith(L):0===e.indexOf(L)}var M,F="bls_c.wasm";function j(){try{if(g)return new Uint8Array(g);if(d)return d(F);throw"both async and sync fetching of the wasm failed"}catch(e){R(e)}}U(F)||(M=F,F=e.locateFile?e.locateFile(M,p):p+M),B.push({func:function(){q()}});var z={a:function(e,t,r){w.copyWithin(e,t,t+r)},b:function(e){return!1},memory:m,table:T},V=function(){var t={a:z};function r(t,r){var n=t.exports;e.asm=n,function(){if(N--,e.monitorRunDependencies&&e.monitorRunDependencies(N),0==N&&(null!==P&&(clearInterval(P),P=null),D)){var t=D;D=null,t()}}()}function n(e){r(e.instance)}function i(e){return(g||!s&&!u||"function"!=typeof fetch?new Promise((function(e,t){e(j())})):fetch(F,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+F+"'";return e.arrayBuffer()})).catch((function(){return j()}))).then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(e){b("failed to asynchronously prepare wasm: "+e),R(e)}))}if(N++,e.monitorRunDependencies&&e.monitorRunDependencies(N),e.instantiateWasm)try{return e.instantiateWasm(t,r)}catch(e){return b("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(g||"function"!=typeof WebAssembly.instantiateStreaming||U(F)||"function"!=typeof fetch)return i(n);fetch(F,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(e){b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),i(n)}))}))}(),{}}();e.asm=V;var H,q=e.___wasm_call_ctors=function(){return(q=e.___wasm_call_ctors=e.asm.c).apply(null,arguments)};function G(t){function r(){H||(H=!0,e.calledRun=!0,_||(C(B),C(O),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),x.unshift(t);var t;C(x)}()))}t=t||c,N>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),k.unshift(t);var t;C(k)}(),N>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),r()}),1)):r()))}if(e._blsSetETHmode=function(){return(e._blsSetETHmode=e.asm.d).apply(null,arguments)},e._blsInit=function(){return(e._blsInit=e.asm.e).apply(null,arguments)},e._blsSetETHserialization=function(){return(e._blsSetETHserialization=e.asm.f).apply(null,arguments)},e._blsMalloc=function(){return(e._blsMalloc=e.asm.g).apply(null,arguments)},e._blsFree=function(){return(e._blsFree=e.asm.h).apply(null,arguments)},e._blsIdSetInt=function(){return(e._blsIdSetInt=e.asm.i).apply(null,arguments)},e._blsSecretKeySetLittleEndian=function(){return(e._blsSecretKeySetLittleEndian=e.asm.j).apply(null,arguments)},e._blsSecretKeySetLittleEndianMod=function(){return(e._blsSecretKeySetLittleEndianMod=e.asm.k).apply(null,arguments)},e._blsGetPublicKey=function(){return(e._blsGetPublicKey=e.asm.l).apply(null,arguments)},e._blsHashToSignature=function(){return(e._blsHashToSignature=e.asm.m).apply(null,arguments)},e._blsSign=function(){return(e._blsSign=e.asm.n).apply(null,arguments)},e._blsVerify=function(){return(e._blsVerify=e.asm.o).apply(null,arguments)},e._blsMultiVerify=function(){return(e._blsMultiVerify=e.asm.p).apply(null,arguments)},e._blsAggregateSignature=function(){return(e._blsAggregateSignature=e.asm.q).apply(null,arguments)},e._blsSignatureAdd=function(){return(e._blsSignatureAdd=e.asm.r).apply(null,arguments)},e._blsPublicKeyAdd=function(){return(e._blsPublicKeyAdd=e.asm.s).apply(null,arguments)},e._blsFastAggregateVerify=function(){return(e._blsFastAggregateVerify=e.asm.t).apply(null,arguments)},e._blsAggregateVerifyNoCheck=function(){return(e._blsAggregateVerifyNoCheck=e.asm.u).apply(null,arguments)},e._blsIdSerialize=function(){return(e._blsIdSerialize=e.asm.v).apply(null,arguments)},e._blsSecretKeySerialize=function(){return(e._blsSecretKeySerialize=e.asm.w).apply(null,arguments)},e._blsPublicKeySerialize=function(){return(e._blsPublicKeySerialize=e.asm.x).apply(null,arguments)},e._blsSignatureSerialize=function(){return(e._blsSignatureSerialize=e.asm.y).apply(null,arguments)},e._blsIdDeserialize=function(){return(e._blsIdDeserialize=e.asm.z).apply(null,arguments)},e._blsSecretKeyDeserialize=function(){return(e._blsSecretKeyDeserialize=e.asm.A).apply(null,arguments)},e._blsPublicKeyDeserialize=function(){return(e._blsPublicKeyDeserialize=e.asm.B).apply(null,arguments)},e._blsSignatureDeserialize=function(){return(e._blsSignatureDeserialize=e.asm.C).apply(null,arguments)},e._blsIdIsEqual=function(){return(e._blsIdIsEqual=e.asm.D).apply(null,arguments)},e._blsSecretKeyIsEqual=function(){return(e._blsSecretKeyIsEqual=e.asm.E).apply(null,arguments)},e._blsPublicKeyIsEqual=function(){return(e._blsPublicKeyIsEqual=e.asm.F).apply(null,arguments)},e._blsSignatureIsEqual=function(){return(e._blsSignatureIsEqual=e.asm.G).apply(null,arguments)},e._blsIdIsZero=function(){return(e._blsIdIsZero=e.asm.H).apply(null,arguments)},e._blsSecretKeyIsZero=function(){return(e._blsSecretKeyIsZero=e.asm.I).apply(null,arguments)},e._blsPublicKeyIsZero=function(){return(e._blsPublicKeyIsZero=e.asm.J).apply(null,arguments)},e._blsSignatureIsZero=function(){return(e._blsSignatureIsZero=e.asm.K).apply(null,arguments)},e._blsSecretKeyShare=function(){return(e._blsSecretKeyShare=e.asm.L).apply(null,arguments)},e._blsPublicKeyShare=function(){return(e._blsPublicKeyShare=e.asm.M).apply(null,arguments)},e._blsSecretKeyRecover=function(){return(e._blsSecretKeyRecover=e.asm.N).apply(null,arguments)},e._blsPublicKeyRecover=function(){return(e._blsPublicKeyRecover=e.asm.O).apply(null,arguments)},e._blsSignatureRecover=function(){return(e._blsSignatureRecover=e.asm.P).apply(null,arguments)},e._blsSecretKeyAdd=function(){return(e._blsSecretKeyAdd=e.asm.Q).apply(null,arguments)},e._blsSignatureVerifyOrder=function(){return(e._blsSignatureVerifyOrder=e.asm.R).apply(null,arguments)},e._blsPublicKeyVerifyOrder=function(){return(e._blsPublicKeyVerifyOrder=e.asm.S).apply(null,arguments)},e._blsSignatureIsValidOrder=function(){return(e._blsSignatureIsValidOrder=e.asm.T).apply(null,arguments)},e._blsPublicKeyIsValidOrder=function(){return(e._blsPublicKeyIsValidOrder=e.asm.U).apply(null,arguments)},e._blsVerifyAggregatedHashes=function(){return(e._blsVerifyAggregatedHashes=e.asm.V).apply(null,arguments)},e._blsSignHash=function(){return(e._blsSignHash=e.asm.W).apply(null,arguments)},e._blsPublicKeySerializeUncompressed=function(){return(e._blsPublicKeySerializeUncompressed=e.asm.X).apply(null,arguments)},e._blsSignatureSerializeUncompressed=function(){return(e._blsSignatureSerializeUncompressed=e.asm.Y).apply(null,arguments)},e._blsPublicKeyDeserializeUncompressed=function(){return(e._blsPublicKeyDeserializeUncompressed=e.asm.Z).apply(null,arguments)},e._blsSignatureDeserializeUncompressed=function(){return(e._blsSignatureDeserializeUncompressed=e.asm._).apply(null,arguments)},e._blsVerifyPairing=function(){return(e._blsVerifyPairing=e.asm.$).apply(null,arguments)},e._blsVerifyHash=function(){return(e._blsVerifyHash=e.asm.aa).apply(null,arguments)},e._blsSecretKeySub=function(){return(e._blsSecretKeySub=e.asm.ba).apply(null,arguments)},e._blsPublicKeySub=function(){return(e._blsPublicKeySub=e.asm.ca).apply(null,arguments)},e._blsSignatureSub=function(){return(e._blsSignatureSub=e.asm.da).apply(null,arguments)},e._blsGetOpUnitSize=function(){return(e._blsGetOpUnitSize=e.asm.ea).apply(null,arguments)},e._blsGetCurveOrder=function(){return(e._blsGetCurveOrder=e.asm.fa).apply(null,arguments)},e._blsGetFieldOrder=function(){return(e._blsGetFieldOrder=e.asm.ga).apply(null,arguments)},e._blsGetSerializedSecretKeyByteSize=function(){return(e._blsGetSerializedSecretKeyByteSize=e.asm.ha).apply(null,arguments)},e._blsGetFrByteSize=function(){return(e._blsGetFrByteSize=e.asm.ia).apply(null,arguments)},e._blsGetSerializedPublicKeyByteSize=function(){return(e._blsGetSerializedPublicKeyByteSize=e.asm.ja).apply(null,arguments)},e._blsGetG1ByteSize=function(){return(e._blsGetG1ByteSize=e.asm.ka).apply(null,arguments)},e._blsGetSerializedSignatureByteSize=function(){return(e._blsGetSerializedSignatureByteSize=e.asm.la).apply(null,arguments)},e._blsGetGeneratorOfPublicKey=function(){return(e._blsGetGeneratorOfPublicKey=e.asm.ma).apply(null,arguments)},e._blsIdSetDecStr=function(){return(e._blsIdSetDecStr=e.asm.na).apply(null,arguments)},e._blsIdSetHexStr=function(){return(e._blsIdSetHexStr=e.asm.oa).apply(null,arguments)},e._blsIdSetLittleEndian=function(){return(e._blsIdSetLittleEndian=e.asm.pa).apply(null,arguments)},e._blsIdGetDecStr=function(){return(e._blsIdGetDecStr=e.asm.qa).apply(null,arguments)},e._blsIdGetHexStr=function(){return(e._blsIdGetHexStr=e.asm.ra).apply(null,arguments)},e._blsHashToSecretKey=function(){return(e._blsHashToSecretKey=e.asm.sa).apply(null,arguments)},e._blsGetPop=function(){return(e._blsGetPop=e.asm.ta).apply(null,arguments)},e._blsVerifyPop=function(){return(e._blsVerifyPop=e.asm.ua).apply(null,arguments)},e._blsIdGetLittleEndian=function(){return(e._blsIdGetLittleEndian=e.asm.va).apply(null,arguments)},e._blsSecretKeySetDecStr=function(){return(e._blsSecretKeySetDecStr=e.asm.wa).apply(null,arguments)},e._blsSecretKeySetHexStr=function(){return(e._blsSecretKeySetHexStr=e.asm.xa).apply(null,arguments)},e._blsSecretKeyGetLittleEndian=function(){return(e._blsSecretKeyGetLittleEndian=e.asm.ya).apply(null,arguments)},e._blsSecretKeyGetDecStr=function(){return(e._blsSecretKeyGetDecStr=e.asm.za).apply(null,arguments)},e._blsSecretKeyGetHexStr=function(){return(e._blsSecretKeyGetHexStr=e.asm.Aa).apply(null,arguments)},e._blsPublicKeySetHexStr=function(){return(e._blsPublicKeySetHexStr=e.asm.Ba).apply(null,arguments)},e._blsPublicKeyGetHexStr=function(){return(e._blsPublicKeyGetHexStr=e.asm.Ca).apply(null,arguments)},e._blsSignatureSetHexStr=function(){return(e._blsSignatureSetHexStr=e.asm.Da).apply(null,arguments)},e._blsSignatureGetHexStr=function(){return(e._blsSignatureGetHexStr=e.asm.Ea).apply(null,arguments)},e._blsDHKeyExchange=function(){return(e._blsDHKeyExchange=e.asm.Fa).apply(null,arguments)},e._blsMultiAggregateSignature=function(){return(e._blsMultiAggregateSignature=e.asm.Ga).apply(null,arguments)},e._blsMultiAggregatePublicKey=function(){return(e._blsMultiAggregatePublicKey=e.asm.Ha).apply(null,arguments)},e.dynCall_vi=function(){return(e.dynCall_vi=e.asm.Ia).apply(null,arguments)},e.asm=V,e.then=function(t){if(H)t(e);else{var r=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){r&&r(),t(e)}}return e},D=function e(){H||G(),H||(D=e)},e.run=G,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return G(),e});e.exports=i},7867:(e,t,r)=>{var n={"./bls.js":2989,"./bls_c.js":7683};function i(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=a,e.exports=i,i.id=7867},8095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFormula=void 0,t.TypeFormula=class{constructor(e,t,r){this.name=e,this.typeParameters=t,this.metadata=r}toString(){const e=this.typeParameters.length>0?`<${this.typeParameters.map((e=>e.toString())).join(", ")}>`:"",t=`${this.name}${e}`;return void 0!==this.metadata?`${t}*${this.metadata}*`:t}}},9132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFormulaParser=void 0;const n=r(8095);class i{parseExpression(e){e=e.trim();const t=this.tokenizeExpression(e).filter((e=>e!==i.COMMA)),r=[];for(const e of t)if(this.isPunctuation(e))if(this.isEndOfTypeParameters(e)){const e=this.acquireTypeWithParameters(r);r.push(e)}else{if(!this.isBeginningOfTypeParameters(e))throw new Error(`Unexpected token (punctuation): ${e}`);r.push(e)}else r.push(e);if(1!==r.length)throw new Error(`Unexpected stack length at end of parsing: ${r.length}`);if(i.PUNCTUATION.includes(r[0]))throw new Error("Unexpected root element.");const a=r[0];if(a instanceof n.TypeFormula)return a;if("string"==typeof a)return new n.TypeFormula(a,[]);throw new Error(`Unexpected item on stack: ${a}`)}tokenizeExpression(e){const t=[];let r="";for(const n of e)this.isPunctuation(n)?(r&&(t.push(r.trim()),r=""),t.push(n)):r+=n;return r&&t.push(r.trim()),t}acquireTypeWithParameters(e){const t=this.acquireTypeParameters(e),r=e.pop();if("ManagedDecimal"===r||"ManagedDecimalSigned"===r){const e=t[0].name;return new n.TypeFormula(r,[],e)}return new n.TypeFormula(r,t.reverse())}acquireTypeParameters(e){const t=[];for(;;){const r=e.pop();if(void 0===r)throw new Error("Badly specified type parameters");if(this.isBeginningOfTypeParameters(r))break;if(r instanceof n.TypeFormula)t.push(r);else{if("string"!=typeof r)throw new Error(`Unexpected type parameter object in stack: ${r}`);t.push(new n.TypeFormula(r,[]))}}return t}isPunctuation(e){return i.PUNCTUATION.includes(e)}isEndOfTypeParameters(e){return e===i.END_TYPE_PARAMETERS}isBeginningOfTypeParameters(e){return e===i.BEGIN_TYPE_PARAMETERS}}t.TypeFormulaParser=i,i.BEGIN_TYPE_PARAMETERS="<",i.END_TYPE_PARAMETERS=">",i.COMMA=",",i.PUNCTUATION=[i.COMMA,i.BEGIN_TYPE_PARAMETERS,i.END_TYPE_PARAMETERS]},1703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Account=void 0;const n=r(236);t.Account=class{constructor(e){this.address=n.Address.empty(),this.nonce=0,this.balance="0",this.address=e}update(e){this.nonce=e.nonce,this.balance=e.balance}incrementNonce(){this.nonce=this.nonce.valueOf()+1}getNonceThenIncrement(){let e=this.nonce;return this.nonce=this.nonce.valueOf()+1,e}toJSON(){return{address:this.address.bech32(),nonce:this.nonce.valueOf(),balance:this.balance.toString()}}}},2969:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(620),t)},620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryRunnerAdapter=void 0;const n=r(236),i=r(3647);t.QueryRunnerAdapter=class{constructor(e){this.networkProvider=e.networkProvider}async runQuery(e){const t={address:n.Address.fromBech32(e.contract),caller:e.caller?n.Address.fromBech32(e.caller):void 0,func:e.function,value:e.value,getEncodedArguments:()=>e.arguments.map((e=>Buffer.from(e).toString("hex")))},r=await this.networkProvider.queryContract(t);return new i.SmartContractQueryResponse({function:e.function,returnCode:r.returnCode.toString(),returnMessage:r.returnMessage,returnDataParts:r.getReturnDataParts()})}}},236:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressComputer=t.Address=void 0;const s=a(r(9674)),u=o(r(1594)),c=r(6424),l=r(7353),d=a(r(2581)),f=r(8390),h=r(5508),p="0".repeat(16);class g{constructor(e,t){if(!e)return this.publicKey=Buffer.from([]),void(this.hrp=t||c.LibraryConfig.DefaultAddressHrp);if(ArrayBuffer.isView(e)){if(32!=e.length)throw new d.ErrAddressCannotCreate(e);return this.publicKey=Buffer.from(e),void(this.hrp=t||c.LibraryConfig.DefaultAddressHrp)}if(e instanceof g){if(t)throw new d.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");return this.publicKey=e.publicKey,void(this.hrp=e.hrp)}if("string"==typeof e){if(g.isValidHex(e))return this.publicKey=Buffer.from(e,"hex"),void(this.hrp=t||c.LibraryConfig.DefaultAddressHrp);if(t)throw new d.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");const{hrp:r,pubkey:n}=m({value:e,allowCustomHrp:!1});return this.publicKey=n,void(this.hrp=r)}throw new d.ErrAddressCannotCreate(e)}static newFromBech32(e){const{hrp:t,pubkey:r}=m({value:e,allowCustomHrp:!0});return new g(r,t)}static fromBech32(e){const{hrp:t,pubkey:r}=m({value:e,allowCustomHrp:!1});return new g(r,t)}static newFromHex(e,t){if(!g.isValidHex(e))throw new d.ErrAddressCannotCreate(e);return new g(Buffer.from(e,"hex"),t)}static fromHex(e,t){return g.newFromHex(e,t)}static fromAddress(e){return new g(e)}static fromBuffer(e,t){return new g(e,t)}static fromString(e,t){return new g(e,t)}static isValidHex(e){return 32==Buffer.from(e,"hex").length}static empty(){return new g("")}static isValid(e){const t=s.decodeUnsafe(e),r=t?.prefix,n=t?Buffer.from(s.fromWords(t.words)):void 0;return r===c.LibraryConfig.DefaultAddressHrp&&32===n?.length}hex(){return this.toHex()}toHex(){return this.isEmpty()?"":this.publicKey.toString("hex")}bech32(){return this.toBech32()}toBech32(){if(this.isEmpty())return"";let e=s.toWords(this.pubkey());return s.encode(this.hrp,e)}pubkey(){return this.getPublicKey()}getPublicKey(){return this.publicKey}getHrp(){return this.hrp}isEmpty(){return 0==this.publicKey.length}equals(e){return!!e&&this.publicKey.toString()==e.publicKey.toString()}toString(){return this.toBech32()}toJSON(){return{bech32:this.toBech32(),pubkey:this.toHex()}}static Zero(){return new g("0".repeat(64))}isContractAddress(){return this.isSmartContract()}isSmartContract(){return this.toHex().startsWith(p)}}function m(e){const t=e.value,r=e.allowCustomHrp;let n,i;try{const e=s.decode(t);n=e.prefix,i=Buffer.from(s.fromWords(e.words))}catch(e){throw new d.ErrAddressCannotCreate(t,e)}if(!r&&n!=c.LibraryConfig.DefaultAddressHrp)throw new d.ErrAddressBadHrp(c.LibraryConfig.DefaultAddressHrp,n);return{hrp:n,pubkey:i}}t.Address=g,t.AddressComputer=class{constructor(e){this.numberOfShardsWithoutMeta=e||l.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META}computeContractAddress(e,t){const r=Buffer.alloc(8,0),n=e.getPublicKey(),i=n.slice(30),a=Buffer.alloc(8),o=new u.default(t.toString()),s=f.bigIntToBuffer(o);a.write(s.reverse().toString("hex"),"hex");const c=Buffer.concat([n,a]),d=h("keccak256").update(c).digest(),p=Buffer.from(l.WasmVirtualMachine,"hex"),m=Buffer.concat([r,p,d.slice(10,30),i]);return new g(m)}getShardOfAddress(e){return this.getShardOfPubkey(e.getPublicKey(),this.numberOfShardsWithoutMeta)}getShardOfPubkey(e,t){const r=parseInt("11",2),n=parseInt("01",2),i=e[31];if(this.isPubkeyOfMetachain(e))return l.METACHAIN_ID;let a=i&r;return a>t-1&&(a=i&n),a}isPubkeyOfMetachain(e){const t=Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r=Buffer.from(e).slice(0,t.length);return!!t.equals(r)||!!Buffer.alloc(32).equals(Buffer.from(e))}}},5519:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncTimer=void 0;const o=a(r(2581)),s=r(2581),u=r(6458);t.AsyncTimer=class{constructor(e){this.timeoutHandle=null,this.rejectionFunc=null,this.name=e,this.correlationTag=0}start(e){if(this.timeoutHandle)throw new o.ErrAsyncTimerAlreadyRunning;return this.correlationTag++,u.Logger.trace(`AsyncTimer[${this.name}'${this.correlationTag}].start()`),new Promise(((t,r)=>{this.rejectionFunc=r,this.timeoutHandle=setTimeout((()=>{this.rejectionFunc=null,this.stop(),t()}),e)}))}abort(){u.Logger.trace(`AsyncTimer[${this.name}'${this.correlationTag}].abort()`),this.rejectionFunc&&(this.rejectionFunc(new s.ErrAsyncTimerAborted),this.rejectionFunc=null),this.stop()}stop(){this.isStopped()||(u.Logger.trace(`AsyncTimer[${this.name}'${this.correlationTag}].stop()`),this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=null))}isStopped(){return!this.timeoutHandle}}},1220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compatibility=void 0;const n=r(236);t.Compatibility=class{static guardAddressIsSetAndNonZero(e,t,r){e&&""!=e.bech32()?e.bech32()==n.Address.Zero().bech32()&&console.warn(`${t}: address should not be the 'zero' address (also known as the 'contracts deployment address'); ${r}. In the future, this will throw an exception instead of emitting a WARN.`):console.warn(`${t}: address should be set; ${r}. In the future, this will throw an exception instead of emitting a WARN.`)}}},6424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryConfig=void 0;class r{}t.LibraryConfig=r,r.DefaultAddressHrp="erd"},7353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ESDT_CONTRACT_ADDRESS=t.DELEGATION_MANAGER_SC_ADDRESS=t.CONTRACT_DEPLOY_ADDRESS=t.BECH32_ADDRESS_LENGTH=t.DEFAULT_HRP=t.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER=t.UNKNOWN_SIGNER=t.SDK_JS_SIGNER=t.METACHAIN_ID=t.WasmVirtualMachine=t.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=t.HEX_TRANSACTION_HASH_LENGTH=t.MESSAGE_PREFIX=t.DEFAULT_MESSAGE_VERSION=t.ESDT_CONTRACT_ADDRESS_HEX=t.DELEGATION_MANAGER_SC_ADDRESS_HEX=t.CONTRACT_DEPLOY_ADDRESS_HEX=t.VM_TYPE_WASM_VM=t.ARGUMENTS_SEPARATOR=t.ESDT_TRANSFER_VALUE=t.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME=t.ESDTNFT_TRANSFER_FUNCTION_NAME=t.ESDT_TRANSFER_FUNCTION_NAME=t.ESDT_TRANSFER_GAS_LIMIT=t.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=t.TRANSACTION_VERSION_DEFAULT=t.TRANSACTION_OPTIONS_TX_GUARDED=t.TRANSACTION_OPTIONS_TX_HASH_SIGN=t.TRANSACTION_OPTIONS_DEFAULT=t.TRANSACTION_MIN_GAS_PRICE=void 0,t.TRANSACTION_MIN_GAS_PRICE=1e9,t.TRANSACTION_OPTIONS_DEFAULT=0,t.TRANSACTION_OPTIONS_TX_HASH_SIGN=1,t.TRANSACTION_OPTIONS_TX_GUARDED=2,t.TRANSACTION_VERSION_DEFAULT=2,t.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=2,t.ESDT_TRANSFER_GAS_LIMIT=5e5,t.ESDT_TRANSFER_FUNCTION_NAME="ESDTTransfer",t.ESDTNFT_TRANSFER_FUNCTION_NAME="ESDTNFTTransfer",t.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME="MultiESDTNFTTransfer",t.ESDT_TRANSFER_VALUE="0",t.ARGUMENTS_SEPARATOR="@",t.VM_TYPE_WASM_VM=new Uint8Array([5,0]),t.CONTRACT_DEPLOY_ADDRESS_HEX="0000000000000000000000000000000000000000000000000000000000000000",t.DELEGATION_MANAGER_SC_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000004ffff",t.ESDT_CONTRACT_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000002ffff",t.DEFAULT_MESSAGE_VERSION=1,t.MESSAGE_PREFIX="Elrond Signed Message:\n",t.HEX_TRANSACTION_HASH_LENGTH=64,t.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=3,t.WasmVirtualMachine="0500",t.METACHAIN_ID=4294967295,t.SDK_JS_SIGNER="sdk-js",t.UNKNOWN_SIGNER="unknown",t.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER="EGLD-000000",t.DEFAULT_HRP="erd",t.BECH32_ADDRESS_LENGTH=62,t.CONTRACT_DEPLOY_ADDRESS="erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu",t.DELEGATION_MANAGER_SC_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6",t.ESDT_CONTRACT_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"},4408:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6659),t)},6659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsConverter=void 0;const n=r(236),i=r(661),a=r(476),o=r(3217);t.TransactionsConverter=class{transactionToPlainObject(e){return{nonce:Number(e.nonce),value:e.value.toString(),receiver:e.receiver,sender:e.sender,senderUsername:this.toBase64OrUndefined(e.senderUsername),receiverUsername:this.toBase64OrUndefined(e.receiverUsername),gasPrice:Number(e.gasPrice),gasLimit:Number(e.gasLimit),data:this.toBase64OrUndefined(e.data),chainID:e.chainID.valueOf(),version:e.version,options:0==e.options?void 0:e.options,relayer:e.relayer.isEmpty()?void 0:e.relayer.toBech32(),guardian:e.guardian?e.guardian:void 0,signature:this.toHexOrUndefined(e.signature),guardianSignature:this.toHexOrUndefined(e.guardianSignature),relayerSignature:this.toHexOrUndefined(e.relayerSignature)}}toBase64OrUndefined(e){return e&&e.length?Buffer.from(e).toString("base64"):void 0}toHexOrUndefined(e){return e&&e.length?Buffer.from(e).toString("hex"):void 0}plainObjectToTransaction(e){return new a.Transaction({nonce:BigInt(e.nonce),value:BigInt(e.value||""),receiver:e.receiver,relayer:e.relayer?n.Address.newFromBech32(e.relayer):n.Address.empty(),receiverUsername:this.bufferFromBase64(e.receiverUsername).toString(),sender:e.sender,senderUsername:this.bufferFromBase64(e.senderUsername).toString(),guardian:e.guardian,gasPrice:BigInt(e.gasPrice),gasLimit:BigInt(e.gasLimit),data:this.bufferFromBase64(e.data),chainID:String(e.chainID),version:Number(e.version),options:Number(e.options),signature:this.bufferFromHex(e.signature),guardianSignature:this.bufferFromHex(e.guardianSignature),relayerSignature:this.bufferFromHex(e.relayerSignature)})}bufferFromBase64(e){return Buffer.from(e||"","base64")}bufferFromHex(e){return Buffer.from(e||"","hex")}transactionOnNetworkToOutcome(e){const t=(new i.ResultsParser).parseUntypedOutcome(e),r=new o.SmartContractCallOutcome({function:e.function,returnCode:t.returnCode.toString(),returnMessage:t.returnMessage,returnDataParts:t.values}),n=e.contractResults.items.map((e=>this.smartContractResultOnNetworkToSmartContractResult(e))),a=new o.TransactionLogs({address:e.logs.address.bech32(),events:e.logs.events.map((e=>this.eventOnNetworkToEvent(e)))});return new o.TransactionOutcome({logs:a,smartContractResults:n,directSmartContractCallOutcome:r})}smartContractResultOnNetworkToSmartContractResult(e){return new o.SmartContractResult({sender:e.sender.bech32(),receiver:e.receiver.bech32(),data:Buffer.from(e.data),logs:new o.TransactionLogs({address:e.logs.address.bech32(),events:e.logs.events.map((e=>this.eventOnNetworkToEvent(e)))})})}eventOnNetworkToEvent(e){const t=e.dataPayload?.valueOf()||Buffer.from(e.data||""),r=e.additionalData?.map((e=>Buffer.from(e.valueOf())))||[];return 0===r.length&&t.length&&r.push(Buffer.from(t)),new o.TransactionEvent({address:e.address.bech32(),identifier:e.identifier,topics:e.topics.map((e=>Buffer.from(e.hex(),"hex"))),dataItems:r})}}},2581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrContractQuery=t.ErrNetworkProvider=t.ErrBadAddress=t.ErrSignerCannotSign=t.ErrBadPEM=t.ErrBadMnemonicEntropy=t.ErrWrongMnemonic=t.ErrSmartContractQuery=t.ErrParseTransactionOutcome=t.ErrInvalidInnerTransaction=t.ErrBadUsage=t.ErrInvalidTokenIdentifier=t.ErrIsCompletedFieldIsMissingOnTransaction=t.ErrGasLimitShouldBe0ForInnerTransaction=t.ErrInvalidRelayedV2BuilderArguments=t.ErrInvalidRelayedV1BuilderArguments=t.ErrNotImplemented=t.ErrContractInteraction=t.ErrCodec=t.ErrCannotParseTransactionOutcome=t.ErrCannotParseContractResults=t.ErrMissingFieldOnEnum=t.ErrMissingFieldOnStruct=t.ErrTypingSystem=t.ErrMock=t.ErrContractHasNoAddress=t.ErrContract=t.ErrExpectedTransactionEventsNotFound=t.ErrExpectedTransactionStatusNotReached=t.ErrTransactionWatcherTimeout=t.ErrAsyncTimerAborted=t.ErrAsyncTimerAlreadyRunning=t.ErrInvalidFunctionName=t.ErrSignatureCannotCreate=t.ErrTransactionOptionsInvalid=t.ErrTransactionVersionInvalid=t.ErrNonceInvalid=t.ErrNotEnoughGas=t.ErrAddressEmpty=t.ErrAddressBadHrp=t.ErrAddressCannotCreate=t.ErrUnexpectedCondition=t.ErrInvariantFailed=t.ErrBadType=t.ErrUnsupportedOperation=t.ErrInvalidArgument=t.Err=void 0;class r extends Error{constructor(e,t){super(e),this.inner=void 0,this.inner=t}summary(){const e=[];e.push({name:this.name,message:this.message});let t=this.inner;for(;t;)e.push({name:t.name,message:t.message}),t=t.inner;return e}}t.Err=r,t.ErrInvalidArgument=class extends r{constructor(e,t){super(`Invalid argument: ${e}`,t)}},t.ErrUnsupportedOperation=class extends r{constructor(e,t="not specified"){super(`Operation "${e}" not supported. Reason: ${t}`)}},t.ErrBadType=class extends r{constructor(e,t,r){super(`Bad type of "${e}": ${r}. Expected type: ${t}`)}},t.ErrInvariantFailed=class extends r{constructor(e){super(`Invariant failed: [${e}]`)}},t.ErrUnexpectedCondition=class extends r{constructor(e){super(`Unexpected condition: [${e}]`)}},t.ErrAddressCannotCreate=class extends r{constructor(e,t){super(`Cannot create address from: ${e}`,t)}},t.ErrAddressBadHrp=class extends r{constructor(e,t){super(`Wrong address HRP. Expected: ${e}, got ${t}`)}},t.ErrAddressEmpty=class extends r{constructor(){super("Address is empty")}},t.ErrNotEnoughGas=class extends r{constructor(e){super(`Not enough gas provided: ${e}`)}},t.ErrNonceInvalid=class extends r{constructor(e){super(`Invalid nonce: ${e}`)}},t.ErrTransactionVersionInvalid=class extends r{constructor(e){super(`Invalid transaction version: ${e}`)}},t.ErrTransactionOptionsInvalid=class extends r{constructor(e){super(`Invalid transaction options: ${e}`)}},t.ErrSignatureCannotCreate=class extends r{constructor(e,t){super(`Cannot create signature from: ${e}`,t)}},t.ErrInvalidFunctionName=class extends r{constructor(){super("Invalid function name")}},t.ErrAsyncTimerAlreadyRunning=class extends r{constructor(){super("Async timer already running")}},t.ErrAsyncTimerAborted=class extends r{constructor(){super("Async timer aborted")}},t.ErrTransactionWatcherTimeout=class extends r{constructor(){super("TransactionWatcher has timed out")}},t.ErrExpectedTransactionStatusNotReached=class extends r{constructor(){super("Expected transaction status not reached")}},t.ErrExpectedTransactionEventsNotFound=class extends r{constructor(){super("Expected transaction events not found")}};class n extends r{constructor(e){super(e)}}t.ErrContract=n,t.ErrContractHasNoAddress=class extends n{constructor(){super("\nThe smart contract has no address set. Make sure you provide the address in the constructor, or call setAddress() appropriately.\nIf you need to recompute the address of the contract, make use of SmartContract.computeAddress() (static method). \n")}},t.ErrMock=class extends r{constructor(e){super(e)}},t.ErrTypingSystem=class extends r{constructor(e){super(e)}},t.ErrMissingFieldOnStruct=class extends r{constructor(e,t){super(`field ${e} does not exist on struct ${t}`)}},t.ErrMissingFieldOnEnum=class extends r{constructor(e,t){super(`field ${e} does not exist on enum ${t}`)}},t.ErrCannotParseContractResults=class extends r{constructor(e){super(`cannot parse contract results: ${e}`)}},t.ErrCannotParseTransactionOutcome=class extends r{constructor(e,t){super(`cannot parse outcome of transaction ${e}: ${t}`)}},t.ErrCodec=class extends r{constructor(e){super(e)}},t.ErrContractInteraction=class extends r{constructor(e){super(e)}},t.ErrNotImplemented=class extends r{constructor(){super("Method not yet implemented")}},t.ErrInvalidRelayedV1BuilderArguments=class extends r{constructor(){super("invalid arguments for relayed v1 builder")}},t.ErrInvalidRelayedV2BuilderArguments=class extends r{constructor(){super("invalid arguments for relayed v2 builder")}},t.ErrGasLimitShouldBe0ForInnerTransaction=class extends r{constructor(){super("gas limit must be 0 for the inner transaction for relayed v2")}},t.ErrIsCompletedFieldIsMissingOnTransaction=class extends r{constructor(){super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.")}},t.ErrInvalidTokenIdentifier=class extends r{constructor(e){super(e)}},t.ErrBadUsage=class extends r{constructor(e){super(e)}},t.ErrInvalidInnerTransaction=class extends r{constructor(e){super(e)}},t.ErrParseTransactionOutcome=class extends r{constructor(e){super(e)}},t.ErrSmartContractQuery=class extends r{constructor(e,t){super(t),this.returnCode=e}},t.ErrWrongMnemonic=class extends r{constructor(){super("Wrong mnemonic format")}},t.ErrBadMnemonicEntropy=class extends r{constructor(e){super("Bad mnemonic entropy",e)}},t.ErrBadPEM=class extends r{constructor(e){super(e?`Bad PEM: ${e}`:"Bad PEM")}},t.ErrSignerCannotSign=class extends r{constructor(e){super("Cannot sign",e)}},t.ErrBadAddress=class extends r{constructor(e,t){super(`Bad address: ${e}`,t)}},t.ErrNetworkProvider=class extends r{constructor(e,t,r){super(`Request error on url [${e}]: [${t}]`,r)}},t.ErrContractQuery=class extends r{constructor(e){super(e.message.replace("executeQuery:",""))}}},523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GasEstimator=t.DefaultGasConfiguration=void 0,t.DefaultGasConfiguration={minGasLimit:5e4,gasPerDataByte:1500,gasCostESDTTransfer:2e5,gasCostESDTNFTTransfer:2e5,gasCostESDTNFTMultiTransfer:2e5};const r=8e5;t.GasEstimator=class{constructor(e){this.gasConfiguration=e||t.DefaultGasConfiguration}forEGLDTransfer(e){return this.gasConfiguration.minGasLimit+this.gasConfiguration.gasPerDataByte*e}forESDTTransfer(e){return this.gasConfiguration.minGasLimit+this.gasConfiguration.gasCostESDTTransfer+this.gasConfiguration.gasPerDataByte*e+1e5}forESDTNFTTransfer(e){return this.gasConfiguration.minGasLimit+this.gasConfiguration.gasCostESDTNFTTransfer+this.gasConfiguration.gasPerDataByte*e+r}forMultiESDTNFTTransfer(e,t){return this.gasConfiguration.minGasLimit+(this.gasConfiguration.gasCostESDTNFTMultiTransfer+r)*t+this.gasConfiguration.gasPerDataByte*e}}},1944:(e,t,r)=>{"use strict";r.g.Buffer||(r.g.Buffer=r(8287).Buffer)},9342:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const o=a(r(2581));class s{constructor(e){if(e)if(e instanceof Buffer)this.hash=e;else{if("string"!=typeof e)throw new o.ErrBadType("hash","buffer | string",e);this.hash=Buffer.from(e,"hex")}else this.hash=Buffer.from([])}static empty(){return new s(Buffer.from([]))}isEmpty(){return 0==this.hash.length}toString(){return this.hex()}hex(){return this.hash.toString("hex")}valueOf(){return this.hash}}t.Hash=s},4820:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(1944),i(r(1703),t),i(r(2969),t),i(r(236),t),i(r(5519),t),i(r(6424),t),i(r(4408),t),i(r(2581),t),i(r(523),t),i(r(8979),t),i(r(8622),t),i(r(6458),t),i(r(1212),t),i(r(3500),t),i(r(7376),t),i(r(207),t),i(r(3508),t),i(r(5003),t),i(r(661),t),i(r(3856),t),i(r(5132),t),i(r(476),t),i(r(9825),t),i(r(3548),t),i(r(4650),t),i(r(3102),t),i(r(4476),t),i(r(1069),t),i(r(737),t),i(r(4160),t)},8979:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6458:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogLevel=void 0,function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warn=3]="Warn",e[e.Error=4]="Error",e[e.None=5]="None"}(r=t.LogLevel||(t.LogLevel={}));class n{static setLevel(e){n.logLevel=e}static trace(e,...t){n.logLevel>=r.Debug||console.debug(e,t)}static debug(e,...t){n.logLevel>=r.Debug||console.debug(e,t)}static info(e,...t){n.logLevel>=r.Info||console.log(e,t)}static warn(e,...t){n.logLevel>=r.Warn||console.warn(e,t)}static error(e,...t){n.logLevel>=r.Error||console.error(e,t)}}t.Logger=n,n.logLevel=r.Debug},1212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageComputer=t.Message=void 0;const n=r(7353),i=r(236),a=r(5508);class o{constructor(e){this.data=e.data,this.signature=e.signature,this.address=e.address,this.version=e.version||n.DEFAULT_MESSAGE_VERSION,this.signer=e.signer||n.SDK_JS_SIGNER}}t.Message=o,t.MessageComputer=class{constructor(){}computeBytesForSigning(e){const t=Buffer.from(e.data.length.toString()),r=Buffer.concat([t,e.data]);let i=Buffer.concat([Buffer.from(n.MESSAGE_PREFIX),r]);return a("keccak256").update(i).digest()}computeBytesForVerifying(e){return this.computeBytesForSigning(e)}packMessage(e){return{message:Buffer.from(e.data).toString("hex"),signature:e.signature?Buffer.from(e.signature).toString("hex"):"",address:e.address?e.address.bech32():"",version:e.version,signer:e.signer}}unpackMessage(e){const t=this.trimHexPrefix(e.message),r=Buffer.from(t,"hex"),a=this.trimHexPrefix(e.signature||""),s=Buffer.from(a,"hex");let u;e.address&&(u=i.Address.fromBech32(e.address));const c=e.version||n.DEFAULT_MESSAGE_VERSION,l=e.signer||n.UNKNOWN_SIGNER;return new o({data:r,signature:s,address:u,version:c,signer:l})}trimHexPrefix(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e}}},3500:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionOptions=t.TransactionVersion=void 0;const o=r(7353),s=a(r(2581));class u{constructor(e){if((e=Number(e))<1)throw new s.ErrTransactionVersionInvalid(e);this.value=e}static withDefaultVersion(){return new u(o.TRANSACTION_VERSION_DEFAULT)}static withTxOptions(){return new u(o.TRANSACTION_VERSION_DEFAULT)}valueOf(){return this.value}}t.TransactionVersion=u;class c{constructor(e){if((e=Number(e))<0)throw new s.ErrTransactionOptionsInvalid(e);this.value=e}static withDefaultOptions(){return new c(o.TRANSACTION_OPTIONS_DEFAULT)}static withOptions(e){let t=0;return e.hashSign&&(t|=o.TRANSACTION_OPTIONS_TX_HASH_SIGN),e.guarded&&(t|=o.TRANSACTION_OPTIONS_TX_GUARDED),new c(t)}isWithHashSign(){return(this.value&o.TRANSACTION_OPTIONS_TX_HASH_SIGN)==o.TRANSACTION_OPTIONS_TX_HASH_SIGN}isWithGuardian(){return(this.value&o.TRANSACTION_OPTIONS_TX_GUARDED)==o.TRANSACTION_OPTIONS_TX_GUARDED}setWithHashSign(){this.value|=o.TRANSACTION_OPTIONS_TX_HASH_SIGN}setWithGuardian(){this.value|=o.TRANSACTION_OPTIONS_TX_GUARDED}valueOf(){return this.value}}t.TransactionOptions=c},5533:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GuardianData=t.AccountOnNetwork=void 0;const i=n(r(1594)),a=r(236);class o{constructor(e){this.address=a.Address.empty(),this.nonce=0,this.balance=new i.default(0),this.code="",this.userName="",Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new a.Address(e.address||""),t.nonce=Number(e.nonce||0),t.balance=new i.default(e.balance||0),t.code=e.code||"",t.userName=e.username||"",t}}t.AccountOnNetwork=o;class s{constructor(e){this.guarded=!1,Object.assign(this,e)}static fromHttpResponse(e){const t=new s;return t.guarded=e.guarded||!1,e.activeGuardian&&(t.activeGuardian=u.fromHttpResponse(e.activeGuardian)),e.pendingGuardian&&(t.pendingGuardian=u.fromHttpResponse(e.pendingGuardian)),t}getCurrentGuardianAddress(){if(this.guarded)return this.activeGuardian?.address}}t.GuardianData=s;class u{constructor(){this.activationEpoch=0,this.address=a.Address.empty(),this.serviceUID=""}static fromHttpResponse(e){const t=new u;return t.activationEpoch=Number(e.activationEpoch||0),t.address=new a.Address(e.address||""),t.serviceUID=e.serviceUID||"",t}}},1394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiNetworkProvider=void 0;const n=r(2581),i=r(1069),a=r(9161),o=r(5533),s=r(5795),u=r(4792),c=r(3262),l=r(6256),d=r(912),f=r(4277),h=r(1040),p=r(5778),g=r(7608),m=r(2947),y=r(3644),b=r(8663),v=r(4265);t.ApiNetworkProvider=class{constructor(e,t){this.userAgentPrefix=`${u.BaseUserAgent}/api`,this.url=e;const r=this.getProxyConfig(t);this.config={...s.defaultAxiosConfig,...t},this.backingProxyNetworkProvider=new p.ProxyNetworkProvider(e,r),this.axios=i.getAxios(),v.extendUserAgentIfBackend(this.userAgentPrefix,this.config)}getProxyConfig(e){let t=JSON.parse(JSON.stringify(e||{}));return t={...s.defaultAxiosConfig,...t},t}async getNetworkConfig(){return await this.backingProxyNetworkProvider.getNetworkConfig()}async getNetworkStatus(){return await this.backingProxyNetworkProvider.getNetworkStatus()}async getNetworkStakeStatistics(){const e=await this.doGetGeneric("stake");return f.NetworkStake.fromHttpResponse(e)}async getNetworkGeneralStatistics(){const e=await this.doGetGeneric("stats");return d.NetworkGeneralStatistics.fromHttpResponse(e)}async getAccount(e){const t=await this.doGetGeneric(`accounts/${e.bech32()}`);return o.AccountOnNetwork.fromHttpResponse(t)}async getGuardianData(e){return await this.backingProxyNetworkProvider.getGuardianData(e)}async getFungibleTokensOfAccount(e,t){t=t||s.defaultPagination;const r=`accounts/${e.bech32()}/tokens?${this.buildPaginationParams(t)}`,n=(await this.doGetGeneric(r)).map((e=>m.FungibleTokenOfAccountOnNetwork.fromHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}async getNonFungibleTokensOfAccount(e,t){t=t||s.defaultPagination;const r=`accounts/${e.bech32()}/nfts?${this.buildPaginationParams(t)}`,n=(await this.doGetGeneric(r)).map((e=>m.NonFungibleTokenOfAccountOnNetwork.fromApiHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}async getFungibleTokenOfAccount(e,t){const r=await this.doGetGeneric(`accounts/${e.bech32()}/tokens/${t}`);return m.FungibleTokenOfAccountOnNetwork.fromHttpResponse(r)}async getNonFungibleTokenOfAccount(e,t,r){const n=a.numberToPaddedHex(r),i=await this.doGetGeneric(`accounts/${e.bech32()}/nfts/${t}-${n}`);return m.NonFungibleTokenOfAccountOnNetwork.fromApiHttpResponse(i)}async getMexPairs(e){let t="mex/pairs";return e&&(t=`${t}?from=${e.from}&size=${e.size}`),(await this.doGetGeneric(t)).map((e=>h.PairOnNetwork.fromApiHttpResponse(e)))}async getTransaction(e){const t=await this.doGetGeneric(`transactions/${e}`);return y.TransactionOnNetwork.fromApiHttpResponse(e,t)}async getTransactionStatus(e){const t=await this.doGetGeneric(`transactions/${e}?fields=status`);return new b.TransactionStatus(t.status)}async sendTransaction(e){const t=y.prepareTransactionForBroadcasting(e);return(await this.doPostGeneric("transactions",t)).txHash}async sendTransactions(e){return await this.backingProxyNetworkProvider.sendTransactions(e)}async simulateTransaction(e){return await this.backingProxyNetworkProvider.simulateTransaction(e)}async queryContract(e){try{const t=new c.ContractQueryRequest(e).toHttpRequest(),r=await this.doPostGeneric("query",t);return l.ContractQueryResponse.fromHttpResponse(r)}catch(e){throw new n.ErrContractQuery(e)}}async getDefinitionOfFungibleToken(e){const t=await this.doGetGeneric(`tokens/${e}`);return g.DefinitionOfFungibleTokenOnNetwork.fromApiHttpResponse(t)}async getDefinitionOfTokenCollection(e){const t=await this.doGetGeneric(`collections/${e}`);return g.DefinitionOfTokenCollectionOnNetwork.fromApiHttpResponse(t)}async getNonFungibleToken(e,t){const r=a.numberToPaddedHex(t),n=await this.doGetGeneric(`nfts/${e}-${r}`);return m.NonFungibleTokenOfAccountOnNetwork.fromApiHttpResponse(n)}async doGetGeneric(e){return await this.doGet(e)}async doPostGeneric(e,t){return await this.doPost(e,t)}buildPaginationParams(e){return`from=${e.from}&size=${e.size}`}async doGet(e){const t=`${this.url}/${e}`;try{return(await this.axios.default.get(t,this.config)).data}catch(t){this.handleApiError(t,e)}}async doPost(e,t){const r=`${this.url}/${e}`;try{return(await this.axios.default.post(r,t,{...this.config,headers:{"Content-Type":"application/json",...this.config.headers}})).data}catch(t){this.handleApiError(t,e)}}handleApiError(e,t){if(!e.response)throw new n.ErrNetworkProvider(t,e.toString(),e);const r=e.response.data,i=r.message||r.error||JSON.stringify(r);throw new n.ErrNetworkProvider(t,i,e)}}},5795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPagination=t.defaultAxiosConfig=void 0;const n=r(1013)({constructorAction:"ignore"});t.defaultAxiosConfig={timeout:5e3,transformResponse:[function(e){return n.parse(e)}]},t.defaultPagination={from:0,size:100}},4792:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownClientName=t.BaseUserAgent=t.EsdtContractAddress=t.MaxUint64AsBigNumber=void 0;const i=n(r(1594)),a=r(236);t.MaxUint64AsBigNumber=new i.default("18446744073709551615"),t.EsdtContractAddress=new a.Address("erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"),t.BaseUserAgent="multiversx-sdk",t.UnknownClientName="unknown"},3262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryRequest=void 0,t.ContractQueryRequest=class{constructor(e){this.query=e}toHttpRequest(){let e={},t=this.query;return e.scAddress=t.address.bech32(),e.caller=t.caller?.bech32()?t.caller.bech32():void 0,e.funcName=t.func.toString(),e.value=t.value?t.value.toString():void 0,e.args=t.getEncodedArguments(),e}}},6256:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryResponse=void 0;const i=n(r(1594)),a=r(4792);class o{constructor(e){this.returnData=e?.returnData||[],this.returnCode=e?.returnCode||"",this.returnMessage=e?.returnMessage||"",this.gasUsed=e?.gasUsed||0}static fromHttpResponse(e){let t=e.returnData||e.ReturnData,r=e.returnCode||e.ReturnCode,n=e.returnMessage||e.ReturnMessage,s=new i.default(e.gasRemaining||e.GasRemaining||0),u=a.MaxUint64AsBigNumber.minus(s).toNumber();return new o({returnData:t,returnCode:r,returnMessage:n,gasUsed:u})}getReturnDataParts(){return this.returnData.map((e=>Buffer.from(e||"","base64")))}toJSON(){return{returnData:this.returnData,returnCode:this.returnCode,returnMessage:this.returnMessage,gasUsed:this.gasUsed.valueOf()}}}t.ContractQueryResponse=o},5201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractResultItem=t.ContractResults=void 0;const n=r(236),i=r(4638);class a{constructor(e){this.items=e,this.items.sort((function(e,t){return e.nonce.valueOf()-t.nonce.valueOf()}))}static fromProxyHttpResponse(e){let t=e.map((e=>o.fromProxyHttpResponse(e)));return new a(t)}static fromApiHttpResponse(e){let t=e.map((e=>o.fromApiHttpResponse(e)));return new a(t)}}t.ContractResults=a;class o{constructor(e){this.hash="",this.nonce=0,this.value="",this.receiver=n.Address.empty(),this.sender=n.Address.empty(),this.data="",this.previousHash="",this.originalHash="",this.gasLimit=0,this.gasPrice=0,this.callType=0,this.returnMessage="",this.logs=new i.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e){return o.fromHttpResponse(e)}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.data=Buffer.from(t.data,"base64").toString(),t.callType=Number(t.callType),t}static fromHttpResponse(e){let t=new o;return t.hash=e.hash,t.nonce=Number(e.nonce||0),t.value=(e.value||0).toString(),t.receiver=new n.Address(e.receiver),t.sender=new n.Address(e.sender),t.previousHash=e.prevTxHash,t.originalHash=e.originalTxHash,t.gasLimit=Number(e.gasLimit||0),t.gasPrice=Number(e.gasPrice||0),t.data=e.data||"",t.callType=e.callType,t.returnMessage=e.returnMessage,t.logs=i.TransactionLogs.fromHttpResponse(e.logs||{}),t}}t.ContractResultItem=o},737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkStatus=t.NetworkStake=t.NetworkGeneralStatistics=t.NetworkConfig=t.NonFungibleTokenOfAccountOnNetwork=t.FungibleTokenOfAccountOnNetwork=t.DefinitionOfTokenCollectionOnNetwork=t.DefinitionOfFungibleTokenOnNetwork=t.TransactionStatus=t.TransactionOnNetwork=t.TransactionReceipt=t.TransactionLogsOnNetwork=t.TransactionEventTopic=t.TransactionEventOnNetwork=t.TransactionEventData=t.ContractResults=t.ContractResultItem=t.ContractQueryResponse=t.AccountOnNetwork=t.ProxyNetworkProvider=t.ApiNetworkProvider=void 0;var n=r(1394);Object.defineProperty(t,"ApiNetworkProvider",{enumerable:!0,get:function(){return n.ApiNetworkProvider}});var i=r(5778);Object.defineProperty(t,"ProxyNetworkProvider",{enumerable:!0,get:function(){return i.ProxyNetworkProvider}});var a=r(5533);Object.defineProperty(t,"AccountOnNetwork",{enumerable:!0,get:function(){return a.AccountOnNetwork}});var o=r(6256);Object.defineProperty(t,"ContractQueryResponse",{enumerable:!0,get:function(){return o.ContractQueryResponse}});var s=r(5201);Object.defineProperty(t,"ContractResultItem",{enumerable:!0,get:function(){return s.ContractResultItem}}),Object.defineProperty(t,"ContractResults",{enumerable:!0,get:function(){return s.ContractResults}});var u=r(7368);Object.defineProperty(t,"TransactionEventData",{enumerable:!0,get:function(){return u.TransactionEventData}}),Object.defineProperty(t,"TransactionEventOnNetwork",{enumerable:!0,get:function(){return u.TransactionEvent}}),Object.defineProperty(t,"TransactionEventTopic",{enumerable:!0,get:function(){return u.TransactionEventTopic}});var c=r(4638);Object.defineProperty(t,"TransactionLogsOnNetwork",{enumerable:!0,get:function(){return c.TransactionLogs}});var l=r(8897);Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return l.TransactionReceipt}});var d=r(3644);Object.defineProperty(t,"TransactionOnNetwork",{enumerable:!0,get:function(){return d.TransactionOnNetwork}});var f=r(8663);Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return f.TransactionStatus}});var h=r(7608);Object.defineProperty(t,"DefinitionOfFungibleTokenOnNetwork",{enumerable:!0,get:function(){return h.DefinitionOfFungibleTokenOnNetwork}}),Object.defineProperty(t,"DefinitionOfTokenCollectionOnNetwork",{enumerable:!0,get:function(){return h.DefinitionOfTokenCollectionOnNetwork}});var p=r(2947);Object.defineProperty(t,"FungibleTokenOfAccountOnNetwork",{enumerable:!0,get:function(){return p.FungibleTokenOfAccountOnNetwork}}),Object.defineProperty(t,"NonFungibleTokenOfAccountOnNetwork",{enumerable:!0,get:function(){return p.NonFungibleTokenOfAccountOnNetwork}});var g=r(9113);Object.defineProperty(t,"NetworkConfig",{enumerable:!0,get:function(){return g.NetworkConfig}});var m=r(912);Object.defineProperty(t,"NetworkGeneralStatistics",{enumerable:!0,get:function(){return m.NetworkGeneralStatistics}});var y=r(4277);Object.defineProperty(t,"NetworkStake",{enumerable:!0,get:function(){return y.NetworkStake}});var b=r(4333);Object.defineProperty(t,"NetworkStatus",{enumerable:!0,get:function(){return b.NetworkStatus}})},9113:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkConfig=void 0;const i=n(r(1594));class a{constructor(){this.ChainID="T",this.GasPerDataByte=1500,this.TopUpFactor=0,this.RoundDuration=0,this.RoundsPerEpoch=0,this.TopUpRewardsGradientPoint=new i.default(0),this.MinGasLimit=5e4,this.MinGasPrice=1e9,this.GasPriceModifier=1,this.MinTransactionVersion=1}static fromHttpResponse(e){let t=new a;return t.ChainID=String(e.erd_chain_id),t.GasPerDataByte=Number(e.erd_gas_per_data_byte),t.TopUpFactor=Number(e.erd_top_up_factor),t.RoundDuration=Number(e.erd_round_duration),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t.TopUpRewardsGradientPoint=new i.default(e.erd_rewards_top_up_gradient_point),t.MinGasLimit=Number(e.erd_min_gas_limit),t.MinGasPrice=Number(e.erd_min_gas_price),t.MinTransactionVersion=Number(e.erd_min_transaction_version),t.GasPriceModifier=Number(e.erd_gas_price_modifier),t}}t.NetworkConfig=a},912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkGeneralStatistics=void 0;class r{constructor(){this.Shards=0,this.Blocks=0,this.Accounts=0,this.Transactions=0,this.RefreshRate=0,this.Epoch=0,this.RoundsPassed=0,this.RoundsPerEpoch=0}static fromHttpResponse(e){let t=new r;return t.Shards=Number(e.shards),t.Blocks=Number(e.blocks),t.Accounts=Number(e.accounts),t.Transactions=Number(e.transactions),t.RefreshRate=Number(e.refreshRate),t.Epoch=Number(e.epoch),t.RoundsPassed=Number(e.roundsPassed),t.RoundsPerEpoch=Number(e.roundsPerEpoch),t}}t.NetworkGeneralStatistics=r},4277:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkStake=void 0;const i=n(r(1594));class a{constructor(){this.TotalValidators=0,this.ActiveValidators=0,this.QueueSize=0,this.TotalStaked=new i.default(0)}static fromHttpResponse(e){let t=new a;return t.TotalValidators=Number(e.totalValidators),t.ActiveValidators=Number(e.activeValidators),t.QueueSize=Number(e.queueSize),t.TotalStaked=new i.default(e.totalStaked),t}}t.NetworkStake=a},4333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkStatus=void 0;class r{constructor(){this.CurrentRound=0,this.EpochNumber=0,this.HighestFinalNonce=0,this.Nonce=0,this.NonceAtEpochStart=0,this.NoncesPassedInCurrentEpoch=0,this.RoundAtEpochStart=0,this.RoundsPassedInCurrentEpoch=0,this.RoundsPerEpoch=0}static fromHttpResponse(e){let t=new r;return t.CurrentRound=Number(e.erd_current_round),t.EpochNumber=Number(e.erd_epoch_number),t.HighestFinalNonce=Number(e.erd_highest_final_nonce),t.Nonce=Number(e.erd_nonce),t.NonceAtEpochStart=Number(e.erd_nonce_at_epoch_start),t.NoncesPassedInCurrentEpoch=Number(e.erd_nonces_passed_in_current_epoch),t.RoundAtEpochStart=Number(e.erd_round_at_epoch_start),t.RoundsPassedInCurrentEpoch=Number(e.erd_rounds_passed_in_current_epoch),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t}}t.NetworkStatus=r},1040:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PairOnNetwork=void 0;const i=n(r(1594)),a=r(236);class o{constructor(e){this.address=a.Address.empty(),this.id="",this.symbol="",this.name="",this.price=new i.default(0),this.baseId="",this.basePrice=new i.default(0),this.baseSymbol="",this.baseName="",this.quoteId="",this.quotePrice=new i.default(0),this.quoteSymbol="",this.quoteName="",this.totalValue=new i.default(0),this.volume24h=new i.default(0),this.state="",this.type="",this.rawResponse={},Object.assign(this,e)}static fromApiHttpResponse(e){let t=new o;return t.address=new a.Address(e.address||""),t.id=e.id||"",t.symbol=e.symbol||"",t.name=e.name||"",t.price=new i.default(e.price||0),t.baseId=e.baseId||"",t.basePrice=new i.default(e.basePrice||0),t.baseSymbol=e.baseSymbol||"",t.baseName=e.baseName||"",t.quoteId=e.quoteId||"",t.quotePrice=new i.default(e.quotePrice||0),t.quoteSymbol=e.quoteSymbol||"",t.quoteName=e.quoteName||"",t.totalValue=new i.default(e.totalValue||0),t.volume24h=new i.default(e.volume24h||0),t.state=e.state||"",t.type=e.type||"",t.rawResponse=e,t}}t.PairOnNetwork=o},5778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyNetworkProvider=void 0;const n=r(2581),i=r(1069),a=r(5533),o=r(5795),s=r(4792),u=r(3262),c=r(6256),l=r(9113),d=r(4333),f=r(7608),h=r(2947),p=r(3644),g=r(8663),m=r(4265);t.ProxyNetworkProvider=class{constructor(e,t){this.userAgentPrefix=`${s.BaseUserAgent}/proxy`,this.url=e,this.config={...o.defaultAxiosConfig,...t},this.axios=i.getAxios(),m.extendUserAgentIfBackend(this.userAgentPrefix,this.config)}async getNetworkConfig(){const e=await this.doGetGeneric("network/config");return l.NetworkConfig.fromHttpResponse(e.config)}async getNetworkStatus(){const e=await this.doGetGeneric("network/status/4294967295");return d.NetworkStatus.fromHttpResponse(e.status)}async getNetworkStakeStatistics(){throw new Error("Method not implemented.")}async getNetworkGeneralStatistics(){throw new Error("Method not implemented.")}async getAccount(e){const t=await this.doGetGeneric(`address/${e.bech32()}`);return a.AccountOnNetwork.fromHttpResponse(t.account)}async getGuardianData(e){const t=await this.doGetGeneric(`address/${e.bech32()}/guardian-data`);return a.GuardianData.fromHttpResponse(t.guardianData)}async getFungibleTokensOfAccount(e,t){const r=`address/${e.bech32()}/esdt`,n=await this.doGetGeneric(r),i=Object.values(n.esdts).filter((e=>!e.nonce)).map((e=>h.FungibleTokenOfAccountOnNetwork.fromHttpResponse(e)));return i.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),i}async getNonFungibleTokensOfAccount(e,t){const r=`address/${e.bech32()}/esdt`,n=await this.doGetGeneric(r),i=Object.values(n.esdts).filter((e=>e.nonce>=0)).map((e=>h.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponse(e)));return i.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),i}async getFungibleTokenOfAccount(e,t){const r=await this.doGetGeneric(`address/${e.bech32()}/esdt/${t}`);return h.FungibleTokenOfAccountOnNetwork.fromHttpResponse(r.tokenData)}async getNonFungibleTokenOfAccount(e,t,r){const n=await this.doGetGeneric(`address/${e.bech32()}/nft/${t}/nonce/${r.valueOf()}`);return h.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponseByNonce(n.tokenData)}async getTransaction(e,t){const r=this.buildUrlWithQueryParameters(`transaction/${e}`,{withResults:"true"}),[n,i]=await Promise.all([this.doGetGeneric(r),this.getTransactionStatus(e)]);return p.TransactionOnNetwork.fromProxyHttpResponse(e,n.transaction,i)}async getTransactionStatus(e){const t=await this.doGetGeneric(`transaction/${e}/process-status`);return new g.TransactionStatus(t.status)}async sendTransaction(e){const t=p.prepareTransactionForBroadcasting(e);return(await this.doPostGeneric("transaction/send",t)).txHash}async sendTransactions(e){const t=e.map((e=>p.prepareTransactionForBroadcasting(e))),r=await this.doPostGeneric("transaction/send-multiple",t),n=Array(e.length).fill(null);for(let t=0;t<e.length;t++)n[t]=r.txsHashes[t.toString()]||null;return n}async simulateTransaction(e){const t=p.prepareTransactionForBroadcasting(e);return await this.doPostGeneric("transaction/simulate",t)}async queryContract(e){try{const t=new u.ContractQueryRequest(e).toHttpRequest(),r=await this.doPostGeneric("vm-values/query",t);return c.ContractQueryResponse.fromHttpResponse(r.data)}catch(e){throw new n.ErrContractQuery(e)}}async getDefinitionOfFungibleToken(e){const t=await this.getTokenProperties(e);return f.DefinitionOfFungibleTokenOnNetwork.fromResponseOfGetTokenProperties(e,t)}async getTokenProperties(e){const t=Buffer.from(e).toString("hex");return(await this.queryContract({address:s.EsdtContractAddress,func:"getTokenProperties",getEncodedArguments:()=>[t]})).getReturnDataParts()}async getDefinitionOfTokenCollection(e){const t=await this.getTokenProperties(e);return f.DefinitionOfTokenCollectionOnNetwork.fromResponseOfGetTokenProperties(e,t)}async getNonFungibleToken(e,t){throw new Error("Method not implemented.")}async doGetGeneric(e){return await this.doGet(e)}async doPostGeneric(e,t){return await this.doPost(e,t)}async doGet(e){const t=`${this.url}/${e}`;try{return(await this.axios.default.get(t,this.config)).data.data}catch(t){this.handleApiError(t,e)}}async doPost(e,t){const r=`${this.url}/${e}`;try{return(await this.axios.default.post(r,t,{...this.config,headers:{"Content-Type":"application/json",...this.config.headers}})).data.data}catch(t){this.handleApiError(t,e)}}buildUrlWithQueryParameters(e,t){const r=new URLSearchParams;for(let[e,n]of Object.entries(t))n&&r.append(e,n);return`${e}?${r.toString()}`}handleApiError(e,t){if(!e.response)throw new n.ErrNetworkProvider(t,e.toString(),e);const r=e.response.data,i=r.message||r.error||JSON.stringify(r);throw new n.ErrNetworkProvider(t,i,e)}}},7608:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionOfTokenCollectionOnNetwork=t.DefinitionOfFungibleTokenOnNetwork=void 0;const i=n(r(1594)),a=r(236);class o{constructor(){this.identifier="",this.name="",this.ticker="",this.owner=a.Address.empty(),this.decimals=0,this.supply=new i.default(0),this.isPaused=!1,this.canUpgrade=!1,this.canMint=!1,this.canBurn=!1,this.canChangeOwner=!1,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canAddSpecialRoles=!1,this.assets={}}static fromApiHttpResponse(e){let t=new o;return t.identifier=e.identifier||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new a.Address(e.owner||""),t.decimals=e.decimals||0,t.supply=new i.default(e.supply||"0"),t.isPaused=e.isPaused||!1,t.canUpgrade=e.canUpgrade||!1,t.canMint=e.canMint||!1,t.canBurn=e.canBurn||!1,t.canChangeOwner=e.canChangeOwner||!1,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.assets=e.assets||{},t}static fromResponseOfGetTokenProperties(e,t){let r=new o,[n,s,c,l,...d]=t,f=u(d);return r.identifier=e,r.name=n.toString(),r.ticker=e,r.owner=new a.Address(c),r.decimals=f.NumDecimals.toNumber(),r.supply=new i.default(l.toString()).shiftedBy(-r.decimals),r.isPaused=f.IsPaused,r.canUpgrade=f.CanUpgrade,r.canMint=f.CanMint,r.canBurn=f.CanBurn,r.canChangeOwner=f.CanChangeOwner,r.canPause=f.CanPause,r.canFreeze=f.CanFreeze,r.canWipe=f.CanWipe,r}}t.DefinitionOfFungibleTokenOnNetwork=o;class s{constructor(){this.collection="",this.type="",this.name="",this.ticker="",this.owner=a.Address.empty(),this.decimals=0,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canUpgrade=!1,this.canChangeOwner=!1,this.canAddSpecialRoles=!1,this.canTransferNftCreateRole=!1,this.canCreateMultiShard=!1}static fromApiHttpResponse(e){let t=new s;return t.collection=e.collection||"",t.type=e.type||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new a.Address(e.owner||""),t.decimals=e.decimals||0,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.canUpgrade=e.canUpgrade||!1,t.canAddSpecialRoles=e.canAddSpecialRoles||!1,t.canTransferNftCreateRole=e.canTransferNftCreateRole||!1,t}static fromResponseOfGetTokenProperties(e,t){let r=new s,[n,i,o,c,l,...d]=t,f=u(d);return r.collection=e,r.type=i.toString(),r.name=n.toString(),r.ticker=e,r.owner=new a.Address(o),r.decimals=f.NumDecimals.toNumber()??0,r.canPause=f.CanPause||!1,r.canFreeze=f.CanFreeze||!1,r.canWipe=f.CanWipe||!1,r.canUpgrade=f.CanUpgrade||!1,r.canChangeOwner=f.CanChangeOwner||!1,r.canAddSpecialRoles=f.CanAddSpecialRoles||!1,r.canTransferNftCreateRole=f.CanTransferNFTCreateRole||!1,r.canCreateMultiShard=f.CanCreateMultiShard||!1,r}}function u(e){let t={};for(let r of e){let[e,n]=r.toString().split("-");t[e]=c(n)}return t}function c(e){switch(e){case"true":return!0;case"false":return!1;default:return new i.default(e)}}t.DefinitionOfTokenCollectionOnNetwork=s},2947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonFungibleTokenOfAccountOnNetwork=t.FungibleTokenOfAccountOnNetwork=void 0;const n=r(1594),i=r(236),a=r(9161);class o{constructor(){this.identifier="",this.balance=new n.BigNumber(0),this.rawResponse={}}static fromHttpResponse(e){let t=new o;return t.identifier=e.tokenIdentifier||e.identifier||"",t.balance=new n.BigNumber(e.balance||0),t.rawResponse=e,t}}t.FungibleTokenOfAccountOnNetwork=o;class s{constructor(e){this.identifier="",this.collection="",this.timestamp=0,this.attributes=Buffer.from([]),this.nonce=0,this.type="",this.name="",this.creator=i.Address.empty(),this.supply=new n.BigNumber(0),this.decimals=0,this.royalties=new n.BigNumber(0),this.assets=[],this.balance=new n.BigNumber(0),Object.assign(this,e)}static fromProxyHttpResponse(e){let t=s.fromHttpResponse(e);return t.identifier=e.tokenIdentifier||"",t.collection=s.parseCollectionFromIdentifier(t.identifier),t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromProxyHttpResponseByNonce(e){let t=s.fromHttpResponse(e),r=a.numberToPaddedHex(t.nonce);return t.identifier=`${e.tokenIdentifier}-${r}`,t.collection=e.tokenIdentifier||"",t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromApiHttpResponse(e){let t=s.fromHttpResponse(e);return t.identifier=e.identifier||"",t.collection=e.collection||"",t}static fromHttpResponse(e){let t=new s;return t.timestamp=Number(e.timestamp||0),t.attributes=Buffer.from(e.attributes||"","base64"),t.nonce=e.nonce||0,t.type=e.type||"",t.name=e.name||"",t.creator=new i.Address(e.creator||""),t.decimals=Number(e.decimals||0),t.supply=new n.BigNumber(e.balance||1),t.royalties=new n.BigNumber(e.royalties||0),t.assets=e.assets||[],t.balance=new n.BigNumber(e.balance||1),t}static parseCollectionFromIdentifier(e){return e.split("-").slice(0,2).join("-")}}t.NonFungibleTokenOfAccountOnNetwork=s},7368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionEventTopic=t.TransactionEventData=t.TransactionEvent=void 0;const n=r(236);class i{constructor(e){this.address=n.Address.empty(),this.identifier="",this.topics=[],this.data="",this.dataPayload=new a(Buffer.from("","utf8")),this.additionalData=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new i;return t.address=new n.Address(e.address),t.identifier=e.identifier||"",t.topics=(e.topics||[]).map((e=>new o(e))),t.dataPayload=a.fromBase64(e.data),t.additionalData=(e.additionalData||[]).map(a.fromBase64),t.data=t.dataPayload.toString(),t}findFirstOrNoneTopic(e){return this.topics.filter((t=>e(t)))[0]}getLastTopic(){return this.topics[this.topics.length-1]}}t.TransactionEvent=i;class a{constructor(e){this.raw=e}static fromBase64(e){return new a(Buffer.from(e||"","base64"))}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventData=a;class o{constructor(e){this.raw=Buffer.from(e||"","base64")}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventTopic=o},4638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionLogs=void 0;const n=r(236),i=r(2581),a=r(7368);class o{constructor(e){this.address=n.Address.empty(),this.events=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new n.Address(e.address),t.events=(e.events||[]).map((e=>a.TransactionEvent.fromHttpResponse(e))),t}findSingleOrNoneEvent(e,t){let r=this.findEvents(e,t);if(r.length>1)throw new i.ErrUnexpectedCondition(`more than one event of type ${e}`);return r[0]}findFirstOrNoneEvent(e,t){return this.findEvents(e,t)[0]}findEvents(e,t){let r=this.events.filter((t=>t.identifier==e));return t&&(r=r.filter((e=>t(e)))),r}}t.TransactionLogs=o},8897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionReceipt=void 0;const n=r(236);class i{constructor(){this.value="",this.sender=n.Address.empty(),this.data="",this.hash=""}static fromHttpResponse(e){let t=new i;return t.value=(e.value||0).toString(),t.sender=new n.Address(e.sender),t.data=e.data,t.hash=e.txHash,t}}t.TransactionReceipt=i},8663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=void 0;class r{constructor(e){this.status=(e||"").toLowerCase()}static createUnknown(){return new r("unknown")}isPending(){return"received"==this.status||"pending"==this.status}isExecuted(){return this.isSuccessful()||this.isFailed()||this.isInvalid()}isSuccessful(){return"executed"==this.status||"success"==this.status||"successful"==this.status}isFailed(){return"fail"==this.status||"failed"==this.status||"unsuccessful"==this.status||this.isInvalid()}isInvalid(){return"invalid"==this.status}toString(){return this.status}valueOf(){return this.status}equals(e){return!!e&&this.status==e.status}}t.TransactionStatus=r},3644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionOnNetwork=t.prepareTransactionForBroadcasting=void 0;const n=r(236),i=r(5201),a=r(4638),o=r(8897),s=r(8663);t.prepareTransactionForBroadcasting=function(e){return"toSendable"in e?e.toSendable():{nonce:Number(e.nonce),value:e.value.toString(),receiver:e.receiver,sender:e.sender,senderUsername:e.senderUsername?Buffer.from(e.senderUsername).toString("base64"):void 0,receiverUsername:e.receiverUsername?Buffer.from(e.receiverUsername).toString("base64"):void 0,gasPrice:Number(e.gasPrice),gasLimit:Number(e.gasLimit),data:0===e.data.length?void 0:Buffer.from(e.data).toString("base64"),chainID:e.chainID,version:e.version,options:e.options,guardian:e.guardian||void 0,signature:Buffer.from(e.signature).toString("hex"),guardianSignature:0===e.guardianSignature.length?void 0:Buffer.from(e.guardianSignature).toString("hex")}};class u{constructor(e){this.hash="",this.type="",this.nonce=0,this.round=0,this.epoch=0,this.value="",this.receiver=n.Address.empty(),this.sender=n.Address.empty(),this.gasLimit=0,this.gasPrice=0,this.function="",this.data=Buffer.from([]),this.signature="",this.status=s.TransactionStatus.createUnknown(),this.timestamp=0,this.blockNonce=0,this.hyperblockNonce=0,this.hyperblockHash="",this.receipt=new o.TransactionReceipt,this.contractResults=new i.ContractResults([]),this.logs=new a.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e,t,r){let n=u.fromHttpResponse(e,t);return n.contractResults=i.ContractResults.fromProxyHttpResponse(t.smartContractResults||[]),r&&(n.status=r,n.isCompleted=n.status.isSuccessful()||n.status.isFailed()),n}static fromApiHttpResponse(e,t){let r=u.fromHttpResponse(e,t);return r.contractResults=i.ContractResults.fromApiHttpResponse(t.results||[]),r.isCompleted=!r.status.isPending(),r}static fromHttpResponse(e,t){let r=new u;return r.hash=e,r.type=t.type||"",r.nonce=t.nonce||0,r.round=t.round,r.epoch=t.epoch||0,r.value=(t.value||0).toString(),r.sender=new n.Address(t.sender),r.receiver=new n.Address(t.receiver),r.gasPrice=t.gasPrice||0,r.gasLimit=t.gasLimit||0,r.function=t.function||"",r.data=Buffer.from(t.data||"","base64"),r.status=new s.TransactionStatus(t.status),r.timestamp=t.timestamp||0,r.blockNonce=t.blockNonce||0,r.hyperblockNonce=t.hyperblockNonce||0,r.hyperblockHash=t.hyperblockHash||"",r.receipt=o.TransactionReceipt.fromHttpResponse(t.receipt||{}),r.logs=a.TransactionLogs.fromHttpResponse(t.logs||{}),r}getDateTime(){return new Date(1e3*this.timestamp)}}t.TransactionOnNetwork=u},4265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendUserAgentIfBackend=void 0;const n=r(6425),i=r(4792);t.extendUserAgentIfBackend=function(e,t){"undefined"==typeof window&&function(e,t){t.headers||(t.headers=new n.AxiosHeaders({})),t.clientName||console.log("We recommend providing the `clientName` when instantiating a NetworkProvider (e.g. ProxyNetworkProvider, ApiNetworkProvider). This information will be used for metrics collection and improving our services.");const r=n.AxiosHeaders.from(t.headers).normalize(!0),a=t.clientName||i.UnknownClientName,o=r.hasUserAgent()?r.getUserAgent():"",s=o?`${o} ${e}/${a}`:`${e}/${a}`;r.setUserAgent(s,!0)}(e,t)}},4330:function(e,t,r){"use strict";var n,i,a;i=[r(6946)],void 0===(a="function"==typeof(n=function(e){var t,r=e.Reader,n=e.Writer,i=e.util,a=e.roots.default||(e.roots.default={});return a.proto=((t={}).Transaction=function(){function t(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return t.prototype.Nonce=i.Long?i.Long.fromBits(0,0,!0):0,t.prototype.Value=i.newBuffer([]),t.prototype.RcvAddr=i.newBuffer([]),t.prototype.RcvUserName=i.newBuffer([]),t.prototype.SndAddr=i.newBuffer([]),t.prototype.SndUserName=i.newBuffer([]),t.prototype.GasPrice=i.Long?i.Long.fromBits(0,0,!0):0,t.prototype.GasLimit=i.Long?i.Long.fromBits(0,0,!0):0,t.prototype.Data=i.newBuffer([]),t.prototype.ChainID=i.newBuffer([]),t.prototype.Version=0,t.prototype.Signature=i.newBuffer([]),t.prototype.Options=0,t.prototype.GuardianAddr=i.newBuffer([]),t.prototype.GuardianSignature=i.newBuffer([]),t.prototype.Relayer=i.newBuffer([]),t.prototype.RelayerSignature=i.newBuffer([]),t.create=function(e){return new t(e)},t.encode=function(e,t){return t||(t=n.create()),null!=e.Nonce&&Object.hasOwnProperty.call(e,"Nonce")&&t.uint32(8).uint64(e.Nonce),null!=e.Value&&Object.hasOwnProperty.call(e,"Value")&&t.uint32(18).bytes(e.Value),null!=e.RcvAddr&&Object.hasOwnProperty.call(e,"RcvAddr")&&t.uint32(26).bytes(e.RcvAddr),null!=e.RcvUserName&&Object.hasOwnProperty.call(e,"RcvUserName")&&t.uint32(34).bytes(e.RcvUserName),null!=e.SndAddr&&Object.hasOwnProperty.call(e,"SndAddr")&&t.uint32(42).bytes(e.SndAddr),null!=e.SndUserName&&Object.hasOwnProperty.call(e,"SndUserName")&&t.uint32(50).bytes(e.SndUserName),null!=e.GasPrice&&Object.hasOwnProperty.call(e,"GasPrice")&&t.uint32(56).uint64(e.GasPrice),null!=e.GasLimit&&Object.hasOwnProperty.call(e,"GasLimit")&&t.uint32(64).uint64(e.GasLimit),null!=e.Data&&Object.hasOwnProperty.call(e,"Data")&&t.uint32(74).bytes(e.Data),null!=e.ChainID&&Object.hasOwnProperty.call(e,"ChainID")&&t.uint32(82).bytes(e.ChainID),null!=e.Version&&Object.hasOwnProperty.call(e,"Version")&&t.uint32(88).uint32(e.Version),null!=e.Signature&&Object.hasOwnProperty.call(e,"Signature")&&t.uint32(98).bytes(e.Signature),null!=e.Options&&Object.hasOwnProperty.call(e,"Options")&&t.uint32(104).uint32(e.Options),null!=e.GuardianAddr&&Object.hasOwnProperty.call(e,"GuardianAddr")&&t.uint32(114).bytes(e.GuardianAddr),null!=e.GuardianSignature&&Object.hasOwnProperty.call(e,"GuardianSignature")&&t.uint32(122).bytes(e.GuardianSignature),null!=e.Relayer&&Object.hasOwnProperty.call(e,"Relayer")&&t.uint32(130).bytes(e.Relayer),null!=e.RelayerSignature&&Object.hasOwnProperty.call(e,"RelayerSignature")&&t.uint32(138).bytes(e.RelayerSignature),t},t.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},t.decode=function(e,t){e instanceof r||(e=r.create(e));for(var n=void 0===t?e.len:e.pos+t,i=new a.proto.Transaction;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:i.Nonce=e.uint64();break;case 2:i.Value=e.bytes();break;case 3:i.RcvAddr=e.bytes();break;case 4:i.RcvUserName=e.bytes();break;case 5:i.SndAddr=e.bytes();break;case 6:i.SndUserName=e.bytes();break;case 7:i.GasPrice=e.uint64();break;case 8:i.GasLimit=e.uint64();break;case 9:i.Data=e.bytes();break;case 10:i.ChainID=e.bytes();break;case 11:i.Version=e.uint32();break;case 12:i.Signature=e.bytes();break;case 13:i.Options=e.uint32();break;case 14:i.GuardianAddr=e.bytes();break;case 15:i.GuardianSignature=e.bytes();break;case 16:i.Relayer=e.bytes();break;case 17:i.RelayerSignature=e.bytes();break;default:e.skipType(7&o)}}return i},t.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},t.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.Nonce&&e.hasOwnProperty("Nonce")&&!(i.isInteger(e.Nonce)||e.Nonce&&i.isInteger(e.Nonce.low)&&i.isInteger(e.Nonce.high))?"Nonce: integer|Long expected":null!=e.Value&&e.hasOwnProperty("Value")&&!(e.Value&&"number"==typeof e.Value.length||i.isString(e.Value))?"Value: buffer expected":null!=e.RcvAddr&&e.hasOwnProperty("RcvAddr")&&!(e.RcvAddr&&"number"==typeof e.RcvAddr.length||i.isString(e.RcvAddr))?"RcvAddr: buffer expected":null!=e.RcvUserName&&e.hasOwnProperty("RcvUserName")&&!(e.RcvUserName&&"number"==typeof e.RcvUserName.length||i.isString(e.RcvUserName))?"RcvUserName: buffer expected":null!=e.SndAddr&&e.hasOwnProperty("SndAddr")&&!(e.SndAddr&&"number"==typeof e.SndAddr.length||i.isString(e.SndAddr))?"SndAddr: buffer expected":null!=e.SndUserName&&e.hasOwnProperty("SndUserName")&&!(e.SndUserName&&"number"==typeof e.SndUserName.length||i.isString(e.SndUserName))?"SndUserName: buffer expected":null!=e.GasPrice&&e.hasOwnProperty("GasPrice")&&!(i.isInteger(e.GasPrice)||e.GasPrice&&i.isInteger(e.GasPrice.low)&&i.isInteger(e.GasPrice.high))?"GasPrice: integer|Long expected":null!=e.GasLimit&&e.hasOwnProperty("GasLimit")&&!(i.isInteger(e.GasLimit)||e.GasLimit&&i.isInteger(e.GasLimit.low)&&i.isInteger(e.GasLimit.high))?"GasLimit: integer|Long expected":null!=e.Data&&e.hasOwnProperty("Data")&&!(e.Data&&"number"==typeof e.Data.length||i.isString(e.Data))?"Data: buffer expected":null!=e.ChainID&&e.hasOwnProperty("ChainID")&&!(e.ChainID&&"number"==typeof e.ChainID.length||i.isString(e.ChainID))?"ChainID: buffer expected":null!=e.Version&&e.hasOwnProperty("Version")&&!i.isInteger(e.Version)?"Version: integer expected":null!=e.Signature&&e.hasOwnProperty("Signature")&&!(e.Signature&&"number"==typeof e.Signature.length||i.isString(e.Signature))?"Signature: buffer expected":null!=e.Options&&e.hasOwnProperty("Options")&&!i.isInteger(e.Options)?"Options: integer expected":null!=e.GuardianAddr&&e.hasOwnProperty("GuardianAddr")&&!(e.GuardianAddr&&"number"==typeof e.GuardianAddr.length||i.isString(e.GuardianAddr))?"GuardianAddr: buffer expected":null!=e.GuardianSignature&&e.hasOwnProperty("GuardianSignature")&&!(e.GuardianSignature&&"number"==typeof e.GuardianSignature.length||i.isString(e.GuardianSignature))?"GuardianSignature: buffer expected":null!=e.Relayer&&e.hasOwnProperty("Relayer")&&!(e.Relayer&&"number"==typeof e.Relayer.length||i.isString(e.Relayer))?"Relayer: buffer expected":null!=e.RelayerSignature&&e.hasOwnProperty("RelayerSignature")&&!(e.RelayerSignature&&"number"==typeof e.RelayerSignature.length||i.isString(e.RelayerSignature))?"RelayerSignature: buffer expected":null},t.fromObject=function(e){if(e instanceof a.proto.Transaction)return e;var t=new a.proto.Transaction;return null!=e.Nonce&&(i.Long?(t.Nonce=i.Long.fromValue(e.Nonce)).unsigned=!0:"string"==typeof e.Nonce?t.Nonce=parseInt(e.Nonce,10):"number"==typeof e.Nonce?t.Nonce=e.Nonce:"object"==typeof e.Nonce&&(t.Nonce=new i.LongBits(e.Nonce.low>>>0,e.Nonce.high>>>0).toNumber(!0))),null!=e.Value&&("string"==typeof e.Value?i.base64.decode(e.Value,t.Value=i.newBuffer(i.base64.length(e.Value)),0):e.Value.length>=0&&(t.Value=e.Value)),null!=e.RcvAddr&&("string"==typeof e.RcvAddr?i.base64.decode(e.RcvAddr,t.RcvAddr=i.newBuffer(i.base64.length(e.RcvAddr)),0):e.RcvAddr.length>=0&&(t.RcvAddr=e.RcvAddr)),null!=e.RcvUserName&&("string"==typeof e.RcvUserName?i.base64.decode(e.RcvUserName,t.RcvUserName=i.newBuffer(i.base64.length(e.RcvUserName)),0):e.RcvUserName.length>=0&&(t.RcvUserName=e.RcvUserName)),null!=e.SndAddr&&("string"==typeof e.SndAddr?i.base64.decode(e.SndAddr,t.SndAddr=i.newBuffer(i.base64.length(e.SndAddr)),0):e.SndAddr.length>=0&&(t.SndAddr=e.SndAddr)),null!=e.SndUserName&&("string"==typeof e.SndUserName?i.base64.decode(e.SndUserName,t.SndUserName=i.newBuffer(i.base64.length(e.SndUserName)),0):e.SndUserName.length>=0&&(t.SndUserName=e.SndUserName)),null!=e.GasPrice&&(i.Long?(t.GasPrice=i.Long.fromValue(e.GasPrice)).unsigned=!0:"string"==typeof e.GasPrice?t.GasPrice=parseInt(e.GasPrice,10):"number"==typeof e.GasPrice?t.GasPrice=e.GasPrice:"object"==typeof e.GasPrice&&(t.GasPrice=new i.LongBits(e.GasPrice.low>>>0,e.GasPrice.high>>>0).toNumber(!0))),null!=e.GasLimit&&(i.Long?(t.GasLimit=i.Long.fromValue(e.GasLimit)).unsigned=!0:"string"==typeof e.GasLimit?t.GasLimit=parseInt(e.GasLimit,10):"number"==typeof e.GasLimit?t.GasLimit=e.GasLimit:"object"==typeof e.GasLimit&&(t.GasLimit=new i.LongBits(e.GasLimit.low>>>0,e.GasLimit.high>>>0).toNumber(!0))),null!=e.Data&&("string"==typeof e.Data?i.base64.decode(e.Data,t.Data=i.newBuffer(i.base64.length(e.Data)),0):e.Data.length>=0&&(t.Data=e.Data)),null!=e.ChainID&&("string"==typeof e.ChainID?i.base64.decode(e.ChainID,t.ChainID=i.newBuffer(i.base64.length(e.ChainID)),0):e.ChainID.length>=0&&(t.ChainID=e.ChainID)),null!=e.Version&&(t.Version=e.Version>>>0),null!=e.Signature&&("string"==typeof e.Signature?i.base64.decode(e.Signature,t.Signature=i.newBuffer(i.base64.length(e.Signature)),0):e.Signature.length>=0&&(t.Signature=e.Signature)),null!=e.Options&&(t.Options=e.Options>>>0),null!=e.GuardianAddr&&("string"==typeof e.GuardianAddr?i.base64.decode(e.GuardianAddr,t.GuardianAddr=i.newBuffer(i.base64.length(e.GuardianAddr)),0):e.GuardianAddr.length>=0&&(t.GuardianAddr=e.GuardianAddr)),null!=e.GuardianSignature&&("string"==typeof e.GuardianSignature?i.base64.decode(e.GuardianSignature,t.GuardianSignature=i.newBuffer(i.base64.length(e.GuardianSignature)),0):e.GuardianSignature.length>=0&&(t.GuardianSignature=e.GuardianSignature)),null!=e.Relayer&&("string"==typeof e.Relayer?i.base64.decode(e.Relayer,t.Relayer=i.newBuffer(i.base64.length(e.Relayer)),0):e.Relayer.length>=0&&(t.Relayer=e.Relayer)),null!=e.RelayerSignature&&("string"==typeof e.RelayerSignature?i.base64.decode(e.RelayerSignature,t.RelayerSignature=i.newBuffer(i.base64.length(e.RelayerSignature)),0):e.RelayerSignature.length>=0&&(t.RelayerSignature=e.RelayerSignature)),t},t.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(i.Long){var n=new i.Long(0,0,!0);r.Nonce=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.Nonce=t.longs===String?"0":0;t.bytes===String?r.Value="":(r.Value=[],t.bytes!==Array&&(r.Value=i.newBuffer(r.Value))),t.bytes===String?r.RcvAddr="":(r.RcvAddr=[],t.bytes!==Array&&(r.RcvAddr=i.newBuffer(r.RcvAddr))),t.bytes===String?r.RcvUserName="":(r.RcvUserName=[],t.bytes!==Array&&(r.RcvUserName=i.newBuffer(r.RcvUserName))),t.bytes===String?r.SndAddr="":(r.SndAddr=[],t.bytes!==Array&&(r.SndAddr=i.newBuffer(r.SndAddr))),t.bytes===String?r.SndUserName="":(r.SndUserName=[],t.bytes!==Array&&(r.SndUserName=i.newBuffer(r.SndUserName))),i.Long?(n=new i.Long(0,0,!0),r.GasPrice=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):r.GasPrice=t.longs===String?"0":0,i.Long?(n=new i.Long(0,0,!0),r.GasLimit=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):r.GasLimit=t.longs===String?"0":0,t.bytes===String?r.Data="":(r.Data=[],t.bytes!==Array&&(r.Data=i.newBuffer(r.Data))),t.bytes===String?r.ChainID="":(r.ChainID=[],t.bytes!==Array&&(r.ChainID=i.newBuffer(r.ChainID))),r.Version=0,t.bytes===String?r.Signature="":(r.Signature=[],t.bytes!==Array&&(r.Signature=i.newBuffer(r.Signature))),r.Options=0,t.bytes===String?r.GuardianAddr="":(r.GuardianAddr=[],t.bytes!==Array&&(r.GuardianAddr=i.newBuffer(r.GuardianAddr))),t.bytes===String?r.GuardianSignature="":(r.GuardianSignature=[],t.bytes!==Array&&(r.GuardianSignature=i.newBuffer(r.GuardianSignature))),t.bytes===String?r.Relayer="":(r.Relayer=[],t.bytes!==Array&&(r.Relayer=i.newBuffer(r.Relayer))),t.bytes===String?r.RelayerSignature="":(r.RelayerSignature=[],t.bytes!==Array&&(r.RelayerSignature=i.newBuffer(r.RelayerSignature)))}return null!=e.Nonce&&e.hasOwnProperty("Nonce")&&("number"==typeof e.Nonce?r.Nonce=t.longs===String?String(e.Nonce):e.Nonce:r.Nonce=t.longs===String?i.Long.prototype.toString.call(e.Nonce):t.longs===Number?new i.LongBits(e.Nonce.low>>>0,e.Nonce.high>>>0).toNumber(!0):e.Nonce),null!=e.Value&&e.hasOwnProperty("Value")&&(r.Value=t.bytes===String?i.base64.encode(e.Value,0,e.Value.length):t.bytes===Array?Array.prototype.slice.call(e.Value):e.Value),null!=e.RcvAddr&&e.hasOwnProperty("RcvAddr")&&(r.RcvAddr=t.bytes===String?i.base64.encode(e.RcvAddr,0,e.RcvAddr.length):t.bytes===Array?Array.prototype.slice.call(e.RcvAddr):e.RcvAddr),null!=e.RcvUserName&&e.hasOwnProperty("RcvUserName")&&(r.RcvUserName=t.bytes===String?i.base64.encode(e.RcvUserName,0,e.RcvUserName.length):t.bytes===Array?Array.prototype.slice.call(e.RcvUserName):e.RcvUserName),null!=e.SndAddr&&e.hasOwnProperty("SndAddr")&&(r.SndAddr=t.bytes===String?i.base64.encode(e.SndAddr,0,e.SndAddr.length):t.bytes===Array?Array.prototype.slice.call(e.SndAddr):e.SndAddr),null!=e.SndUserName&&e.hasOwnProperty("SndUserName")&&(r.SndUserName=t.bytes===String?i.base64.encode(e.SndUserName,0,e.SndUserName.length):t.bytes===Array?Array.prototype.slice.call(e.SndUserName):e.SndUserName),null!=e.GasPrice&&e.hasOwnProperty("GasPrice")&&("number"==typeof e.GasPrice?r.GasPrice=t.longs===String?String(e.GasPrice):e.GasPrice:r.GasPrice=t.longs===String?i.Long.prototype.toString.call(e.GasPrice):t.longs===Number?new i.LongBits(e.GasPrice.low>>>0,e.GasPrice.high>>>0).toNumber(!0):e.GasPrice),null!=e.GasLimit&&e.hasOwnProperty("GasLimit")&&("number"==typeof e.GasLimit?r.GasLimit=t.longs===String?String(e.GasLimit):e.GasLimit:r.GasLimit=t.longs===String?i.Long.prototype.toString.call(e.GasLimit):t.longs===Number?new i.LongBits(e.GasLimit.low>>>0,e.GasLimit.high>>>0).toNumber(!0):e.GasLimit),null!=e.Data&&e.hasOwnProperty("Data")&&(r.Data=t.bytes===String?i.base64.encode(e.Data,0,e.Data.length):t.bytes===Array?Array.prototype.slice.call(e.Data):e.Data),null!=e.ChainID&&e.hasOwnProperty("ChainID")&&(r.ChainID=t.bytes===String?i.base64.encode(e.ChainID,0,e.ChainID.length):t.bytes===Array?Array.prototype.slice.call(e.ChainID):e.ChainID),null!=e.Version&&e.hasOwnProperty("Version")&&(r.Version=e.Version),null!=e.Signature&&e.hasOwnProperty("Signature")&&(r.Signature=t.bytes===String?i.base64.encode(e.Signature,0,e.Signature.length):t.bytes===Array?Array.prototype.slice.call(e.Signature):e.Signature),null!=e.Options&&e.hasOwnProperty("Options")&&(r.Options=e.Options),null!=e.GuardianAddr&&e.hasOwnProperty("GuardianAddr")&&(r.GuardianAddr=t.bytes===String?i.base64.encode(e.GuardianAddr,0,e.GuardianAddr.length):t.bytes===Array?Array.prototype.slice.call(e.GuardianAddr):e.GuardianAddr),null!=e.GuardianSignature&&e.hasOwnProperty("GuardianSignature")&&(r.GuardianSignature=t.bytes===String?i.base64.encode(e.GuardianSignature,0,e.GuardianSignature.length):t.bytes===Array?Array.prototype.slice.call(e.GuardianSignature):e.GuardianSignature),null!=e.Relayer&&e.hasOwnProperty("Relayer")&&(r.Relayer=t.bytes===String?i.base64.encode(e.Relayer,0,e.Relayer.length):t.bytes===Array?Array.prototype.slice.call(e.Relayer):e.Relayer),null!=e.RelayerSignature&&e.hasOwnProperty("RelayerSignature")&&(r.RelayerSignature=t.bytes===String?i.base64.encode(e.RelayerSignature,0,e.RelayerSignature.length):t.bytes===Array?Array.prototype.slice.call(e.RelayerSignature):e.RelayerSignature),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},t.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Transaction"},t}(),t),a})?n.apply(t,i):n)||(e.exports=a)},9277:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3325),t)},3325:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProtoSerializer=void 0;const s=o(r(1594)),u=r(236),c=r(7353),l=a(r(2581)),d=r(7553);t.ProtoSerializer=class{serializeTransaction(e){const t=r(4330).proto,n=this.convertToProtoMessage(e),i=t.Transaction.encode(n).finish();return Buffer.from(i)}convertToProtoMessage(e){const t=r(4330).proto,n=new u.Address(e.receiver).getPublicKey(),i=new u.Address(e.sender).getPublicKey();let a=new t.Transaction({Nonce:Number(e.nonce)?Number(e.nonce):void 0,Value:this.serializeTransactionValue(e.value),RcvAddr:n,RcvUserName:e.receiverUsername?Buffer.from(e.receiverUsername).toString("base64"):void 0,SndAddr:i,SndUserName:e.senderUsername?Buffer.from(e.senderUsername).toString("base64"):void 0,GasPrice:Number(e.gasPrice),GasLimit:Number(e.gasLimit),Data:0==e.data.length?null:e.data,ChainID:Buffer.from(e.chainID),Version:e.version,Signature:e.signature});return e.options!==c.TRANSACTION_OPTIONS_DEFAULT&&(a.Options=e.options),this.isGuardedTransaction(e)&&(a.GuardianAddr=new u.Address(e.guardian).getPublicKey(),a.GuardianSignature=e.guardianSignature),this.isRelayedTransaction(e)&&(a.Relayer=e.relayer?.getPublicKey(),a.RelayerSignature=e.relayerSignature),a}isRelayedTransaction(e){return!e.relayer.isEmpty()}serializeTransactionValue(e){let t=new s.default(e.toString());if(t.isZero())return Buffer.from([0,0]);let r=d.bigIntToBuffer(t);return r=Buffer.concat([Buffer.from([0]),r]),r}isGuardedTransaction(e){const t=e.guardian.length>0,r=e.guardianSignature.length>0;return this.isWithGuardian(e)&&t&&r}isWithGuardian(e){return(e.options&c.TRANSACTION_OPTIONS_TX_GUARDED)==c.TRANSACTION_OPTIONS_TX_GUARDED}deserializeTransaction(e){throw new l.ErrUnsupportedOperation("deserializeTransaction")}}},8444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJavascriptPrototypesInHierarchy=void 0,t.getJavascriptPrototypesInHierarchy=function(e,t){let r=[],n=Object.getPrototypeOf(e);for(;n&&t(n);)r.push(n),n=Object.getPrototypeOf(n);return r}},7376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayedTransactionV1Builder=void 0;const n=r(236),i=r(2581),a=r(476),o=r(3548),s=r(1013);t.RelayedTransactionV1Builder=class{setInnerTransaction(e){return this.innerTransaction=e,this}setNetworkConfig(e){return this.netConfig=e,this}setRelayerAddress(e){return this.relayerAddress=e,this}setRelayerNonce(e){return this.relayerNonce=e,this}setRelayedTransactionVersion(e){return this.relayedTransactionVersion=e,this}setRelayedTransactionOptions(e){return this.relayedTransactionOptions=e,this}setRelayedTransactionGuardian(e){return this.relayedTransactionGuardian=e,this}build(){if(!(this.innerTransaction&&this.netConfig&&this.relayerAddress&&this.innerTransaction.getSignature()))throw new i.ErrInvalidRelayedV1BuilderArguments;const e=this.prepareInnerTransaction(),t=`relayedTx@${Buffer.from(e).toString("hex")}`,r=new o.TransactionPayload(t),n=this.netConfig.MinGasLimit+this.netConfig.GasPerDataByte*r.length()+this.innerTransaction.getGasLimit().valueOf();let s=new a.Transaction({nonce:this.relayerNonce,sender:this.relayerAddress,receiver:this.innerTransaction.getSender(),value:0,gasLimit:n,data:r,chainID:this.netConfig.ChainID,version:this.relayedTransactionVersion,options:this.relayedTransactionOptions,guardian:this.relayedTransactionGuardian});return this.relayerNonce&&s.setNonce(this.relayerNonce),s}prepareInnerTransaction(){if(!this.innerTransaction)return"";const e={nonce:this.innerTransaction.getNonce().valueOf(),sender:new n.Address(this.innerTransaction.getSender().bech32()).pubkey().toString("base64"),receiver:new n.Address(this.innerTransaction.getReceiver().bech32()).pubkey().toString("base64"),value:BigInt(this.innerTransaction.getValue().toString()),gasPrice:this.innerTransaction.getGasPrice().valueOf(),gasLimit:this.innerTransaction.getGasLimit().valueOf(),data:this.innerTransaction.getData().valueOf().toString("base64"),signature:this.innerTransaction.getSignature().toString("base64"),chainID:Buffer.from(this.innerTransaction.getChainID().valueOf()).toString("base64"),version:this.innerTransaction.getVersion().valueOf(),options:0==this.innerTransaction.getOptions().valueOf()?void 0:this.innerTransaction.getOptions().valueOf(),guardian:this.innerTransaction.getGuardian().bech32()?new n.Address(this.innerTransaction.getGuardian().bech32()).pubkey().toString("base64"):void 0,guardianSignature:this.innerTransaction.getGuardianSignature().toString("hex")?this.innerTransaction.getGuardianSignature().toString("base64"):void 0,sndUserName:this.innerTransaction.getSenderUsername()?Buffer.from(this.innerTransaction.getSenderUsername()).toString("base64"):void 0,rcvUserName:this.innerTransaction.getReceiverUsername()?Buffer.from(this.innerTransaction.getReceiverUsername()).toString("base64"):void 0};return s.stringify(e)}}},207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayedTransactionV2Builder=void 0;const n=r(2581),i=r(661),a=r(476),o=r(3548);t.RelayedTransactionV2Builder=class{setInnerTransaction(e){return this.innerTransaction=e,this}setInnerTransactionGasLimit(e){return this.innerTransactionGasLimit=e,this}setNetworkConfig(e){return this.netConfig=e,this}setRelayerAddress(e){return this.relayerAddress=e,this}setRelayerNonce(e){return this.relayerNonce=e,this}build(){if(!(this.innerTransaction&&this.innerTransactionGasLimit&&this.relayerAddress&&this.netConfig&&this.innerTransaction.getSignature()))throw new n.ErrInvalidRelayedV2BuilderArguments;if(0!=this.innerTransaction.getGasLimit())throw new n.ErrGasLimitShouldBe0ForInnerTransaction;const{argumentsString:e}=(new i.ArgSerializer).valuesToString([new i.AddressValue(this.innerTransaction.getReceiver()),new i.U64Value(this.innerTransaction.getNonce().valueOf()),new i.BytesValue(this.innerTransaction.getData().valueOf()),new i.BytesValue(this.innerTransaction.getSignature())]),t=`relayedTxV2@${e}`,r=new o.TransactionPayload(t);let s=new a.Transaction({sender:this.relayerAddress,receiver:this.innerTransaction.getSender(),value:0,gasLimit:this.innerTransactionGasLimit.valueOf()+this.netConfig.MinGasLimit+this.netConfig.GasPerDataByte*r.length(),data:r,chainID:this.netConfig.ChainID,version:this.innerTransaction.getVersion(),options:this.innerTransaction.getOptions()});return this.relayerNonce&&s.setNonce(this.relayerNonce),s}}},3508:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignableMessage=void 0;const n=r(236),i=r(9874),a=r(7353),o=r(5508);t.SignableMessage=class{constructor(e){this.message=Buffer.from([]),this.signature=Buffer.from([]),this.version=1,this.signer="ErdJS",this.address=n.Address.empty(),Object.assign(this,e)}serializeForSigning(){const e=Buffer.from(this.message.length.toString()),t=Buffer.concat([e,this.message]);let r=Buffer.concat([Buffer.from(a.MESSAGE_PREFIX),t]);return o("keccak256").update(r).digest()}serializeForSigningRaw(){return Buffer.concat([this.getMessageSize(),this.message])}getSignature(){return this.signature}applySignature(e){this.signature=i.interpretSignatureAsBuffer(e)}getMessageSize(){const e=Buffer.alloc(4);return e.writeUInt32BE(this.message.length,0),e}toJSON(){return{address:this.address.bech32(),message:"0x"+this.message.toString("hex"),signature:"0x"+this.signature.toString("hex"),version:this.version,signer:this.signer}}}},9874:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.interpretSignatureAsBuffer=t.Signature=void 0;const o=a(r(2581));class s{constructor(e){if(this.valueHex="",e)return"string"==typeof e?s.fromHex(e):ArrayBuffer.isView(e)?s.fromBuffer(Buffer.from(e)):void 0}static empty(){return new s}static fromHex(e){if(e.startsWith("0x")&&(e=e.slice(2)),!s.isValidHex(e))throw new o.ErrSignatureCannotCreate(e);return s.fromValidHex(e)}static isValidHex(e){return 64==Buffer.from(e,"hex").length}static fromValidHex(e){let t=new s;return t.valueHex=e,t}static fromBuffer(e){if(64!=e.length)throw new o.ErrSignatureCannotCreate(e);return s.fromValidHex(e.toString("hex"))}hex(){return this.valueHex}}t.Signature=s,t.interpretSignatureAsBuffer=function(e){if(ArrayBuffer.isView(e))return Buffer.from(e);if(null!=e.hex)return Buffer.from(e.hex(),"hex");throw new Error(`Object cannot be interpreted as a signature: ${e}`)}},5003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartContractQueriesController=void 0;const n=r(2581),i=r(3647),a=r(661),o=r(2747);t.SmartContractQueriesController=class{constructor(e){this.abi=e.abi,this.queryRunner=e.queryRunner,this.legacyResultsParser=new a.ResultsParser}async query(e){const t=this.createQuery(e),r=await this.runQuery(t);return this.raiseForStatus(r),this.parseQueryResponse(r)}raiseForStatus(e){if("ok"!==e.returnCode)throw new n.ErrSmartContractQuery(e.returnCode,e.returnMessage)}createQuery(e){const t=this.encodeArguments(e.function,e.arguments);return new i.SmartContractQuery({contract:e.contract,caller:e.caller,function:e.function,arguments:t,value:e.value})}encodeArguments(e,t){const r=this.abi?.getEndpoint(e);if(r){const e=a.NativeSerializer.nativeToTypedValues(t,r);return(new a.ArgSerializer).valuesToBuffers(e)}if(this.areArgsOfTypedValue(t))return(new a.ArgSerializer).valuesToBuffers(t);if(this.areArgsBuffers(t))return t.map((e=>Buffer.from(e)));throw new n.Err("cannot encode arguments: when ABI is not available, they must be either typed values or buffers")}areArgsOfTypedValue(e){return e.every((e=>o.isTyped(e)))}areArgsBuffers(e){for(const t of e)if(!ArrayBuffer.isView(t))return!1;return!0}async runQuery(e){return await this.queryRunner.runQuery(e)}parseQueryResponse(e){if(!this.abi)return e.returnDataParts;const t={returnCode:e.returnCode,returnMessage:e.returnMessage,getReturnDataParts:()=>e.returnDataParts.map((e=>Buffer.from(e)))},r=e.function,n=this.abi.getEndpoint(r);return this.legacyResultsParser.parseQueryResponse(t,n).values.map((e=>e.valueOf()))}}},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartContractQueryResponse=t.SmartContractQuery=void 0,t.SmartContractQuery=class{constructor(e){this.contract=e.contract,this.caller=e.caller,this.value=e.value,this.function=e.function,this.arguments=e.arguments}},t.SmartContractQueryResponse=class{constructor(e){this.function=e.function,this.returnCode=e.returnCode,this.returnMessage=e.returnMessage,this.returnDataParts=e.returnDataParts}}},1157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgSerializer=void 0;const n=r(7353),i=r(9272),a=r(2747),o=r(1055),s=r(7472),u=r(6054),c={codec:new i.BinaryCodec};t.ArgSerializer=class{constructor(e){e={...c,...e},this.codec=e.codec}stringToValues(e,t){let r=this.stringToBuffers(e);return this.buffersToValues(r,t)}stringToBuffers(e){return e.split(n.ARGUMENTS_SEPARATOR).map((e=>Buffer.from(e,"hex")))}buffersToValues(e,t){const r=this;let n=[],i=0,c=(e=e||[]).length;for(let e=0;e<t.length;e++){let r=l(t[e].type);n.push(r)}function l(t){if(t.hasExactClass(o.OptionalType.ClassName)){const e=l(t.getFirstTypeParameter());return new o.OptionalValue(t,e)}if(t.hasExactClass(u.VariadicType.ClassName))return function(e){const t=e,r=[];if(t.isCounted){const t=l(new a.U32Type).valueOf().toNumber();for(let n=0;n<t;n++)r.push(l(e.getFirstTypeParameter()))}else for(;!d();)r.push(l(e.getFirstTypeParameter()));return new u.VariadicValue(t,r)}(t);if(t.hasExactClass(s.CompositeType.ClassName)){const e=[];for(const r of t.getTypeParameters())e.push(l(r));return new s.CompositeValue(t,e)}const n=function(t){if(d())return null;let n=e[i++];return r.codec.decodeTopLevel(n,t)}(t);return n}function d(){return i>=c}return n}valuesToString(e){let t=this.valuesToStrings(e);return{argumentsString:t.join(n.ARGUMENTS_SEPARATOR),count:t.length}}valuesToStrings(e){return this.valuesToBuffers(e).map((e=>e.toString("hex")))}valuesToBuffers(e){const t=this,r=[];for(const t of e)n(t);function n(e){if(e.hasExactClass(o.OptionalValue.ClassName)){const t=e;return void(t.isSet()&&n(t.getTypedValue()))}if(e.hasExactClass(u.VariadicValue.ClassName))return void function(e){if(e.getType().isCounted){const n=new a.U32Value(e.getItems().length);r.push(t.codec.encodeTopLevel(n))}for(const t of e.getItems())n(t)}(e);if(e.hasExactClass(s.CompositeValue.ClassName)){const t=e;for(const e of t.getItems())n(e);return}const i=t.codec.encodeTopLevel(e);r.push(i)}return r}}},6147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentErrorContext=void 0;const n=r(2581);t.ArgumentErrorContext=class{constructor(e,t,r){this.endpointName=e,this.argumentIndex=t,this.parameterDefinition=r}throwError(e){throw new n.ErrInvalidArgument(`Error when converting arguments for endpoint (endpoint name: ${this.endpointName}, argument index: ${this.argumentIndex}, name: ${this.parameterDefinition.name}, type: ${this.parameterDefinition.type})\nNested error: ${e}`)}convertError(e,t){this.throwError(`Can't convert argument (argument: ${e}, type ${typeof e}), wanted type: ${t})`)}unhandledType(e,t){this.throwError(`Unhandled type (function: ${e}, type: ${t})`)}guardSameLength(e,t){(e=e||[]).length!=t.length&&this.throwError(`Incorrect composite type length: have ${e.length}, expected ${t.length} (argument: ${e})`)}guardHasField(e,t){t in(e=e||{})||this.throwError(`Struct argument does not contain a field named "${t}" (argument: ${JSON.stringify(e)})`)}}},8976:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Code=void 0;const n=r(2206);class i{constructor(e){this.hex=e}static fromBuffer(e){return new i(e.toString("hex"))}static fromHex(e){return new i(e)}toString(){return this.hex}valueOf(){return Buffer.from(this.hex,"hex")}computeHash(){const e=n(32).update(this.valueOf()).digest();return Buffer.from(e)}}t.Code=i},5225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeMetadata=t.CodeMetadataLength=void 0,t.CodeMetadataLength=2;class r{constructor(e=!0,t=!1,r=!1,n=!1){this.upgradeable=e,this.readable=t,this.payable=r,this.payableBySc=n}static fromBytes(e){return r.fromBuffer(Buffer.from(e))}static fromBuffer(e){if(e.length!=t.CodeMetadataLength)throw new Error(`code metadata buffer has length ${e.length}, expected ${t.CodeMetadataLength}`);const n=e[0],i=e[1],a=!!(n&r.ByteZero.Upgradeable),o=!!(n&r.ByteZero.Readable),s=!!(i&r.ByteOne.Payable),u=!!(i&r.ByteOne.PayableBySc);return new r(a,o,s,u)}toggleUpgradeable(e){this.upgradeable=e}toggleReadable(e){this.readable=e}togglePayable(e){this.payable=e}togglePayableBySc(e){this.payableBySc=e}toBuffer(){let e=0,t=0;return this.upgradeable&&(e|=r.ByteZero.Upgradeable),this.readable&&(e|=r.ByteZero.Readable),this.payable&&(t|=r.ByteOne.Payable),this.payableBySc&&(t|=r.ByteOne.PayableBySc),Buffer.from([e,t])}toString(){return this.toBuffer().toString("hex")}toJSON(){return{upgradeable:this.upgradeable,readable:this.readable,payable:this.payable,payableBySc:this.payableBySc}}equals(e){return this.upgradeable==e.upgradeable&&this.readable==e.readable&&this.payable==e.payable&&this.payableBySc==e.payableBySc}}t.CodeMetadata=r,r.ByteZero={Upgradeable:1,Reserved2:2,Readable:4},r.ByteOne={Reserved1:1,Payable:2,PayableBySc:4}},7648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressBinaryCodec=void 0;const n=r(236),i=r(2747);t.AddressBinaryCodec=class{decodeNested(e){let t=e.slice(0,32),r=new n.Address(t);return[new i.AddressValue(r),32]}decodeTopLevel(e){let[t,r]=this.decodeNested(e);return t}encodeNested(e){return e.valueOf().pubkey()}encodeTopLevel(e){return e.valueOf().pubkey()}}},2739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayVecBinaryCodec=void 0;const n=r(2747);t.ArrayVecBinaryCodec=class{constructor(e){this.binaryCodec=e}decodeNested(e,t){let r=t.length,i=t.getFirstTypeParameter(),a=[],o=0;for(let t=0;t<r;t++){let[t,r]=this.binaryCodec.decodeNested(e,i);a.push(t),o+=r,e=e.slice(r)}return[new n.ArrayVec(t,a),o]}decodeTopLevel(e,t){let[r,n]=this.decodeNested(e,t);return r}encodeNested(e){let t=[];for(const r of e.getItems()){let e=this.binaryCodec.encodeNested(r);t.push(e)}return Buffer.concat(t)}encodeTopLevel(e){return this.encodeNested(e)}}},675:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryCodecConstraints=t.BinaryCodec=void 0;const o=a(r(2581)),s=r(1069),u=r(2747),c=r(2739),l=r(6855),d=r(1698),f=r(82),h=r(4998),p=r(8118),g=r(9603),m=r(8673),y=r(3551),b=r(8954);t.BinaryCodec=class{constructor(e=null){this.constraints=e||new v,this.optionCodec=new g.OptionValueBinaryCodec(this),this.listCodec=new f.ListBinaryCodec(this),this.arrayCodec=new c.ArrayVecBinaryCodec(this),this.primitiveCodec=new m.PrimitiveBinaryCodec(this),this.structCodec=new y.StructBinaryCodec(this),this.tupleCodec=new b.TupleBinaryCodec(this),this.enumCodec=new l.EnumBinaryCodec(this),this.explicitEnumCodec=new d.ExplicitEnumBinaryCodec,this.managedDecimalCodec=new h.ManagedDecimalCodec(this),this.managedDecimalSignedCodec=new p.ManagedDecimalSignedCodec(this)}decodeTopLevel(e,t){return this.constraints.checkBufferLength(e),u.onTypeSelect(t,{onOption:()=>this.optionCodec.decodeTopLevel(e,t.getFirstTypeParameter()),onList:()=>this.listCodec.decodeTopLevel(e,t),onArray:()=>this.arrayCodec.decodeTopLevel(e,t),onPrimitive:()=>this.primitiveCodec.decodeTopLevel(e,t),onStruct:()=>this.structCodec.decodeTopLevel(e,t),onTuple:()=>this.tupleCodec.decodeTopLevel(e,t),onEnum:()=>this.enumCodec.decodeTopLevel(e,t),onExplicitEnum:()=>this.explicitEnumCodec.decodeTopLevel(e,t),onManagedDecimal:()=>this.managedDecimalCodec.decodeTopLevel(e,t),onManagedDecimalSigned:()=>this.managedDecimalSignedCodec.decodeTopLevel(e,t)})}decodeNested(e,t){this.constraints.checkBufferLength(e);let[r,n]=u.onTypeSelect(t,{onOption:()=>this.optionCodec.decodeNested(e,t.getFirstTypeParameter()),onList:()=>this.listCodec.decodeNested(e,t),onArray:()=>this.arrayCodec.decodeNested(e,t),onPrimitive:()=>this.primitiveCodec.decodeNested(e,t),onStruct:()=>this.structCodec.decodeNested(e,t),onTuple:()=>this.tupleCodec.decodeNested(e,t),onEnum:()=>this.enumCodec.decodeNested(e,t),onExplicitEnum:()=>this.explicitEnumCodec.decodeNested(e,t),onManagedDecimal:()=>this.managedDecimalCodec.decodeNested(e,t),onManagedDecimalSigned:()=>this.managedDecimalSignedCodec.decodeNested(e,t)});return[r,n]}encodeNested(e){return s.guardTrue(e.getType().getCardinality().isSingular(),"singular cardinality, thus encodable type"),u.onTypedValueSelect(e,{onPrimitive:()=>this.primitiveCodec.encodeNested(e),onOption:()=>this.optionCodec.encodeNested(e),onList:()=>this.listCodec.encodeNested(e),onArray:()=>this.arrayCodec.encodeNested(e),onStruct:()=>this.structCodec.encodeNested(e),onTuple:()=>this.tupleCodec.encodeNested(e),onEnum:()=>this.enumCodec.encodeNested(e),onExplicitEnum:()=>this.explicitEnumCodec.encodeNested(e),onManagedDecimal:()=>this.managedDecimalCodec.encodeNested(e),onManagedDecimalSigned:()=>this.managedDecimalSignedCodec.encodeNested(e)})}encodeTopLevel(e){return s.guardTrue(e.getType().getCardinality().isSingular(),"singular cardinality, thus encodable type"),u.onTypedValueSelect(e,{onPrimitive:()=>this.primitiveCodec.encodeTopLevel(e),onOption:()=>this.optionCodec.encodeTopLevel(e),onList:()=>this.listCodec.encodeTopLevel(e),onArray:()=>this.arrayCodec.encodeTopLevel(e),onStruct:()=>this.structCodec.encodeTopLevel(e),onTuple:()=>this.tupleCodec.encodeTopLevel(e),onEnum:()=>this.enumCodec.encodeTopLevel(e),onExplicitEnum:()=>this.explicitEnumCodec.encodeTopLevel(e),onManagedDecimal:()=>this.managedDecimalCodec.encodeTopLevel(e),onManagedDecimalSigned:()=>this.managedDecimalSignedCodec.encodeTopLevel(e)})}};class v{constructor(e){this.maxBufferLength=e?.maxBufferLength||256e3,this.maxListLength=e?.maxListLength||128e3}checkBufferLength(e){if(e.length>this.maxBufferLength)throw new o.ErrCodec(`Buffer too large: ${e.length} > ${this.maxBufferLength}`)}checkListLength(e){if(e>this.maxListLength)throw new o.ErrCodec(`List too large: ${e} > ${this.maxListLength}`)}}t.BinaryCodecConstraints=v},3232:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBigNumber=t.decodeString=t.decodeBool=t.decodeUnsignedNumber=void 0;const i=n(r(1594)),a=r(2747),o=new(r(675).BinaryCodec);t.decodeUnsignedNumber=function(e){let t=o.decodeTopLevel(e,new a.BigUIntType);return Number(t.valueOf())},t.decodeBool=function(e){let t=o.decodeTopLevel(e,new a.BooleanType);return Boolean(t.valueOf())},t.decodeString=function(e){let t=o.decodeTopLevel(e,new a.BytesType);return String(t.valueOf())},t.decodeBigNumber=function(e){let t=o.decodeTopLevel(e,new a.BigUIntType);return new i.default(t.valueOf())}},7380:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanBinaryCodec=void 0;const o=a(r(2581)),s=r(2747);class u{decodeNested(e){let t=e.readUInt8(0);return[new s.BooleanValue(t==u.TRUE),1]}decodeTopLevel(e){if(e.length>1)throw new o.ErrInvalidArgument("buffer should be of size <= 1");let t=e[0];return new s.BooleanValue(t==u.TRUE)}encodeNested(e){return e.isTrue()?Buffer.from([u.TRUE]):Buffer.from([u.FALSE])}encodeTopLevel(e){return e.isTrue()?Buffer.from([u.TRUE]):Buffer.from([])}}t.BooleanBinaryCodec=u,u.TRUE=1,u.FALSE=0},8843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesBinaryCodec=void 0;const n=r(1392),i=r(2461);t.BytesBinaryCodec=class{decodeNested(e){let t=e.readUInt32BE(0),r=e.slice(i.SizeOfU32,i.SizeOfU32+t);return[new n.BytesValue(r),i.SizeOfU32+t]}decodeTopLevel(e){return new n.BytesValue(e)}encodeNested(e){let t=Buffer.alloc(i.SizeOfU32);return t.writeUInt32BE(e.getLength()),Buffer.concat([t,e.valueOf()])}encodeTopLevel(e){return e.valueOf()}}},4434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeMetadataCodec=void 0;const n=r(5225),i=r(1847);t.CodeMetadataCodec=class{decodeNested(e){const t=n.CodeMetadata.fromBuffer(e.slice(0,n.CodeMetadataLength));return[new i.CodeMetadataValue(t),n.CodeMetadataLength]}decodeTopLevel(e){const t=n.CodeMetadata.fromBuffer(e);return new i.CodeMetadataValue(t)}encodeNested(e){return e.valueOf().toBuffer()}encodeTopLevel(e){return e.valueOf().toBuffer()}}},2461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOfU32=void 0,t.SizeOfU32=4},6855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnumBinaryCodec=void 0;const n=r(2747),i=r(9995);t.EnumBinaryCodec=class{constructor(e){this.binaryCodec=e,this.fieldsCodec=new i.FieldsBinaryCodec(e)}decodeTopLevel(e,t){let[r]=this.decodeNested(e,t);return r}decodeNested(e,t){let[r,i]=this.readDiscriminant(e);e=e.slice(i);let a=t.getVariantByDiscriminant(r),o=a.getFieldsDefinitions(),[s,u]=this.fieldsCodec.decodeNested(e,o);return[new n.EnumValue(t,a,s),i+u]}readDiscriminant(e){let[t,r]=this.binaryCodec.decodeNested(e,new n.U8Type);return[t.valueOf(),r]}encodeNested(e){let t=new n.U8Value(e.discriminant),r=this.binaryCodec.encodeNested(t),i=e.getFields(),a=this.fieldsCodec.encodeNested(i);return Buffer.concat([r,a])}encodeTopLevel(e){let t=e.getFields(),r=t.length>0,i=this.fieldsCodec.encodeNested(t),a=new n.U8Value(e.discriminant),o=r?this.binaryCodec.encodeNested(a):this.binaryCodec.encodeTopLevel(a);return Buffer.concat([o,i])}}},1698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplicitEnumBinaryCodec=void 0;const n=r(2747),i=r(9229),a=r(1367);t.ExplicitEnumBinaryCodec=class{constructor(){this.stringCodec=new a.StringBinaryCodec}decodeTopLevel(e,t){const r=this.stringCodec.decodeTopLevel(e);return new i.ExplicitEnumValue(t,new i.ExplicitEnumVariantDefinition(r.valueOf()))}decodeNested(e,t){const[r,n]=this.stringCodec.decodeNested(e);return[new i.ExplicitEnumValue(t,new i.ExplicitEnumVariantDefinition(r.valueOf())),n]}encodeNested(e){return this.stringCodec.encodeNested(new n.StringValue(e.valueOf().name))}encodeTopLevel(e){return this.stringCodec.encodeTopLevel(new n.StringValue(e.valueOf().name))}}},9995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsBinaryCodec=void 0;const n=r(2747);t.FieldsBinaryCodec=class{constructor(e){this.binaryCodec=e}decodeNested(e,t){let r=[],i=0;for(const a of t){let[t,o]=this.binaryCodec.decodeNested(e,a.type);e=e.slice(o),i+=o;let s=new n.Field(t,a.name);r.push(s)}return[r,i]}encodeNested(e){let t=[];for(const r of e){let e=this.binaryCodec.encodeNested(r.value);t.push(e)}return Buffer.concat(t)}}},8831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H256BinaryCodec=void 0;const n=r(1038);t.H256BinaryCodec=class{decodeNested(e){let t=e.slice(0,32);return[new n.H256Value(t),32]}decodeTopLevel(e){let[t,r]=this.decodeNested(e);return t}encodeNested(e){return e.valueOf()}encodeTopLevel(e){return e.valueOf()}}},9272:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(675),t),i(r(3232),t)},82:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListBinaryCodec=void 0;const n=r(2747),i=r(2461);t.ListBinaryCodec=class{constructor(e){this.binaryCodec=e}decodeNested(e,t){let r=t.getFirstTypeParameter(),a=[],o=e.readUInt32BE(0);this.binaryCodec.constraints.checkListLength(o);let s=e,u=i.SizeOfU32;e=s.slice(u);for(let t=0;t<o;t++){let[t,n]=this.binaryCodec.decodeNested(e,r);a.push(t),u+=n,e=s.slice(u)}return[new n.List(t,a),u]}decodeTopLevel(e,t){let r=t.getFirstTypeParameter(),i=[],a=e,o=0;for(;e.length>0;){let[t,n]=this.binaryCodec.decodeNested(e,r);i.push(t),o+=n,e=a.slice(o),this.binaryCodec.constraints.checkListLength(i.length)}return new n.List(t,i)}encodeNested(e){this.binaryCodec.constraints.checkListLength(e.getLength());let t=Buffer.alloc(i.SizeOfU32);t.writeUInt32BE(e.getLength());let r=[];for(const t of e.getItems()){let e=this.binaryCodec.encodeNested(t);r.push(e)}return Buffer.concat([t,...r])}encodeTopLevel(e){this.binaryCodec.constraints.checkListLength(e.getLength());let t=[];for(const r of e.getItems()){let e=this.binaryCodec.encodeNested(r);t.push(e)}return Buffer.concat(t)}}},4998:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedDecimalCodec=void 0;const i=n(r(1594)),a=r(2747),o=r(7553),s=r(2461);t.ManagedDecimalCodec=class{constructor(e){this.binaryCodec=e}decodeNested(e,t){const r=e.readUInt32BE(0),n=e.slice(0,r);return[this.decodeTopLevel(n,t),r]}decodeTopLevel(e,t){if(0===e.length)return new a.ManagedDecimalValue(new i.default(0),0);if(t.isVariable()){const t=e.length-s.SizeOfU32,[r]=this.binaryCodec.decodeNested(e.slice(0,t),new a.BigUIntType),n=e.readUInt32BE(t);return new a.ManagedDecimalValue(r.valueOf().shiftedBy(-n),n)}const r=o.bufferToBigInt(e),n=t.getMetadata(),u="usize"!==n?parseInt(n.toString()):0;return new a.ManagedDecimalValue(r.shiftedBy(-u),u)}encodeNested(e){let t=[];const r=new a.BigUIntValue(e.valueOf().shiftedBy(e.getScale()));return e.isVariable()?(t.push(Buffer.from(this.binaryCodec.encodeNested(r))),t.push(Buffer.from(this.binaryCodec.encodeNested(new a.U32Value(e.getScale()))))):t.push(this.binaryCodec.encodeTopLevel(r)),Buffer.concat(t)}encodeTopLevel(e){return this.encodeNested(e)}}},8118:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedDecimalSignedCodec=void 0;const i=n(r(1594)),a=r(2747),o=r(7553),s=r(2461);t.ManagedDecimalSignedCodec=class{constructor(e){this.binaryCodec=e}decodeNested(e,t){const r=e.readUInt32BE(0),n=e.slice(0,r);return[this.decodeTopLevel(n,t),r]}decodeTopLevel(e,t){if(0===e.length)return new a.ManagedDecimalSignedValue(new i.default(0),0);if(t.isVariable()){const t=e.length-s.SizeOfU32,[r]=this.binaryCodec.decodeNested(e.slice(0,t),new a.BigIntType),n=e.readUInt32BE(t);return new a.ManagedDecimalSignedValue(r.valueOf().shiftedBy(-n),n)}const r=o.bufferToBigInt(e),n=t.getMetadata(),u="usize"!==n?parseInt(n.toString()):0;return new a.ManagedDecimalSignedValue(r.shiftedBy(-u),u)}encodeNested(e){let t=[];const r=new a.BigIntValue(e.valueOf().shiftedBy(e.getScale()));return e.isVariable()?(t.push(Buffer.from(this.binaryCodec.encodeNested(r))),t.push(Buffer.from(this.binaryCodec.encodeNested(new a.U32Value(e.getScale()))))):t.push(Buffer.from(this.binaryCodec.encodeTopLevel(r))),Buffer.concat(t)}encodeTopLevel(e){return this.encodeNested(e)}}},3157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NothingCodec=void 0;const n=r(2747);t.NothingCodec=class{decodeNested(){return[new n.NothingValue,0]}decodeTopLevel(){return new n.NothingValue}encodeNested(){return Buffer.from([])}encodeTopLevel(){return Buffer.from([])}}},62:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumericalBinaryCodec=void 0;const i=n(r(1594)),a=r(2747),o=r(2461),s=r(7553);t.NumericalBinaryCodec=class{decodeNested(e,t){let r=0,n=t.sizeInBytes;n||(r=o.SizeOfU32,n=e.readUInt32BE(0));let i=e.slice(r,r+n);return[this.decodeTopLevel(i,t),n+r]}decodeTopLevel(e,t){let r=s.cloneBuffer(e);if(0==e.length)return new a.NumericalValue(t,new i.default(0));if(!t.withSign||s.isMsbZero(r)){let e=s.bufferToBigInt(r);return new a.NumericalValue(t,e)}s.flipBufferBitsInPlace(r);let n=s.bufferToBigInt(r).multipliedBy(new i.default(-1)).minus(new i.default(1));return new a.NumericalValue(t,n)}encodeNested(e){if(e.sizeInBytes)return this.encodeNestedFixedSize(e,e.sizeInBytes);let t=this.encodeTopLevel(e),r=Buffer.alloc(o.SizeOfU32);return r.writeUInt32BE(t.length),Buffer.concat([r,t])}encodeNestedFixedSize(e,t){if(e.value.isZero())return Buffer.alloc(t,0);if(!e.withSign){const r=s.bigIntToBuffer(e.value),n=Buffer.alloc(t-r.length,0);return Buffer.concat([n,r])}if(e.value.isPositive()){let r=s.bigIntToBuffer(e.value);s.isMsbOne(r)&&(r=s.prependByteToBuffer(r,0));const n=Buffer.alloc(t-r.length,0);return Buffer.concat([n,r])}let r=e.value.plus(new i.default(1)),n=s.bigIntToBuffer(r);s.flipBufferBitsInPlace(n),s.isMsbZero(n)&&(n=s.prependByteToBuffer(n,255));const a=Buffer.alloc(t-n.length,255);return Buffer.concat([a,n])}encodeTopLevel(e){let t=e.withSign;return e.value.isZero()?Buffer.alloc(0):t?this.encodePrimitive(e):s.bigIntToBuffer(e.value)}encodePrimitive(e){if(e.value.isPositive()){let t=s.bigIntToBuffer(e.value);return s.isMsbOne(t)&&(t=s.prependByteToBuffer(t,0)),t}let t=e.value.plus(new i.default(1)),r=s.bigIntToBuffer(t);return s.flipBufferBitsInPlace(r),s.isMsbZero(r)&&(r=s.prependByteToBuffer(r,255)),r}}},9603:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionValueBinaryCodec=void 0;const o=a(r(2581)),s=r(2747);t.OptionValueBinaryCodec=class{constructor(e){this.binaryCodec=e}decodeNested(e,t){if(0==e[0])return[s.OptionValue.newMissingTyped(t),1];if(1!=e[0])throw new o.ErrCodec("invalid buffer for optional value");let[r,n]=this.binaryCodec.decodeNested(e.slice(1),t);return[s.OptionValue.newProvided(r),n+1]}decodeTopLevel(e,t){if(0==e.length)return new s.OptionValue(t);if(1!=e[0])throw new o.ErrCodec("invalid buffer for optional value");let[r,n]=this.binaryCodec.decodeNested(e.slice(1),t);return new s.OptionValue(t,r)}encodeNested(e){return e.isSet()?Buffer.concat([Buffer.from([1]),this.binaryCodec.encodeNested(e.getTypedValue())]):Buffer.from([0])}encodeTopLevel(e){return e.isSet()?Buffer.concat([Buffer.from([1]),this.binaryCodec.encodeNested(e.getTypedValue())]):Buffer.from([])}}},8673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrimitiveBinaryCodec=void 0;const n=r(2747),i=r(7648),a=r(7380),o=r(62),s=r(8831),u=r(8843),c=r(6714),l=r(4434),d=r(3157),f=r(1367);t.PrimitiveBinaryCodec=class{constructor(e){this.binaryCodec=e,this.booleanCodec=new a.BooleanBinaryCodec,this.numericalCodec=new o.NumericalBinaryCodec,this.addressCodec=new i.AddressBinaryCodec,this.h256Codec=new s.H256BinaryCodec,this.bytesCodec=new u.BytesBinaryCodec,this.stringCodec=new f.StringBinaryCodec,this.tokenIdentifierCodec=new c.TokenIdentifierCodec,this.codeMetadataCodec=new l.CodeMetadataCodec,this.nothingCodec=new d.NothingCodec}decodeNested(e,t){return n.onPrimitiveTypeSelect(t,{onBoolean:()=>this.booleanCodec.decodeNested(e),onNumerical:()=>this.numericalCodec.decodeNested(e,t),onAddress:()=>this.addressCodec.decodeNested(e),onBytes:()=>this.bytesCodec.decodeNested(e),onString:()=>this.stringCodec.decodeNested(e),onH256:()=>this.h256Codec.decodeNested(e),onTokenIndetifier:()=>this.tokenIdentifierCodec.decodeNested(e),onCodeMetadata:()=>this.codeMetadataCodec.decodeNested(e),onNothing:()=>this.nothingCodec.decodeNested()})}decodeTopLevel(e,t){return n.onPrimitiveTypeSelect(t,{onBoolean:()=>this.booleanCodec.decodeTopLevel(e),onNumerical:()=>this.numericalCodec.decodeTopLevel(e,t),onAddress:()=>this.addressCodec.decodeTopLevel(e),onBytes:()=>this.bytesCodec.decodeTopLevel(e),onString:()=>this.stringCodec.decodeTopLevel(e),onH256:()=>this.h256Codec.decodeTopLevel(e),onTokenIndetifier:()=>this.tokenIdentifierCodec.decodeTopLevel(e),onCodeMetadata:()=>this.codeMetadataCodec.decodeTopLevel(e),onNothing:()=>this.nothingCodec.decodeTopLevel()})}encodeNested(e){return n.onPrimitiveValueSelect(e,{onBoolean:()=>this.booleanCodec.encodeNested(e),onNumerical:()=>this.numericalCodec.encodeNested(e),onAddress:()=>this.addressCodec.encodeNested(e),onBytes:()=>this.bytesCodec.encodeNested(e),onString:()=>this.stringCodec.encodeNested(e),onH256:()=>this.h256Codec.encodeNested(e),onTypeIdentifier:()=>this.tokenIdentifierCodec.encodeNested(e),onCodeMetadata:()=>this.codeMetadataCodec.encodeNested(e),onNothing:()=>this.nothingCodec.encodeNested()})}encodeTopLevel(e){return n.onPrimitiveValueSelect(e,{onBoolean:()=>this.booleanCodec.encodeTopLevel(e),onNumerical:()=>this.numericalCodec.encodeTopLevel(e),onAddress:()=>this.addressCodec.encodeTopLevel(e),onBytes:()=>this.bytesCodec.encodeTopLevel(e),onString:()=>this.stringCodec.encodeTopLevel(e),onH256:()=>this.h256Codec.encodeTopLevel(e),onTypeIdentifier:()=>this.tokenIdentifierCodec.encodeTopLevel(e),onCodeMetadata:()=>this.codeMetadataCodec.encodeTopLevel(e),onNothing:()=>this.nothingCodec.encodeTopLevel()})}}},1367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringBinaryCodec=void 0;const n=r(2747),i=r(1392),a=r(8843);t.StringBinaryCodec=class{constructor(){this.bytesBinaryCodec=new a.BytesBinaryCodec}decodeNested(e){let[t,r]=this.bytesBinaryCodec.decodeNested(e);return[new n.StringValue(t.valueOf().toString()),r]}decodeTopLevel(e){return new n.StringValue(e.toString())}encodeNested(e){let t=i.BytesValue.fromUTF8(e.valueOf());return this.bytesBinaryCodec.encodeNested(t)}encodeTopLevel(e){return Buffer.from(e.valueOf())}}},3551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructBinaryCodec=void 0;const n=r(2747),i=r(9995);t.StructBinaryCodec=class{constructor(e){this.fieldsCodec=new i.FieldsBinaryCodec(e)}decodeTopLevel(e,t){let[r]=this.decodeNested(e,t);return r}decodeNested(e,t){let r=t.getFieldsDefinitions(),[i,a]=this.fieldsCodec.decodeNested(e,r);return[new n.Struct(t,i),a]}encodeNested(e){let t=e.getFields();return this.fieldsCodec.encodeNested(t)}encodeTopLevel(e){return this.encodeNested(e)}}},6714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenIdentifierCodec=void 0;const n=r(1392),i=r(3145),a=r(8843);t.TokenIdentifierCodec=class{constructor(){this.bytesCodec=new a.BytesBinaryCodec}decodeNested(e){let[t,r]=this.bytesCodec.decodeNested(e);return[new i.TokenIdentifierValue(t.toString()),r]}decodeTopLevel(e){let t=this.bytesCodec.decodeTopLevel(e);return new i.TokenIdentifierValue(t.toString())}encodeNested(e){let t=n.BytesValue.fromUTF8(e.valueOf());return this.bytesCodec.encodeNested(t)}encodeTopLevel(e){return Buffer.from(e.valueOf())}}},8954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleBinaryCodec=void 0;const n=r(3551);t.TupleBinaryCodec=class{constructor(e){this.structCodec=new n.StructBinaryCodec(e)}decodeTopLevel(e,t){return this.structCodec.decodeTopLevel(e,t)}decodeNested(e,t){return this.structCodec.decodeNested(e,t)}encodeNested(e){return this.structCodec.encodeNested(e)}encodeTopLevel(e){return this.structCodec.encodeTopLevel(e)}}},7553:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.prependByteToBuffer=t.flipBufferBitsInPlace=t.getHexMagnitudeOfBigInt=t.bigIntToBuffer=t.bufferToBigInt=t.cloneBuffer=t.isMsbZero=t.isMsbOne=void 0;const i=n(r(1594)),a=r(9161);function o(e,t=0){return 1==e[t]>>7}function s(e){return(e=new i.default(e))?(e.isNegative()&&(e=e.multipliedBy(new i.default(-1))),a.numberToPaddedHex(e)):""}t.isMsbOne=o,t.isMsbZero=function(e,t=0){return!o(e,t)},t.cloneBuffer=function(e){let t=Buffer.alloc(e.length);return e.copy(t),t},t.bufferToBigInt=function(e){let t=e.toString("hex");return new i.default(`0x${t}`,16)},t.bigIntToBuffer=function(e){let t=s(e);return Buffer.from(t,"hex")},t.getHexMagnitudeOfBigInt=s,t.flipBufferBitsInPlace=function(e){for(let t=0;t<e.length;t++)e[t]=~e[t]},t.prependByteToBuffer=function(e,t){return Buffer.concat([Buffer.from([t]),e])}},3685:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFunction=void 0;const o=a(r(2581));class s{constructor(e){if(this.name=e,null==e)throw new o.ErrInvalidFunctionName}static none(){return new s("untitled")}toString(){return this.name}valueOf(){return this.name}}t.ContractFunction=s},661:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1157),t),i(r(8976),t),i(r(9272),t),i(r(5225),t),i(r(3685),t),i(r(1945),t),i(r(1146),t),i(r(662),t),i(r(670),t),i(r(7453),t),i(r(2528),t),i(r(3462),t),i(r(1998),t),i(r(7331),t),i(r(2747),t)},1945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interaction=void 0;const n=r(236),i=r(1220),a=r(7353),o=r(5132),s=r(3102),u=r(1146),c=r(7453);t.Interaction=class{constructor(e,t,r){this.nonce=0,this.value="0",this.gasLimit=0,this.gasPrice=void 0,this.chainID="",this.querent=n.Address.empty(),this.sender=n.Address.empty(),this.version=a.TRANSACTION_VERSION_DEFAULT,this.contract=e,this.function=t,this.args=r,this.tokenTransfers=[]}getContractAddress(){return this.contract.getAddress()}getFunction(){return this.function}getEndpoint(){return this.contract.getEndpoint(this.function)}getArguments(){return this.args}getValue(){return this.value}getTokenTransfers(){return this.tokenTransfers}getGasLimit(){return this.gasLimit}getExplicitReceiver(){return this.explicitReceiver}buildTransaction(){i.Compatibility.guardAddressIsSetAndNonZero(this.sender,"'sender' of interaction","use interaction.withSender()");const e=new s.TransactionsFactoryConfig({chainID:this.chainID.valueOf()}),t=new s.SmartContractTransactionsFactory({config:e}).createTransactionForExecute({sender:this.sender,contract:this.contract.getAddress(),function:this.function.valueOf(),gasLimit:BigInt(this.gasLimit.valueOf()),arguments:this.args,nativeTransferAmount:BigInt(this.value.toString()),tokenTransfers:this.tokenTransfers});return t.chainID=this.chainID.valueOf(),t.nonce=BigInt(this.nonce.valueOf()),t.version=this.version,this.gasPrice&&(t.gasPrice=BigInt(this.gasPrice.valueOf())),t}buildQuery(){return new c.Query({address:this.contract.getAddress(),func:this.function,args:this.args,value:this.value,caller:this.querent})}withValue(e){return this.value=e,this}withSingleESDTTransfer(e){return this.tokenTransfers=[e].map((e=>new o.TokenTransfer(e))),this}withSingleESDTNFTTransfer(e){return this.tokenTransfers=[e].map((e=>new o.TokenTransfer(e))),this}withMultiESDTNFTTransfer(e){return this.tokenTransfers=e.map((e=>new o.TokenTransfer(e))),this}withGasLimit(e){return this.gasLimit=e,this}withGasPrice(e){return this.gasPrice=e,this}withNonce(e){return this.nonce=e,this}useThenIncrementNonceOf(e){return this.withNonce(e.getNonceThenIncrement())}withChainID(e){return this.chainID=e,this}withSender(e){return this.sender=e,this}withVersion(e){return this.version=e,this}withQuerent(e){return this.querent=e,this}withExplicitReceiver(e){return this.explicitReceiver=e,this}check(){return(new u.InteractionChecker).checkInteraction(this,this.getEndpoint()),this}}},1146:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InteractionChecker=void 0;const s=a(r(2581)),u=o(r(1594));t.InteractionChecker=class{checkInteraction(e,t){this.checkPayable(e,t),this.checkArguments(e,t)}checkPayable(e,t){let r=!new u.default(e.getValue().toString()).isZero(),n=t.modifiers.isPayableInEGLD();if(r&&!n)throw new s.ErrContractInteraction("cannot send EGLD value to non-payable")}checkArguments(e,t){let r=t.input,n=e.getArguments(),i=r.length,a=n.length;if(i!=a)throw new s.ErrContractInteraction(`bad arguments, expected: ${i}, got: ${a}`);for(let e=0;e<i;e++){let t=r[e].type,i=n[e].getType();if(!t.isAssignableFrom(i))throw new s.ErrContractInteraction(`type mismatch at index ${e}, expected: ${t}, got: ${i}`)}}}},662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},670:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeSerializer=void 0;const i=n(r(1594)),a=r(236),o=r(2581),s=r(9161),u=r(6147),c=r(2747);!function(e){function t(e){let t=[...e].reverse(),r=e.length,n=e.length,i=!1;t.length>0&&t[0].type.getCardinality().isComposite()&&(n=1/0,i=!0);for(let e of t){if(e.type.getCardinality().isSingular())break;r-=1}return{min:r,max:n,variadic:i}}function r(e,t,a){return e&&c.isTyped(e)?e:t instanceof c.OptionType?function(e,t,n){if(null==e)return c.OptionValue.newMissing();let i=r(e,t.getFirstTypeParameter(),n);return c.OptionValue.newProvided(i)}(e,t,a):t instanceof c.OptionalType?function(e,t,n){if(null==e)return new c.OptionalValue(t);let i=r(e,t.getFirstTypeParameter(),n);return new c.OptionalValue(t,i)}(e,t,a):t instanceof c.VariadicType?function(e,t,n){if(t.isCounted)throw new o.ErrInvalidArgument('Counted variadic arguments must be explicitly typed. E.g. use "VariadicValue.fromItemsCounted()" or "new VariadicValue()"');null==e&&(e=[]),void 0===e.map&&n.convertError(e,"Variadic");let i=e.map((function(e){return r(e,t.getFirstTypeParameter(),n)}));return new c.VariadicValue(t,i)}(e,t,a):t instanceof c.CompositeType?function(e,t,n){let i=[],a=t.getTypeParameters();n.guardSameLength(e,a);for(let t=0;t<a.length;t++)i.push(r(e[t],a[t],n));return new c.CompositeValue(t,i)}(e,t,a):t instanceof c.TupleType?function(e,t,n){let i=[];const a=t.getFieldsDefinitions();n.guardSameLength(e,a);for(let t=0;t<a.length;t++)i.push(r(e[t],a[t].type,n));return c.Tuple.fromItems(i)}(e,t,a):t instanceof c.StructType?function(e,t,n){let i=[];const a=t.getFieldsDefinitions();for(let t=0;t<a.length;t++){const o=a[t].name;n.guardHasField(e,o);const s=r(e[o],a[t].type,n);i.push(new c.Field(s,o))}return new c.Struct(t,i)}(e,t,a):t instanceof c.ListType?function(e,t,n){void 0===e.map&&n.convertError(e,"List");let i=e.map((function(e){return r(e,t.getFirstTypeParameter(),n)}));return new c.List(t,i)}(e,t,a):t instanceof c.PrimitiveType?function(e,t,r){if(t instanceof c.NumericalType)return function(e,t,r){switch(t.constructor){case c.U8Type:return new c.U8Value(e);case c.I8Type:return new c.I8Value(e);case c.U16Type:return new c.U16Value(e);case c.I16Type:return new c.I16Value(e);case c.U32Type:return new c.U32Value(e);case c.I32Type:return new c.I32Value(e);case c.U64Type:return new c.U64Value(e);case c.I64Type:return new c.I64Value(e);case c.BigUIntType:return new c.BigUIntValue(e);case c.BigIntType:return new c.BigIntValue(e);default:r.unhandledType("convertNumericalType",t)}}(new i.default(e),t,r);if(t instanceof c.BytesType)return function(e,t){const r=e.valueOf();return void 0===e&&t.convertError(e,"BytesValue"),e instanceof Buffer?new c.BytesValue(e):"string"==typeof e?c.BytesValue.fromUTF8(e):r instanceof Buffer?new c.BytesValue(r):"number"==typeof r?c.BytesValue.fromHex(s.numberToPaddedHex(r)):void t.convertError(e,"BytesValue")}(e,r);if(t instanceof c.AddressType)return new c.AddressValue(n(e,r));if(t instanceof c.BooleanType){const t="true"===e.toString().toLowerCase()||"1"===e.toString();return new c.BooleanValue(t)}if(t instanceof c.TokenIdentifierType)return new c.TokenIdentifierValue(function(e,t){return void 0===e&&t.convertError(e,"Buffer"),e instanceof Buffer?e.toString():"string"==typeof e?e:void t.convertError(e,"Buffer")}(e,r));r.throwError(`(function: toPrimitive) unsupported type ${t}`)}(e,t,a):t instanceof c.EnumType?function(e,t,n){if("number"==typeof e)return c.EnumValue.fromDiscriminant(t,e);if("string"==typeof e)return c.EnumValue.fromName(t,e);if("object"==typeof e){n.guardHasField(e,"name");const i=t.getVariantByName(e.name);n.guardHasField(e,"fields");const a=e.fields,o=[],s=i.getFieldsDefinitions();for(let e=0;e<s.length;e++){const t=s[e].name;n.guardHasField(a,t);const i=r(a[t],s[e].type,n);o.push(new c.Field(i,t))}return new c.EnumValue(t,i,o)}n.throwError("(function: toEnumValue) unsupported native type "+typeof e)}(e,t,a):t instanceof c.ExplicitEnumType?function(e,t,r){if("string"==typeof e)return c.ExplicitEnumValue.fromName(t,e);if("object"==typeof e){r.guardHasField(e,"name");const n=t.getVariantByName(e.name);return new c.ExplicitEnumValue(t,n)}r.throwError("(function: toExplicitEnumValue) unsupported native type "+typeof e)}(e,t,a):t instanceof c.ManagedDecimalType?function(e,t,r){if("object"==typeof e)return new c.ManagedDecimalValue(e[0],e[1],t.isVariable());r.throwError("(function: toManagedDecimal) unsupported native type "+typeof e)}(e,t,a):void a.throwError(`convertToTypedValue: unhandled type ${t}`)}function n(e,t){if(e.bech32)return e;if(e.getAddress)return e.getAddress();switch(e.constructor){case Buffer:case String:return new a.Address(e);default:t.convertError(e,"Address")}}e.nativeToTypedValues=function(e,n){(function(e,r){const{min:n,max:i}=t(r.input);if(!(n<=e.length&&e.length<=i))throw new o.ErrInvalidArgument(`Wrong number of arguments for endpoint ${r.name}: expected between ${n} and ${i} arguments, have ${e.length}`)})(e=e||[],n),function(e){const t=e.input[e.input.length-1];return t?.type instanceof c.VariadicType&&!t.type.isCounted}(n)&&(e=function(e,t){const r=t.input.length-1,n=e[r];if(n?.belongsToTypesystem){if(!n.hasClassOrSuperclass(c.VariadicValue.ClassName))throw new o.ErrInvalidArgument(`Wrong argument type for endpoint ${t.name}: typed value provided; expected variadic type, have ${n.getClassName()}`)}else e[r]=e.slice(r);return e}(e,n));let i=n.input,a=[];for(let t=0;t<i.length;t++){let o=i[t],s=new u.ArgumentErrorContext(n.name,t,o),c=r(e[t],o.type,s);a.push(c)}return a},e.getArgumentsCardinality=t,e.convertNativeToAddress=n}(t.NativeSerializer||(t.NativeSerializer={}))},7453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Query=void 0;const n=r(236),i=r(1157);t.Query=class{constructor(e){this.caller=e.caller||n.Address.empty(),this.address=e.address,this.func=e.func,this.args=e.args||[],this.value=e.value||0}getEncodedArguments(){return(new i.ArgSerializer).valuesToStrings(this.args)}}},2528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultsParser=void 0;const n=r(2866),i=r(236),a=r(2581),o=r(6458),s=r(1157),u=r(3462);var c,l;!function(e){e.OnTransactionCompleted="completedTxEvent",e.OnSignalError="signalError",e.OnWriteLog="writeLog"}(c||(c={})),function(e){e.TooMuchGas="@too much gas provided for processing"}(l||(l={}));const d={argsSerializer:new s.ArgSerializer};t.ResultsParser=class{constructor(e){e={...d,...e},this.argsSerializer=e.argsSerializer}parseQueryResponse(e,t){let r=e.getReturnDataParts(),n=this.argsSerializer.buffersToValues(r,t.output);return{returnCode:new u.ReturnCode(e.returnCode.toString()),returnMessage:e.returnMessage,values:n,firstValue:n[0],secondValue:n[1],thirdValue:n[2],lastValue:n[n.length-1]}}parseUntypedQueryResponse(e){return{returnCode:new u.ReturnCode(e.returnCode.toString()),returnMessage:e.returnMessage,values:e.getReturnDataParts()}}parseOutcome(e,t){const r=this.parseUntypedOutcome(e);return this.parseOutcomeFromUntypedBundle(r,t)}parseOutcomeFromUntypedBundle(e,t){const r=this.argsSerializer.buffersToValues(e.values,t.output);return{returnCode:e.returnCode,returnMessage:e.returnMessage,values:r,firstValue:r[0],secondValue:r[1],thirdValue:r[2],lastValue:r[r.length-1]}}parseUntypedOutcome(e){let t,r=this.parseTransactionMetadata(e);if(t=this.createBundleOnSimpleMoveBalance(e),t)return o.Logger.trace("parseUntypedOutcome(): on simple move balance"),t;if(t=this.createBundleOnInvalidTransaction(e),t)return o.Logger.trace("parseUntypedOutcome(): on invalid transaction"),t;if(t=this.createBundleOnEasilyFoundResultWithReturnData(e.contractResults),t)return o.Logger.trace("parseUntypedOutcome(): on easily found result with return data"),t;if(t=this.createBundleOnSignalError(e.logs),t)return o.Logger.trace("parseUntypedOutcome(): on signal error"),t;if(t=this.createBundleOnTooMuchGasWarning(e.logs),t)return o.Logger.trace("parseUntypedOutcome(): on 'too much gas' warning"),t;if(t=this.createBundleOnWriteLogWhereFirstTopicEqualsAddress(e.logs,e.sender),t)return o.Logger.trace("parseUntypedOutcome(): on writelog with topics[0] == tx.sender"),t;if(t=this.createBundleWithCustomHeuristics(e,r),t)return o.Logger.trace("parseUntypedOutcome(): with custom heuristics"),t;if(t=this.createBundleWithFallbackHeuristics(e,r),t)return o.Logger.trace("parseUntypedOutcome(): with fallback heuristics"),t;throw new a.ErrCannotParseContractResults(`transaction ${e.hash.toString()}`)}parseTransactionMetadata(e){return(new n.TransactionDecoder).getTransactionMetadata({sender:e.sender.bech32(),receiver:e.receiver.bech32(),data:e.data.toString("base64"),value:e.value.toString()})}createBundleOnSimpleMoveBalance(e){let t=0==e.contractResults.items.length,r=0==e.logs.events.length;return t&&r?{returnCode:u.ReturnCode.None,returnMessage:u.ReturnCode.None.toString(),values:[]}:null}createBundleOnInvalidTransaction(e){return e.status.isInvalid()&&e.receipt.data?{returnCode:u.ReturnCode.OutOfFunds,returnMessage:e.receipt.data,values:[]}:null}createBundleOnEasilyFoundResultWithReturnData(e){let t=e.items.find((e=>0!=e.nonce.valueOf()&&e.data.startsWith("@")));if(!t)return null;let{returnCode:r,returnDataParts:n}=this.sliceDataFieldInParts(t.data),i=t.returnMessage||r.toString();return{returnCode:r,returnMessage:i,values:n}}createBundleOnSignalError(e){let t=e.findSingleOrNoneEvent(c.OnSignalError);if(!t)return null;let{returnCode:r,returnDataParts:n}=this.sliceDataFieldInParts(t.data),i=t.getLastTopic(),a=i?.toString()||r.toString();return{returnCode:r,returnMessage:a,values:n}}createBundleOnTooMuchGasWarning(e){let t=e.findSingleOrNoneEvent(c.OnWriteLog,(e=>null!=e.findFirstOrNoneTopic((e=>e.toString().startsWith(l.TooMuchGas)))));if(!t)return null;let{returnCode:r,returnDataParts:n}=this.sliceDataFieldInParts(t.data);return{returnCode:r,returnMessage:r.toString(),values:n}}createBundleOnWriteLogWhereFirstTopicEqualsAddress(e,t){let r=new i.Address(t.bech32()).hex(),n=e.findSingleOrNoneEvent(c.OnWriteLog,(e=>null!=e.findFirstOrNoneTopic((e=>e.hex()==r))));if(!n)return null;let{returnCode:a,returnDataParts:o}=this.sliceDataFieldInParts(n.data),s=a.toString();return{returnCode:a,returnMessage:s,values:o}}createBundleWithCustomHeuristics(e,t){return null}createBundleWithFallbackHeuristics(e,t){let r=new i.Address(t.receiver);for(const t of e.contractResults.items){let n=t.logs.findSingleOrNoneEvent(c.OnWriteLog,(t=>{let n=t.address.bech32()==e.sender.bech32(),i=t.topics[0]?.hex()==r.hex();return n&&i}));if(n){let{returnCode:e,returnDataParts:t}=this.sliceDataFieldInParts(n.data),r=e.toString();return{returnCode:e,returnMessage:r,values:t}}}for(const t of e.contractResults.items){let e=t.logs.findSingleOrNoneEvent(c.OnWriteLog,(e=>e.address.bech32()==r.toBech32()));if(e){const{returnCode:t,returnDataParts:r}=this.sliceDataFieldInParts(e.data),n=t.toString();return{returnCode:t,returnMessage:n,values:r}}}return null}sliceDataFieldInParts(e){let t=1;e.startsWith("ESDTTransfer")&&(t=3);let r=this.argsSerializer.stringToBuffers(e),n=r[t]||Buffer.from([]),i=r.slice(t+1);if(0==n.length)throw new a.ErrCannotParseContractResults("no return code");return{returnCode:u.ReturnCode.fromBuffer(n),returnDataParts:i}}parseEvent(e,t){const r=e.topics.map((e=>Buffer.from(e.valueOf()))).slice(1),n=e.dataPayload?.valueOf()||Buffer.from([]),i=e.additionalData?.map((e=>Buffer.from(e.valueOf())))||[];return 0===i.length&&n.length&&i.push(Buffer.from(n)),this.doParseEvent({topics:r,dataItems:i,eventDefinition:t})}doParseEvent(e){const t={},r=e.eventDefinition.inputs.filter((e=>e.indexed)),n=this.argsSerializer.buffersToValues(e.topics,r);for(let e=0;e<r.length;e++)t[r[e].name]=n[e].valueOf();const i=e.eventDefinition.inputs.filter((e=>!e.indexed)),a=this.argsSerializer.buffersToValues(e.dataItems,i);for(let e=0;e<i.length;e++)t[i[e].name]=a[e].valueOf();return t}}},3462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReturnCode=void 0;class r{constructor(e){this.text=e}static fromBuffer(e){let t=e.toString();return new r(t)}toString(){return this.text}valueOf(){return this.text}equals(e){return!!e&&this.text==e.text}isSuccess(){return this.equals(r.Ok)||this.equals(r.None)}}t.ReturnCode=r,r.None=new r(""),r.Ok=new r("ok"),r.FunctionNotFound=new r("function not found"),r.FunctionWrongSignature=new r("wrong signature for function"),r.ContractNotFound=new r("contract not found"),r.UserError=new r("user error"),r.OutOfGas=new r("out of gas"),r.AccountCollision=new r("account collision"),r.OutOfFunds=new r("out of funds"),r.CallStackOverFlow=new r("call stack overflow"),r.ContractInvalid=new r("contract invalid"),r.ExecutionFailed=new r("execution failed"),r.Unknown=new r("unknown")},1998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartContract=void 0;const n=r(236),i=r(1220),a=r(7353),o=r(2581),s=r(9712),u=r(3473),c=r(1069),l=r(5225),d=r(3685),f=r(1945),h=r(670),p=r(7453);t.SmartContract=class{constructor(e={}){this.address=n.Address.empty(),this.methodsExplicit={},this.methods={},this.address=e.address||n.Address.empty(),this.abi=e.abi,this.abi&&this.setupMethods()}setupMethods(){let e=this,t=this.getAbi();for(const r of t.getEndpoints()){let t=r.name;this.methodsExplicit[t]=function(r){let n=new d.ContractFunction(t);return new f.Interaction(e,n,r||[])},this.methods[t]=function(n){let i=new d.ContractFunction(t),a=h.NativeSerializer.nativeToTypedValues(n||[],r);return new f.Interaction(e,i,a||[])}}}setAddress(e){this.address=e}getAddress(){return this.address}getAbi(){return c.guardValueIsSet("abi",this.abi),this.abi}getEndpoint(e){return this.getAbi().getEndpoint(e)}deploy({deployer:e,code:t,codeMetadata:r,initArguments:n,value:o,gasLimit:c,gasPrice:l,chainID:d}){i.Compatibility.guardAddressIsSetAndNonZero(e,"'deployer' of SmartContract.deploy()","pass the actual address to deploy()");const f=new u.TransactionsFactoryConfig({chainID:d.valueOf()}),h=new s.SmartContractTransactionsFactory({config:f,abi:this.abi}),p=Buffer.from(t.toString(),"hex"),g=this.getMetadataPropertiesAsObject(r),m=h.createTransactionForDeploy({sender:e,bytecode:p,gasLimit:BigInt(c.valueOf()),arguments:n,isUpgradeable:g.upgradeable,isReadable:g.readable,isPayable:g.payable,isPayableBySmartContract:g.payableBySc});return m.setChainID(d),m.setValue(o??0),m.setGasPrice(l??a.TRANSACTION_MIN_GAS_PRICE),m}getMetadataPropertiesAsObject(e){let t;return t=e?l.CodeMetadata.fromBytes(Buffer.from(e.toString(),"hex")):new l.CodeMetadata,t.toJSON()}upgrade({caller:e,code:t,codeMetadata:r,initArguments:n,value:o,gasLimit:c,gasPrice:l,chainID:d}){i.Compatibility.guardAddressIsSetAndNonZero(e,"'caller' of SmartContract.upgrade()","pass the actual address to upgrade()"),this.ensureHasAddress();const f=new u.TransactionsFactoryConfig({chainID:d.valueOf()}),h=new s.SmartContractTransactionsFactory({config:f,abi:this.abi}),p=Uint8Array.from(Buffer.from(t.toString(),"hex")),g=this.getMetadataPropertiesAsObject(r),m=h.createTransactionForUpgrade({sender:e,contract:this.getAddress(),bytecode:p,gasLimit:BigInt(c.valueOf()),arguments:n,isUpgradeable:g.upgradeable,isReadable:g.readable,isPayable:g.payable,isPayableBySmartContract:g.payableBySc});return m.setChainID(d),m.setValue(o??0),m.setGasPrice(l??a.TRANSACTION_MIN_GAS_PRICE),m}call({func:e,args:t,value:r,gasLimit:n,receiver:o,gasPrice:c,chainID:l,caller:d}){i.Compatibility.guardAddressIsSetAndNonZero(d,"'caller' of SmartContract.call()","pass the actual address to call()"),this.ensureHasAddress();const f=new u.TransactionsFactoryConfig({chainID:l.valueOf()});t=t||[],r=r||0;const h=new s.SmartContractTransactionsFactory({config:f,abi:this.abi}).createTransactionForExecute({sender:d,contract:o||this.getAddress(),function:e.toString(),gasLimit:BigInt(n.valueOf()),arguments:t});return h.setChainID(l),h.setValue(r),h.setGasPrice(c??a.TRANSACTION_MIN_GAS_PRICE),h}createQuery({func:e,args:t,value:r,caller:n}){return this.ensureHasAddress(),new p.Query({address:this.getAddress(),func:e,args:t,value:r,caller:n})}ensureHasAddress(){if(!this.getAddress().bech32())throw new o.ErrContractHasNoAddress}static computeAddress(e,t){const r=n.Address.fromBech32(e.bech32());return(new n.AddressComputer).computeContractAddress(r,BigInt(t.valueOf()))}}},7331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractCallPayloadBuilder=t.ContractUpgradePayloadBuilder=t.ContractDeployPayloadBuilder=void 0;const n=r(7353),i=r(3548),a=r(1069),o=r(1157);function s(e,t){let{argumentsString:r,count:n}=(new o.ArgSerializer).valuesToString(t);return 0==n?e:`${e}@${r}`}t.ContractDeployPayloadBuilder=class{constructor(){this.code=null,this.codeMetadata="",this.arguments=[]}setCode(e){return this.code=e,this}setCodeMetadata(e){return this.codeMetadata=e,this}addInitArg(e){return this.arguments.push(e),this}setInitArgs(e){return this.arguments=e,this}build(){a.guardValueIsSet("code",this.code);let e=this.code.toString(),t=this.codeMetadata.toString(),r=`${e}@${n.WasmVirtualMachine}@${t}`;return r=s(r,this.arguments),new i.TransactionPayload(r)}},t.ContractUpgradePayloadBuilder=class{constructor(){this.code=null,this.codeMetadata="",this.arguments=[]}setCode(e){return this.code=e,this}setCodeMetadata(e){return this.codeMetadata=e,this}addInitArg(e){return this.arguments.push(e),this}setInitArgs(e){return this.arguments=e,this}build(){a.guardValueIsSet("code",this.code);let e=`upgradeContract@${this.code.toString()}@${this.codeMetadata.toString()}`;return e=s(e,this.arguments),new i.TransactionPayload(e)}},t.ContractCallPayloadBuilder=class{constructor(){this.contractFunction=null,this.arguments=[]}setFunction(e){return this.contractFunction=e,this}addArg(e){return this.arguments.push(e),this}setArgs(e){return this.arguments=e,this}build(){a.guardValueIsSet("calledFunction",this.contractFunction);let e=this.contractFunction.toString();return e=s(e,this.arguments),new i.TransactionPayload(e)}}},4966:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AbiRegistry=void 0;const o=a(r(2581)),s=r(1069),u=r(5730),c=r(1414),l=r(4143),d=r(9229),f=r(7586),h=r(7654);class p{constructor(e){this.endpoints=[],this.customTypes=[],this.events=[],this.name=e.name,this.constructorDefinition=e.constructorDefinition,this.upgradeConstructorDefinition=e.upgradeConstructorDefinition,this.endpoints=e.endpoints,this.customTypes=e.customTypes,this.events=e.events||[]}static create(e){const t=e.name||"?",r=e.constructor||{},n=e.upgradeConstructor||{},i=e.endpoints||[],a=e.types||{},s=e.events||[],h=u.EndpointDefinition.fromJSON({name:"constructor",...r}),g=u.EndpointDefinition.fromJSON({name:"upgradeConstructor",...n}),m=i.map((e=>u.EndpointDefinition.fromJSON(e))),y=[];for(const e in a){const t=a[e];if("struct"==t.type)y.push(f.StructType.fromJSON({name:e,fields:t.fields}));else if("enum"==t.type)y.push(c.EnumType.fromJSON({name:e,variants:t.variants}));else{if("explicit-enum"!=t.type)throw new o.ErrTypingSystem(`Cannot handle custom type: ${e}`);y.push(d.ExplicitEnumType.fromJSON({name:e,variants:t.variants}))}}const b=s.map((e=>l.EventDefinition.fromJSON(e)));return new p({name:t,constructorDefinition:h,upgradeConstructorDefinition:g,endpoints:m,customTypes:y,events:b}).remapToKnownTypes()}getCustomType(e){const t=this.customTypes.find((t=>t.getName()==e));return s.guardValueIsSetWithMessage(`custom type [${e}] not found`,t),t}getStruct(e){const t=this.customTypes.find((t=>t.getName()==e&&t.hasExactClass(f.StructType.ClassName)));return s.guardValueIsSetWithMessage(`struct [${e}] not found`,t),t}getStructs(e){return e.map((e=>this.getStruct(e)))}getEnum(e){const t=this.customTypes.find((t=>t.getName()==e&&t.hasExactClass(c.EnumType.ClassName)));return s.guardValueIsSetWithMessage(`enum [${e}] not found`,t),t}getExplicitEnum(e){const t=this.customTypes.find((t=>t.getName()==e&&t.hasExactClass(d.ExplicitEnumType.ClassName)));return s.guardValueIsSetWithMessage(`enum [${e}] not found`,t),t}getEnums(e){return e.map((e=>this.getEnum(e)))}getEndpoints(){return this.endpoints}getEndpoint(e){const t=this.endpoints.find((t=>t.name==e));return s.guardValueIsSetWithMessage(`endpoint [${e}] not found`,t),t}getEvent(e){const t=this.events.find((t=>t.identifier==e));return s.guardValueIsSetWithMessage(`event [${e}] not found`,t),t}remapToKnownTypes(){const e=new h.TypeMapper([]),t=[];for(const r of this.customTypes)this.mapCustomTypeDepthFirst(r,this.customTypes,e,t);if(this.customTypes.length!=t.length)throw new o.ErrTypingSystem("Did not re-map all custom types");const r=g(this.constructorDefinition,e),n=this.upgradeConstructorDefinition?g(this.upgradeConstructorDefinition,e):void 0,i=[];for(const t of this.endpoints)i.push(g(t,e));const a=this.events.map((t=>function(e,t){const r=e.inputs.map((e=>new l.EventTopicDefinition({name:e.name,type:t.mapType(e.type),indexed:e.indexed})));return new l.EventDefinition(e.identifier,r)}(t,e)));return new p({name:this.name,constructorDefinition:r,upgradeConstructorDefinition:n,endpoints:i,customTypes:t,events:a})}mapCustomTypeDepthFirst(e,t,r,n){if(n.findIndex((t=>t.getName()==e.getName()))>=0)return;for(const i of e.getNamesOfDependencies()){const e=t.find((e=>e.getName()==i));e&&this.mapCustomTypeDepthFirst(e,t,r,n)}const i=r.mapType(e);n.push(i)}}function g(e,t){const r=e.input.map((e=>new u.EndpointParameterDefinition(e.name,e.description,t.mapType(e.type)))),n=e.output.map((e=>new u.EndpointParameterDefinition(e.name,e.description,t.mapType(e.type))));return new u.EndpointDefinition(e.name,r,n,e.modifiers,e.title)}t.AbiRegistry=p},8551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressValue=t.AddressType=void 0;const n=r(236),i=r(5626);class a extends i.PrimitiveType{constructor(){super("Address")}getClassName(){return a.ClassName}}t.AddressType=a,a.ClassName="AddressType";class o extends i.PrimitiveValue{constructor(e){super(new a),this.value=n.Address.newFromBech32(e.bech32())}getClassName(){return o.ClassName}equals(e){return this.value.equals(e.value)}valueOf(){return this.value}}t.AddressValue=o,o.ClassName="AddressValue"},1055:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalValue=t.OptionalType=void 0;const n=r(1069),i=r(5626);class a extends i.Type{constructor(e){super("Optional",[e],i.TypeCardinality.variable(1))}getClassName(){return a.ClassName}isAssignableFrom(e){if(!e.hasExactClass(a.ClassName))return!1;let t=this.getFirstTypeParameter().equals(e.getFirstTypeParameter()),r=e.getFirstTypeParameter().hasExactClass(i.NullType.ClassName);return t||r}}t.OptionalType=a,a.ClassName="OptionalType";class o extends i.TypedValue{constructor(e,t=null){super(e),this.value=t}getClassName(){return o.ClassName}static newMissing(){let e=new a(new i.NullType);return new o(e)}isSet(){return!!this.value}getTypedValue(){return n.guardValueIsSet("value",this.value),this.value}valueOf(){return this.value?this.value.valueOf():null}equals(e){return this.value?.equals(e.value)||!1}}t.OptionalValue=o,o.ClassName="OptionalValue"},3979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanValue=t.BooleanType=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("bool")}getClassName(){return i.ClassName}}t.BooleanType=i,i.ClassName="BooleanType";class a extends n.PrimitiveValue{constructor(e){super(new i),this.value=e}getClassName(){return a.ClassName}equals(e){return this.value===e.value}isTrue(){return!0===this.value}isFalse(){return!this.isTrue()}valueOf(){return this.value}}t.BooleanValue=a,a.ClassName="BooleanValue"},1392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesValue=t.BytesType=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("bytes")}getClassName(){return i.ClassName}}t.BytesType=i,i.ClassName="BytesType";class a extends n.PrimitiveValue{constructor(e){super(new i),this.value=e}getClassName(){return a.ClassName}static fromUTF8(e){let t=Buffer.from(e,"utf-8");return new a(t)}static fromHex(e){let t=Buffer.from(e,"hex");return new a(t)}getLength(){return this.value.length}equals(e){return this.getLength()==e.getLength()&&this.value.equals(e.value)}valueOf(){return this.value}toString(){return this.value.toString()}}t.BytesValue=a,a.ClassName="BytesValue"},1847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeMetadataValue=t.CodeMetadataType=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("CodeMetadata")}}t.CodeMetadataType=i;class a extends n.PrimitiveValue{constructor(e){super(new i),this.value=e}equals(e){return this.value.equals(e.value)}valueOf(){return this.value}}t.CodeMetadataValue=a},902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionOfTypedValues=void 0,t.CollectionOfTypedValues=class{constructor(e){this.items=e}getLength(){return this.items.length}getItems(){return this.items}valueOf(){return this.items.map((e=>e.valueOf()))}equals(e){if(this.getLength()!=e.getLength())return!1;for(let t=0;t<this.getLength();t++){let r=this.items[t],n=e.items[t];if(!r.equals(n))return!1}return!0}}},7472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeValue=t.CompositeType=void 0;const n=r(1069),i=r(5626);class a extends i.Type{constructor(...e){super("Composite",e,i.TypeCardinality.variable(e.length))}getClassName(){return a.ClassName}}t.CompositeType=a,a.ClassName="CompositeType";class o extends i.TypedValue{constructor(e,t){super(e),n.guardLength(t,e.getTypeParameters().length),this.items=t}getClassName(){return o.ClassName}static fromItems(...e){let t=e.map((e=>e.getType())),r=new a(...t);return new o(r,e)}getItems(){return this.items}valueOf(){return this.items.map((e=>e?.valueOf()))}equals(e){if(this.getType().differs(e.getType()))return!1;for(let t=0;t<this.items.length;t++){let r=this.items[t],n=e.items[t];if(!r.equals(n))return!1}return!0}}t.CompositeValue=o,o.ClassName="CompositeValue"},5730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EndpointParameterDefinition=t.EndpointModifiers=t.EndpointDefinition=void 0;const n=r(7966);class i{constructor(e,t,r,n,i){this.input=[],this.output=[],this.name=e,this.title=i||"",this.input=t||[],this.output=r||[],this.modifiers=n}isConstructor(){return"constructor"==this.name}static fromJSON(e){e.name=null==e.name?"?":e.name,e.onlyOwner=e.onlyOwner||!1,e.title=e.title||"",e.payableInTokens=e.payableInTokens||[],e.inputs=e.inputs||[],e.outputs=e.outputs||[];let t=e.inputs.map((e=>o.fromJSON(e))),r=e.outputs.map((e=>o.fromJSON(e))),n=new a(e.mutability,e.payableInTokens,e.onlyOwner);return new i(e.name,t,r,n,e.title)}}t.EndpointDefinition=i;class a{constructor(e,t,r){this.mutability=e||"",this.payableInTokens=t||[],this.onlyOwner=r||!1}isPayableInEGLD(){return this.isPayableInToken("EGLD")}isPayableInToken(e){return!!this.payableInTokens.includes(e)||!this.payableInTokens.includes(`!${e}`)&&!!this.payableInTokens.includes("*")}isPayable(){return 0!=this.payableInTokens.length}isReadonly(){return"readonly"==this.mutability}isOnlyOwner(){return this.onlyOwner}}t.EndpointModifiers=a;class o{constructor(e,t,r){this.name=e,this.description=t,this.type=r}static fromJSON(e){let t=(new n.TypeExpressionParser).parse(e.type);return new o(e.name||"?",e.description||"N / A",t)}}t.EndpointParameterDefinition=o},1414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnumValue=t.EnumVariantDefinition=t.EnumType=void 0;const n=r(2581),i=r(1069),a=r(5766),o=r(5626);class s extends o.CustomType{constructor(e,t){super(e),this.variants=[],this.variants=t}getClassName(){return s.ClassName}static fromJSON(e){const t=s.assignMissingDiscriminants(e.variants||[]).map((e=>u.fromJSON(e)));return new s(e.name,t)}static assignMissingDiscriminants(e){return e.every((e=>null==e.discriminant))?e.map(((e,t)=>({...e,discriminant:t}))):e}getVariantByDiscriminant(e){let t=this.variants.find((t=>t.discriminant==e));return i.guardValueIsSet(`variant by discriminant (${e})`,t),t}getVariantByName(e){let t=this.variants.find((t=>t.name==e));return i.guardValueIsSet(`variant by name (${e})`,t),t}getNamesOfDependencies(){const e=[];for(const t of this.variants)e.push(...t.getNamesOfDependencies());return[...new Set(e)]}}t.EnumType=s,s.ClassName="EnumType";class u{constructor(e,t,r=[]){this.fieldsDefinitions=[],i.guardTrue(t<256,"discriminant for simple enum should be less than 256"),this.name=e,this.discriminant=t,this.fieldsDefinitions=r}static fromJSON(e){let t=(e.fields||[]).map((e=>a.FieldDefinition.fromJSON(e)));return new u(e.name,e.discriminant,t)}getFieldsDefinitions(){return this.fieldsDefinitions}getFieldDefinition(e){return this.fieldsDefinitions.find((t=>t.name==e))}getNamesOfDependencies(){return a.Fields.getNamesOfTypeDependencies(this.fieldsDefinitions)}}t.EnumVariantDefinition=u;class c extends o.TypedValue{constructor(e,t,r){super(e),this.fields=[],this.name=t.name,this.discriminant=t.discriminant,this.fields=r,this.fieldsByName=new Map(r.map((e=>[e.name,e])));let n=t.getFieldsDefinitions();a.Fields.checkTyping(this.fields,n)}getClassName(){return c.ClassName}static fromName(e,t){let r=e.getVariantByName(t);return new c(e,r,[])}static fromDiscriminant(e,t){let r=e.getVariantByDiscriminant(t);return new c(e,r,[])}equals(e){if(!this.getType().equals(e.getType()))return!1;let t=this.getFields(),r=e.getFields();const n=this.name==e.name,i=this.discriminant==e.discriminant,o=a.Fields.equals(t,r);return n&&i&&o}getFields(){return this.fields}getFieldValue(e){let t=this.fieldsByName.get(e);if(t)return t.value.valueOf();throw new n.ErrMissingFieldOnEnum(e,this.getType().getName())}valueOf(){let e={name:this.name,fields:[]};return this.fields.forEach(((t,r)=>e.fields[r]=t.value.valueOf())),e}}t.EnumValue=c,c.ClassName="EnumValue"},4143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventTopicDefinition=t.EventDefinition=void 0;const n=r(7966);class i{constructor(e,t){this.inputs=[],this.identifier=e,this.inputs=t||[]}static fromJSON(e){e.identifier=null==e.identifier?"?":e.identifier,e.inputs=e.inputs||[];const t=e.inputs.map((e=>a.fromJSON(e)));return new i(e.identifier,t)}}t.EventDefinition=i;class a{constructor(e){this.name=e.name,this.type=e.type,this.indexed=e.indexed}static fromJSON(e){const t=(new n.TypeExpressionParser).parse(e.type);return new a({name:e.name||"?",type:t,indexed:e.indexed})}}t.EventTopicDefinition=a},9229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplicitEnumValue=t.ExplicitEnumVariantDefinition=t.ExplicitEnumType=void 0;const n=r(1069),i=r(5626);class a extends i.CustomType{constructor(e,t){super(e),this.variants=[],this.variants=t}getClassName(){return a.ClassName}static fromJSON(e){const t=e.variants.map((e=>o.fromJSON(e)));return new a(e.name,t)}getVariantByName(e){let t=this.variants.find((t=>t.name==e));return n.guardValueIsSet(`variant by name (${e})`,t),t}}t.ExplicitEnumType=a,a.ClassName="ExplicitEnumType";class o{constructor(e){this.name=e}static fromJSON(e){return new o(e.name)}}t.ExplicitEnumVariantDefinition=o;class s extends i.TypedValue{constructor(e,t){super(e),this.name=t.name}getClassName(){return s.ClassName}static fromName(e,t){let r=e.getVariantByName(t);return new s(e,r)}equals(e){return!!this.getType().equals(e.getType())&&this.name==e.name}valueOf(){return{name:this.name}}}t.ExplicitEnumValue=s,s.ClassName="ExplicitEnumValue"},8689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createListOfTokenIdentifiers=t.createListOfAddresses=void 0;const n=r(8551),i=r(926),a=r(3145);t.createListOfAddresses=function(e){let t=e.map((e=>new n.AddressValue(e)));return i.List.fromItems(t)},t.createListOfTokenIdentifiers=function(e){let t=e.map((e=>new a.TokenIdentifierValue(e)));return i.List.fromItems(t)}},5766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=t.Field=t.FieldDefinition=void 0;const o=a(r(2581)),s=r(7966);class u{constructor(e,t,r){this.name=e,this.description=t,this.type=r}static fromJSON(e){let t=(new s.TypeExpressionParser).parse(e.type);return new u(e.name,e.description,t)}}t.FieldDefinition=u,t.Field=class{constructor(e,t=""){this.value=e,this.name=t}checkTyping(e){const t=this.value.getType();if(!t.equals(e.type))throw new o.ErrTypingSystem(`check type of field "${e.name}; expected: ${e.type}, actual: ${t}"`);if(this.name!=e.name)throw new o.ErrTypingSystem(`check name of field "${e.name}"`)}equals(e){return this.name==e.name&&this.value.equals(e.value)}},t.Fields=class{static checkTyping(e,t){if(e.length!=t.length)throw new o.ErrTypingSystem("fields length vs. field definitions length");for(let r=0;r<e.length;r++){let n=e[r],i=t[r];n.checkTyping(i)}}static equals(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(!n.equals(i))return!1}return!0}static getNamesOfTypeDependencies(e){const t=[];for(const r of e)t.push(r.type.getName()),t.push(...r.type.getNamesOfDependencies());return[...new Set(t)]}}},926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.List=t.OptionValue=t.ListType=t.OptionType=void 0;const n=r(1069),i=r(902),a=r(5626);class o extends a.Type{constructor(e){super("Option",[e])}getClassName(){return o.ClassName}isAssignableFrom(e){if(!e.hasExactClass(o.ClassName))return!1;let t=this.getFirstTypeParameter().equals(e.getFirstTypeParameter()),r=e.getFirstTypeParameter().hasExactClass(a.NullType.ClassName);return t||r}}t.OptionType=o,o.ClassName="OptionType";class s extends a.Type{constructor(e){super("List",[e])}getClassName(){return s.ClassName}}t.ListType=s,s.ClassName="ListType";class u extends a.TypedValue{constructor(e,t=null){super(e),this.value=t}getClassName(){return u.ClassName}static newMissing(){let e=new o(new a.NullType);return new u(e)}static newMissingTyped(e){return new u(new o(e))}static newProvided(e){let t=new o(e.getType());return new u(t,e)}isSet(){return!!this.value}getTypedValue(){return n.guardValueIsSet("value",this.value),this.value}valueOf(){return this.value?this.value.valueOf():null}equals(e){return this.value?.equals(e.value)||!1}}t.OptionValue=u,u.ClassName="OptionValue";class c extends a.TypedValue{constructor(e,t){super(e),this.backingCollection=new i.CollectionOfTypedValues(t)}getClassName(){return c.ClassName}static fromItems(e){if(0==e.length)return new c(new a.TypePlaceholder,[]);let t=e[0].getType(),r=new s(t);return new c(r,e)}getLength(){return this.backingCollection.getLength()}getItems(){return this.backingCollection.getItems()}valueOf(){return this.backingCollection.valueOf()}equals(e){return this.backingCollection.equals(e.backingCollection)}}t.List=c,c.ClassName="List"},177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayVec=t.ArrayVecType=void 0;const n=r(1069),i=r(902),a=r(5626);class o extends a.Type{constructor(e,t){super("Array",[t]),n.guardTrue(e>0,"array length > 0"),this.length=e}getClassName(){return o.ClassName}}t.ArrayVecType=o,o.ClassName="ArrayVecType";class s extends a.TypedValue{constructor(e,t){super(e),n.guardLength(t,e.length),this.backingCollection=new i.CollectionOfTypedValues(t)}getClassName(){return s.ClassName}getLength(){return this.backingCollection.getLength()}getItems(){return this.backingCollection.getItems()}valueOf(){return this.backingCollection.valueOf()}equals(e){return this.backingCollection.equals(e.backingCollection)}}t.ArrayVec=s,s.ClassName="ArrayVec"},1038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H256Value=t.H256Type=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("H256")}getClassName(){return i.ClassName}}t.H256Type=i,i.ClassName="H256Type";class a extends n.PrimitiveValue{constructor(e){super(new i),this.value=e}getClassName(){return a.ClassName}equals(e){return this.value.equals(e.value)}valueOf(){return this.value}}t.H256Value=a,a.ClassName="H256Value"},2747:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4966),t),i(r(8551),t),i(r(1055),t),i(r(3979),t),i(r(1392),t),i(r(1847),t),i(r(7472),t),i(r(5730),t),i(r(1414),t),i(r(9229),t),i(r(8689),t),i(r(5766),t),i(r(926),t),i(r(177),t),i(r(1038),t),i(r(4647),t),i(r(8303),t),i(r(5648),t),i(r(1782),t),i(r(4473),t),i(r(6514),t),i(r(7586),t),i(r(3145),t),i(r(1025),t),i(r(7966),t),i(r(7654),t),i(r(5626),t),i(r(6054),t)},4647:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedDecimalValue=t.ManagedDecimalType=void 0;const i=n(r(1594)),a=r(5626);class o extends a.Type{constructor(e){super("ManagedDecimal",void 0,void 0,e)}getClassName(){return o.ClassName}getMetadata(){return this.metadata}isVariable(){return"usize"==this.metadata}}t.ManagedDecimalType=o,o.ClassName="ManagedDecimalType";class s extends a.TypedValue{constructor(e,t,r=!1){super(new o(r?"usize":t)),this.value=new i.default(e),this.scale=t,this.variable=r}getClassName(){return s.ClassName}getScale(){return this.scale}getPrecision(){return this.value.toFixed(this.scale).replace(".","").length}equals(e){return this.getPrecision()==e.getPrecision()&&new i.default(this.value).eq(e.value)}valueOf(){return this.value}toString(){return this.value.toFixed(this.scale)}isVariable(){return this.variable}}t.ManagedDecimalValue=s,s.ClassName="ManagedDecimalValue"},8303:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedDecimalSignedValue=t.ManagedDecimalSignedType=void 0;const i=n(r(1594)),a=r(5626);class o extends a.Type{constructor(e){super("ManagedDecimalSigned",void 0,void 0,e)}getClassName(){return o.ClassName}getMetadata(){return this.metadata}isVariable(){return"usize"==this.metadata}}t.ManagedDecimalSignedType=o,o.ClassName="ManagedDecimalSignedType";class s extends a.TypedValue{constructor(e,t,r=!1){super(new o(r?"usize":t)),this.value=new i.default(e),this.scale=t,this.variable=r}getClassName(){return s.ClassName}getPrecision(){return this.value.toFixed(this.scale).replace(".","").length}getScale(){return this.scale}equals(e){return this.getPrecision()==e.getPrecision()&&new i.default(this.value).eq(e.value)}valueOf(){return this.value}toString(){return this.value.toFixed(this.scale)}isVariable(){return this.variable}}t.ManagedDecimalSignedValue=s,s.ClassName="ManagedDecimalSignedValue"},5648:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.onPrimitiveTypeSelect=t.onPrimitiveValueSelect=t.onTypedValueSelect=t.onTypeSelect=void 0;const o=a(r(2581)),s=r(8551),u=r(3979),c=r(1392),l=r(1847),d=r(1414),f=r(9229),h=r(926),p=r(177),g=r(1038),m=r(4647),y=r(8303),b=r(1782),v=r(4473),w=r(6514),A=r(7586),T=r(3145),_=r(1025),S=r(5626);t.onTypeSelect=function(e,t){if(e.hasExactClass(h.OptionType.ClassName))return t.onOption();if(e.hasExactClass(h.ListType.ClassName))return t.onList();if(e.hasExactClass(p.ArrayVecType.ClassName))return t.onArray();if(e.hasClassOrSuperclass(S.PrimitiveType.ClassName))return t.onPrimitive();if(e.hasExactClass(A.StructType.ClassName))return t.onStruct();if(e.hasExactClass(_.TupleType.ClassName))return t.onTuple();if(e.hasExactClass(d.EnumType.ClassName))return t.onEnum();if(e.hasExactClass(f.ExplicitEnumType.ClassName))return t.onExplicitEnum();if(e.hasExactClass(m.ManagedDecimalType.ClassName))return t.onManagedDecimal();if(e.hasExactClass(y.ManagedDecimalSignedType.ClassName))return t.onManagedDecimalSigned();if(t.onOther)return t.onOther();throw new o.ErrTypingSystem(`type isn't known: ${e}`)},t.onTypedValueSelect=function(e,t){if(e.hasClassOrSuperclass(S.PrimitiveValue.ClassName))return t.onPrimitive();if(e.hasExactClass(h.OptionValue.ClassName))return t.onOption();if(e.hasExactClass(h.List.ClassName))return t.onList();if(e.hasExactClass(p.ArrayVec.ClassName))return t.onArray();if(e.hasExactClass(A.Struct.ClassName))return t.onStruct();if(e.hasExactClass(_.Tuple.ClassName))return t.onTuple();if(e.hasExactClass(d.EnumValue.ClassName))return t.onEnum();if(e.hasExactClass(f.ExplicitEnumValue.ClassName))return t.onExplicitEnum();if(e.hasExactClass(m.ManagedDecimalValue.ClassName))return t.onManagedDecimal();if(e.hasExactClass(y.ManagedDecimalSignedValue.ClassName))return t.onManagedDecimalSigned();if(t.onOther)return t.onOther();throw new o.ErrTypingSystem(`value isn't typed: ${e}`)},t.onPrimitiveValueSelect=function(e,t){if(e.hasExactClass(u.BooleanValue.ClassName))return t.onBoolean();if(e.hasClassOrSuperclass(v.NumericalValue.ClassName))return t.onNumerical();if(e.hasExactClass(s.AddressValue.ClassName))return t.onAddress();if(e.hasExactClass(c.BytesValue.ClassName))return t.onBytes();if(e.hasExactClass(w.StringValue.ClassName))return t.onString();if(e.hasExactClass(g.H256Value.ClassName))return t.onH256();if(e.hasExactClass(T.TokenIdentifierValue.ClassName))return t.onTypeIdentifier();if(e.hasExactClass(l.CodeMetadataValue.ClassName))return t.onCodeMetadata();if(e.hasExactClass(b.NothingValue.ClassName))return t.onNothing();if(t.onOther)return t.onOther();throw new o.ErrTypingSystem(`value isn't a primitive: ${e.getType()}`)},t.onPrimitiveTypeSelect=function(e,t){if(e.hasExactClass(u.BooleanType.ClassName))return t.onBoolean();if(e.hasClassOrSuperclass(v.NumericalType.ClassName))return t.onNumerical();if(e.hasExactClass(s.AddressType.ClassName))return t.onAddress();if(e.hasExactClass(c.BytesType.ClassName))return t.onBytes();if(e.hasExactClass(w.StringType.ClassName))return t.onString();if(e.hasExactClass(g.H256Type.ClassName))return t.onH256();if(e.hasExactClass(T.TokenIdentifierType.ClassName))return t.onTokenIndetifier();if(e.hasExactClass(l.CodeMetadataType.ClassName))return t.onCodeMetadata();if(e.hasExactClass(b.NothingType.ClassName))return t.onNothing();if(t.onOther)return t.onOther();throw new o.ErrTypingSystem(`type isn't a known primitive: ${e}`)}},1782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NothingValue=t.NothingType=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("nothing")}getClassName(){return i.ClassName}}t.NothingType=i,i.ClassName="NothingType";class a extends n.PrimitiveValue{constructor(){super(new i)}getClassName(){return a.ClassName}equals(e){return!1}valueOf(){return{}}}t.NothingValue=a,a.ClassName="NothingValue"},4473:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BigIntValue=t.BigUIntValue=t.I64Value=t.U64Value=t.I32Value=t.U32Value=t.I16Value=t.U16Value=t.I8Value=t.U8Value=t.NumericalValue=t.BigIntType=t.BigUIntType=t.I64Type=t.U64Type=t.I32Type=t.U32Type=t.I16Type=t.U16Type=t.I8Type=t.U8Type=t.NumericalType=void 0;const s=o(r(1594)),u=a(r(2581)),c=r(5626);class l extends c.PrimitiveType{constructor(e,t,r){super(e),this.sizeInBytes=t,this.withSign=r}getClassName(){return l.ClassName}hasFixedSize(){return!!this.sizeInBytes}hasArbitrarySize(){return!this.hasFixedSize()}}t.NumericalType=l,l.ClassName="NumericalType";class d extends l{constructor(){super("u8",1,!1)}getClassName(){return d.ClassName}}t.U8Type=d,d.ClassName="U8Type";class f extends l{constructor(){super("i8",1,!0)}getClassName(){return f.ClassName}}t.I8Type=f,f.ClassName="I8Type";class h extends l{constructor(){super("u16",2,!1)}getClassName(){return h.ClassName}}t.U16Type=h,h.ClassName="U16Type";class p extends l{constructor(){super("i16",2,!0)}getClassName(){return p.ClassName}}t.I16Type=p,p.ClassName="I16Type";class g extends l{constructor(){super("u32",4,!1)}getClassName(){return g.ClassName}}t.U32Type=g,g.ClassName="U32Type";class m extends l{constructor(){super("i32",4,!0)}getClassName(){return m.ClassName}}t.I32Type=m,m.ClassName="I32Type";class y extends l{constructor(){super("u64",8,!1)}getClassName(){return y.ClassName}}t.U64Type=y,y.ClassName="U64Type";class b extends l{constructor(){super("i64",8,!0)}getClassName(){return b.ClassName}}t.I64Type=b,b.ClassName="I64Type";class v extends l{constructor(){super("BigUint",0,!1)}getClassName(){return v.ClassName}}t.BigUIntType=v,v.ClassName="BigUIntType";class w extends l{constructor(){super("Bigint",0,!0)}getClassName(){return w.ClassName}}t.BigIntType=w,w.ClassName="BigIntType";class A extends c.PrimitiveValue{constructor(e,t){if(super(e),"bigint"==typeof t&&(t=t.toString()),this.value=new s.default(t),this.sizeInBytes=e.sizeInBytes,this.withSign=e.withSign,this.value.isNaN())throw new u.ErrInvalidArgument(`not a number: ${t}`);if(!this.withSign&&this.value.isNegative())throw new u.ErrInvalidArgument(`negative, but type is unsigned: ${t}`)}getClassName(){return A.ClassName}equals(e){return this.value.isEqualTo(e.value)}valueOf(){return this.value}toString(){return this.value.toString()}}t.NumericalValue=A,A.ClassName="NumericalValue";class T extends A{constructor(e){super(new d,e)}getClassName(){return T.ClassName}}t.U8Value=T,T.ClassName="U8Value";class _ extends A{constructor(e){super(new f,e)}getClassName(){return _.ClassName}}t.I8Value=_,_.ClassName="I8Value";class S extends A{constructor(e){super(new h,e)}getClassName(){return S.ClassName}}t.U16Value=S,S.ClassName="U16Value";class E extends A{constructor(e){super(new p,e)}getClassName(){return E.ClassName}}t.I16Value=E,E.ClassName="I16Value";class I extends A{constructor(e){super(new g,e)}getClassName(){return I.ClassName}}t.U32Value=I,I.ClassName="U32Value";class C extends A{constructor(e){super(new m,e)}getClassName(){return C.ClassName}}t.I32Value=C,C.ClassName="I32Value";class k extends A{constructor(e){super(new y,e)}getClassName(){return k.ClassName}}t.U64Value=k,k.ClassName="U64Value";class B extends A{constructor(e){super(new b,e)}getClassName(){return B.ClassName}}t.I64Value=B,B.ClassName="I64Value";class O extends A{constructor(e){super(new v,e)}getClassName(){return O.ClassName}}t.BigUIntValue=O,O.ClassName="BigUIntValue";class x extends A{constructor(e){super(new w,e)}getClassName(){return x.ClassName}}t.BigIntValue=x,x.ClassName="BigIntValue"},6514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringValue=t.StringType=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("utf-8 string")}getClassName(){return i.ClassName}}t.StringType=i,i.ClassName="StringType";class a extends n.PrimitiveValue{constructor(e){super(new i),this.value=e}getClassName(){return a.ClassName}static fromUTF8(e){return new a(e)}static fromHex(e){let t=Buffer.from(e,"hex").toString();return new a(t)}getLength(){return this.value.length}equals(e){return this.value===e.value}valueOf(){return this.value}}t.StringValue=a,a.ClassName="StringValue"},7586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Struct=t.StructType=void 0;const n=r(2581),i=r(5766),a=r(5626);class o extends a.CustomType{constructor(e,t){super(e),this.fieldsDefinitions=[],this.fieldsDefinitions=t}getClassName(){return o.ClassName}static fromJSON(e){let t=(e.fields||[]).map((e=>i.FieldDefinition.fromJSON(e)));return new o(e.name,t)}getFieldsDefinitions(){return this.fieldsDefinitions}getFieldDefinition(e){return this.fieldsDefinitions.find((t=>t.name==e))}getNamesOfDependencies(){return i.Fields.getNamesOfTypeDependencies(this.fieldsDefinitions)}}t.StructType=o,o.ClassName="StructType";class s extends a.TypedValue{constructor(e,t){super(e),this.fields=t,this.fieldsByName=new Map(t.map((e=>[e.name,e]))),this.checkTyping()}getClassName(){return s.ClassName}checkTyping(){let e=this.getType().getFieldsDefinitions();i.Fields.checkTyping(this.fields,e)}getFields(){return this.fields}getFieldValue(e){let t=this.fieldsByName.get(e);if(t)return t.value.valueOf();throw new n.ErrMissingFieldOnStruct(e,this.getType().getName())}valueOf(){let e={};for(const t of this.fields)e[t.name]=t.value.valueOf();return e}equals(e){if(!this.getType().equals(e.getType()))return!1;let t=this.getFields(),r=e.getFields();return i.Fields.equals(t,r)}}t.Struct=s,s.ClassName="Struct"},3145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenIdentifierValue=t.TokenIdentifierType=void 0;const n=r(5626);class i extends n.PrimitiveType{constructor(){super("TokenIdentifier")}getClassName(){return i.ClassName}}t.TokenIdentifierType=i,i.ClassName="TokenIdentifierType";class a extends n.PrimitiveValue{constructor(e){super(new i),this.value=e}static egld(){return new a("EGLD")}static esdtTokenIdentifier(e){return new a(e)}getClassName(){return a.ClassName}getLength(){return this.value.length}equals(e){return this.getLength()==e.getLength()&&this.value==e.value}valueOf(){return this.value}toString(){return this.value.toString()}}t.TokenIdentifierValue=a,a.ClassName="TokenIdentifierValue"},1025:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Tuple=t.TupleType=void 0;const o=a(r(2581)),s=r(5766),u=r(7586);class c extends u.StructType{constructor(...e){super(c.prepareName(e),c.prepareFieldDefinitions(e))}getClassName(){return c.ClassName}static prepareName(e){return`tuple<${e.map((e=>e.toString())).join(", ")}>`}static prepareFieldDefinitions(e){return e.map(((e,t)=>new s.FieldDefinition(l(t),"anonymous tuple field",e)))}}function l(e){return`field${e}`}t.TupleType=c,c.ClassName="TupleType";class d extends u.Struct{constructor(e,t){super(e,t)}getClassName(){return d.ClassName}static fromItems(e){if(e.length<1)throw new o.ErrTypingSystem("bad tuple items");let t=e.map((e=>e.getType())),r=new c(...t),n=e.map(((e,t)=>new s.Field(e,l(t))));return new d(r,n)}}t.Tuple=d,d.ClassName="Tuple"},7966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeExpressionParser=void 0;const n=r(9132),i=r(2581),a=r(5626);t.TypeExpressionParser=class{constructor(){this.backingTypeFormulaParser=new n.TypeFormulaParser}parse(e){try{return this.doParse(e)}catch(t){throw new i.ErrTypingSystem(`Failed to parse type expression: ${e}. Error: ${t}`)}}doParse(e){const t=this.backingTypeFormulaParser.parseExpression(e);return this.typeFormulaToType(t)}typeFormulaToType(e){const t=e.typeParameters.map((e=>this.typeFormulaToType(e)));return new a.Type(e.name,t,void 0,e.metadata)}}},7654:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeMapper=void 0;const o=a(r(2581)),s=r(8551),u=r(1055),c=r(3979),l=r(1392),d=r(1847),f=r(7472),h=r(1414),p=r(9229),g=r(5766),m=r(926),y=r(177),b=r(1038),v=r(4647),w=r(8303),A=r(1782),T=r(4473),_=r(6514),S=r(7586),E=r(3145),I=r(1025),C=r(6054);t.TypeMapper=class{constructor(e=[]){this.openTypesFactories=new Map([["Option",(...e)=>new m.OptionType(e[0])],["List",(...e)=>new m.ListType(e[0])],["VarArgs",(...e)=>new C.VariadicType(e[0])],["MultiResultVec",(...e)=>new C.VariadicType(e[0])],["variadic",(...e)=>new C.VariadicType(e[0])],["counted-variadic",(...e)=>new C.VariadicType(e[0],!0)],["OptionalArg",(...e)=>new u.OptionalType(e[0])],["optional",(...e)=>new u.OptionalType(e[0])],["OptionalResult",(...e)=>new u.OptionalType(e[0])],["multi",(...e)=>new f.CompositeType(...e)],["MultiArg",(...e)=>new f.CompositeType(...e)],["MultiResult",(...e)=>new f.CompositeType(...e)],["multi",(...e)=>new f.CompositeType(...e)],["tuple",(...e)=>new I.TupleType(...e)],["tuple2",(...e)=>new I.TupleType(...e)],["tuple3",(...e)=>new I.TupleType(...e)],["tuple4",(...e)=>new I.TupleType(...e)],["tuple5",(...e)=>new I.TupleType(...e)],["tuple6",(...e)=>new I.TupleType(...e)],["tuple7",(...e)=>new I.TupleType(...e)],["tuple8",(...e)=>new I.TupleType(...e)],["array2",(...e)=>new y.ArrayVecType(2,e[0])],["array8",(...e)=>new y.ArrayVecType(8,e[0])],["array16",(...e)=>new y.ArrayVecType(16,e[0])],["array20",(...e)=>new y.ArrayVecType(20,e[0])],["array32",(...e)=>new y.ArrayVecType(32,e[0])],["array46",(...e)=>new y.ArrayVecType(46,e[0])],["array48",(...e)=>new y.ArrayVecType(48,e[0])],["array64",(...e)=>new y.ArrayVecType(64,e[0])],["array128",(...e)=>new y.ArrayVecType(128,e[0])],["array256",(...e)=>new y.ArrayVecType(256,e[0])],["ManagedDecimal",(...e)=>new v.ManagedDecimalType(e)],["ManagedDecimalSigned",(...e)=>new w.ManagedDecimalSignedType(e)]]),this.closedTypesMap=new Map([["u8",new T.U8Type],["u16",new T.U16Type],["u32",new T.U32Type],["u64",new T.U64Type],["U64",new T.U64Type],["BigUint",new T.BigUIntType],["i8",new T.I8Type],["i16",new T.I16Type],["i32",new T.I32Type],["i64",new T.I64Type],["Bigint",new T.BigIntType],["BigInt",new T.BigIntType],["bool",new c.BooleanType],["bytes",new l.BytesType],["Address",new s.AddressType],["H256",new b.H256Type],["utf-8 string",new _.StringType],["TokenIdentifier",new E.TokenIdentifierType],["EgldOrEsdtTokenIdentifier",new E.TokenIdentifierType],["CodeMetadata",new d.CodeMetadataType],["nothing",new A.NothingType],["AsyncCall",new A.NothingType]]),this.learnedTypesMap=new Map;for(const t of e)"ManagedDecimal"===t.getName()||"ManagedDecimalSigned"===t.getName()?this.learnedTypesMap.set(`${t.getName()}_${t.getMetadata()}`,t):this.learnedTypesMap.set(t.getName(),t)}mapType(e){let t=this.mapTypeRecursively(e);if(t)return t.isGenericType()||this.learnType(t),t;throw new o.ErrTypingSystem(`Cannot map the type "${e.getName()}" to a known type`)}mapTypeRecursively(e){let t=e.isGenericType(),r=e.hasMetadata(),n=this.learnedTypesMap.get(e.getName());return n||(this.closedTypesMap.get(e.getName())||(e.hasExactClass(h.EnumType.ClassName)?this.mapEnumType(e):e.hasExactClass(p.ExplicitEnumType.ClassName)?this.mapExplicitEnumType(e):e.hasExactClass(S.StructType.ClassName)?this.mapStructType(e):t||r?this.mapGenericType(e):null))}learnType(e){if("ManagedDecimal"===e.getName()||"ManagedDecimalSigned"===e.getName()){const t=`${e.getName()}_${e.getMetadata()}`;this.learnedTypesMap.delete(t),this.learnedTypesMap.set(t,e)}else{const t=e.getName();this.learnedTypesMap.delete(t),this.learnedTypesMap.set(t,e)}}mapStructType(e){let t=this.mappedFields(e.getFieldsDefinitions());return new S.StructType(e.getName(),t)}mapEnumType(e){let t=e.variants.map((e=>new h.EnumVariantDefinition(e.name,e.discriminant,this.mappedFields(e.getFieldsDefinitions()))));return new h.EnumType(e.getName(),t)}mapExplicitEnumType(e){let t=e.variants.map((e=>new p.ExplicitEnumVariantDefinition(e.name)));return new p.ExplicitEnumType(e.getName(),t)}mappedFields(e){return e.map((e=>new g.FieldDefinition(e.name,e.description,this.mapType(e.type))))}mapGenericType(e){let t=e.getTypeParameters().map((e=>this.mapType(e))),r=this.openTypesFactories.get(e.getName());if(!r)throw new o.ErrTypingSystem(`Cannot map the generic type "${e.getName()}" to a known type`);return e.hasMetadata()?r(e.getMetadata()):r(...t)}}},5626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullType=t.TypePlaceholder=t.isTyped=t.PrimitiveValue=t.TypedValue=t.CustomType=t.PrimitiveType=t.TypeCardinality=t.Type=void 0;const n=r(8444),i=r(1069);class a{constructor(e,t=[],r=o.fixed(1),n){i.guardValueIsSet("name",e),this.name=e,this.typeParameters=t,this.cardinality=r,this.metadata=n}getName(){return this.name}getClassName(){return a.ClassName}getClassHierarchy(){return n.getJavascriptPrototypesInHierarchy(this,(e=>e.belongsToTypesystem)).map((e=>e.getClassName())).reverse()}getFullyQualifiedName(){return this.isGenericType()||this.hasMetadata()?this.getFullNameForGeneric():`multiversx:types:${this.getName()}`}getFullNameForGeneric(){const e=this.getTypeParameters().length>0,t=e?`${this.getTypeParameters().map((e=>e.getFullyQualifiedName())).join(", ")}`:"";let r=`multiversx:types:${this.getName()}`;return e&&(r=`${r}<${t}>`),void 0!==this.metadata&&(r=`${r}*${this.metadata}*`),r}hasExactClass(e){return this.getClassName()==e}hasClassOrSuperclass(e){return this.getClassHierarchy().includes(e)}getTypeParameters(){return this.typeParameters}getMetadata(){return this.metadata}isGenericType(){return this.typeParameters.length>0}hasMetadata(){return!!this.metadata}getFirstTypeParameter(){return i.guardTrue(this.typeParameters.length>0,"type parameters length > 0"),this.typeParameters[0]}toString(){let e=this.getTypeParameters().map((e=>e.toString())).join(", "),t=e?`<${e}>`:"";return`${this.name}${t}`}equals(e){return a.equals(this,e)}static equals(e,t){return e.getFullyQualifiedName()==t.getFullyQualifiedName()}static equalsMany(e,t){return e.every(((e,r)=>e.equals(t[r])))}static isAssignableFromMany(e,t){return e.every(((e,r)=>e.isAssignableFrom(t[r])))}differs(e){return!this.equals(e)}valueOf(){return this.name}isAssignableFrom(e){if(!a.equalsMany(this.getTypeParameters(),e.getTypeParameters()))return!1;let t=this.getFullyQualifiedName();return!!a.getFullyQualifiedNamesInHierarchy(e).includes(t)||e.hasClassOrSuperclass(this.getClassName())}static getFullyQualifiedNamesInHierarchy(e){return n.getJavascriptPrototypesInHierarchy(e,(e=>e.belongsToTypesystem)).map((t=>t.getFullyQualifiedName.call(e)))}getNamesOfDependencies(){const e=[];for(const t of this.typeParameters)e.push(t.getName()),e.push(...t.getNamesOfDependencies());return[...new Set(e)]}toJSON(){return{name:this.name,typeParameters:this.typeParameters.map((e=>e.toJSON()))}}getCardinality(){return this.cardinality}belongsToTypesystem(){}}t.Type=a,a.ClassName="Type";class o{constructor(e,t){this.lowerBound=e,this.upperBound=t}static fixed(e){return new o(e,e)}static variable(e){return new o(0,e)}isSingular(){return 1==this.lowerBound&&1==this.upperBound}isSingularOrNone(){return 0==this.lowerBound&&1==this.upperBound}isComposite(){return 1!=this.upperBound}isFixed(){return this.lowerBound==this.upperBound}getLowerBound(){return this.lowerBound}getUpperBound(){return this.upperBound||o.MaxCardinality}}t.TypeCardinality=o,o.MaxCardinality=4096;class s extends a{constructor(e){super(e)}getClassName(){return s.ClassName}}t.PrimitiveType=s,s.ClassName="PrimitiveType";class u extends a{getClassName(){return u.ClassName}}t.CustomType=u,u.ClassName="CustomType";class c{constructor(e){this.type=e}getClassName(){return c.ClassName}getClassHierarchy(){return n.getJavascriptPrototypesInHierarchy(this,(e=>e.belongsToTypesystem)).map((e=>e.getClassName())).reverse()}getType(){return this.type}hasExactClass(e){return this.getClassName()==e}hasClassOrSuperclass(e){return this.getClassHierarchy().includes(e)}belongsToTypesystem(){}}t.TypedValue=c,c.ClassName="TypedValue";class l extends c{constructor(e){super(e)}getClassName(){return l.ClassName}}t.PrimitiveValue=l,l.ClassName="PrimitiveValue",t.isTyped=function(e){return void 0!==e.belongsToTypesystem};class d extends a{constructor(){super("...")}getClassName(){return d.ClassName}}t.TypePlaceholder=d,d.ClassName="TypePlaceholder";class f extends a{constructor(){super("?")}getClassName(){return f.ClassName}}t.NullType=f,f.ClassName="NullType"},6054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariadicValue=t.CountedVariadicType=t.VariadicType=void 0;const n=r(5626);class i extends n.Type{constructor(e,t=!1){super("Variadic",[e],n.TypeCardinality.variable()),this.isCounted=t}getClassName(){return i.ClassName}}t.VariadicType=i,i.ClassName="VariadicType";class a extends n.Type{constructor(e){super("Variadic",[e],n.TypeCardinality.variable())}getClassName(){return i.ClassName}}t.CountedVariadicType=a,a.ClassName="VariadicType";class o extends n.TypedValue{constructor(e,t){super(e),this.items=t}getClassName(){return o.ClassName}static fromItems(...e){return this.createFromItems(e,!1)}static fromItemsCounted(...e){return this.createFromItems(e,!0)}static createFromItems(e,t){if(0==e.length)return new o(new i(new n.TypePlaceholder,t),[]);const r=e[0].getType();return new o(new i(r,t),e)}getItems(){return this.items}valueOf(){return this.items.map((e=>e.valueOf()))}equals(e){if(this.getType().differs(e.getType()))return!1;for(let t=0;t<this.items.length;t++){let r=this.items[t],n=e.items[t];if(!r.equals(n))return!1}return!0}}t.VariadicValue=o,o.ClassName="VariadicValue"},8390:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToHex=t.addressToHex=t.bigIntToHex=t.utf8ToHex=t.bigIntToBuffer=t.bufferToBigInt=t.stringToBuffer=void 0;const s=o(r(1594)),u=a(r(7553)),c=a(r(9161));t.stringToBuffer=function(e){return Buffer.from(e)},t.bufferToBigInt=function(e){return 0==e.length?new s.default(0):u.bufferToBigInt(e)},t.bigIntToBuffer=function(e){return 0==e?Buffer.from([]):u.bigIntToBuffer(e)};var l=r(9161);Object.defineProperty(t,"utf8ToHex",{enumerable:!0,get:function(){return l.utf8ToHex}}),Object.defineProperty(t,"bigIntToHex",{enumerable:!0,get:function(){return l.bigIntToHex}}),Object.defineProperty(t,"addressToHex",{enumerable:!0,get:function(){return l.addressToHex}}),t.bufferToHex=function(e){const t=e.toString("hex");return c.zeroPadStringIfOddLength(t)}},3856:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1610),t),i(r(7384),t),i(r(1772),t)},1610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenOperationsFactory=void 0;const n=r(7353),i=r(6458),a=r(3500),o=r(476),s=r(3548),u=r(8390);t.TokenOperationsFactory=class{constructor(e){this.config=e,this.trueAsHex=u.utf8ToHex("true"),this.falseAsHex=u.utf8ToHex("false")}issueFungible(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=["issue",u.utf8ToHex(e.tokenName),u.utf8ToHex(e.tokenTicker),u.bigIntToHex(e.initialSupply),u.bigIntToHex(e.numDecimals),u.utf8ToHex("canFreeze"),e.canFreeze?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canWipe"),e.canWipe?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canPause"),e.canPause?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canChangeOwner"),e.canChangeOwner?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canUpgrade"),e.canUpgrade?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canAddSpecialRoles"),e.canAddSpecialRoles?this.trueAsHex:this.falseAsHex];return this.createTransaction({sender:e.issuer,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,value:this.config.issueCost,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitIssue,dataParts:t})}notifyAboutUnsettingBurnRoleGlobally(){i.Logger.info('\n==========\nIMPORTANT!\n==========\nYou are about to issue (register) a new token. This will set the role "ESDTRoleBurnForAll" (globally).\nOnce the token is registered, you can unset this role by calling "unsetBurnRoleGlobally" (in a separate transaction).')}issueSemiFungible(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=["issueSemiFungible",u.utf8ToHex(e.tokenName),u.utf8ToHex(e.tokenTicker),u.utf8ToHex("canFreeze"),e.canFreeze?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canWipe"),e.canWipe?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canPause"),e.canPause?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canTransferNFTCreateRole"),e.canTransferNFTCreateRole?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canChangeOwner"),e.canChangeOwner?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canUpgrade"),e.canUpgrade?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canAddSpecialRoles"),e.canAddSpecialRoles?this.trueAsHex:this.falseAsHex];return this.createTransaction({sender:e.issuer,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,value:this.config.issueCost,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitIssue,dataParts:t})}issueNonFungible(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=["issueNonFungible",u.utf8ToHex(e.tokenName),u.utf8ToHex(e.tokenTicker),u.utf8ToHex("canFreeze"),e.canFreeze?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canWipe"),e.canWipe?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canPause"),e.canPause?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canTransferNFTCreateRole"),e.canTransferNFTCreateRole?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canChangeOwner"),e.canChangeOwner?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canUpgrade"),e.canUpgrade?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canAddSpecialRoles"),e.canAddSpecialRoles?this.trueAsHex:this.falseAsHex];return this.createTransaction({sender:e.issuer,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,value:this.config.issueCost,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitIssue,dataParts:t})}registerMetaESDT(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=["registerMetaESDT",u.utf8ToHex(e.tokenName),u.utf8ToHex(e.tokenTicker),u.bigIntToHex(e.numDecimals),u.utf8ToHex("canFreeze"),e.canFreeze?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canWipe"),e.canWipe?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canPause"),e.canPause?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canTransferNFTCreateRole"),e.canTransferNFTCreateRole?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canChangeOwner"),e.canChangeOwner?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canUpgrade"),e.canUpgrade?this.trueAsHex:this.falseAsHex,u.utf8ToHex("canAddSpecialRoles"),e.canAddSpecialRoles?this.trueAsHex:this.falseAsHex];return this.createTransaction({sender:e.issuer,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,value:this.config.issueCost,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitIssue,dataParts:t})}registerAndSetAllRoles(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=["registerAndSetAllRoles",u.utf8ToHex(e.tokenName),u.utf8ToHex(e.tokenTicker),u.utf8ToHex(e.tokenType),u.bigIntToHex(e.numDecimals)];return this.createTransaction({sender:e.issuer,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,value:this.config.issueCost,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitIssue,dataParts:t})}setBurnRoleGlobally(e){const t=["setBurnRoleGlobally",u.utf8ToHex(e.tokenIdentifier)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitToggleBurnRoleGlobally,dataParts:t})}unsetBurnRoleGlobally(e){const t=["unsetBurnRoleGlobally",u.utf8ToHex(e.tokenIdentifier)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitToggleBurnRoleGlobally,dataParts:t})}setSpecialRoleOnFungible(e){const t=["setSpecialRole",u.utf8ToHex(e.tokenIdentifier),u.addressToHex(e.user),...e.addRoleLocalMint?[u.utf8ToHex("ESDTRoleLocalMint")]:[],...e.addRoleLocalBurn?[u.utf8ToHex("ESDTRoleLocalBurn")]:[]];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitSetSpecialRole,dataParts:t})}setSpecialRoleOnSemiFungible(e){const t=["setSpecialRole",u.utf8ToHex(e.tokenIdentifier),u.addressToHex(e.user),...e.addRoleNFTCreate?[u.utf8ToHex("ESDTRoleNFTCreate")]:[],...e.addRoleNFTBurn?[u.utf8ToHex("ESDTRoleNFTBurn")]:[],...e.addRoleNFTAddQuantity?[u.utf8ToHex("ESDTRoleNFTAddQuantity")]:[],...e.addRoleESDTTransferRole?[u.utf8ToHex("ESDTTransferRole")]:[]];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitSetSpecialRole,dataParts:t})}setSpecialRoleOnMetaESDT(e){return this.setSpecialRoleOnSemiFungible(e)}setSpecialRoleOnNonFungible(e){const t=["setSpecialRole",u.utf8ToHex(e.tokenIdentifier),u.addressToHex(e.user),...e.addRoleNFTCreate?[u.utf8ToHex("ESDTRoleNFTCreate")]:[],...e.addRoleNFTBurn?[u.utf8ToHex("ESDTRoleNFTBurn")]:[],...e.addRoleNFTUpdateAttributes?[u.utf8ToHex("ESDTRoleNFTUpdateAttributes")]:[],...e.addRoleNFTAddURI?[u.utf8ToHex("ESDTRoleNFTAddURI")]:[],...e.addRoleESDTTransferRole?[u.utf8ToHex("ESDTTransferRole")]:[]];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitSetSpecialRole,dataParts:t})}nftCreate(e){const t=["ESDTNFTCreate",u.utf8ToHex(e.tokenIdentifier),u.bigIntToHex(e.initialQuantity),u.utf8ToHex(e.name),u.bigIntToHex(e.royalties),u.utf8ToHex(e.hash),u.bufferToHex(e.attributes),...e.uris.map(u.utf8ToHex)],r=(e.name+e.hash+e.attributes+e.uris.join("")).length*this.config.gasLimitStorePerByte.valueOf();return this.createTransaction({sender:e.creator,receiver:e.creator,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitESDTNFTCreate.valueOf()+r.valueOf(),dataParts:t})}pause(e){const t=["pause",u.utf8ToHex(e.tokenIdentifier)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitPausing,dataParts:t})}unpause(e){const t=["unPause",u.utf8ToHex(e.tokenIdentifier)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitPausing,dataParts:t})}freeze(e){const t=["freeze",u.utf8ToHex(e.tokenIdentifier),u.addressToHex(e.user)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitFreezing,dataParts:t})}unfreeze(e){const t=["unFreeze",u.utf8ToHex(e.tokenIdentifier),u.addressToHex(e.user)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitFreezing,dataParts:t})}wipe(e){const t=["wipe",u.utf8ToHex(e.tokenIdentifier),u.addressToHex(e.user)];return this.createTransaction({sender:e.manager,receiver:this.config.esdtContractAddress,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitWiping,dataParts:t})}localMint(e){const t=["ESDTLocalMint",u.utf8ToHex(e.tokenIdentifier),u.bigIntToHex(e.supplyToMint)];return this.createTransaction({sender:e.manager,receiver:e.manager,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitESDTLocalMint,dataParts:t})}localBurn(e){const t=["ESDTLocalBurn",u.utf8ToHex(e.tokenIdentifier),u.bigIntToHex(e.supplyToBurn)];return this.createTransaction({sender:e.manager,receiver:e.manager,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitESDTLocalBurn,dataParts:t})}updateAttributes(e){const t=["ESDTNFTUpdateAttributes",u.utf8ToHex(e.tokenIdentifier),u.bigIntToHex(e.tokenNonce),u.bufferToHex(e.attributes)];return this.createTransaction({sender:e.manager,receiver:e.manager,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitESDTNFTUpdateAttributes,dataParts:t})}addQuantity(e){const t=["ESDTNFTAddQuantity",u.utf8ToHex(e.tokenIdentifier),u.bigIntToHex(e.tokenNonce),u.bigIntToHex(e.quantityToAdd)];return this.createTransaction({sender:e.manager,receiver:e.manager,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitESDTNFTAddQuantity,dataParts:t})}burnQuantity(e){const t=["ESDTNFTBurn",u.utf8ToHex(e.tokenIdentifier),u.bigIntToHex(e.tokenNonce),u.bigIntToHex(e.quantityToBurn)];return this.createTransaction({sender:e.manager,receiver:e.manager,nonce:e.transactionNonce,gasPrice:e.gasPrice,gasLimitHint:e.gasLimit,executionGasLimit:this.config.gasLimitESDTNFTBurn,dataParts:t})}createTransaction({sender:e,receiver:t,nonce:r,value:i,gasPrice:s,gasLimitHint:u,executionGasLimit:c,dataParts:l}){const d=this.buildTransactionPayload(l),f=u||this.computeGasLimit(d,c),h=new a.TransactionVersion(n.TRANSACTION_VERSION_DEFAULT),p=new a.TransactionOptions(n.TRANSACTION_OPTIONS_DEFAULT);return new o.Transaction({chainID:this.config.chainID,sender:e,receiver:t,gasLimit:f,gasPrice:s,nonce:r||0,value:i||0,data:d,version:h,options:p})}buildTransactionPayload(e){const t=e.join(n.ARGUMENTS_SEPARATOR);return new s.TransactionPayload(t)}computeGasLimit(e,t){return this.config.minGasLimit.valueOf()+this.config.gasLimitPerByte.valueOf()*e.length()+t.valueOf()}}},7384:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenOperationsFactoryConfig=void 0;const n=r(236);t.TokenOperationsFactoryConfig=class{constructor(e){this.minGasPrice=1e9,this.minGasLimit=5e4,this.gasLimitPerByte=1500,this.gasLimitIssue=6e7,this.gasLimitToggleBurnRoleGlobally=6e7,this.gasLimitESDTLocalMint=3e5,this.gasLimitESDTLocalBurn=3e5,this.gasLimitSetSpecialRole=6e7,this.gasLimitPausing=6e7,this.gasLimitFreezing=6e7,this.gasLimitWiping=6e7,this.gasLimitESDTNFTCreate=3e6,this.gasLimitESDTNFTUpdateAttributes=1e6,this.gasLimitESDTNFTAddQuantity=1e6,this.gasLimitESDTNFTBurn=1e6,this.gasLimitStorePerByte=5e4,this.issueCost="50000000000000000",this.esdtContractAddress=n.Address.fromBech32("erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"),this.chainID=e}}},1772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenOperationsOutcomeParser=void 0;const n=r(236),i=r(2581),a=r(8390);t.TokenOperationsOutcomeParser=class{parseIssueFungible(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"issue");return{tokenIdentifier:this.extractTokenIdentifier(t)}}parseIssueNonFungible(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"issueNonFungible");return{tokenIdentifier:this.extractTokenIdentifier(t)}}parseIssueSemiFungible(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"issueSemiFungible");return{tokenIdentifier:this.extractTokenIdentifier(t)}}parseRegisterMetaESDT(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"registerMetaESDT");return{tokenIdentifier:this.extractTokenIdentifier(t)}}parseRegisterAndSetAllRoles(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"registerAndSetAllRoles");return{tokenIdentifier:this.extractTokenIdentifier(t),roles:this.findSingleEventByIdentifier(e,"ESDTSetRole").topics.slice(3).map((e=>e.valueOf().toString()))}}parseSetBurnRoleGlobally(e){return this.ensureNoError(e),{}}parseUnsetBurnRoleGlobally(e){return this.ensureNoError(e),{}}parseSetSpecialRole(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTSetRole");return{userAddress:t.address.toString(),tokenIdentifier:this.extractTokenIdentifier(t),roles:t.topics.slice(3).map((e=>e.valueOf().toString()))}}parseNFTCreate(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTNFTCreate");return{tokenIdentifier:this.extractTokenIdentifier(t),nonce:this.extractNonce(t),initialQuantity:this.extractAmount(t)}}parseLocalMint(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTLocalMint");return{userAddress:t.address.toString(),tokenIdentifier:this.extractTokenIdentifier(t),nonce:this.extractNonce(t),mintedSupply:this.extractAmount(t)}}parseLocalBurn(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTLocalBurn");return{userAddress:t.address.toString(),tokenIdentifier:this.extractTokenIdentifier(t),nonce:this.extractNonce(t),burntSupply:this.extractAmount(t)}}parsePause(e){return this.ensureNoError(e),this.findSingleEventByIdentifier(e,"ESDTPause"),{}}parseUnpause(e){return this.ensureNoError(e),this.findSingleEventByIdentifier(e,"ESDTUnPause"),{}}parseFreeze(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTFreeze"),r=this.extractTokenIdentifier(t),n=this.extractNonce(t),i=this.extractAmount(t);return{userAddress:this.extractAddress(t),tokenIdentifier:r,nonce:n,balance:i}}parseUnfreeze(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTUnFreeze"),r=this.extractTokenIdentifier(t),n=this.extractNonce(t),i=this.extractAmount(t);return{userAddress:this.extractAddress(t),tokenIdentifier:r,nonce:n,balance:i}}parseWipe(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTWipe"),r=this.extractTokenIdentifier(t),n=this.extractNonce(t),i=this.extractAmount(t);return{userAddress:this.extractAddress(t),tokenIdentifier:r,nonce:n,balance:i}}parseUpdateAttributes(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTNFTUpdateAttributes"),r=this.extractTokenIdentifier(t),n=this.extractNonce(t),i=t.topics[3]?.valueOf();return{tokenIdentifier:r,nonce:n,attributes:i}}parseAddQuantity(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTNFTAddQuantity");return{tokenIdentifier:this.extractTokenIdentifier(t),nonce:this.extractNonce(t),addedQuantity:this.extractAmount(t)}}parseBurnQuantity(e){this.ensureNoError(e);const t=this.findSingleEventByIdentifier(e,"ESDTNFTBurn");return{tokenIdentifier:this.extractTokenIdentifier(t),nonce:this.extractNonce(t),burntQuantity:this.extractAmount(t)}}ensureNoError(e){for(const t of e.logs.events)if("signalError"==t.identifier){const r=Buffer.from(t.data.substring(1),"hex").toString(),n=t.topics[1]?.valueOf().toString();throw new i.ErrCannotParseTransactionOutcome(e.hash,`encountered signalError: ${n} (${r})`)}}findSingleEventByIdentifier(e,t){const r=this.gatherAllEvents(e).filter((e=>e.identifier==t));if(0==r.length)throw new i.ErrCannotParseTransactionOutcome(e.hash,`cannot find event of type ${t}`);if(r.length>1)throw new i.ErrCannotParseTransactionOutcome(e.hash,`more than one event of type ${t}`);return r[0]}gatherAllEvents(e){const t=[];t.push(...e.logs.events);for(const r of e.contractResults.items)t.push(...r.logs.events);return t}extractTokenIdentifier(e){return e.topics[0]?.valueOf().toString()}extractNonce(e){return a.bufferToBigInt(e.topics[1]?.valueOf()).toFixed(0)}extractAmount(e){return a.bufferToBigInt(e.topics[2]?.valueOf()).toFixed(0)}extractAddress(e){return n.Address.fromBuffer(e.topics[3]?.valueOf()).toString()}}},5132:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenPayment=t.TokenComputer=t.TokenTransfer=t.Token=void 0;const i=n(r(1594)),a=r(7353),o=r(2581),s="EGLD";i.default.set({ROUNDING_MODE:1});class u{constructor(e){this.identifier=e.identifier,this.nonce=e.nonce||0n}}t.Token=u;class c{constructor(e){if(this.isLegacyTokenTransferOptions(e)){const t=new i.default(e.amountAsBigInteger);if(!t.isInteger()||t.isNegative())throw new o.ErrInvalidArgument(`bad amountAsBigInteger: ${e.amountAsBigInteger}`);this.tokenIdentifier=e.tokenIdentifier,this.nonce=e.nonce,this.amountAsBigInteger=t,this.numDecimals=e.numDecimals||0,this.token=new u({identifier:e.tokenIdentifier,nonce:BigInt(e.nonce)}),this.amount=BigInt(this.amountAsBigInteger.toFixed(0))}else this.token=e.token,this.amount=e.amount,this.tokenIdentifier=e.token.identifier,this.nonce=Number(e.token.nonce),this.amountAsBigInteger=new i.default(this.amount.toString()),this.numDecimals=0}static newFromEgldAmount(e){const t=new u({identifier:a.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER});return new c({token:t,amount:e})}isLegacyTokenTransferOptions(e){return void 0!==e.tokenIdentifier}static egldFromAmount(e){const t=new i.default(e).shiftedBy(18).decimalPlaces(0);return this.egldFromBigInteger(t)}static egldFromBigInteger(e){return new c({tokenIdentifier:s,nonce:0,amountAsBigInteger:e,numDecimals:18})}static fungibleFromAmount(e,t,r){const n=new i.default(t).shiftedBy(r).decimalPlaces(0);return this.fungibleFromBigInteger(e,n,r)}static fungibleFromBigInteger(e,t,r=0){return new c({tokenIdentifier:e,nonce:0,amountAsBigInteger:t,numDecimals:r})}static nonFungible(e,t){return new c({tokenIdentifier:e,nonce:t,amountAsBigInteger:1,numDecimals:0})}static semiFungible(e,t,r){return new c({tokenIdentifier:e,nonce:t,amountAsBigInteger:r,numDecimals:0})}static metaEsdtFromAmount(e,t,r,n){const a=new i.default(r).shiftedBy(n).decimalPlaces(0);return this.metaEsdtFromBigInteger(e,t,a,n)}static metaEsdtFromBigInteger(e,t,r,n=0){return new c({tokenIdentifier:e,nonce:t,amountAsBigInteger:r,numDecimals:n})}toString(){return this.amount.toString()}valueOf(){return new i.default(this.amount.toString())}toPrettyString(){return`${this.toAmount()} ${this.tokenIdentifier}`}toAmount(){return this.amountAsBigInteger.shiftedBy(-this.numDecimals).toFixed(this.numDecimals)}isEgld(){return this.token.identifier==s}isFungible(){return 0n==this.token.nonce}}t.TokenTransfer=c,t.TokenComputer=class{constructor(){this.TOKEN_RANDOM_SEQUENCE_LENGTH=6}isFungible(e){return 0n===e.nonce}extractNonceFromExtendedIdentifier(e){const t=e.split("-"),{prefix:r,ticker:n,randomSequence:i}=this.splitIdentifierIntoComponents(t);if(this.validateExtendedIdentifier(r,n,i,t),2===t.length||r&&3===t.length)return 0;const a=t[t.length-1];return(o=Buffer.from(a,"hex")).readUIntBE(0,o.length);var o}extractIdentifierFromExtendedIdentifier(e){const t=e.split("-"),{prefix:r,ticker:n,randomSequence:i}=this.splitIdentifierIntoComponents(t);return this.validateExtendedIdentifier(r,n,i,t),r?(this.checkLengthOfPrefix(r),r+"-"+n+"-"+i):n+"-"+i}validateExtendedIdentifier(e,t,r,n){this.checkIfExtendedIdentifierWasProvided(e,n),this.ensureTokenTickerValidity(t),this.checkLengthOfRandomSequence(r)}splitIdentifierIntoComponents(e){return this.isLowercaseAlphanumeric(e[0])?{prefix:e[0],ticker:e[1],randomSequence:e[2]}:{prefix:null,ticker:e[0],randomSequence:e[1]}}checkIfExtendedIdentifierWasProvided(e,t){const r=e?4:3;if(t.length<2||t.length>r)throw new o.ErrInvalidTokenIdentifier("Invalid extended token identifier provided")}isLowercaseAlphanumeric(e){return/^[a-z0-9]+$/.test(e)}checkLengthOfRandomSequence(e){if(e.length!==this.TOKEN_RANDOM_SEQUENCE_LENGTH)throw new o.ErrInvalidTokenIdentifier("The identifier is not valid. The random sequence does not have the right length")}checkLengthOfPrefix(e){if(e.length<1||e.length>4)throw new o.ErrInvalidTokenIdentifier("The identifier is not valid. The prefix does not have the right length")}ensureTokenTickerValidity(e){if(e.length<3||e.length>10)throw new o.ErrInvalidTokenIdentifier("The token ticker should be between 3 and 10 characters");if(!e.match(/^[a-zA-Z0-9]+$/))throw new o.ErrInvalidTokenIdentifier("The token ticker should only contain alphanumeric characters");if(e!=e.toUpperCase())throw new o.ErrInvalidTokenIdentifier("The token ticker should be upper case")}},t.TokenPayment=class extends c{constructor(e,t,r,n){super({tokenIdentifier:e,nonce:t,amountAsBigInteger:r,numDecimals:n})}}},476:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionHash=t.Transaction=void 0;const n=r(1594),i=r(236),a=r(7353),o=r(6659),s=r(9342),u=r(3500),c=r(9874),l=r(9825),d=r(3548);t.Transaction=class{constructor(e){this.nonce=BigInt(e.nonce?.valueOf()||0n),this.value=e.value?BigInt(new n.BigNumber(e.value.toString()).toFixed(0)):0n,this.sender=this.addressAsBech32(e.sender),this.receiver=this.addressAsBech32(e.receiver),this.senderUsername=e.senderUsername||"",this.receiverUsername=e.receiverUsername||"",this.gasPrice=BigInt(e.gasPrice?.valueOf()||a.TRANSACTION_MIN_GAS_PRICE),this.gasLimit=BigInt(e.gasLimit.valueOf()),this.data=e.data?.valueOf()||new Uint8Array,this.chainID=e.chainID.valueOf(),this.version=Number(e.version?.valueOf()||a.TRANSACTION_VERSION_DEFAULT),this.options=Number(e.options?.valueOf()||a.TRANSACTION_OPTIONS_DEFAULT),this.guardian=e.guardian?this.addressAsBech32(e.guardian):"",this.relayer=e.relayer?e.relayer:i.Address.empty(),this.signature=e.signature||Buffer.from([]),this.guardianSignature=e.guardianSignature||Buffer.from([]),this.relayerSignature=e.relayerSignature||Buffer.from([])}addressAsBech32(e){return"string"==typeof e?e:e.bech32()}getNonce(){return Number(this.nonce)}setNonce(e){this.nonce=BigInt(e.valueOf())}getValue(){return this.value}setValue(e){this.value=BigInt(e.toString())}getSender(){return i.Address.fromBech32(this.sender)}setSender(e){this.sender="string"==typeof e?e:e.bech32()}getReceiver(){return i.Address.fromBech32(this.receiver)}getSenderUsername(){return this.senderUsername}setSenderUsername(e){this.senderUsername=e}getReceiverUsername(){return this.receiverUsername}setReceiverUsername(e){this.receiverUsername=e}getGuardian(){return new i.Address(this.guardian)}getGasPrice(){return Number(this.gasPrice)}setGasPrice(e){this.gasPrice=BigInt(e.valueOf())}getGasLimit(){return Number(this.gasLimit)}setGasLimit(e){this.gasLimit=BigInt(e.valueOf())}getData(){return new d.TransactionPayload(Buffer.from(this.data))}getChainID(){return this.chainID}setChainID(e){this.chainID=e.valueOf()}getVersion(){return new u.TransactionVersion(this.version)}setVersion(e){this.version=e.valueOf()}getOptions(){return new u.TransactionOptions(this.options.valueOf())}setOptions(e){this.options=e.valueOf()}getSignature(){return Buffer.from(this.signature)}getGuardianSignature(){return Buffer.from(this.guardianSignature)}setGuardian(e){this.guardian="string"==typeof e?e:e.bech32()}getHash(){return f.compute(this)}serializeForSigning(){const e=(new l.TransactionComputer).computeBytesForSigning(this);return Buffer.from(e)}isGuardedTransaction(){const e=this.guardian.length>0,t=this.guardianSignature.length>0;return this.getOptions().isWithGuardian()&&e&&t}toPlainObject(){return(new o.TransactionsConverter).transactionToPlainObject(this)}static fromPlainObject(e){return(new o.TransactionsConverter).plainObjectToTransaction(e)}applySignature(e){this.signature=c.interpretSignatureAsBuffer(e)}applyGuardianSignature(e){this.guardianSignature=c.interpretSignatureAsBuffer(e)}toSendable(){return this.toPlainObject()}computeFee(e){const t=(new l.TransactionComputer).computeTransactionFee(this,e);return new n.BigNumber(t.toString())}};class f extends s.Hash{constructor(e){super(e)}static compute(e){const t=(new l.TransactionComputer).computeTransactionHash(e);return new f(Buffer.from(t).toString("hex"))}}t.TransactionHash=f},9825:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionComputer=void 0;const s=o(r(1594)),u=r(7353),c=a(r(2581)),l=r(9277),d=r(476),f=r(2206),h=r(5508);t.TransactionComputer=class{constructor(){}computeTransactionFee(e,t){const r=BigInt(t.MinGasLimit+e.data.length*t.GasPerDataByte);if(r>e.gasLimit)throw new c.ErrNotEnoughGas(parseInt(e.gasLimit.toString(),10));const n=e.gasPrice,i=r*n;return r===e.gasLimit?i:i+(e.gasLimit-r)*BigInt(new s.default(n.toString()).multipliedBy(new s.default(t.GasPriceModifier)).toFixed(0))}computeBytesForSigning(e){this.ensureValidTransactionFields(e);const t=this.toPlainObject(e),r=JSON.stringify(t);return new Uint8Array(Buffer.from(r))}computeBytesForVerifying(e){return this.hasOptionsSetForHashSigning(e)?this.computeHashForSigning(e):this.computeBytesForSigning(e)}computeHashForSigning(e){const t=this.toPlainObject(e),r=Buffer.from(JSON.stringify(t));return h("keccak256").update(r).digest()}computeTransactionHash(e){const t=(new l.ProtoSerializer).serializeTransaction(new d.Transaction(e)),r=f(32).update(t).digest("hex");return Buffer.from(r,"hex")}hasOptionsSetForGuardedTransaction(e){return(e.options&u.TRANSACTION_OPTIONS_TX_GUARDED)==u.TRANSACTION_OPTIONS_TX_GUARDED}hasOptionsSetForHashSigning(e){return(e.options&u.TRANSACTION_OPTIONS_TX_HASH_SIGN)==u.TRANSACTION_OPTIONS_TX_HASH_SIGN}applyGuardian(e,t){e.version<u.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS&&(e.version=u.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS),e.options=e.options|u.TRANSACTION_OPTIONS_TX_GUARDED,e.guardian=t}isRelayedV3Transaction(e){return!e.relayer.isEmpty()}applyOptionsForHashSigning(e){e.version<u.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS&&(e.version=u.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS),e.options=e.options|u.TRANSACTION_OPTIONS_TX_HASH_SIGN}toPlainObject(e,t){let r={nonce:Number(e.nonce),value:e.value.toString(),receiver:e.receiver,sender:e.sender,senderUsername:this.toBase64OrUndefined(e.senderUsername),receiverUsername:this.toBase64OrUndefined(e.receiverUsername),gasPrice:Number(e.gasPrice),gasLimit:Number(e.gasLimit),data:this.toBase64OrUndefined(e.data)};return t&&(r.signature=this.toHexOrUndefined(e.signature)),r.chainID=e.chainID,r.version=e.version,r.options=e.options?e.options:void 0,r.guardian=e.guardian?e.guardian:void 0,r.relayer=e.relayer?.isEmpty()?void 0:e.relayer?.toBech32(),r}toHexOrUndefined(e){return e&&e.length?Buffer.from(e).toString("hex"):void 0}toBase64OrUndefined(e){return e&&e.length?Buffer.from(e).toString("base64"):void 0}ensureValidTransactionFields(e){if(!e.chainID.length)throw new c.ErrBadUsage("The `chainID` field is not set");if(e.version<u.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS&&(this.hasOptionsSetForGuardedTransaction(e)||this.hasOptionsSetForHashSigning(e)))throw new c.ErrBadUsage(`Non-empty transaction options requires transaction version >= ${u.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS}`)}}},3548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionPayload=void 0;class r{constructor(e){this.data=Buffer.from(e||[])}static fromEncoded(e){if(!e)return new r("");let t=Buffer.from(e,"base64").toString();return new r(t)}isEmpty(){return 0==this.data.length}encoded(){return this.data.toString("base64")}valueOf(){return this.data}toString(){return this.data.toString()}getEncodedArguments(){return this.toString().split("@")}getRawArguments(){return this.getEncodedArguments().map((e=>Buffer.from(e,"hex")))}length(){return Buffer.from(this.data).length}}t.TransactionPayload=r},4650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionWatcher=void 0;const n=r(5519),i=r(7353),a=r(2581),o=r(6458);class s{constructor(e,t={}){this.fetcher=new u(e),this.pollingIntervalMilliseconds=t.pollingIntervalMilliseconds||s.DefaultPollingInterval,this.timeoutMilliseconds=t.timeoutMilliseconds||s.DefaultTimeout,this.patienceMilliseconds=t.patienceMilliseconds||s.DefaultPatience}async awaitPending(e){return this.awaitConditionally((e=>e.status.isPending()),(async()=>{const t=this.transactionOrTxHashToTxHash(e);return await this.fetcher.getTransaction(t)}),(()=>new a.ErrExpectedTransactionStatusNotReached))}async awaitCompleted(e){return this.awaitConditionally((e=>{if(void 0===e.isCompleted)throw new a.ErrIsCompletedFieldIsMissingOnTransaction;return e.isCompleted}),(async()=>{const t=this.transactionOrTxHashToTxHash(e);return await this.fetcher.getTransaction(t)}),(()=>new a.ErrExpectedTransactionStatusNotReached))}async awaitAllEvents(e,t){return this.awaitConditionally((e=>{const r=this.getAllTransactionEvents(e).map((e=>e.identifier));return t.every((e=>r.includes(e)))}),(async()=>{const t=this.transactionOrTxHashToTxHash(e);return await this.fetcher.getTransaction(t)}),(()=>new a.ErrExpectedTransactionEventsNotFound))}async awaitAnyEvent(e,t){return this.awaitConditionally((e=>{const r=this.getAllTransactionEvents(e).map((e=>e.identifier));return null!=t.find((e=>r.includes(e)))}),(async()=>{const t=this.transactionOrTxHashToTxHash(e);return await this.fetcher.getTransaction(t)}),(()=>new a.ErrExpectedTransactionEventsNotFound))}async awaitOnCondition(e,t){return this.awaitConditionally(t,(async()=>{const t=this.transactionOrTxHashToTxHash(e);return await this.fetcher.getTransaction(t)}),(()=>new a.ErrExpectedTransactionStatusNotReached))}transactionOrTxHashToTxHash(e){const t="string"==typeof e?e:e.getHash().hex();if(t.length!==i.HEX_TRANSACTION_HASH_LENGTH)throw new a.Err(`Invalid transaction hash length. The length of a hex encoded hash should be ${i.HEX_TRANSACTION_HASH_LENGTH}.`);return t}async awaitConditionally(e,t,r){const i=new n.AsyncTimer("watcher:periodic"),s=new n.AsyncTimer("watcher:patience"),u=new n.AsyncTimer("watcher:timeout");let c,l=!1,d=!1;for(u.start(this.timeoutMilliseconds).finally((()=>{u.stop(),l=!0}));!l;){await i.start(this.pollingIntervalMilliseconds);try{if(c=await t(),d=e(c),d||l)break}catch(e){if(o.Logger.debug("TransactionWatcher.awaitConditionally(): cannot (yet) fetch data."),e instanceof a.ErrIsCompletedFieldIsMissingOnTransaction)throw e;if(!(e instanceof a.Err))throw e}}if(d&&await s.start(this.patienceMilliseconds),u.isStopped()||u.stop(),!c||!d)throw r();return c}getAllTransactionEvents(e){const t=[...e.logs.events];for(const r of e.contractResults.items)t.push(...r.logs.events);return t}}t.TransactionWatcher=s,s.DefaultPollingInterval=6e3,s.DefaultTimeout=15*s.DefaultPollingInterval,s.DefaultPatience=0,s.NoopOnStatusReceived=e=>{};class u{constructor(e){this.fetcher=e}async getTransaction(e){return o.Logger.debug(`transactionWatcher, getTransaction(${e})`),await this.fetcher.getTransaction(e)}}},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountTransactionsFactory=void 0;const n=r(236),i=r(4059);t.AccountTransactionsFactory=class{constructor(e){this.config=e.config}createTransactionForSavingKeyValue(e){const t=["SaveKeyValue",...this.computeDataPartsForSavingKeyValue(e.keyValuePairs)],r=this.computeExtraGasForSavingKeyValue(e.keyValuePairs);return new i.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}computeExtraGasForSavingKeyValue(e){let t=0n;return e.forEach(((e,r)=>{t+=this.config.gasLimitPersistPerByte*BigInt(r.length+e.length)+this.config.gasLimitStorePerByte*BigInt(e.length)})),t+this.config.gasLimitSaveKeyValue}computeDataPartsForSavingKeyValue(e){const t=[];return e.forEach(((e,r)=>{t.push(Buffer.from(r).toString("hex"),Buffer.from(e).toString("hex"))})),t}createTransactionForSettingGuardian(e){const t=["SetGuardian",n.Address.fromBech32(e.guardianAddress.bech32()).toHex(),Buffer.from(e.serviceID).toString("hex")];return new i.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitSetGuardian,addDataMovementGas:!0}).build()}createTransactionForGuardingAccount(e){return new i.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:["GuardAccount"],gasLimit:this.config.gasLimitGuardAccount,addDataMovementGas:!0}).build()}createTransactionForUnguardingAccount(e){return new i.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:["UnGuardAccount"],gasLimit:this.config.gasLimitUnguardAccount,addDataMovementGas:!0}).build()}}},7673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DelegationTransactionsFactory=void 0;const n=r(236),i=r(7353),a=r(2581),o=r(661),s=r(4059);t.DelegationTransactionsFactory=class{constructor(e){this.config=e.config,this.argSerializer=new o.ArgSerializer,this.delegationManagerAddress=n.Address.fromHex(i.DELEGATION_MANAGER_SC_ADDRESS_HEX,this.config.addressHrp)}createTransactionForNewDelegationContract(e){const t=["createNewDelegationContract",...this.argSerializer.valuesToStrings([new o.BigUIntValue(e.totalDelegationCap),new o.BigUIntValue(e.serviceFee)])],r=this.config.gasLimitCreateDelegationContract+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.delegationManagerAddress,dataParts:t,gasLimit:r,addDataMovementGas:!0,amount:e.amount}).build()}createTransactionForAddingNodes(e){if(e.publicKeys.length!==e.signedMessages.length)throw new a.Err("The number of public keys should match the number of signed messages");const t=e.signedMessages.map((e=>new o.BytesValue(Buffer.from(e)))),r=this.argSerializer.valuesToStrings(t),n=e.publicKeys.length,i=["addNodes"];for(let t=0;t<n;t++)i.push(e.publicKeys[t].hex(),r[t]);return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:i,gasLimit:this.computeExecutionGasLimitForNodesManagement(n),addDataMovementGas:!0}).build()}createTransactionForRemovingNodes(e){const t=["removeNodes"];for(const r of e.publicKeys)t.push(r.hex());const r=e.publicKeys.length;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:this.computeExecutionGasLimitForNodesManagement(r),addDataMovementGas:!0}).build()}createTransactionForStakingNodes(e){let t=["stakeNodes"];for(const r of e.publicKeys)t=t.concat(r.hex());const r=e.publicKeys.length,n=BigInt(r)*this.config.additionalGasLimitPerValidatorNode+this.config.gasLimitStake+this.config.gasLimitDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:n,addDataMovementGas:!0}).build()}createTransactionForUnbondingNodes(e){let t=["unBondNodes"];for(const r of e.publicKeys)t=t.concat(r.hex());const r=e.publicKeys.length,n=BigInt(r)*this.config.additionalGasLimitPerValidatorNode+this.config.gasLimitUnbond+this.config.gasLimitDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:n,addDataMovementGas:!0}).build()}createTransactionForUnstakingNodes(e){let t=["unStakeNodes"];for(const r of e.publicKeys)t=t.concat(r.hex());const r=e.publicKeys.length,n=BigInt(r)*this.config.additionalGasLimitPerValidatorNode+this.config.gasLimitUnstake+this.config.gasLimitDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:n,addDataMovementGas:!0}).build()}createTransactionForUnjailingNodes(e){const t=["unJailNodes"];for(const r of e.publicKeys)t.push(r.hex());const r=e.publicKeys.length;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:this.computeExecutionGasLimitForNodesManagement(r),addDataMovementGas:!0,amount:e.amount}).build()}createTransactionForChangingServiceFee(e){const t=["changeServiceFee",this.argSerializer.valuesToStrings([new o.BigUIntValue(e.serviceFee)])[0]],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}createTransactionForModifyingDelegationCap(e){const t=["modifyTotalDelegationCap",this.argSerializer.valuesToStrings([new o.BigUIntValue(e.delegationCap)])[0]],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}createTransactionForSettingAutomaticActivation(e){const t=["setAutomaticActivation",this.argSerializer.valuesToStrings([new o.StringValue("true")])[0]],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}createTransactionForUnsettingAutomaticActivation(e){const t=["setAutomaticActivation",this.argSerializer.valuesToStrings([new o.StringValue("false")])[0]],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}createTransactionForSettingCapCheckOnRedelegateRewards(e){const t=["setCheckCapOnReDelegateRewards",this.argSerializer.valuesToStrings([new o.StringValue("true")])[0]],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}createTransactionForUnsettingCapCheckOnRedelegateRewards(e){const t=["setCheckCapOnReDelegateRewards",this.argSerializer.valuesToStrings([new o.StringValue("false")])[0]],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}createTransactionForSettingMetadata(e){const t=["setMetaData",...this.argSerializer.valuesToStrings([new o.StringValue(e.name),new o.StringValue(e.website),new o.StringValue(e.identifier)])],r=this.config.gasLimitDelegationOperations+this.config.additionalGasLimitForDelegationOperations;return new s.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.delegationContract,dataParts:t,gasLimit:r,addDataMovementGas:!0}).build()}computeExecutionGasLimitForNodesManagement(e){const t=this.config.additionalGasLimitPerValidatorNode*BigInt(e);return this.config.gasLimitDelegationOperations+t}}},3102:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7673),t),i(r(2713),t),i(r(9712),t),i(r(6943),t),i(r(3473),t),i(r(4934),t),i(r(6520),t)},2713:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RelayedTransactionsFactory=void 0;const i=n(r(1594)),a=r(236),o=r(2581),s=r(661),u=r(476),c=r(1013);t.RelayedTransactionsFactory=class{constructor(e){this.config=e.config}createRelayedV1Transaction(e){if(!e.innerTransaction.gasLimit)throw new o.ErrInvalidInnerTransaction("The gas limit is not set for the inner transaction");if(!e.innerTransaction.signature.length)throw new o.ErrInvalidInnerTransaction("The inner transaction is not signed");const t=this.prepareInnerTransactionForRelayedV1(e.innerTransaction),r=`relayedTx@${Buffer.from(t).toString("hex")}`,n=this.config.gasLimitPerByte*BigInt(r.length),i=this.config.minGasLimit+n+e.innerTransaction.gasLimit;return new u.Transaction({chainID:this.config.chainID,sender:e.relayerAddress.bech32(),receiver:e.innerTransaction.sender,gasLimit:i,data:Buffer.from(r)})}createRelayedV2Transaction(e){if(e.innerTransaction.gasLimit)throw new o.ErrInvalidInnerTransaction("The gas limit should not be set for the inner transaction");if(!e.innerTransaction.signature.length)throw new o.ErrInvalidInnerTransaction("The inner transaction is not signed");const{argumentsString:t}=(new s.ArgSerializer).valuesToString([new s.AddressValue(a.Address.fromBech32(e.innerTransaction.receiver)),new s.U64Value(new i.default(e.innerTransaction.nonce.toString())),new s.BytesValue(Buffer.from(e.innerTransaction.data)),new s.BytesValue(Buffer.from(e.innerTransaction.signature))]),r=`relayedTxV2@${t}`,n=this.config.gasLimitPerByte*BigInt(r.length),c=e.innerTransactionGasLimit+this.config.minGasLimit+n;return new u.Transaction({sender:e.relayerAddress.bech32(),receiver:e.innerTransaction.sender,value:0n,gasLimit:c,chainID:this.config.chainID,data:Buffer.from(r),version:e.innerTransaction.version,options:e.innerTransaction.options})}prepareInnerTransactionForRelayedV1(e){const t={nonce:e.nonce,sender:a.Address.newFromBech32(e.sender).getPublicKey().toString("base64"),receiver:a.Address.newFromBech32(e.receiver).getPublicKey().toString("base64"),value:e.value,gasPrice:e.gasPrice,gasLimit:e.gasLimit,data:Buffer.from(e.data).toString("base64"),signature:Buffer.from(e.signature).toString("base64"),chainID:Buffer.from(e.chainID).toString("base64"),version:e.version,options:0==e.options.valueOf()?void 0:e.options,guardian:e.guardian?a.Address.newFromBech32(e.guardian).getPublicKey().toString("base64"):void 0,guardianSignature:e.guardianSignature.length?Buffer.from(e.guardianSignature).toString("base64"):void 0,sndUserName:e.senderUsername?Buffer.from(e.senderUsername).toString("base64"):void 0,rcvUserName:e.receiverUsername?Buffer.from(e.receiverUsername).toString("base64"):void 0};return c.stringify(t)}}},9712:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartContractTransactionsFactory=void 0;const n=r(236),i=r(7353),a=r(2581),o=r(6458),s=r(661),u=r(670),c=r(2747),l=r(5132),d=r(9161),f=r(5560),h=r(4059);t.SmartContractTransactionsFactory=class{constructor(e){this.config=e.config,this.abi=e.abi,this.tokenComputer=new l.TokenComputer,this.dataArgsBuilder=new f.TokenTransfersDataBuilder,this.contractDeployAddress=n.Address.fromHex(i.CONTRACT_DEPLOY_ADDRESS_HEX,this.config.addressHrp)}createTransactionForDeploy(e){const t=e.nativeTransferAmount??0n,r=e.isUpgradeable??!0,n=e.isReadable??!0,a=e.isPayable??!1,o=e.isPayableBySmartContract??!0,u=e.arguments||[],c=new s.CodeMetadata(r,n,a,o),l=[d.byteArrayToHex(e.bytecode),d.byteArrayToHex(i.VM_TYPE_WASM_VM),c.toString()],f=this.abi?.constructorDefinition,p=this.argsToDataParts(u,f);return l.push(...p),new h.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.contractDeployAddress,dataParts:l,gasLimit:e.gasLimit,addDataMovementGas:!1,amount:t}).build()}createTransactionForExecute(e){const t=e.arguments||[];let r=e.tokenTransfers?[...e.tokenTransfers]:[],n=e.nativeTransferAmount??0n,i=r.length;n&&i&&(r.push(l.TokenTransfer.newFromEgldAmount(n)),n=0n,i++);let a=e.contract,o=[];if(1===i){const t=r[0];this.tokenComputer.isFungible(t.token)?o=this.dataArgsBuilder.buildDataPartsForESDTTransfer(t):(o=this.dataArgsBuilder.buildDataPartsForSingleESDTNFTTransfer(t,a),a=e.sender)}else i>1&&(o=this.dataArgsBuilder.buildDataPartsForMultiESDTNFTTransfer(a,r),a=e.sender);o.push(o.length?d.utf8ToHex(e.function):e.function);const s=this.abi?.getEndpoint(e.function),u=this.argsToDataParts(t,s);return o.push(...u),new h.TransactionBuilder({config:this.config,sender:e.sender,receiver:a,dataParts:o,gasLimit:e.gasLimit,addDataMovementGas:!1,amount:n}).build()}createTransactionForUpgrade(e){const t=e.nativeTransferAmount??0n,r=e.isUpgradeable??!0,n=e.isReadable??!0,i=e.isPayable??!1,a=e.isPayableBySmartContract??!0,o=e.arguments||[],u=new s.CodeMetadata(r,n,i,a),c=["upgradeContract",d.byteArrayToHex(e.bytecode),u.toString()],l=this.getEndpointForUpgrade(),f=this.argsToDataParts(o,l);return c.push(...f),new h.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.contract,dataParts:c,gasLimit:e.gasLimit,addDataMovementGas:!1,amount:t}).build()}getEndpointForUpgrade(){if(this.abi){if(this.abi.upgradeConstructorDefinition)return this.abi.upgradeConstructorDefinition;try{return this.abi.getEndpoint("upgrade")}catch(e){return o.Logger.warn("In the ABI, cannot find the 'upgrade' endpoint definition. Will use the constructor definition (fallback)."),this.abi.constructorDefinition}}}createTransactionForClaimingDeveloperRewards(e){return new h.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.contract,dataParts:["ClaimDeveloperRewards"],gasLimit:this.config.gasLimitClaimDeveloperRewards,addDataMovementGas:!1}).build()}createTransactionForChangingOwnerAddress(e){const t=["ChangeOwnerAddress",n.Address.fromBech32(e.newOwner.bech32()).toHex()];return new h.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.contract,dataParts:t,gasLimit:this.config.gasLimitChangeOwnerAddress,addDataMovementGas:!1}).build()}argsToDataParts(e,t){if(t){const r=u.NativeSerializer.nativeToTypedValues(e,t);return(new s.ArgSerializer).valuesToStrings(r)}if(this.areArgsOfTypedValue(e))return(new s.ArgSerializer).valuesToStrings(e);throw new a.Err("Can't convert args to TypedValues")}areArgsOfTypedValue(e){return e.every((e=>c.isTyped(e)))}}},6943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenManagementTransactionsFactory=void 0;const n=r(236),i=r(7353),a=r(2581),o=r(6458),s=r(661),u=r(4059);t.TokenManagementTransactionsFactory=class{constructor(e){this.config=e.config,this.argSerializer=new s.ArgSerializer,this.trueAsString="true",this.falseAsString="false",this.esdtContractAddress=n.Address.fromHex(i.ESDT_CONTRACT_ADDRESS_HEX,this.config.addressHrp)}createTransactionForIssuingFungible(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=[new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.BigUIntValue(e.initialSupply),new s.BigUIntValue(e.numDecimals),new s.StringValue("canFreeze"),new s.StringValue(this.boolToString(e.canFreeze)),new s.StringValue("canWipe"),new s.StringValue(this.boolToString(e.canWipe)),new s.StringValue("canPause"),new s.StringValue(this.boolToString(e.canPause)),new s.StringValue("canChangeOwner"),new s.StringValue(this.boolToString(e.canChangeOwner)),new s.StringValue("canUpgrade"),new s.StringValue(this.boolToString(e.canUpgrade)),new s.StringValue("canAddSpecialRoles"),new s.StringValue(this.boolToString(e.canAddSpecialRoles))],r=["issue",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitIssue,addDataMovementGas:!0,amount:this.config.issueCost}).build()}createTransactionForIssuingSemiFungible(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=[new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.StringValue("canFreeze"),new s.StringValue(this.boolToString(e.canFreeze)),new s.StringValue("canWipe"),new s.StringValue(this.boolToString(e.canWipe)),new s.StringValue("canPause"),new s.StringValue(this.boolToString(e.canPause)),new s.StringValue("canTransferNFTCreateRole"),new s.StringValue(this.boolToString(e.canTransferNFTCreateRole)),new s.StringValue("canChangeOwner"),new s.StringValue(this.boolToString(e.canChangeOwner)),new s.StringValue("canUpgrade"),new s.StringValue(this.boolToString(e.canUpgrade)),new s.StringValue("canAddSpecialRoles"),new s.StringValue(this.boolToString(e.canAddSpecialRoles))],r=["issueSemiFungible",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitIssue,addDataMovementGas:!0,amount:this.config.issueCost}).build()}createTransactionForIssuingNonFungible(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=[new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.StringValue("canFreeze"),new s.StringValue(this.boolToString(e.canFreeze)),new s.StringValue("canWipe"),new s.StringValue(this.boolToString(e.canWipe)),new s.StringValue("canPause"),new s.StringValue(this.boolToString(e.canPause)),new s.StringValue("canTransferNFTCreateRole"),new s.StringValue(this.boolToString(e.canTransferNFTCreateRole)),new s.StringValue("canChangeOwner"),new s.StringValue(this.boolToString(e.canChangeOwner)),new s.StringValue("canUpgrade"),new s.StringValue(this.boolToString(e.canUpgrade)),new s.StringValue("canAddSpecialRoles"),new s.StringValue(this.boolToString(e.canAddSpecialRoles))],r=["issueNonFungible",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitIssue,addDataMovementGas:!0,amount:this.config.issueCost}).build()}createTransactionForRegisteringMetaESDT(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=[new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.BigUIntValue(e.numDecimals),new s.StringValue("canFreeze"),new s.StringValue(this.boolToString(e.canFreeze)),new s.StringValue("canWipe"),new s.StringValue(this.boolToString(e.canWipe)),new s.StringValue("canPause"),new s.StringValue(this.boolToString(e.canPause)),new s.StringValue("canTransferNFTCreateRole"),new s.StringValue(this.boolToString(e.canTransferNFTCreateRole)),new s.StringValue("canChangeOwner"),new s.StringValue(this.boolToString(e.canChangeOwner)),new s.StringValue("canUpgrade"),new s.StringValue(this.boolToString(e.canUpgrade)),new s.StringValue("canAddSpecialRoles"),new s.StringValue(this.boolToString(e.canAddSpecialRoles))],r=["registerMetaESDT",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitIssue,addDataMovementGas:!0,amount:this.config.issueCost}).build()}createTransactionForRegisteringAndSettingRoles(e){this.notifyAboutUnsettingBurnRoleGlobally();const t=["registerAndSetAllRoles",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.StringValue(e.tokenType),new s.BigUIntValue(e.numDecimals)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitIssue,addDataMovementGas:!0,amount:this.config.issueCost}).build()}createTransactionForSettingBurnRoleGlobally(e){const t=["setBurnRoleGlobally",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitToggleBurnRoleGlobally,addDataMovementGas:!0}).build()}createTransactionForUnsettingBurnRoleGlobally(e){const t=["unsetBurnRoleGlobally",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitToggleBurnRoleGlobally,addDataMovementGas:!0}).build()}createTransactionForSettingSpecialRoleOnFungibleToken(e){const t=[new s.StringValue(e.tokenIdentifier),new s.AddressValue(e.user)];e.addRoleLocalMint&&t.push(new s.StringValue("ESDTRoleLocalMint")),e.addRoleLocalBurn&&t.push(new s.StringValue("ESDTRoleLocalBurn")),e.addRoleESDTTransferRole&&t.push(new s.StringValue("ESDTTransferRole"));const r=["setSpecialRole",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitSetSpecialRole,addDataMovementGas:!0}).build()}createTransactionForSettingSpecialRoleOnSemiFungibleToken(e){const t=[new s.StringValue(e.tokenIdentifier),new s.AddressValue(e.user)];e.addRoleNFTCreate&&t.push(new s.StringValue("ESDTRoleNFTCreate")),e.addRoleNFTBurn&&t.push(new s.StringValue("ESDTRoleNFTBurn")),e.addRoleNFTAddQuantity&&t.push(new s.StringValue("ESDTRoleNFTAddQuantity")),e.addRoleESDTTransferRole&&t.push(new s.StringValue("ESDTTransferRole")),e.addRoleESDTModifyCreator&&t.push(new s.StringValue("ESDTRoleModifyCreator"));const r=["setSpecialRole",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitSetSpecialRole,addDataMovementGas:!0}).build()}createTransactionForSettingSpecialRoleOnMetaESDT(e){return this.createTransactionForSettingSpecialRoleOnSemiFungibleToken(e)}createTransactionForSettingSpecialRoleOnNonFungibleToken(e){const t=[new s.StringValue(e.tokenIdentifier),new s.AddressValue(e.user)];e.addRoleNFTCreate&&t.push(new s.StringValue("ESDTRoleNFTCreate")),e.addRoleNFTBurn&&t.push(new s.StringValue("ESDTRoleNFTBurn")),e.addRoleNFTUpdateAttributes&&t.push(new s.StringValue("ESDTRoleNFTUpdateAttributes")),e.addRoleNFTAddURI&&t.push(new s.StringValue("ESDTRoleNFTAddURI")),e.addRoleESDTTransferRole&&t.push(new s.StringValue("ESDTTransferRole")),e.addRoleESDTModifyCreator&&t.push(new s.StringValue("ESDTRoleModifyCreator")),e.addRoleNFTRecreate&&t.push(new s.StringValue("ESDTRoleNFTRecreate")),e.addRoleESDTSetNewURI&&t.push(new s.StringValue("ESDTRoleSetNewURI")),e.addRoleESDTModifyRoyalties&&t.push(new s.StringValue("ESDTRoleModifyRoyalties"));const r=["setSpecialRole",...this.argSerializer.valuesToStrings(t)];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:r,gasLimit:this.config.gasLimitSetSpecialRole,addDataMovementGas:!0}).build()}createTransactionForCreatingNFT(e){const t=["ESDTNFTCreate",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.initialQuantity),new s.StringValue(e.name),new s.BigUIntValue(e.royalties),new s.StringValue(e.hash),new s.BytesValue(Buffer.from(e.attributes)),...e.uris.map((e=>new s.StringValue(e)))])],r=e.name+e.hash+e.attributes+e.uris.join(""),n=this.config.gasLimitStorePerByte+BigInt(r.length);return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtNftCreate+n,addDataMovementGas:!0}).build()}createTransactionForPausing(e){const t=["pause",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitPausing,addDataMovementGas:!0}).build()}createTransactionForUnpausing(e){const t=["unPause",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitPausing,addDataMovementGas:!0}).build()}createTransactionForFreezing(e){const t=["freeze",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.AddressValue(e.user)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitFreezing,addDataMovementGas:!0}).build()}createTransactionForUnfreezing(e){const t=["UnFreeze",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.AddressValue(e.user)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitFreezing,addDataMovementGas:!0}).build()}createTransactionForWiping(e){const t=["wipe",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.AddressValue(e.user)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitWiping,addDataMovementGas:!0}).build()}createTransactionForLocalMint(e){const t=["ESDTLocalMint",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.supplyToMint)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtLocalMint,addDataMovementGas:!0}).build()}createTransactionForLocalBurning(e){const t=["ESDTLocalBurn",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.supplyToBurn)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtLocalBurn,addDataMovementGas:!0}).build()}createTransactionForUpdatingAttributes(e){const t=["ESDTNFTUpdateAttributes",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),new s.BytesValue(Buffer.from(e.attributes))])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtNftUpdateAttributes,addDataMovementGas:!0}).build()}createTransactionForAddingQuantity(e){const t=["ESDTNFTAddQuantity",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),new s.BigUIntValue(e.quantityToAdd)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtNftAddQuantity,addDataMovementGas:!0}).build()}createTransactionForBurningQuantity(e){const t=["ESDTNFTBurn",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),new s.BigUIntValue(e.quantityToBurn)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtNftBurn,addDataMovementGas:!0}).build()}createTransactionForModifyingRoyalties(e){const t=["ESDTModifyRoyalties",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),new s.BigUIntValue(e.newRoyalties)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtModifyRoyalties,addDataMovementGas:!0}).build()}createTransactionForSettingNewUris(e){if(!e.newUris.length)throw new a.ErrBadUsage("No URIs provided");const t=["ESDTSetNewURIs",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),...e.newUris.map((e=>new s.StringValue(e)))])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitSetNewUris,addDataMovementGas:!0}).build()}createTransactionForModifyingCreator(e){const t=["ESDTModifyCreator",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtModifyCreator,addDataMovementGas:!0}).build()}createTransactionForUpdatingMetadata(e){const t=["ESDTMetaDataUpdate",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),...e.newTokenName?[new s.StringValue(e.newTokenName)]:[],...e.newRoyalties?[new s.BigUIntValue(e.newRoyalties)]:[],...e.newHash?[new s.StringValue(e.newHash)]:[],...e.newAttributes?[new s.BytesValue(Buffer.from(e.newAttributes))]:[],...e.newUris?e.newUris.map((e=>new s.StringValue(e))):[]])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitEsdtMetadataUpdate,addDataMovementGas:!0}).build()}createTransactionForMetadataRecreate(e){const t=["ESDTMetaDataRecreate",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier),new s.BigUIntValue(e.tokenNonce),...e.newTokenName?[new s.StringValue(e.newTokenName)]:[],...e.newRoyalties?[new s.BigUIntValue(e.newRoyalties)]:[],...e.newHash?[new s.StringValue(e.newHash)]:[],...e.newAttributes?[new s.BytesValue(Buffer.from(e.newAttributes))]:[],...e.newUris?e.newUris.map((e=>new s.StringValue(e))):[]])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:t,gasLimit:this.config.gasLimitNftMetadataRecreate,addDataMovementGas:!0}).build()}createTransactionForChangingTokenToDynamic(e){const t=["changeToDynamic",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitNftChangeToDynamic,addDataMovementGas:!0}).build()}createTransactionForUpdatingTokenId(e){const t=["updateTokenID",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenIdentifier)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitUpdateTokenId,addDataMovementGas:!0}).build()}createTransactionForRegisteringDynamicToken(e){const t=["registerDynamic",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.StringValue(e.tokenType)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitRegisterDynamic,addDataMovementGas:!0,amount:this.config.issueCost}).build()}createTransactionForRegisteringDynamicAndSettingRoles(e){const t=["registerAndSetAllRolesDynamic",...this.argSerializer.valuesToStrings([new s.StringValue(e.tokenName),new s.StringValue(e.tokenTicker),new s.StringValue(e.tokenType)])];return new u.TransactionBuilder({config:this.config,sender:e.sender,receiver:this.esdtContractAddress,dataParts:t,gasLimit:this.config.gasLimitRegisterDynamic,addDataMovementGas:!0,amount:this.config.issueCost}).build()}notifyAboutUnsettingBurnRoleGlobally(){o.Logger.info('\n==========\nIMPORTANT!\n==========\nYou are about to issue (register) a new token. This will set the role "ESDTRoleBurnForAll" (globally).\nOnce the token is registered, you can unset this role by calling "unsetBurnRoleGlobally" (in a separate transaction).')}boolToString(e){return e?this.trueAsString:this.falseAsString}}},5560:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenTransfersDataBuilder=void 0;const n=r(1157),i=r(2747),a=r(5132);t.TokenTransfersDataBuilder=class{constructor(){this.tokenComputer=new a.TokenComputer,this.argsSerializer=new n.ArgSerializer}buildDataPartsForESDTTransfer(e){return["ESDTTransfer",...this.argsSerializer.valuesToStrings([new i.TokenIdentifierValue(e.token.identifier),new i.BigUIntValue(e.amount)])]}buildDataPartsForSingleESDTNFTTransfer(e,t){const r=e.token,n=this.tokenComputer.extractIdentifierFromExtendedIdentifier(r.identifier);return["ESDTNFTTransfer",...this.argsSerializer.valuesToStrings([new i.TokenIdentifierValue(n),new i.BigUIntValue(r.nonce),new i.BigUIntValue(e.amount),new i.AddressValue(t)])]}buildDataPartsForMultiESDTNFTTransfer(e,t){const r=[new i.AddressValue(e),new i.U32Value(t.length)];for(const e of t){const t=this.tokenComputer.extractIdentifierFromExtendedIdentifier(e.token.identifier);r.push(new i.TokenIdentifierValue(t),new i.BigUIntValue(e.token.nonce),new i.BigUIntValue(e.amount))}return["MultiESDTNFTTransfer",...this.argsSerializer.valuesToStrings(r)]}}},4059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionBuilder=void 0;const n=r(7353),i=r(476),a=r(3548);t.TransactionBuilder=class{constructor(e){this.config=e.config,this.sender=e.sender,this.receiver=e.receiver,this.dataParts=e.dataParts,this.providedGasLimit=e.gasLimit,this.addDataMovementGas=e.addDataMovementGas,this.amount=e.amount}computeGasLimit(e){return this.addDataMovementGas?this.config.minGasLimit+this.config.gasLimitPerByte*BigInt(e.length())+this.providedGasLimit:this.providedGasLimit}buildTransactionPayload(){const e=this.dataParts.join(n.ARGUMENTS_SEPARATOR);return new a.TransactionPayload(e)}build(){const e=this.buildTransactionPayload(),t=this.computeGasLimit(e);return new i.Transaction({sender:this.sender.bech32(),receiver:this.receiver.bech32(),gasLimit:t,value:this.amount||0n,data:e.valueOf(),chainID:this.config.chainID})}}},3473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsFactoryConfig=void 0;const n=r(6424);t.TransactionsFactoryConfig=class{constructor(e){this.chainID=e.chainID,this.addressHrp=n.LibraryConfig.DefaultAddressHrp,this.minGasLimit=50000n,this.gasLimitPerByte=1500n,this.gasLimitIssue=60000000n,this.gasLimitToggleBurnRoleGlobally=60000000n,this.gasLimitEsdtLocalMint=300000n,this.gasLimitEsdtLocalBurn=300000n,this.gasLimitSetSpecialRole=60000000n,this.gasLimitPausing=60000000n,this.gasLimitFreezing=60000000n,this.gasLimitWiping=60000000n,this.gasLimitEsdtNftCreate=3000000n,this.gasLimitEsdtNftUpdateAttributes=1000000n,this.gasLimitEsdtNftAddQuantity=1000000n,this.gasLimitEsdtNftBurn=1000000n,this.gasLimitStorePerByte=10000n,this.issueCost=50000000000000000n,this.gasLimitEsdtModifyRoyalties=60000000n,this.gasLimitEsdtModifyCreator=60000000n,this.gasLimitEsdtMetadataUpdate=60000000n,this.gasLimitSetNewUris=60000000n,this.gasLimitNftMetadataRecreate=60000000n,this.gasLimitNftChangeToDynamic=60000000n,this.gasLimitUpdateTokenId=60000000n,this.gasLimitRegisterDynamic=60000000n,this.gasLimitStake=5000000n,this.gasLimitUnstake=5000000n,this.gasLimitUnbond=5000000n,this.gasLimitCreateDelegationContract=50000000n,this.gasLimitDelegationOperations=1000000n,this.additionalGasLimitPerValidatorNode=6000000n,this.additionalGasLimitForDelegationOperations=10000000n,this.gasLimitSaveKeyValue=100000n,this.gasLimitPersistPerByte=1000n,this.gasLimitSetGuardian=250000n,this.gasLimitGuardAccount=250000n,this.gasLimitUnguardAccount=250000n,this.gasLimitESDTTransfer=200000n,this.gasLimitESDTNFTTransfer=200000n,this.gasLimitMultiESDTNFTTransfer=200000n,this.gasLimitClaimDeveloperRewards=6000000n,this.gasLimitChangeOwnerAddress=6000000n}}},4934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferTransactionsFactory=void 0;const n=r(7353),i=r(2581),a=r(661),o=r(5132),s=r(476),u=r(3548),c=r(5560),l=r(4059),d=8e5;t.TransferTransactionsFactory=class{constructor(e){this.isGasEstimator(e)?this.gasEstimator=e:(this.config=e.config,this.tokenComputer=new o.TokenComputer,this.tokenTransfersDataBuilder=new c.TokenTransfersDataBuilder)}isGasEstimator(e){return"object"==typeof e&&"function"==typeof e.forEGLDTransfer&&"function"==typeof e.forESDTTransfer&&"function"==typeof e.forESDTNFTTransfer&&"function"==typeof e.forMultiESDTNFTTransfer}isGasEstimatorDefined(){return void 0!==this.gasEstimator}ensureConfigIsDefined(){if(void 0===this.config)throw new i.Err("'config' is not defined")}createTransactionForNativeTokenTransfer(e){this.ensureConfigIsDefined();const t=e.data||new Uint8Array;return new s.Transaction({sender:e.sender.bech32(),receiver:e.receiver.bech32(),chainID:this.config.chainID,gasLimit:this.computeGasForMoveBalance(this.config,t),data:t,value:e.nativeAmount})}createTransactionForESDTTokenTransfer(e){this.ensureConfigIsDefined();const t=e.tokenTransfers.length;if(0===t)throw new i.ErrBadUsage("No token transfer has been provided");if(1===t)return this.createSingleESDTTransferTransaction(e);const{dataParts:r,extraGasForTransfer:n}=this.buildMultiESDTNFTTransferData(e.tokenTransfers,e.receiver);return new l.TransactionBuilder({config:this.config,sender:e.sender,receiver:e.sender,dataParts:r,gasLimit:n,addDataMovementGas:!0}).build()}createTransactionForTransfer(e){const t=e.nativeAmount??0n;let r=e.tokenTransfers?[...e.tokenTransfers]:[];const n=r.length;if(n&&e.data?.length)throw new i.ErrBadUsage("Can't set data field when sending esdt tokens");if(t&&0===n||e.data)return this.createTransactionForNativeTokenTransfer({sender:e.sender,receiver:e.receiver,nativeAmount:t,data:e.data});const a=t?o.TokenTransfer.newFromEgldAmount(t):void 0;return a&&r.push(a),this.createTransactionForESDTTokenTransfer({sender:e.sender,receiver:e.receiver,tokenTransfers:r})}createEGLDTransfer(e){if(!this.isGasEstimatorDefined())throw new i.Err("You are calling a legacy function to create an EGLD transfer transaction. If this is your intent, then instantiate the class using a `GasEstimator`. Or, instead, use the new, recommended `createTransactionForNativeTokenTransfer` method.");const t=e.data?.length()||0,r=this.gasEstimator.forEGLDTransfer(t);return new s.Transaction({nonce:e.nonce,value:e.value,receiver:e.receiver,sender:e.sender,gasPrice:e.gasPrice,gasLimit:e.gasLimit||r,data:e.data,chainID:e.chainID})}createESDTTransfer(e){if(!this.isGasEstimatorDefined())throw new i.Err("You are calling a legacy function to create an ESDT transfer transaction. If this is your intent, then instantiate the class using a `GasEstimator`. Or, instead, use the new, recommended `createTransactionForESDTTokenTransfer` method.");const{argumentsString:t}=(new a.ArgSerializer).valuesToString([a.BytesValue.fromUTF8(e.tokenTransfer.tokenIdentifier),new a.BigUIntValue(e.tokenTransfer.valueOf())]),r=`ESDTTransfer@${t}`,n=new u.TransactionPayload(r),o=n.length()||0,c=this.gasEstimator.forESDTTransfer(o);return new s.Transaction({nonce:e.nonce,receiver:e.receiver,sender:e.sender,gasPrice:e.gasPrice,gasLimit:e.gasLimit||c,data:n,chainID:e.chainID})}createESDTNFTTransfer(e){if(!this.isGasEstimatorDefined())throw new i.Err("You are calling a legacy function to create an ESDTNFT transfer transaction. If this is your intent, then instantiate the class using a `GasEstimator`. Or, instead, use the new, recommended `createTransactionForESDTTokenTransfer` method.");const{argumentsString:t}=(new a.ArgSerializer).valuesToString([a.BytesValue.fromUTF8(e.tokenTransfer.tokenIdentifier),new a.U64Value(e.tokenTransfer.nonce),new a.BigUIntValue(e.tokenTransfer.valueOf()),new a.AddressValue(e.destination)]),r=`ESDTNFTTransfer@${t}`,n=new u.TransactionPayload(r),o=n.length()||0,c=this.gasEstimator.forESDTNFTTransfer(o);return new s.Transaction({nonce:e.nonce,receiver:e.sender,sender:e.sender,gasPrice:e.gasPrice,gasLimit:e.gasLimit||c,data:n,chainID:e.chainID})}createMultiESDTNFTTransfer(e){if(!this.isGasEstimatorDefined())throw new i.Err("You are calling a legacy function to create a MultiESDTNFT transfer transaction. If this is your intent, then instantiate the class using a `GasEstimator`. Or, instead, use the new, recommended `createTransactionForESDTTokenTransfer` method.");const t=[new a.AddressValue(e.destination),new a.U16Value(e.tokenTransfers.length)];for(const r of e.tokenTransfers)t.push(a.BytesValue.fromUTF8(r.tokenIdentifier),new a.U64Value(r.nonce),new a.BigUIntValue(r.valueOf()));const{argumentsString:r}=(new a.ArgSerializer).valuesToString(t),n=`MultiESDTNFTTransfer@${r}`,o=new u.TransactionPayload(n),c=o.length()||0,l=this.gasEstimator.forMultiESDTNFTTransfer(c,e.tokenTransfers.length);return new s.Transaction({nonce:e.nonce,receiver:e.sender,sender:e.sender,gasPrice:e.gasPrice,gasLimit:e.gasLimit||l,data:o,chainID:e.chainID})}createSingleESDTTransferTransaction(e){this.ensureConfigIsDefined();const t=e.tokenTransfers[0],{dataParts:r,extraGasForTransfer:n,receiver:i}=this.buildTransferData(t,e);return new l.TransactionBuilder({config:this.config,sender:e.sender,receiver:i,dataParts:r,gasLimit:n,addDataMovementGas:!0}).build()}buildTransferData(e,t){let r,i=[],a=t.receiver;return this.tokenComputer.isFungible(e.token)?e.token.identifier===n.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER?(({dataParts:i,extraGasForTransfer:r}=this.buildMultiESDTNFTTransferData([e],a)),a=t.sender):({dataParts:i,extraGasForTransfer:r}=this.buildESDTTransferData(e)):(({dataParts:i,extraGasForTransfer:r}=this.buildSingleESDTNFTTransferData(e,a)),a=t.sender),{dataParts:i,extraGasForTransfer:r,receiver:a}}buildMultiESDTNFTTransferData(e,t){return{dataParts:this.tokenTransfersDataBuilder.buildDataPartsForMultiESDTNFTTransfer(t,e),extraGasForTransfer:this.config.gasLimitMultiESDTNFTTransfer*BigInt(e.length)+BigInt(d)}}buildESDTTransferData(e){return{dataParts:this.tokenTransfersDataBuilder.buildDataPartsForESDTTransfer(e),extraGasForTransfer:this.config.gasLimitESDTTransfer+BigInt(1e5)}}buildSingleESDTNFTTransferData(e,t){return{dataParts:this.tokenTransfersDataBuilder.buildDataPartsForSingleESDTNFTTransfer(e,t),extraGasForTransfer:this.config.gasLimitESDTNFTTransfer+BigInt(d)}}computeGasForMoveBalance(e,t){return e.minGasLimit+e.gasLimitPerByte*BigInt(t.length)}}},7058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DelegationTransactionsOutcomeParser=void 0;const n=r(236),i=r(6659),a=r(2581),o=r(3217);t.DelegationTransactionsOutcomeParser=class{constructor(){}parseCreateNewDelegationContract(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),o.findEventsByIdentifier(e,"SCDeploy").map((e=>({contractAddress:this.extractContractAddress(e)})))}ensureTransactionOutcome(e){return"hash"in e?(new i.TransactionsConverter).transactionOnNetworkToOutcome(e):e}ensureNoError(e){for(const t of e)if("signalError"==t.identifier){const e=Buffer.from(t.dataItems[0]?.toString().slice(1)).toString()||"",r=this.decodeTopicAsString(t.topics[1]);throw new a.ErrParseTransactionOutcome(`encountered signalError: ${r} (${Buffer.from(e,"hex").toString()})`)}}extractContractAddress(e){if(!e.topics[0]?.length)return"";const t=Buffer.from(e.topics[0]);return n.Address.fromBuffer(t).bech32()}decodeTopicAsString(e){return Buffer.from(e).toString()}}},4476:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7058),t),i(r(3217),t),i(r(2483),t),i(r(6120),t),i(r(1494),t)},3217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gatherAllEvents=t.findEventsByFirstTopic=t.findEventsByIdentifier=t.findEventsByPredicate=t.SmartContractCallOutcome=t.TransactionOutcome=t.SmartContractResult=t.TransactionLogs=t.TransactionEvent=void 0,t.TransactionEvent=class{constructor(e){this.address="",this.identifier="",this.topics=[],this.dataItems=[],Object.assign(this,e)}};class r{constructor(e){this.address="",this.events=[],Object.assign(this,e)}}t.TransactionLogs=r,t.SmartContractResult=class{constructor(e){this.sender="",this.receiver="",this.data=new Uint8Array,this.logs=new r({}),Object.assign(this,e)}},t.TransactionOutcome=class{constructor(e){this.directSmartContractCallOutcome=new n({}),this.smartContractResults=[],this.logs=new r({}),Object.assign(this,e)}};class n{constructor(e){this.function="",this.returnDataParts=[],this.returnMessage="",this.returnCode="",Object.assign(this,e)}}function i(e,t){return a(e).filter(t)}function a(e){const t=[];t.push(...e.logs.events);for(const r of e.smartContractResults)t.push(...r.logs.events);return t}t.SmartContractCallOutcome=n,t.findEventsByPredicate=i,t.findEventsByIdentifier=function(e,t){return i(e,(e=>e.identifier==t))},t.findEventsByFirstTopic=function(e,t){return i(e,(e=>e.topics[0]?.toString()==t))},t.gatherAllEvents=a},2483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartContractTransactionsOutcomeParser=void 0;const n=r(236),i=r(7353),a=r(2581),o=r(661),s=r(3217);var u;!function(e){e.SCDeploy="SCDeploy",e.SignalError="signalError",e.WriteLog="writeLog"}(u||(u={})),t.SmartContractTransactionsOutcomeParser=class{constructor(e){this.abi=e?.abi,this.legacyResultsParser=e?.legacyResultsParser||new o.ResultsParser}parseDeploy(e){return"transactionOutcome"in e?this.parseDeployGivenTransactionOutcome(e.transactionOutcome):this.parseDeployGivenTransactionOnNetwork(e.transactionOnNetwork)}parseDeployGivenTransactionOutcome(e){const t=e.directSmartContractCallOutcome,r=s.findEventsByIdentifier(e,u.SCDeploy).map((e=>this.parseScDeployEvent(e)));return{returnCode:t.returnCode,returnMessage:t.returnMessage,contracts:r}}parseDeployGivenTransactionOnNetwork(e){const t=this.findDirectSmartContractCallOutcome(e),r=e.logs.events.concat(e.contractResults.items.flatMap((e=>e.logs.events))).filter((e=>e.identifier===u.SCDeploy)).map((e=>this.parseScDeployEvent({topics:e.topics.map((e=>Buffer.from(e.hex(),"hex")))})));return{returnCode:t.returnCode,returnMessage:t.returnMessage,contracts:r}}parseScDeployEvent(e){const t=e.topics[0],r=e.topics[1],i=e.topics[2];return{address:t?.length?new n.Address(t).toBech32():"",ownerAddress:r?.length?new n.Address(r).toBech32():"",codeHash:i}}parseExecute(e){return"transactionOutcome"in e?this.parseExecuteGivenTransactionOutcome(e.transactionOutcome,e.function):this.parseExecuteGivenTransactionOnNetwork(e.transactionOnNetwork,e.function)}parseExecuteGivenTransactionOutcome(e,t){const r=e.directSmartContractCallOutcome;if(!this.abi)return{values:r.returnDataParts,returnCode:r.returnCode,returnMessage:r.returnMessage};if(!(t=t||r.function))throw new a.Err('Function name is not available in the transaction outcome, thus endpoint definition (ABI) cannot be picked (for parsing). Maybe provide the "function" parameter explicitly?');const n=this.abi.getEndpoint(t),i={returnCode:new o.ReturnCode(r.returnCode),returnMessage:r.returnMessage,values:r.returnDataParts.map((e=>Buffer.from(e)))},s=this.legacyResultsParser.parseOutcomeFromUntypedBundle(i,n);return{values:s.values.map((e=>e.valueOf())),returnCode:s.returnCode.toString(),returnMessage:s.returnMessage}}parseExecuteGivenTransactionOnNetwork(e,t){const r=this.findDirectSmartContractCallOutcome(e);if(!this.abi)return{values:r.returnDataParts,returnCode:r.returnCode,returnMessage:r.returnMessage};if(!(t=t||r.function))throw new a.Err('Function name is not available in the transaction, thus endpoint definition (ABI) cannot be picked (for parsing). Maybe provide the "function" parameter explicitly?');const n=new o.ArgSerializer,i=this.abi.getEndpoint(t),s=r.returnDataParts.map((e=>Buffer.from(e))),u=n.buffersToValues(s,i.output);return{returnCode:r.returnCode,returnMessage:r.returnMessage,values:u}}findDirectSmartContractCallOutcome(e){let t=this.findDirectSmartContractCallOutcomeWithinSmartContractResults(e);return t||(t=this.findDirectSmartContractCallOutcomeIfError(e),t||(t=this.findDirectSmartContractCallOutcomeWithinWriteLogEvents(e),t||new s.SmartContractCallOutcome({function:e.function,returnCode:"",returnMessage:"",returnDataParts:[]})))}findDirectSmartContractCallOutcomeWithinSmartContractResults(e){const t=new o.ArgSerializer,r=[];for(const t of e.contractResults.items){const n=t.data.startsWith(i.ARGUMENTS_SEPARATOR),a=t.receiver.bech32()===e.sender.bech32(),o=t.previousHash===e.hash;n&&a&&o&&r.push(t)}if(0===r.length)return null;if(r.length>1)throw new Error(`More than one smart contract result (holding the return data) found for transaction: ${e.hash}`);const[n]=r,[a,u,...c]=t.stringToBuffers(n.data);return new s.SmartContractCallOutcome({function:e.function,returnCode:u?.toString(),returnMessage:n.returnMessage||u?.toString(),returnDataParts:c})}findDirectSmartContractCallOutcomeIfError(e){const t=new o.ArgSerializer,r=u.SignalError,n=[];n.push(...e.logs.events.filter((e=>e.identifier===r)));for(const t of e.contractResults.items)t.previousHash==e.hash&&n.push(...t.logs.events.filter((e=>e.identifier===r)));if(0===n.length)return null;if(n.length>1)throw new Error(`More than one "${r}" event found for transaction: ${e.hash}`);const[i]=n,a=i.dataPayload?.valueOf().toString()||"",c=i.getLastTopic()?.toString(),l=t.stringToBuffers(a),d=l[l.length-1];return new s.SmartContractCallOutcome({function:e.function,returnCode:d?.toString()||r,returnMessage:c||d?.toString()||r,returnDataParts:[]})}findDirectSmartContractCallOutcomeWithinWriteLogEvents(e){const t=new o.ArgSerializer,r=u.WriteLog,n=[];n.push(...e.logs.events.filter((e=>e.identifier===r)));for(const t of e.contractResults.items)t.previousHash==e.hash&&n.push(...t.logs.events.filter((e=>e.identifier===r)));if(0===n.length)return null;if(n.length>1)throw new Error(`More than one "${r}" event found for transaction: ${e.hash}`);const[i]=n,a=i.dataPayload?.valueOf().toString()||"",[c,l,...d]=t.stringToBuffers(a);return new s.SmartContractCallOutcome({function:e.function,returnCode:l?.toString(),returnMessage:l?.toString(),returnDataParts:d})}}},6120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenManagementTransactionsOutcomeParser=void 0;const n=r(236),i=r(6659),a=r(2581),o=r(7553),s=r(3217);t.TokenManagementTransactionsOutcomeParser=class{constructor(){}parseIssueFungible(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"issue").map((e=>({tokenIdentifier:this.extractTokenIdentifier(e)})))}parseIssueNonFungible(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"issueNonFungible").map((e=>({tokenIdentifier:this.extractTokenIdentifier(e)})))}parseIssueSemiFungible(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"issueSemiFungible").map((e=>({tokenIdentifier:this.extractTokenIdentifier(e)})))}parseRegisterMetaEsdt(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"registerMetaESDT").map((e=>({tokenIdentifier:this.extractTokenIdentifier(e)})))}parseRegisterAndSetAllRoles(e){e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events);const t=s.findEventsByIdentifier(e,"registerAndSetAllRoles"),r=s.findEventsByIdentifier(e,"ESDTSetRole");if(t.length!==r.length)throw new a.ErrParseTransactionOutcome("Register Events and Set Role events mismatch. Should have the same number of events.");return t.map(((e,t)=>({tokenIdentifier:this.extractTokenIdentifier(e),roles:r[t].topics.slice(3).map((e=>this.decodeTopicAsString(e)))})))}parseSetBurnRoleGlobally(e){e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events)}parseUnsetBurnRoleGlobally(e){e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events)}parseSetSpecialRole(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTSetRole").map((e=>this.getOutputForSetSpecialRoleEvent(e)))}getOutputForSetSpecialRoleEvent(e){return{userAddress:e.address,tokenIdentifier:this.extractTokenIdentifier(e),roles:e.topics.slice(3).map((e=>this.decodeTopicAsString(e)))}}parseNftCreate(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTNFTCreate").map((e=>this.getOutputForNftCreateEvent(e)))}getOutputForNftCreateEvent(e){return{tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),initialQuantity:this.extractAmount(e)}}parseLocalMint(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTLocalMint").map((e=>this.getOutputForLocalMintEvent(e)))}getOutputForLocalMintEvent(e){return{userAddress:e.address,tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),mintedSupply:this.extractAmount(e)}}parseLocalBurn(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTLocalBurn").map((e=>this.getOutputForLocalBurnEvent(e)))}getOutputForLocalBurnEvent(e){return{userAddress:e.address,tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),burntSupply:this.extractAmount(e)}}parsePause(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTPause").map((e=>({tokenIdentifier:this.extractTokenIdentifier(e)})))}parseUnpause(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTUnPause").map((e=>({tokenIdentifier:this.extractTokenIdentifier(e)})))}parseFreeze(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTFreeze").map((e=>this.getOutputForFreezeEvent(e)))}getOutputForFreezeEvent(e){return{userAddress:this.extractAddress(e),tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),balance:this.extractAmount(e)}}parseUnfreeze(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTUnFreeze").map((e=>this.getOutputForUnfreezeEvent(e)))}getOutputForUnfreezeEvent(e){return{userAddress:this.extractAddress(e),tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),balance:this.extractAmount(e)}}parseWipe(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTWipe").map((e=>this.getOutputForWipeEvent(e)))}getOutputForWipeEvent(e){return{userAddress:this.extractAddress(e),tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),balance:this.extractAmount(e)}}parseUpdateAttributes(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTNFTUpdateAttributes").map((e=>this.getOutputForUpdateAttributesEvent(e)))}getOutputForUpdateAttributesEvent(e){return{tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),attributes:e.topics[3]?e.topics[3]:new Uint8Array}}parseAddQuantity(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTNFTAddQuantity").map((e=>this.getOutputForAddQuantityEvent(e)))}getOutputForAddQuantityEvent(e){return{tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),addedQuantity:this.extractAmount(e)}}parseBurnQuantity(e){return e=this.ensureTransactionOutcome(e),this.ensureNoError(e.logs.events),s.findEventsByIdentifier(e,"ESDTNFTBurn").map((e=>this.getOutputForBurnQuantityEvent(e)))}getOutputForBurnQuantityEvent(e){return{tokenIdentifier:this.extractTokenIdentifier(e),nonce:this.extractNonce(e),burntQuantity:this.extractAmount(e)}}ensureTransactionOutcome(e){return"hash"in e?(new i.TransactionsConverter).transactionOnNetworkToOutcome(e):e}ensureNoError(e){for(const t of e)if("signalError"==t.identifier){const e=Buffer.from(t.dataItems[0]?.toString().slice(1)).toString()||"",r=this.decodeTopicAsString(t.topics[1]);throw new a.ErrParseTransactionOutcome(`encountered signalError: ${r} (${Buffer.from(e,"hex").toString()})`)}}extractTokenIdentifier(e){return e.topics[0]?.length?this.decodeTopicAsString(e.topics[0]):""}extractNonce(e){if(!e.topics[1]?.length)return BigInt(0);const t=Buffer.from(e.topics[1]);return BigInt(o.bufferToBigInt(t).toFixed(0))}extractAmount(e){if(!e.topics[2]?.length)return BigInt(0);const t=Buffer.from(e.topics[2]);return BigInt(o.bufferToBigInt(t).toFixed(0))}extractAddress(e){if(!e.topics[3]?.length)return"";const t=Buffer.from(e.topics[3]);return n.Address.fromBuffer(t).bech32()}decodeTopicAsString(e){return Buffer.from(e).toString()}}},1494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionEventsParser=void 0;const n=r(661);t.TransactionEventsParser=class{constructor(e){this.legacyResultsParser=new n.ResultsParser,this.abi=e.abi,this.firstTopicIsIdentifier=e.firstTopicIsIdentifier??!0}parseEvents(e){const t=[];for(const r of e.events){const e=this.parseEvent({event:r});t.push(e)}return t}parseEvent(e){const t=e.event.topics.map((e=>Buffer.from(e))),r=this.firstTopicIsIdentifier?t[0]?.toString():e.event.identifier;this.firstTopicIsIdentifier&&t.shift();const n=e.event.dataItems.map((e=>Buffer.from(e))),i=this.abi.getEvent(r);return this.legacyResultsParser.doParseEvent({topics:t,dataItems:n,eventDefinition:i})}}},9161:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addressToHex=t.bigIntToHex=t.byteArrayToHex=t.boolToHex=t.utf8ToHex=t.zeroPadStringIfOddLength=t.isPaddedHex=t.numberToPaddedHex=void 0;const s=o(r(1594)),u=r(236),c=a(r(7553));function l(e){return(e=e||"").length%2==1?"0"+e:e}function d(e){return l(Buffer.from(e).toString("hex"))}t.numberToPaddedHex=function(e){let t;return t="bigint"==typeof e||"number"==typeof e?e:new s.default(e),l(t.toString(16))},t.isPaddedHex=function(e){e=e||"";let t=Buffer.from(e,"hex").toString("hex");return e.toUpperCase()==t.toUpperCase()},t.zeroPadStringIfOddLength=l,t.utf8ToHex=d,t.boolToHex=function(e){return d(e.toString())},t.byteArrayToHex=function(e){return l(Buffer.from(e).toString("hex"))},t.bigIntToHex=function(e){return 0==e?"":c.getHexMagnitudeOfBigInt(e)},t.addressToHex=function(e){return u.Address.fromBech32(e.toString()).pubkey().toString("hex")}},1069:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getAxios=t.isEmpty=t.guardEmpty=t.guardNotEmpty=t.guardLength=t.guardSameLength=t.guardValueIsSetWithMessage=t.guardValueIsSet=t.guardTrue=void 0;const o=a(r(2581));function s(e,t){if(null==t||void 0===t)throw new o.ErrInvariantFailed(e)}function u(e){return e.isEmpty?e.isEmpty():0===e.length}t.guardTrue=function(e,t){if(!e)throw new o.ErrInvariantFailed(`[<${t}>] isn't true`)},t.guardValueIsSet=function(e,t){s(`${e} isn't set (null or undefined)`,t)},t.guardValueIsSetWithMessage=s,t.guardSameLength=function(e,t){if(t=t||[],(e=e||[]).length!=t.length)throw new o.ErrInvariantFailed("arrays do not have the same length")},t.guardLength=function(e,t){let r=e.length||0;if(r!=t)throw new o.ErrInvariantFailed(`wrong length, expected: ${t}, actual: ${r}`)},t.guardNotEmpty=function(e,t){if(u(e))throw new o.ErrInvariantFailed(`${t} is empty`)},t.guardEmpty=function(e,t){if(!u(e))throw new o.ErrInvariantFailed(`${t} is not empty`)},t.isEmpty=u,t.getAxios=function(){try{return r(6425)}catch(e){throw new Error("axios is required but not installed. Please install axios to make network requests.")}}},7979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guardLength=void 0;const n=r(2581);t.guardLength=function(e,t){let r=e.length||0;if(r!=t)throw new n.ErrInvariantFailed(`wrong length, expected: ${t}, actual: ${r}`)}},8717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PubKeyEncCipher=t.PubKeyEncNonceLength=t.PubKeyEncVersion=t.KeyDerivationFunction=t.DigestAlgorithm=t.CipherAlgorithm=void 0,t.CipherAlgorithm="aes-128-ctr",t.DigestAlgorithm="sha256",t.KeyDerivationFunction="scrypt",t.PubKeyEncVersion=1,t.PubKeyEncNonceLength=24,t.PubKeyEncCipher="x25519-xsalsa20-poly1305"},4180:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decryptor=void 0;const i=n(r(4197)),a=r(2581),o=r(8717);t.Decryptor=class{static decrypt(e,t){const r=e.kdfparams,n=Buffer.from(e.salt,"hex"),s=Buffer.from(e.iv,"hex"),u=Buffer.from(e.ciphertext,"hex"),c=r.generateDerivedKey(Buffer.from(t),n),l=c.slice(0,16),d=c.slice(16,32),f=i.default.createHmac(o.DigestAlgorithm,d).update(u).digest(),h=e.mac;if(f.toString("hex")!==h)throw new a.Err("MAC mismatch, possibly wrong password");const p=i.default.createDecipheriv(e.cipher,l,s);return Buffer.concat([p.update(u),p.final()])}}},5549:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScryptKeyDerivationParams=void 0;const i=n(r(1582));t.ScryptKeyDerivationParams=class{constructor(e=4096,t=8,r=1,n=32){this.n=4096,this.r=8,this.p=1,this.dklen=32,this.n=e,this.r=t,this.p=r,this.dklen=n}generateDerivedKey(e,t){return i.default(e,t,this.n,this.r,this.p,this.dklen)}}},3144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncryptedData=void 0;const n=r(5549);class i{constructor(e){this.id=e.id,this.version=e.version,this.ciphertext=e.ciphertext,this.iv=e.iv,this.cipher=e.cipher,this.kdf=e.kdf,this.kdfparams=e.kdfparams,this.mac=e.mac,this.salt=e.salt}toJSON(){return{version:this.version,id:this.id,crypto:{ciphertext:this.ciphertext,cipherparams:{iv:this.iv},cipher:this.cipher,kdf:this.kdf,kdfparams:{dklen:this.kdfparams.dklen,salt:this.salt,n:this.kdfparams.n,r:this.kdfparams.r,p:this.kdfparams.p},mac:this.mac}}}static fromJSON(e){return new i({version:e.version,id:e.id,ciphertext:e.crypto.ciphertext,iv:e.crypto.cipherparams.iv,cipher:e.crypto.cipher,kdf:e.crypto.kdf,kdfparams:new n.ScryptKeyDerivationParams(e.crypto.kdfparams.n,e.crypto.kdfparams.r,e.crypto.kdfparams.p,e.crypto.kdfparams.dklen),salt:e.crypto.kdfparams.salt,mac:e.crypto.mac})}}t.EncryptedData=i},44:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Encryptor=t.EncryptorVersion=void 0;const i=n(r(4197)),a=r(8717),o=r(5549),s=r(3144),u=r(1434);var c;!function(e){e[e.V4=4]="V4"}(c=t.EncryptorVersion||(t.EncryptorVersion={})),t.Encryptor=class{static encrypt(e,t,r=new u.Randomness){const n=new o.ScryptKeyDerivationParams,l=n.generateDerivedKey(Buffer.from(t),r.salt),d=l.slice(0,16),f=l.slice(16,32),h=i.default.createCipheriv(a.CipherAlgorithm,d,r.iv),p=Buffer.concat([h.update(e),h.final()]),g=i.default.createHmac(a.DigestAlgorithm,f).update(p).digest();return new s.EncryptedData({version:c.V4,id:r.id,ciphertext:p.toString("hex"),iv:r.iv.toString("hex"),cipher:a.CipherAlgorithm,kdf:a.KeyDerivationFunction,kdfparams:n,mac:g.toString("hex"),salt:r.salt.toString("hex")})}}},9496:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8717),t),i(r(44),t),i(r(4180),t),i(r(7622),t),i(r(866),t),i(r(3144),t),i(r(1434),t)},866:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PubkeyDecryptor=void 0;const i=n(r(4197)),a=n(r(8947)),o=n(r(8385)),s=r(6801);t.PubkeyDecryptor=class{static decrypt(e,t){const r=Buffer.from(e.ciphertext,"hex"),n=Buffer.from(e.identities.ephemeralPubKey,"hex"),u=Buffer.from(e.identities.originatorPubKey,"hex"),c=new s.UserPublicKey(u),l=i.default.createHash("sha256").update(Buffer.concat([r,n])).digest();if(!c.verify(l,Buffer.from(e.mac,"hex")))throw new Error("Invalid authentication for encrypted message originator");const d=Buffer.from(e.nonce,"hex"),f=o.default.convertSecretKey(t.valueOf()),h=o.default.convertPublicKey(n);if(null===h)throw new Error("Could not convert ed25519 public key to x25519");const p=a.default.box.open(r,d,h,f);if(null===p)throw new Error("Failed authentication for given ciphertext");return Buffer.from(p)}}},7622:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PubkeyEncryptor=void 0;const i=n(r(4197)),a=n(r(8385)),o=n(r(8947)),s=r(8717),u=r(3970);t.PubkeyEncryptor=class{static encrypt(e,t,r){const n=o.default.sign.keyPair(),c=a.default.convertPublicKey(t.valueOf());if(null===c)throw new Error("Could not convert ed25519 public key to x25519");const l=a.default.convertSecretKey(n.secretKey),d=i.default.createHash("sha256").update(e).digest().slice(0,s.PubKeyEncNonceLength/2),f=o.default.randomBytes(s.PubKeyEncNonceLength/2),h=Buffer.concat([d,f]),p=o.default.box(e,h,c,l),g=i.default.createHash("sha256").update(Buffer.concat([p,n.publicKey])).digest(),m=r.sign(g);return new u.X25519EncryptedData({version:s.PubKeyEncVersion,nonce:Buffer.from(h).toString("hex"),cipher:s.PubKeyEncCipher,ciphertext:Buffer.from(p).toString("hex"),mac:m.toString("hex"),identities:{recipient:t.hex(),ephemeralPubKey:Buffer.from(n.publicKey).toString("hex"),originatorPubKey:r.generatePublicKey().hex()}})}}},1434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Randomness=void 0;const n=r(5111),i=r(611),a=r(4197);t.Randomness=class{constructor(e){this.salt=e?.salt||Buffer.from(n.utils.randomBytes(32)),this.iv=e?.iv||Buffer.from(n.utils.randomBytes(16)),this.id=e?.id||i.v4({random:a.randomBytes(16)})}}},3970:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X25519EncryptedData=void 0;class r{constructor(e){this.nonce=e.nonce,this.version=e.version,this.cipher=e.cipher,this.ciphertext=e.ciphertext,this.mac=e.mac,this.identities=e.identities}toJSON(){return{version:this.version,nonce:this.nonce,identities:this.identities,crypto:{ciphertext:this.ciphertext,cipher:this.cipher,mac:this.mac}}}static fromJSON(e){return new r({nonce:e.nonce,version:e.version,ciphertext:e.crypto.ciphertext,cipher:e.crypto.cipher,mac:e.crypto.mac,identities:e.identities})}}t.X25519EncryptedData=r},4160:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(9496),t),i(r(6666),t),i(r(442),t),i(r(6801),t),i(r(7427),t),i(r(8791),t),i(r(8056),t),i(r(450),t),i(r(8476),t)},6666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const n=r(7680),i=r(2581),a=r(6801);let o;function s(){if(!o)try{o=r(749)}catch(e){throw new Error("bip39 is required but not installed. Please install 'bip39' to use mnemonic features.")}}class u{constructor(e){this.text=e}static generate(){s();const e=o.generateMnemonic(256);return new u(e)}static fromString(e){return s(),e=e.trim(),u.assertTextIsValid(e),new u(e)}static fromEntropy(e){s();try{const t=o.entropyToMnemonic(Buffer.from(e));return new u(t)}catch(e){throw new i.ErrBadMnemonicEntropy(e)}}static assertTextIsValid(e){if(s(),!o.validateMnemonic(e))throw new i.ErrWrongMnemonic}deriveKey(e=0,t=""){s();let r=o.mnemonicToSeedSync(this.text,t),i=`m/44'/508'/0'/0'/${e}'`,u=n.derivePath(i,r.toString("hex")).key;return new a.UserSecretKey(u)}getWords(){return this.text.split(" ")}getEntropy(){s();const e=o.mnemonicToEntropy(this.text);return Buffer.from(e,"hex")}toString(){return this.text}}t.Mnemonic=u},442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.parseValidatorKeys=t.parseValidatorKey=t.parseUserKeys=t.parseUserKey=void 0;const n=r(2581),i=r(6801),a=r(450);function o(e){return u(e,i.USER_SEED_LENGTH+i.USER_PUBKEY_LENGTH).map((e=>new i.UserSecretKey(e.slice(0,i.USER_SEED_LENGTH))))}function s(e){return u(e,a.VALIDATOR_SECRETKEY_LENGTH).map((e=>new a.ValidatorSecretKey(e)))}function u(e,t){const r=e.split(/\r?\n/).map((e=>e.trim())).filter((e=>e.length>0)),i=[];let a=[];for(const e of r)if(e.startsWith("-----BEGIN"))a=[];else if(e.startsWith("-----END")){const e=a.join(""),r=Buffer.from(e,"base64").toString(),o=Buffer.from(r,"hex");if(o.length!=t)throw new n.ErrBadPEM(`incorrect key length: expected ${t}, found ${o.length}`);i.push(o),a=[]}else a.push(e);if(0!=a.length)throw new n.ErrBadPEM("incorrect file structure");return i}t.parseUserKey=function(e,t=0){return o(e)[t]},t.parseUserKeys=o,t.parseValidatorKey=function(e,t=0){return s(e)[t]},t.parseValidatorKeys=s,t.parse=u},6801:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UserPublicKey=t.UserSecretKey=t.USER_PUBKEY_LENGTH=t.USER_SEED_LENGTH=void 0;const o=a(r(5111)),s=r(102),u=r(236),c=r(7979),l=r(442);t.USER_SEED_LENGTH=32,t.USER_PUBKEY_LENGTH=32,o.utils.sha512Sync=(...e)=>s.sha512(o.utils.concatBytes(...e));class d{constructor(e){c.guardLength(e,t.USER_SEED_LENGTH),this.buffer=Buffer.from(e)}static fromString(e){c.guardLength(e,2*t.USER_SEED_LENGTH);const r=Buffer.from(e,"hex");return new d(r)}static fromPem(e,t=0){return l.parseUserKey(e,t)}generatePublicKey(){const e=o.sync.getPublicKey(new Uint8Array(this.buffer));return new f(e)}sign(e){const t=o.sync.sign(new Uint8Array(e),new Uint8Array(this.buffer));return Buffer.from(t)}hex(){return this.buffer.toString("hex")}valueOf(){return this.buffer}}t.UserSecretKey=d;class f{constructor(e){c.guardLength(e,t.USER_PUBKEY_LENGTH),this.buffer=Buffer.from(e)}verify(e,t){try{return o.sync.verify(new Uint8Array(t),new Uint8Array(e),new Uint8Array(this.buffer))}catch(e){return console.error(e),!1}}hex(){return this.buffer.toString("hex")}toAddress(e){return new u.Address(this.buffer,e)}valueOf(){return this.buffer}}t.UserPublicKey=f},7427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserSigner=void 0;const n=r(236),i=r(2581),a=r(6801),o=r(8056);class s{constructor(e){this.secretKey=e}static fromWallet(e,t,r){const n=o.UserWallet.decrypt(e,t,r);return new s(n)}static fromPem(e,t=0){let r=a.UserSecretKey.fromPem(e,t);return new s(r)}async sign(e){try{return this.secretKey.sign(e)}catch(e){throw new i.ErrSignerCannotSign(e)}}getAddress(e){const t=this.secretKey.generatePublicKey().toAddress(e).bech32();return n.Address.newFromBech32(t)}}t.UserSigner=s},8791:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserVerifier=void 0;const n=r(6801);class i{constructor(e){this.publicKey=e}static fromAddress(e){let t=new n.UserPublicKey(e.pubkey());return new i(t)}verify(e,t){return this.publicKey.verify(e,t)}}t.UserVerifier=i},8056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserWallet=t.UserWalletKind=void 0;const n=r(2581),i=r(9496),a=r(5549),o=r(6666),s=r(6801);var u;!function(e){e.SecretKey="secretKey",e.Mnemonic="mnemonic"}(u=t.UserWalletKind||(t.UserWalletKind={}));class c{constructor({kind:e,encryptedData:t,publicKeyWhenKindIsSecretKey:r}){this.kind=e,this.encryptedData=t,this.publicKeyWhenKindIsSecretKey=r}static fromSecretKey({secretKey:e,password:t,randomness:r}){r=r||new i.Randomness;const n=e.generatePublicKey(),a=Buffer.concat([e.valueOf(),n.valueOf()]),o=i.Encryptor.encrypt(a,t,r);return new c({kind:u.SecretKey,encryptedData:o,publicKeyWhenKindIsSecretKey:n})}static fromMnemonic({mnemonic:e,password:t,randomness:r}){r=r||new i.Randomness,o.Mnemonic.assertTextIsValid(e);const n=Buffer.from(e),a=i.Encryptor.encrypt(n,t,r);return new c({kind:u.Mnemonic,encryptedData:a})}static decrypt(e,t,r){const i=e.kind||u.SecretKey;if(i==u.SecretKey){if(void 0!==r)throw new n.Err("addressIndex must not be provided when kind == 'secretKey'");return c.decryptSecretKey(e,t)}if(i==u.Mnemonic)return this.decryptMnemonic(e,t).deriveKey(r||0);throw new n.Err(`Unknown kind: ${i}`)}static decryptSecretKey(e,t){const r=e.kind;if(r&&r!==u.SecretKey)throw new n.Err(`Expected keystore kind to be ${u.SecretKey}, but it was ${r}.`);const a=c.edFromJSON(e);let o=i.Decryptor.decrypt(a,t);for(;o.length<32;){let e=Buffer.from([0]);o=Buffer.concat([e,o])}const l=o.slice(0,32);return new s.UserSecretKey(l)}static decryptMnemonic(e,t){if(e.kind!=u.Mnemonic)throw new n.Err(`Expected keystore kind to be ${u.Mnemonic}, but it was ${e.kind}.`);const r=c.edFromJSON(e),a=i.Decryptor.decrypt(r,t);return o.Mnemonic.fromString(a.toString())}static edFromJSON(e){return new i.EncryptedData({version:e.version,id:e.id,cipher:e.crypto.cipher,ciphertext:e.crypto.ciphertext,iv:e.crypto.cipherparams.iv,kdf:e.crypto.kdf,kdfparams:new a.ScryptKeyDerivationParams(e.crypto.kdfparams.n,e.crypto.kdfparams.r,e.crypto.kdfparams.p,e.crypto.kdfparams.dklen),salt:e.crypto.kdfparams.salt,mac:e.crypto.mac})}toJSON(e){return this.kind==u.SecretKey?this.toJSONWhenKindIsSecretKey(e):this.toJSONWhenKindIsMnemonic()}toJSONWhenKindIsSecretKey(e){if(!this.publicKeyWhenKindIsSecretKey)throw new n.Err("Public key isn't available");const t=this.getCryptoSectionAsJSON();return{version:this.encryptedData.version,kind:this.kind,id:this.encryptedData.id,address:this.publicKeyWhenKindIsSecretKey.hex(),bech32:this.publicKeyWhenKindIsSecretKey.toAddress(e).toString(),crypto:t}}getCryptoSectionAsJSON(){return{ciphertext:this.encryptedData.ciphertext,cipherparams:{iv:this.encryptedData.iv},cipher:i.CipherAlgorithm,kdf:i.KeyDerivationFunction,kdfparams:{dklen:this.encryptedData.kdfparams.dklen,salt:this.encryptedData.salt,n:this.encryptedData.kdfparams.n,r:this.encryptedData.kdfparams.r,p:this.encryptedData.kdfparams.p},mac:this.encryptedData.mac}}toJSONWhenKindIsMnemonic(){const e=this.getCryptoSectionAsJSON();return{version:this.encryptedData.version,id:this.encryptedData.id,kind:this.kind,crypto:e}}}t.UserWallet=c},450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidatorPublicKey=t.ValidatorSecretKey=t.BLS=t.VALIDATOR_PUBKEY_LENGTH=t.VALIDATOR_SECRETKEY_LENGTH=void 0;const n=r(2581),i=r(7979),a=r(442);t.VALIDATOR_SECRETKEY_LENGTH=32,t.VALIDATOR_PUBKEY_LENGTH=96;class o{static loadBLSModule(){if(!o.bls)try{o.bls=r(2989)}catch(e){throw new Error("BLS module is required but not installed. Please install '@multiversx/sdk-bls-wasm'.")}}static async initIfNecessary(){o.isInitialized||(o.loadBLSModule(),await o.bls.init(o.bls.BLS12_381),o.isInitialized=!0)}static guardInitialized(){if(!o.isInitialized)throw new n.ErrInvariantFailed("BLS modules are not initalized. Make sure that 'await BLS.initIfNecessary()' is called correctly.")}}t.BLS=o,o.isInitialized=!1,t.ValidatorSecretKey=class{constructor(e){o.guardInitialized(),i.guardLength(e,t.VALIDATOR_SECRETKEY_LENGTH),this.secretKey=new o.bls.SecretKey,this.secretKey.setLittleEndian(Uint8Array.from(e)),this.publicKey=this.secretKey.getPublicKey()}static fromPem(e,t=0){return a.parseValidatorKey(e,t)}generatePublicKey(){let e=Buffer.from(this.publicKey.serialize());return new s(e)}sign(e){let t=this.secretKey.sign(e);return Buffer.from(t.serialize())}hex(){return this.valueOf().toString("hex")}valueOf(){return Buffer.from(this.secretKey.serialize())}};class s{constructor(e){i.guardLength(e,t.VALIDATOR_PUBKEY_LENGTH),this.buffer=Buffer.from(e)}hex(){return this.buffer.toString("hex")}valueOf(){return this.buffer}}t.ValidatorPublicKey=s},8476:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidatorSigner=void 0;const n=r(2581),i=r(450);t.ValidatorSigner=class{async signUsingPem(e,t=0,r){await i.BLS.initIfNecessary();try{i.ValidatorSecretKey.fromPem(e,t).sign(r)}catch(e){throw new n.ErrSignerCannotSign(e)}}}},84:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GuardianData=t.AccountOnNetwork=void 0;const i=n(r(1594)),a=r(1466);class o{constructor(e){this.address=new a.Address(""),this.nonce=0,this.balance=new i.default(0),this.code="",this.userName="",Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new a.Address(e.address||""),t.nonce=Number(e.nonce||0),t.balance=new i.default(e.balance||0),t.code=e.code||"",t.userName=e.username||"",t}}t.AccountOnNetwork=o;class s{constructor(e){this.guarded=!1,Object.assign(this,e)}static fromHttpResponse(e){const t=new s;return t.guarded=e.guarded||!1,e.activeGuardian&&(t.activeGuardian=u.fromHttpResponse(e.activeGuardian)),e.pendingGuardian&&(t.pendingGuardian=u.fromHttpResponse(e.pendingGuardian)),t}getCurrentGuardianAddress(){var e;if(this.guarded)return null===(e=this.activeGuardian)||void 0===e?void 0:e.address}}t.GuardianData=s;class u{constructor(){this.activationEpoch=0,this.address=new a.Address(""),this.serviceUID=""}static fromHttpResponse(e){const t=new u;return t.activationEpoch=Number(e.activationEpoch||0),t.address=new a.Address(e.address||""),t.serviceUID=e.serviceUID||"",t}}},6482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPagination=t.defaultAxiosConfig=void 0;const n=r(1013)({constructorAction:"ignore"});t.defaultAxiosConfig={timeout:5e3,transformResponse:[function(e){return n.parse(e)}]},t.defaultPagination={from:0,size:100}},4027:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownClientName=t.BaseUserAgent=t.EsdtContractAddress=t.MaxUint64AsBigNumber=void 0;const i=n(r(1594)),a=r(1466);t.MaxUint64AsBigNumber=new i.default("18446744073709551615"),t.EsdtContractAddress=new a.Address("erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"),t.BaseUserAgent="multiversx-sdk",t.UnknownClientName="unknown"},8419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryRequest=void 0,t.ContractQueryRequest=class{constructor(e){this.query=e}toHttpRequest(){var e;let t={},r=this.query;return t.scAddress=r.address.bech32(),t.caller=(null===(e=r.caller)||void 0===e?void 0:e.bech32())?r.caller.bech32():void 0,t.funcName=r.func.toString(),t.value=r.value?r.value.toString():void 0,t.args=r.getEncodedArguments(),t}}},3767:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryResponse=void 0;const i=n(r(1594)),a=r(4027);class o{constructor(e){this.returnData=(null==e?void 0:e.returnData)||[],this.returnCode=(null==e?void 0:e.returnCode)||"",this.returnMessage=(null==e?void 0:e.returnMessage)||"",this.gasUsed=(null==e?void 0:e.gasUsed)||0}static fromHttpResponse(e){let t=e.returnData||e.ReturnData,r=e.returnCode||e.ReturnCode,n=e.returnMessage||e.ReturnMessage,s=new i.default(e.gasRemaining||e.GasRemaining||0),u=a.MaxUint64AsBigNumber.minus(s).toNumber();return new o({returnData:t,returnCode:r,returnMessage:n,gasUsed:u})}getReturnDataParts(){return this.returnData.map((e=>Buffer.from(e||"","base64")))}toJSON(){return{returnData:this.returnData,returnCode:this.returnCode,returnMessage:this.returnMessage,gasUsed:this.gasUsed.valueOf()}}}t.ContractQueryResponse=o},2286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractResultItem=t.ContractResults=void 0;const n=r(9857),i=r(1466);class a{constructor(e){this.items=e,this.items.sort((function(e,t){return e.nonce.valueOf()-t.nonce.valueOf()}))}static fromProxyHttpResponse(e){let t=e.map((e=>o.fromProxyHttpResponse(e)));return new a(t)}static fromApiHttpResponse(e){let t=e.map((e=>o.fromApiHttpResponse(e)));return new a(t)}}t.ContractResults=a;class o{constructor(e){this.hash="",this.nonce=0,this.value="",this.receiver=new i.Address(""),this.sender=new i.Address(""),this.data="",this.previousHash="",this.originalHash="",this.gasLimit=0,this.gasPrice=0,this.callType=0,this.returnMessage="",this.logs=new n.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e){return o.fromHttpResponse(e)}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.data=Buffer.from(t.data,"base64").toString(),t.callType=Number(t.callType),t}static fromHttpResponse(e){let t=new o;return t.hash=e.hash,t.nonce=Number(e.nonce||0),t.value=(e.value||0).toString(),t.receiver=new i.Address(e.receiver),t.sender=new i.Address(e.sender),t.previousHash=e.prevTxHash,t.originalHash=e.originalTxHash,t.gasLimit=Number(e.gasLimit||0),t.gasPrice=Number(e.gasPrice||0),t.data=e.data||"",t.callType=e.callType,t.returnMessage=e.returnMessage,t.logs=n.TransactionLogs.fromHttpResponse(e.logs||{}),t}}t.ContractResultItem=o},2591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrContractQuery=t.ErrNetworkProvider=t.ErrUnexpectedCondition=t.Err=void 0;class r extends Error{constructor(e,t){super(e),this.inner=void 0,this.inner=t}}t.Err=r,t.ErrUnexpectedCondition=class extends r{constructor(e){super(`Unexpected condition: [${e}]`)}},t.ErrNetworkProvider=class extends r{constructor(e,t,r){super(`Request error on url [${e}]: [${t}]`,r)}},t.ErrContractQuery=class extends r{constructor(e){super(e.message.replace("executeQuery:",""))}}},3802:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkConfig=void 0;const i=n(r(1594));class a{constructor(){this.ChainID="T",this.GasPerDataByte=1500,this.TopUpFactor=0,this.RoundDuration=0,this.RoundsPerEpoch=0,this.TopUpRewardsGradientPoint=new i.default(0),this.MinGasLimit=5e4,this.MinGasPrice=1e9,this.GasPriceModifier=1,this.MinTransactionVersion=1}static fromHttpResponse(e){let t=new a;return t.ChainID=String(e.erd_chain_id),t.GasPerDataByte=Number(e.erd_gas_per_data_byte),t.TopUpFactor=Number(e.erd_top_up_factor),t.RoundDuration=Number(e.erd_round_duration),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t.TopUpRewardsGradientPoint=new i.default(e.erd_rewards_top_up_gradient_point),t.MinGasLimit=Number(e.erd_min_gas_limit),t.MinGasPrice=Number(e.erd_min_gas_price),t.MinTransactionVersion=Number(e.erd_min_transaction_version),t.GasPriceModifier=Number(e.erd_gas_price_modifier),t}}t.NetworkConfig=a},9358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkStatus=void 0;class r{constructor(){this.CurrentRound=0,this.EpochNumber=0,this.HighestFinalNonce=0,this.Nonce=0,this.NonceAtEpochStart=0,this.NoncesPassedInCurrentEpoch=0,this.RoundAtEpochStart=0,this.RoundsPassedInCurrentEpoch=0,this.RoundsPerEpoch=0}static fromHttpResponse(e){let t=new r;return t.CurrentRound=Number(e.erd_current_round),t.EpochNumber=Number(e.erd_epoch_number),t.HighestFinalNonce=Number(e.erd_highest_final_nonce),t.Nonce=Number(e.erd_nonce),t.NonceAtEpochStart=Number(e.erd_nonce_at_epoch_start),t.NoncesPassedInCurrentEpoch=Number(e.erd_nonces_passed_in_current_epoch),t.RoundAtEpochStart=Number(e.erd_round_at_epoch_start),t.RoundsPassedInCurrentEpoch=Number(e.erd_rounds_passed_in_current_epoch),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t}}t.NetworkStatus=r},1466:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadStringIfOddLength=t.isPaddedHex=t.numberToPaddedHex=t.Nonce=t.Address=void 0;const o=a(r(9674));class s{constructor(e){this.value=e}static fromPubkey(e){let t=o.toWords(e),r=o.encode("erd",t);return new s(r)}bech32(){return this.value}toString(){return this.bech32()}}function u(e){return c(e.toString(16))}function c(e){return(e=e||"").length%2==1?"0"+e:e}t.Address=s,t.Nonce=class{constructor(e){this.value=e}valueOf(){return this.value}hex(){return u(this.value)}},t.numberToPaddedHex=u,t.isPaddedHex=function(e){e=e||"";let t=Buffer.from(e,"hex").toString("hex");return e.toUpperCase()==t.toUpperCase()},t.zeroPadStringIfOddLength=c},8403:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyNetworkProvider=void 0;const a=i(r(6425)),o=r(84),s=r(6482),u=r(4027),c=r(8419),l=r(3767),d=r(2591),f=r(3802),h=r(9358),p=r(8721),g=r(3962),m=r(6389),y=r(6188),b=r(1002);t.ProxyNetworkProvider=class{constructor(e,t){this.userAgentPrefix=`${u.BaseUserAgent}/proxy`,this.url=e,this.config=Object.assign(Object.assign({},s.defaultAxiosConfig),t),b.extendUserAgentIfBackend(this.userAgentPrefix,this.config)}getNetworkConfig(){return n(this,void 0,void 0,(function*(){let e=yield this.doGetGeneric("network/config");return f.NetworkConfig.fromHttpResponse(e.config)}))}getNetworkStatus(){return n(this,void 0,void 0,(function*(){let e=yield this.doGetGeneric("network/status/4294967295");return h.NetworkStatus.fromHttpResponse(e.status)}))}getNetworkStakeStatistics(){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}getNetworkGeneralStatistics(){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}getAccount(e){return n(this,void 0,void 0,(function*(){let t=yield this.doGetGeneric(`address/${e.bech32()}`);return o.AccountOnNetwork.fromHttpResponse(t.account)}))}getGuardianData(e){return n(this,void 0,void 0,(function*(){const t=yield this.doGetGeneric(`address/${e.bech32()}/guardian-data`);return o.GuardianData.fromHttpResponse(t.guardianData)}))}getFungibleTokensOfAccount(e,t){return n(this,void 0,void 0,(function*(){let t=`address/${e.bech32()}/esdt`,r=yield this.doGetGeneric(t),n=Object.values(r.esdts).filter((e=>!e.nonce)).map((e=>g.FungibleTokenOfAccountOnNetwork.fromHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}))}getNonFungibleTokensOfAccount(e,t){return n(this,void 0,void 0,(function*(){let t=`address/${e.bech32()}/esdt`,r=yield this.doGetGeneric(t),n=Object.values(r.esdts).filter((e=>e.nonce>=0)).map((e=>g.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}))}getFungibleTokenOfAccount(e,t){return n(this,void 0,void 0,(function*(){let r=yield this.doGetGeneric(`address/${e.bech32()}/esdt/${t}`);return g.FungibleTokenOfAccountOnNetwork.fromHttpResponse(r.tokenData)}))}getNonFungibleTokenOfAccount(e,t,r){return n(this,void 0,void 0,(function*(){let n=yield this.doGetGeneric(`address/${e.bech32()}/nft/${t}/nonce/${r.valueOf()}`);return g.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponseByNonce(n.tokenData)}))}getTransaction(e,t){return n(this,void 0,void 0,(function*(){const t=this.buildUrlWithQueryParameters(`transaction/${e}`,{withResults:"true"}),[r,n]=yield Promise.all([this.doGetGeneric(t),this.getTransactionStatus(e)]);return m.TransactionOnNetwork.fromProxyHttpResponse(e,r.transaction,n)}))}getTransactionStatus(e){return n(this,void 0,void 0,(function*(){let t=yield this.doGetGeneric(`transaction/${e}/process-status`);return new y.TransactionStatus(t.status)}))}sendTransaction(e){return n(this,void 0,void 0,(function*(){const t=m.prepareTransactionForBroadcasting(e);return(yield this.doPostGeneric("transaction/send",t)).txHash}))}sendTransactions(e){return n(this,void 0,void 0,(function*(){const t=e.map((e=>m.prepareTransactionForBroadcasting(e))),r=yield this.doPostGeneric("transaction/send-multiple",t),n=Array(e.length).fill(null);for(let t=0;t<e.length;t++)n[t]=r.txsHashes[t.toString()]||null;return n}))}simulateTransaction(e){return n(this,void 0,void 0,(function*(){const t=m.prepareTransactionForBroadcasting(e);return yield this.doPostGeneric("transaction/simulate",t)}))}queryContract(e){return n(this,void 0,void 0,(function*(){try{let t=new c.ContractQueryRequest(e).toHttpRequest(),r=yield this.doPostGeneric("vm-values/query",t);return l.ContractQueryResponse.fromHttpResponse(r.data)}catch(e){throw new d.ErrContractQuery(e)}}))}getDefinitionOfFungibleToken(e){return n(this,void 0,void 0,(function*(){let t=yield this.getTokenProperties(e);return p.DefinitionOfFungibleTokenOnNetwork.fromResponseOfGetTokenProperties(e,t)}))}getTokenProperties(e){return n(this,void 0,void 0,(function*(){let t=Buffer.from(e).toString("hex");return(yield this.queryContract({address:u.EsdtContractAddress,func:"getTokenProperties",getEncodedArguments:()=>[t]})).getReturnDataParts()}))}getDefinitionOfTokenCollection(e){return n(this,void 0,void 0,(function*(){let t=yield this.getTokenProperties(e);return p.DefinitionOfTokenCollectionOnNetwork.fromResponseOfGetTokenProperties(e,t)}))}getNonFungibleToken(e,t){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}doGetGeneric(e){return n(this,void 0,void 0,(function*(){return yield this.doGet(e)}))}doPostGeneric(e,t){return n(this,void 0,void 0,(function*(){return yield this.doPost(e,t)}))}doGet(e){return n(this,void 0,void 0,(function*(){let t=`${this.url}/${e}`;try{return(yield a.default.get(t,this.config)).data.data}catch(t){this.handleApiError(t,e)}}))}doPost(e,t){return n(this,void 0,void 0,(function*(){let r=`${this.url}/${e}`;try{return(yield a.default.post(r,t,Object.assign(Object.assign({},this.config),{headers:Object.assign({"Content-Type":"application/json"},this.config.headers)}))).data.data}catch(t){this.handleApiError(t,e)}}))}buildUrlWithQueryParameters(e,t){let r=new URLSearchParams;for(let[e,n]of Object.entries(t))n&&r.append(e,n);return`${e}?${r.toString()}`}handleApiError(e,t){if(!e.response)throw new d.ErrNetworkProvider(t,e.toString(),e);const r=e.response.data,n=r.message||r.error||JSON.stringify(r);throw new d.ErrNetworkProvider(t,n,e)}}},8721:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionOfTokenCollectionOnNetwork=t.DefinitionOfFungibleTokenOnNetwork=void 0;const i=n(r(1594)),a=r(1466);class o{constructor(){this.identifier="",this.name="",this.ticker="",this.owner=new a.Address(""),this.decimals=0,this.supply=new i.default(0),this.isPaused=!1,this.canUpgrade=!1,this.canMint=!1,this.canBurn=!1,this.canChangeOwner=!1,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canAddSpecialRoles=!1,this.assets={}}static fromApiHttpResponse(e){let t=new o;return t.identifier=e.identifier||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new a.Address(e.owner||""),t.decimals=e.decimals||0,t.supply=new i.default(e.supply||"0"),t.isPaused=e.isPaused||!1,t.canUpgrade=e.canUpgrade||!1,t.canMint=e.canMint||!1,t.canBurn=e.canBurn||!1,t.canChangeOwner=e.canChangeOwner||!1,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.assets=e.assets||{},t}static fromResponseOfGetTokenProperties(e,t){let r=new o,[n,s,c,l,...d]=t,f=u(d);return r.identifier=e,r.name=n.toString(),r.ticker=e,r.owner=a.Address.fromPubkey(c),r.decimals=f.NumDecimals.toNumber(),r.supply=new i.default(l.toString()).shiftedBy(-r.decimals),r.isPaused=f.IsPaused,r.canUpgrade=f.CanUpgrade,r.canMint=f.CanMint,r.canBurn=f.CanBurn,r.canChangeOwner=f.CanChangeOwner,r.canPause=f.CanPause,r.canFreeze=f.CanFreeze,r.canWipe=f.CanWipe,r}}t.DefinitionOfFungibleTokenOnNetwork=o;class s{constructor(){this.collection="",this.type="",this.name="",this.ticker="",this.owner=new a.Address(""),this.decimals=0,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canUpgrade=!1,this.canChangeOwner=!1,this.canAddSpecialRoles=!1,this.canTransferNftCreateRole=!1,this.canCreateMultiShard=!1}static fromApiHttpResponse(e){let t=new s;return t.collection=e.collection||"",t.type=e.type||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new a.Address(e.owner||""),t.decimals=e.decimals||0,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.canUpgrade=e.canUpgrade||!1,t.canAddSpecialRoles=e.canAddSpecialRoles||!1,t.canTransferNftCreateRole=e.canTransferNftCreateRole||!1,t}static fromResponseOfGetTokenProperties(e,t){var r;let n=new s,[i,o,c,l,d,...f]=t,h=u(f);return n.collection=e,n.type=o.toString(),n.name=i.toString(),n.ticker=e,n.owner=a.Address.fromPubkey(c),n.decimals=null!==(r=h.NumDecimals.toNumber())&&void 0!==r?r:0,n.canPause=h.CanPause||!1,n.canFreeze=h.CanFreeze||!1,n.canWipe=h.CanWipe||!1,n.canUpgrade=h.CanUpgrade||!1,n.canChangeOwner=h.CanChangeOwner||!1,n.canAddSpecialRoles=h.CanAddSpecialRoles||!1,n.canTransferNftCreateRole=h.CanTransferNFTCreateRole||!1,n.canCreateMultiShard=h.CanCreateMultiShard||!1,n}}function u(e){let t={};for(let r of e){let[e,n]=r.toString().split("-");t[e]=c(n)}return t}function c(e){switch(e){case"true":return!0;case"false":return!1;default:return new i.default(e)}}t.DefinitionOfTokenCollectionOnNetwork=s},3962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonFungibleTokenOfAccountOnNetwork=t.FungibleTokenOfAccountOnNetwork=void 0;const n=r(1594),i=r(1466);class a{constructor(){this.identifier="",this.balance=new n.BigNumber(0),this.rawResponse={}}static fromHttpResponse(e){let t=new a;return t.identifier=e.tokenIdentifier||e.identifier||"",t.balance=new n.BigNumber(e.balance||0),t.rawResponse=e,t}}t.FungibleTokenOfAccountOnNetwork=a;class o{constructor(e){this.identifier="",this.collection="",this.timestamp=0,this.attributes=Buffer.from([]),this.nonce=0,this.type="",this.name="",this.creator=new i.Address(""),this.supply=new n.BigNumber(0),this.decimals=0,this.royalties=new n.BigNumber(0),this.assets=[],this.balance=new n.BigNumber(0),Object.assign(this,e)}static fromProxyHttpResponse(e){let t=o.fromHttpResponse(e);return t.identifier=e.tokenIdentifier||"",t.collection=o.parseCollectionFromIdentifier(t.identifier),t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromProxyHttpResponseByNonce(e){let t=o.fromHttpResponse(e),r=new i.Nonce(t.nonce).hex();return t.identifier=`${e.tokenIdentifier}-${r}`,t.collection=e.tokenIdentifier||"",t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.identifier=e.identifier||"",t.collection=e.collection||"",t}static fromHttpResponse(e){let t=new o;return t.timestamp=Number(e.timestamp||0),t.attributes=Buffer.from(e.attributes||"","base64"),t.nonce=e.nonce||0,t.type=e.type||"",t.name=e.name||"",t.creator=new i.Address(e.creator||""),t.decimals=Number(e.decimals||0),t.supply=new n.BigNumber(e.balance||1),t.royalties=new n.BigNumber(e.royalties||0),t.assets=e.assets||[],t.balance=new n.BigNumber(e.balance||1),t}static parseCollectionFromIdentifier(e){return e.split("-").slice(0,2).join("-")}}t.NonFungibleTokenOfAccountOnNetwork=o},8427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionEventTopic=t.TransactionEventData=t.TransactionEvent=void 0;const n=r(1466);class i{constructor(e){this.address=new n.Address(""),this.identifier="",this.topics=[],this.data="",this.dataPayload=new a(Buffer.from("","utf8")),this.additionalData=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new i;return t.address=new n.Address(e.address),t.identifier=e.identifier||"",t.topics=(e.topics||[]).map((e=>new o(e))),t.dataPayload=a.fromBase64(e.data),t.additionalData=(e.additionalData||[]).map(a.fromBase64),t.data=t.dataPayload.toString(),t}findFirstOrNoneTopic(e){return this.topics.filter((t=>e(t)))[0]}getLastTopic(){return this.topics[this.topics.length-1]}}t.TransactionEvent=i;class a{constructor(e){this.raw=e}static fromBase64(e){return new a(Buffer.from(e||"","base64"))}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventData=a;class o{constructor(e){this.raw=Buffer.from(e||"","base64")}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventTopic=o},9857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionLogs=void 0;const n=r(2591),i=r(1466),a=r(8427);class o{constructor(e){this.address=new i.Address(""),this.events=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new i.Address(e.address),t.events=(e.events||[]).map((e=>a.TransactionEvent.fromHttpResponse(e))),t}findSingleOrNoneEvent(e,t){let r=this.findEvents(e,t);if(r.length>1)throw new n.ErrUnexpectedCondition(`more than one event of type ${e}`);return r[0]}findFirstOrNoneEvent(e,t){return this.findEvents(e,t)[0]}findEvents(e,t){let r=this.events.filter((t=>t.identifier==e));return t&&(r=r.filter((e=>t(e)))),r}}t.TransactionLogs=o},496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionReceipt=void 0;const n=r(1466);class i{constructor(){this.value="",this.sender=new n.Address(""),this.data="",this.hash=""}static fromHttpResponse(e){let t=new i;return t.value=(e.value||0).toString(),t.sender=new n.Address(e.sender),t.data=e.data,t.hash=e.txHash,t}}t.TransactionReceipt=i},6188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=void 0;class r{constructor(e){this.status=(e||"").toLowerCase()}static createUnknown(){return new r("unknown")}isPending(){return"received"==this.status||"pending"==this.status}isExecuted(){return this.isSuccessful()||this.isFailed()||this.isInvalid()}isSuccessful(){return"executed"==this.status||"success"==this.status||"successful"==this.status}isFailed(){return"fail"==this.status||"failed"==this.status||"unsuccessful"==this.status||this.isInvalid()}isInvalid(){return"invalid"==this.status}toString(){return this.status}valueOf(){return this.status}equals(e){return!!e&&this.status==e.status}}t.TransactionStatus=r},6389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionOnNetwork=t.prepareTransactionForBroadcasting=void 0;const n=r(2286),i=r(1466),a=r(9857),o=r(496),s=r(6188);t.prepareTransactionForBroadcasting=function(e){return"toSendable"in e?e.toSendable():{nonce:Number(e.nonce),value:e.value.toString(),receiver:e.receiver,sender:e.sender,senderUsername:e.senderUsername?Buffer.from(e.senderUsername).toString("base64"):void 0,receiverUsername:e.receiverUsername?Buffer.from(e.receiverUsername).toString("base64"):void 0,gasPrice:Number(e.gasPrice),gasLimit:Number(e.gasLimit),data:0===e.data.length?void 0:Buffer.from(e.data).toString("base64"),chainID:e.chainID,version:e.version,options:e.options,guardian:e.guardian||void 0,signature:Buffer.from(e.signature).toString("hex"),guardianSignature:0===e.guardianSignature.length?void 0:Buffer.from(e.guardianSignature).toString("hex")}};class u{constructor(e){this.hash="",this.type="",this.nonce=0,this.round=0,this.epoch=0,this.value="",this.receiver=new i.Address(""),this.sender=new i.Address(""),this.gasLimit=0,this.gasPrice=0,this.function="",this.data=Buffer.from([]),this.signature="",this.status=s.TransactionStatus.createUnknown(),this.timestamp=0,this.blockNonce=0,this.hyperblockNonce=0,this.hyperblockHash="",this.receipt=new o.TransactionReceipt,this.contractResults=new n.ContractResults([]),this.logs=new a.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e,t,r){let i=u.fromHttpResponse(e,t);return i.contractResults=n.ContractResults.fromProxyHttpResponse(t.smartContractResults||[]),r&&(i.status=r,i.isCompleted=i.status.isSuccessful()||i.status.isFailed()),i}static fromApiHttpResponse(e,t){let r=u.fromHttpResponse(e,t);return r.contractResults=n.ContractResults.fromApiHttpResponse(t.results||[]),r.isCompleted=!r.status.isPending(),r}static fromHttpResponse(e,t){let r=new u;return r.hash=e,r.type=t.type||"",r.nonce=t.nonce||0,r.round=t.round,r.epoch=t.epoch||0,r.value=(t.value||0).toString(),r.sender=new i.Address(t.sender),r.receiver=new i.Address(t.receiver),r.gasPrice=t.gasPrice||0,r.gasLimit=t.gasLimit||0,r.function=t.function||"",r.data=Buffer.from(t.data||"","base64"),r.status=new s.TransactionStatus(t.status),r.timestamp=t.timestamp||0,r.blockNonce=t.blockNonce||0,r.hyperblockNonce=t.hyperblockNonce||0,r.hyperblockHash=t.hyperblockHash||"",r.receipt=o.TransactionReceipt.fromHttpResponse(t.receipt||{}),r.logs=a.TransactionLogs.fromHttpResponse(t.logs||{}),r}getDateTime(){return new Date(1e3*this.timestamp)}}t.TransactionOnNetwork=u},1002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendUserAgentIfBackend=void 0;const n=r(6425),i=r(4027);t.extendUserAgentIfBackend=function(e,t){"undefined"==typeof window&&function(e,t){t.headers||(t.headers=new n.AxiosHeaders({})),t.clientName||console.log("We recommend providing the `clientName` when instantiating a NetworkProvider (e.g. ProxyNetworkProvider, ApiNetworkProvider). This information will be used for metrics collection and improving our services.");const r=n.AxiosHeaders.from(t.headers).normalize(!0),a=t.clientName||i.UnknownClientName,o=r.hasUserAgent()?r.getUserAgent():"",s=o?`${o} ${e}/${a}`:`${e}/${a}`;r.setUserAgent(s,!0)}(e,t)}},2866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenTransferProperties=t.TransactionMetadataTransfer=t.TransactionMetadata=t.TransactionToDecode=t.TransactionDecoder=void 0;const n=r(8603);t.TransactionDecoder=class{getTransactionMetadata(e){const t=this.getNormalTransactionMetadata(e),r=this.getEsdtTransactionMetadata(t);if(r)return r;const n=this.getNftTransferMetadata(t);if(n)return n;return this.getMultiTransferMetadata(t)||t}getNormalTransactionMetadata(e){const t=new a;if(t.sender=e.sender,t.receiver=e.receiver,t.value=BigInt(e.value),e.data){const r=this.base64Decode(e.data).split("@"),n=r.slice(1);if(n.every((e=>this.isSmartContractArgument(e)))&&(t.functionName=r[0],t.functionArgs=n),"relayedTx"===t.functionName&&t.functionArgs&&1===t.functionArgs.length)try{const e=JSON.parse(this.hexToString(t.functionArgs[0]));return e.value=e.value.toString(),e.sender=this.bech32Encode(this.base64ToHex(e.sender)),e.receiver=this.bech32Encode(this.base64ToHex(e.receiver)),this.getNormalTransactionMetadata(e)}catch(e){}if("relayedTxV2"===t.functionName&&t.functionArgs&&4===t.functionArgs.length)try{const r=new i;return r.sender=e.receiver,r.receiver=this.bech32Encode(t.functionArgs[0]),r.data=this.base64Encode(this.hexToString(t.functionArgs[2])),r.value="0",this.getNormalTransactionMetadata(r)}catch(e){}}return t}getMultiTransferMetadata(e){if(e.sender!==e.receiver)return;if("MultiESDTNFTTransfer"!==e.functionName)return;const t=e.functionArgs;if(!t)return;if(t.length<3)return;if(!this.isAddressValid(t[0]))return;const r=this.bech32Encode(t[0]),n=this.hexToNumber(t[1]),i=new a;i.transfers||(i.transfers=[]);let o=2;for(let e=0;e<n;e++){const e=this.hexToString(t[o++]),r=t[o++],n=this.hexToBigInt(t[o++]);r?i.transfers.push({value:n,properties:{collection:e,identifier:`${e}-${r}`}}):i.transfers.push({value:n,properties:{token:e}})}return i.sender=e.sender,i.receiver=r,t.length>o&&(i.functionName=this.hexToString(t[o++]),i.functionArgs=t.slice(o++)),i}getNftTransferMetadata(e){if(e.sender!==e.receiver)return;if("ESDTNFTTransfer"!==e.functionName)return;const t=e.functionArgs;if(!t)return;if(t.length<4)return;if(!this.isAddressValid(t[3]))return;const r=this.hexToString(t[0]),n=t[1],i=this.hexToBigInt(t[2]),o=this.bech32Encode(t[3]),s=new a;return s.sender=e.sender,s.receiver=o,s.value=i,t.length>4&&(s.functionName=this.hexToString(t[4]),s.functionArgs=t.slice(5)),s.transfers=[{value:i,properties:{collection:r,identifier:`${r}-${n}`}}],s}base64Encode(e){return Buffer.from(e).toString("base64")}base64Decode(e){return Buffer.from(e,"base64").toString("binary")}hexToNumber(e){return parseInt(e,16)}getEsdtTransactionMetadata(e){if("ESDTTransfer"!==e.functionName)return;const t=e.functionArgs;if(!t)return;if(t.length<2)return;const r=this.hexToString(t[0]),n=this.hexToBigInt(t[1]),i=new a;return i.sender=e.sender,i.receiver=e.receiver,t.length>2&&(i.functionName=this.hexToString(t[2]),i.functionArgs=t.slice(3)),i.transfers=[{value:n,properties:{identifier:r}}],i.value=n,i}bech32Encode(e){const t=Buffer.from(e,"hex"),r=n.bech32.toWords(t);return n.bech32.encode("erd",r)}isAddressValid(e){return 32==Buffer.from(e,"hex").length}isSmartContractArgument(e){return!!this.isHex(e)&&e.length%2==0}isHex(e){return!1===new RegExp(/[^a-f0-9]/gi).test(e)}base64ToHex(e){return Buffer.from(e,"base64").toString("hex")}hexToString(e){return Buffer.from(e,"hex").toString("ascii")}hexToBigInt(e){return e?BigInt("0x"+e):BigInt(0)}};class i{constructor(){this.sender="",this.receiver="",this.data="",this.value="0"}}t.TransactionToDecode=i;class a{constructor(){this.sender="",this.receiver="",this.value=BigInt(0)}}t.TransactionMetadata=a,t.TransactionMetadataTransfer=class{constructor(){this.value=BigInt(0)}},t.TokenTransferProperties=class{}},8603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bech32m=t.bech32=void 0;const r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={};for(let e=0;e<32;e++){const t=r.charAt(e);n[t]=e}function i(e){const t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){let t=1;for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=i(t)^n>>5}t=i(t);for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);t=i(t)^31&n}return t}function o(e,t,r,n){let i=0,a=0;const o=(1<<r)-1,s=[];for(let n=0;n<e.length;++n)for(i=i<<t|e[n],a+=t;a>=r;)a-=r,s.push(i>>a&o);if(n)a>0&&s.push(i<<r-a&o);else{if(a>=t)return"Excess padding";if(i<<r-a&o)return"Non-zero padding"}return s}function s(e){return o(e,8,5,!0)}function u(e){const t=o(e,5,8,!1);if(Array.isArray(t))return t}function c(e){const t=o(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}function l(e){let t;function o(e,r){if(r=r||90,e.length<8)return e+" too short";if(e.length>r)return"Exceeds length limit";const o=e.toLowerCase(),s=e.toUpperCase();if(e!==o&&e!==s)return"Mixed-case string "+e;const u=(e=o).lastIndexOf("1");if(-1===u)return"No separator character for "+e;if(0===u)return"Missing prefix for "+e;const c=e.slice(0,u),l=e.slice(u+1);if(l.length<6)return"Data too short";let d=a(c);if("string"==typeof d)return d;const f=[];for(let e=0;e<l.length;++e){const t=l.charAt(e),r=n[t];if(void 0===r)return"Unknown character "+t;d=i(d)^r,e+6>=l.length||f.push(r)}return d!==t?"Invalid checksum for "+e:{prefix:c,words:f}}return t="bech32"===e?1:734539939,{decodeUnsafe:function(e,t){const r=o(e,t);if("object"==typeof r)return r},decode:function(e,t){const r=o(e,t);if("object"==typeof r)return r;throw new Error(r)},encode:function(e,n,o){if(o=o||90,e.length+7+n.length>o)throw new TypeError("Exceeds length limit");let s=a(e=e.toLowerCase());if("string"==typeof s)throw new Error(s);let u=e+"1";for(let e=0;e<n.length;++e){const t=n[e];if(t>>5)throw new Error("Non 5-bit word");s=i(s)^t,u+=r.charAt(t)}for(let e=0;e<6;++e)s=i(s);s^=t;for(let e=0;e<6;++e)u+=r.charAt(s>>5*(5-e)&31);return u},toWords:s,fromWordsUnsafe:u,fromWords:c}}t.bech32=l("bech32"),t.bech32m=l("bech32m")},5111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.curve25519=t.getSharedSecret=t.sync=t.verify=t.sign=t.getPublicKey=t.Signature=t.Point=t.RistrettoPoint=t.ExtendedPoint=t.CURVE=void 0;const n=r(3086),i=BigInt(0),a=BigInt(1),o=BigInt(2),s=BigInt(8),u=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),c=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:u,n:u,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")});t.CURVE=c;const l=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),d=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),f=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),h=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),p=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),g=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class m{constructor(e,t,r,n){this.x=e,this.y=t,this.z=r,this.t=n}static fromAffine(e){if(!(e instanceof _))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(_.ZERO)?m.ZERO:new m(e.x,e.y,a,R(e.x*e.y))}static toAffineBatch(e){const t=function(e,t=c.P){const r=new Array(e.length),n=L(e.reduce(((e,n,a)=>n===i?e:(r[a]=e,R(e*n,t))),a),t);return e.reduceRight(((e,n,a)=>n===i?e:(r[a]=R(e*r[a],t),R(e*n,t))),n),r}(e.map((e=>e.z)));return e.map(((e,r)=>e.toAffine(t[r])))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){b(e);const{x:t,y:r,z:n}=this,{x:i,y:a,z:o}=e,s=R(t*o),u=R(i*n),c=R(r*o),l=R(a*n);return s===u&&c===l}negate(){return new m(R(-this.x),this.y,this.z,R(-this.t))}double(){const{x:e,y:t,z:r}=this,{a:n}=c,i=R(e*e),a=R(t*t),s=R(o*R(r*r)),u=R(n*i),l=e+t,d=R(R(l*l)-i-a),f=u+a,h=f-s,p=u-a,g=R(d*h),y=R(f*p),b=R(d*p),v=R(h*f);return new m(g,y,v,b)}add(e){b(e);const{x:t,y:r,z:n,t:a}=this,{x:s,y:u,z:c,t:l}=e,d=R((r-t)*(u+s)),f=R((r+t)*(u-s)),h=R(f-d);if(h===i)return this.double();const p=R(n*o*l),g=R(a*o*c),y=g+p,v=f+d,w=g-p,A=R(y*h),T=R(v*w),_=R(y*w),S=R(h*v);return new m(A,T,S,_)}subtract(e){return this.add(e.negate())}precomputeWindow(e){const t=1+256/e,r=[];let n=this,i=n;for(let a=0;a<t;a++){i=n,r.push(i);for(let t=1;t<2**(e-1);t++)i=i.add(n),r.push(i);n=i.double()}return r}wNAF(e,t){!t&&this.equals(m.BASE)&&(t=_.BASE);const r=t&&t._WINDOW_SIZE||1;if(256%r)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let n=t&&T.get(t);n||(n=this.precomputeWindow(r),t&&1!==r&&(n=m.normalizeZ(n),T.set(t,n)));let i=m.ZERO,o=m.BASE;const s=1+256/r,u=2**(r-1),c=BigInt(2**r-1),l=2**r,d=BigInt(r);for(let t=0;t<s;t++){const r=t*u;let s=Number(e&c);e>>=d,s>u&&(s-=l,e+=a);const f=r,h=r+Math.abs(s)-1,p=t%2!=0,g=s<0;0===s?o=o.add(y(p,n[f])):i=i.add(y(g,n[h]))}return m.normalizeZ([i,o])[0]}multiply(e,t){return this.wNAF(H(e,c.l),t)}multiplyUnsafe(e){let t=H(e,c.l,!1);const r=m.BASE,n=m.ZERO;if(t===i)return n;if(this.equals(n)||t===a)return this;if(this.equals(r))return this.wNAF(t);let o=n,s=this;for(;t>i;)t&a&&(o=o.add(s)),s=s.double(),t>>=a;return o}isSmallOrder(){return this.multiplyUnsafe(c.h).equals(m.ZERO)}isTorsionFree(){let e=this.multiplyUnsafe(c.l/o).double();return c.l%o&&(e=e.add(this)),e.equals(m.ZERO)}toAffine(e){const{x:t,y:r,z:n}=this,i=this.equals(m.ZERO);null==e&&(e=i?s:L(n));const o=R(t*e),u=R(r*e),c=R(n*e);if(i)return _.ZERO;if(c!==a)throw new Error("invZ was invalid");return new _(o,u)}fromRistrettoBytes(){w()}toRistrettoBytes(){w()}fromRistrettoHash(){w()}}function y(e,t){const r=t.negate();return e?r:t}function b(e){if(!(e instanceof m))throw new TypeError("ExtendedPoint expected")}function v(e){if(!(e instanceof A))throw new TypeError("RistrettoPoint expected")}function w(){throw new Error("Legacy method: switch to RistrettoPoint")}t.ExtendedPoint=m,m.BASE=new m(c.Gx,c.Gy,a,R(c.Gx*c.Gy)),m.ZERO=new m(i,a,a,i);class A{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){const{d:t}=c,r=R(d*e*e),n=R((r+a)*p);let i=BigInt(-1);const o=R((i-t*r)*R(r+t));let{isValid:s,value:u}=F(n,o),l=R(u*e);x(l)||(l=R(-l)),s||(u=l),s||(i=r);const h=R(i*(r-a)*g-o),y=u*u,b=R((u+u)*o),v=R(h*f),w=R(a-y),A=R(a+y);return new m(R(b*A),R(w*v),R(v*A),R(b*w))}static hashToCurve(e){const t=D((e=V(e,64)).slice(0,32)),r=this.calcElligatorRistrettoMap(t),n=D(e.slice(32,64)),i=this.calcElligatorRistrettoMap(n);return new A(r.add(i))}static fromHex(e){e=V(e,32);const{a:t,d:r}=c,n="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",o=D(e);if(!function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(O(o),e)||x(o))throw new Error(n);const s=R(o*o),u=R(a+t*s),l=R(a-t*s),d=R(u*u),f=R(l*l),h=R(t*r*d-f),{isValid:p,value:g}=j(R(h*f)),y=R(g*l),b=R(g*y*h);let v=R((o+o)*y);x(v)&&(v=R(-v));const w=R(u*b),T=R(v*w);if(!p||x(T)||w===i)throw new Error(n);return new A(new m(v,w,a,T))}toRawBytes(){let{x:e,y:t,z:r,t:n}=this.ep;const i=R(R(r+t)*R(r-t)),a=R(e*t),o=R(a*a),{value:s}=j(R(i*o)),u=R(s*i),c=R(s*a),l=R(u*c*n);let f;if(x(n*l)){let r=R(t*d),n=R(e*d);e=r,t=n,f=R(u*h)}else f=c;x(e*l)&&(t=R(-t));let p=R((r-t)*f);return x(p)&&(p=R(-p)),O(p)}toHex(){return C(this.toRawBytes())}toString(){return this.toHex()}equals(e){v(e);const t=this.ep,r=e.ep,n=R(t.x*r.y)===R(t.y*r.x),i=R(t.y*r.y)===R(t.x*r.x);return n||i}add(e){return v(e),new A(this.ep.add(e.ep))}subtract(e){return v(e),new A(this.ep.subtract(e.ep))}multiply(e){return new A(this.ep.multiply(e))}multiplyUnsafe(e){return new A(this.ep.multiplyUnsafe(e))}}t.RistrettoPoint=A,A.BASE=new A(m.BASE),A.ZERO=new A(m.ZERO);const T=new WeakMap;class _{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,T.delete(this)}static fromHex(e,t=!0){const{d:r,P:n}=c,i=(e=V(e,32)).slice();i[31]=-129&e[31];const o=N(i);if(t&&o>=n)throw new Error("Expected 0 < hex < P");if(!t&&o>=l)throw new Error("Expected 0 < hex < 2**256");const s=R(o*o),u=R(s-a),d=R(r*s+a);let{isValid:f,value:h}=F(u,d);if(!f)throw new Error("Point.fromHex: invalid y coordinate");const p=(h&a)===a;return!!(128&e[31])!==p&&(h=R(-h)),new _(h,o)}static async fromPrivateKey(e){return(await $(e)).point}toRawBytes(){const e=O(this.y);return e[31]|=this.x&a?128:0,e}toHex(){return C(this.toRawBytes())}toX25519(){const{y:e}=this;return O(R((a+e)*L(a-e)))}isTorsionFree(){return m.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new _(R(-this.x),this.y)}add(e){return m.fromAffine(this).add(m.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return m.fromAffine(this).multiply(e,this).toAffine()}}t.Point=_,_.BASE=new _(c.Gx,c.Gy),_.ZERO=new _(i,a);class S{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromHex(e){const t=V(e,64),r=_.fromHex(t.slice(0,32),!1),n=N(t.slice(32,64));return new S(r,n)}assertValidity(){const{r:e,s:t}=this;if(!(e instanceof _))throw new Error("Expected Point instance");return H(t,c.l,!1),this}toRawBytes(){const e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(O(this.s),32),e}toHex(){return C(this.toRawBytes())}}function E(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Expected Uint8Array list");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r}t.Signature=S;const I=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function C(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=I[e[r]];return t}function k(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");t[r]=a}return t}function B(e){return k(e.toString(16).padStart(64,"0"))}function O(e){return B(e).reverse()}function x(e){return(R(e)&a)===a}function N(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+C(Uint8Array.from(e).reverse()))}const P=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function D(e){return R(N(e)&P)}function R(e,t=c.P){const r=e%t;return r>=i?r:t+r}function L(e,t=c.P){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=R(e,t),n=t,o=i,s=a,u=a,l=i;for(;r!==i;){const e=n/r,t=n%r,i=o-u*e,a=s-l*e;n=r,r=t,o=u,s=l,u=i,l=a}if(n!==a)throw new Error("invert: does not exist");return R(o,t)}function U(e,t){const{P:r}=c;let n=e;for(;t-- >i;)n*=n,n%=r;return n}function M(e){const{P:t}=c,r=BigInt(5),n=BigInt(10),i=BigInt(20),s=BigInt(40),u=BigInt(80),l=e*e%t*e%t,d=U(l,o)*l%t,f=U(d,a)*e%t,h=U(f,r)*f%t,p=U(h,n)*h%t,g=U(p,i)*p%t,m=U(g,s)*g%t,y=U(m,u)*m%t,b=U(y,u)*m%t,v=U(b,n)*h%t;return{pow_p_5_8:U(v,o)*e%t,b2:l}}function F(e,t){const r=R(t*t*t),n=R(r*r*t);let i=R(e*r*M(e*n).pow_p_5_8);const a=R(t*i*i),o=i,s=R(i*d),u=a===e,c=a===R(-e),l=a===R(-e*d);return u&&(i=o),(c||l)&&(i=s),x(i)&&(i=R(-i)),{isValid:u||c,value:i}}function j(e){return F(a,e)}function z(e){return R(N(e),c.l)}function V(e,t){const r=e instanceof Uint8Array?Uint8Array.from(e):k(e);if("number"==typeof t&&r.length!==t)throw new Error(`Expected ${t} bytes`);return r}function H(e,t,r=!0){if(!t)throw new TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e<t)if(r){if(i<e)return e}else if(i<=e)return e;throw new TypeError("Expected valid scalar: 0 < scalar < max")}function q(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function G(e){if(32!==(e="bigint"==typeof e||"number"==typeof e?B(H(e,l)):V(e)).length)throw new Error("Expected 32 bytes");return e}function Q(e){const t=q(e.slice(0,32)),r=e.slice(32,64),n=z(t),i=_.BASE.multiply(n),a=i.toRawBytes();return{head:t,prefix:r,scalar:n,point:i,pointBytes:a}}let K;function W(...e){if("function"!=typeof K)throw new Error("utils.sha512Sync must be set to use sync methods");return K(...e)}async function $(e){return Q(await t.utils.sha512(G(e)))}function Y(e){return Q(W(G(e)))}function J(e,t,r){t=V(t),r instanceof _||(r=_.fromHex(r,!1));const{r:n,s:i}=e instanceof S?e.assertValidity():S.fromHex(e);return{r:n,s:i,SB:m.BASE.multiplyUnsafe(i),pub:r,msg:t}}function X(e,t,r,n){const i=z(n),a=m.fromAffine(e).multiplyUnsafe(i);return m.fromAffine(t).add(a).subtract(r).multiplyUnsafe(c.h).equals(m.ZERO)}function Z(e,t,r){const n=R(e*(t-r));return[t=R(t-n),r=R(r+n)]}t.getPublicKey=async function(e){return(await $(e)).pointBytes},t.sign=async function(e,r){e=V(e);const{prefix:n,scalar:i,pointBytes:a}=await $(r),o=z(await t.utils.sha512(n,e)),s=_.BASE.multiply(o),u=R(o+z(await t.utils.sha512(s.toRawBytes(),a,e))*i,c.l);return new S(s,u).toRawBytes()},t.verify=async function(e,r,n){const{r:i,SB:a,msg:o,pub:s}=J(e,r,n),u=await t.utils.sha512(i.toRawBytes(),s.toRawBytes(),o);return X(s,i,a,u)},t.sync={getExtendedPublicKey:Y,getPublicKey:function(e){return Y(e).pointBytes},sign:function(e,t){e=V(e);const{prefix:r,scalar:n,pointBytes:i}=Y(t),a=z(W(r,e)),o=_.BASE.multiply(a),s=R(a+z(W(o.toRawBytes(),i,e))*n,c.l);return new S(o,s).toRawBytes()},verify:function(e,t,r){const{r:n,SB:i,msg:a,pub:o}=J(e,t,r),s=W(n.toRawBytes(),o.toRawBytes(),a);return X(o,n,i,s)}},t.getSharedSecret=async function(e,r){const{head:n}=await $(e),i=_.fromHex(r).toX25519();return t.curve25519.scalarMult(n,i)},_.BASE._setWindowSize(8),t.curve25519={BASE_POINT_U:"0900000000000000000000000000000000000000000000000000000000000000",scalarMult(e,t){const r=function(e,t){const{P:r}=c,n=H(e,r),o=H(t,r),s=BigInt(121665),u=n;let l,d=a,f=i,h=n,p=a,g=i;for(let e=BigInt(254);e>=i;e--){const t=o>>e&a;g^=t,l=Z(g,d,h),d=l[0],h=l[1],l=Z(g,f,p),f=l[0],p=l[1],g=t;const r=d+f,n=R(r*r),i=d-f,c=R(i*i),m=n-c,y=h+p,b=R((h-p)*r),v=R(y*i),w=b+v,A=b-v;h=R(w*w),p=R(u*R(A*A)),d=R(n*c),f=R(m*(n+R(s*m)))}l=Z(g,d,h),d=l[0],h=l[1],l=Z(g,f,p),f=l[0],p=l[1];const{pow_p_5_8:m,b2:y}=M(f),b=R(U(m,BigInt(3))*y);return R(d*b)}(function(e){const t=V(e,32);return t[31]&=127,N(t)}(t),N(q(V(e,32))));if(r===i)throw new Error("Invalid private or public key received");return O(R(r,c.P))},scalarMultBase:e=>t.curve25519.scalarMult(e,t.curve25519.BASE_POINT_U)};const ee={node:n,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0};t.utils={bytesToHex:C,hexToBytes:k,concatBytes:E,getExtendedPublicKey:$,mod:R,invert:L,TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],hashToPrivateScalar:e=>{if((e=V(e)).length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return R(N(e),c.l-a)+a},randomBytes:(e=32)=>{if(ee.web)return ee.web.getRandomValues(new Uint8Array(e));if(ee.node){const{randomBytes:t}=ee.node;return new Uint8Array(t(e).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.randomBytes(32),sha512:async(...e)=>{const t=E(...e);if(ee.web){const e=await ee.web.subtle.digest("SHA-512",t.buffer);return new Uint8Array(e)}if(ee.node)return Uint8Array.from(ee.node.createHash("sha512").update(t).digest());throw new Error("The environment doesn't have sha512 function")},precompute(e=8,t=_.BASE){const r=t.equals(_.BASE)?t:new _(t.x,t.y);return r._setWindowSize(e),r.multiply(o),r},sha512Sync:void 0},Object.defineProperties(t.utils,{sha512Sync:{configurable:!1,get:()=>K,set(e){K||(K=e)}}})},7557:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=i,t.hash=a,t.exists=o,t.output=s;const u={number:r,bool:n,bytes:i,hash:a,exists:o,output:s};t.default=u},915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(7557),i=r(9175);class a extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){n.default.exists(this);const{view:t,buffer:r,blockLen:a}=this,o=(e=(0,i.toBytes)(e)).length;for(let n=0;n<o;){const s=Math.min(a-this.pos,o-n);if(s!==a)r.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===a&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;a<=o-n;n+=a)this.process(t,n)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){n.default.exists(this),n.default.output(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:a,isLE:o}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(r,0),s=0);for(let e=s;e<a;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),a=BigInt(4294967295),o=Number(r>>i&a),s=Number(r&a),u=n?4:0,c=n?0:4;e.setUint32(t+u,o,n),e.setUint32(t+c,s,n)}(r,a-8,BigInt(8*this.length),o),this.process(r,0);const u=(0,i.createView)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)u.setUint32(4*e,d[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:a,pos:o}=this;return e.length=n,e.pos=o,e.finished=i,e.destroyed=a,n%t&&e.buffer.set(r),e}}t.SHA2=a},2318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function a(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;a<e.length;a++){const{h:o,l:s}=i(e[a],t);[r[a],n[a]]=[o,s]}return[r,n]}function o(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.fromBig=i,t.split=a,t.toBig=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=o;const s={fromBig:i,split:a,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:o,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,a)=>t+r+n+i+a+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},5145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},9615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const n=r(7557),i=r(9175);class a extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,n.default.hash(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,o=new Uint8Array(a);o.set(r.length>a?e.create().update(r).digest():r);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),o.fill(0)}update(e){return n.default.exists(this),this.iHash.update(e),this}digestInto(e){n.default.exists(this),n.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=n,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.hmac=(e,t,r)=>new a(e,t).update(r).digest(),t.hmac.create=(e,t)=>new a(e,t)},8941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(7557),i=r(9615),a=r(9175);function o(e,t,r,o){n.default.hash(e);const s=(0,a.checkOpts)({dkLen:32,asyncTick:10},o),{c:u,dkLen:c,asyncTick:l}=s;if(n.default.number(u),n.default.number(c),n.default.number(l),u<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,a.toBytes)(t),f=(0,a.toBytes)(r),h=new Uint8Array(c),p=i.hmac.create(e,d),g=p._cloneInto().update(f);return{c:u,dkLen:c,asyncTick:l,DK:h,PRF:p,PRFSalt:g}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:u,DK:c,PRF:l,PRFSalt:d}=o(e,t,r,n);let f;const h=new Uint8Array(4),p=(0,a.createView)(h),g=new Uint8Array(l.outputLen);for(let e=1,t=0;t<u;e++,t+=l.outputLen){const r=c.subarray(t,t+l.outputLen);p.setInt32(0,e,!1),(f=d._cloneInto(f)).update(h).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<i;e++){l._cloneInto(f).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return s(l,d,c,f,g)},t.pbkdf2Async=async function(e,t,r,n){const{c:i,dkLen:u,asyncTick:c,DK:l,PRF:d,PRFSalt:f}=o(e,t,r,n);let h;const p=new Uint8Array(4),g=(0,a.createView)(p),m=new Uint8Array(d.outputLen);for(let e=1,t=0;t<u;e++,t+=d.outputLen){const r=l.subarray(t,t+d.outputLen);g.setInt32(0,e,!1),(h=f._cloneInto(h)).update(p).digestInto(m),r.set(m.subarray(0,r.length)),await(0,a.asyncLoop)(i-1,c,(e=>{d._cloneInto(h).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]}))}return s(d,f,l,h,m)}},2623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(915),i=r(9175),a=(e,t,r)=>e&t^e&r^t&r,o=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]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class c extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:a,G:o,H:s}=this;return[e,t,r,n,i,a,o,s]}set(e,t,r,n,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=u[e-15],r=u[e-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,a=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;u[e]=a+u[e-7]+n+u[e-16]|0}let{A:r,B:n,C:s,D:c,E:l,F:d,G:f,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,i.rotr)(l,6)^(0,i.rotr)(l,11)^(0,i.rotr)(l,25))+((p=l)&d^~p&f)+o[e]+u[e]|0,g=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+a(r,n,s)|0;h=f,f=d,d=l,l=c+t|0,c=s,s=n,n=r,r=t+g|0}var p;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,c=c+this.D|0,l=l+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(r,n,s,c,l,d,f,h)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new l))},102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const n=r(915),i=r(2318),a=r(9175),[o,s]=i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),u=new Uint32Array(80),c=new Uint32Array(80);class l extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:a,Dh:o,Dl:s,Eh:u,El:c,Fh:l,Fl:d,Gh:f,Gl:h,Hh:p,Hl:g}=this;return[e,t,r,n,i,a,o,s,u,c,l,d,f,h,p,g]}set(e,t,r,n,i,a,o,s,u,c,l,d,f,h,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|a,this.Dh=0|o,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t),c[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|u[e-15],r=0|c[e-15],n=i.default.rotrSH(t,r,1)^i.default.rotrSH(t,r,8)^i.default.shrSH(t,r,7),a=i.default.rotrSL(t,r,1)^i.default.rotrSL(t,r,8)^i.default.shrSL(t,r,7),o=0|u[e-2],s=0|c[e-2],l=i.default.rotrSH(o,s,19)^i.default.rotrBH(o,s,61)^i.default.shrSH(o,s,6),d=i.default.rotrSL(o,s,19)^i.default.rotrBL(o,s,61)^i.default.shrSL(o,s,6),f=i.default.add4L(a,d,c[e-7],c[e-16]),h=i.default.add4H(f,n,l,u[e-7],u[e-16]);u[e]=0|h,c[e]=0|f}let{Ah:r,Al:n,Bh:a,Bl:l,Ch:d,Cl:f,Dh:h,Dl:p,Eh:g,El:m,Fh:y,Fl:b,Gh:v,Gl:w,Hh:A,Hl:T}=this;for(let e=0;e<80;e++){const t=i.default.rotrSH(g,m,14)^i.default.rotrSH(g,m,18)^i.default.rotrBH(g,m,41),_=i.default.rotrSL(g,m,14)^i.default.rotrSL(g,m,18)^i.default.rotrBL(g,m,41),S=g&y^~g&v,E=m&b^~m&w,I=i.default.add5L(T,_,E,s[e],c[e]),C=i.default.add5H(I,A,t,S,o[e],u[e]),k=0|I,B=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),O=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),x=r&a^r&d^a&d,N=n&l^n&f^l&f;A=0|v,T=0|w,v=0|y,w=0|b,y=0|g,b=0|m,({h:g,l:m}=i.default.add(0|h,0|p,0|C,0|k)),h=0|d,p=0|f,d=0|a,f=0|l,a=0|r,l=0|n;const P=i.default.add3L(k,O,N);r=i.default.add3H(P,C,B,x),n=0|P}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:a,l}=i.default.add(0|this.Bh,0|this.Bl,0|a,0|l)),({h:d,l:f}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:g,l:m}=i.default.add(0|this.Eh,0|this.El,0|g,0|m)),({h:y,l:b}=i.default.add(0|this.Fh,0|this.Fl,0|y,0|b)),({h:v,l:w}=i.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:A,l:T}=i.default.add(0|this.Hh,0|this.Hl,0|A,0|T)),this.set(r,n,a,l,d,f,h,p,g,m,y,b,v,w,A,T)}roundClean(){u.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=l;class d extends l{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class f extends l{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class h extends l{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,a.wrapConstructor)((()=>new l)),t.sha512_224=(0,a.wrapConstructor)((()=>new d)),t.sha512_256=(0,a.wrapConstructor)((()=>new f)),t.sha384=(0,a.wrapConstructor)((()=>new h))},9175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(5145);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function a(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got "+typeof e);return(new TextEncoder).encode(e)}function o(e){if("string"==typeof e&&(e=a(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");t[r]=a}return t},t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let a=0;a<e;a++){n(a);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=a,t.toBytes=o,t.concatBytes=function(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r},t.Hash=class{clone(){return this._cloneInto()}},t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||(r=t,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new TypeError("Options should be object or undefined");var r;return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(o(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(o(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},8045:e=>{"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,i=2,a=!0;i<arguments.length;)r[n++]=arguments[i++];return new Promise((function(i,o){r[n]=function(e){if(a)if(a=!1,e)o(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];i.apply(null,t)}};try{e.apply(t||null,r)}catch(e){a&&(a=!1,o(e))}}))}},8839:(e,t)=>{"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),i=new Array(123),a=0;a<64;)i[n[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;r.encode=function(e,t,r){for(var i,a=null,o=[],s=0,u=0;t<r;){var c=e[t++];switch(u){case 0:o[s++]=n[c>>2],i=(3&c)<<4,u=1;break;case 1:o[s++]=n[i|c>>4],i=(15&c)<<2,u=2;break;case 2:o[s++]=n[i|c>>6],o[s++]=n[63&c],u=0}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,o)),s=0)}return u&&(o[s++]=n[i],o[s++]=61,1===u&&(o[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,o.slice(0,s))),a.join("")):String.fromCharCode.apply(String,o.slice(0,s))};var o="invalid encoding";r.decode=function(e,t,r){for(var n,a=r,s=0,u=0;u<e.length;){var c=e.charCodeAt(u++);if(61===c&&s>1)break;if(void 0===(c=i[c]))throw Error(o);switch(s){case 0:n=c,s=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,s=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,s=3;break;case 3:t[r++]=(3&n)<<6|c,s=0}}if(1===s)throw Error(o);return r-a},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},4358:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this}},9410:e=>{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function a(e,n,i){t[0]=e,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function o(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function s(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?i:a,e.writeFloatBE=n?a:i,e.readFloatLE=n?o:s,e.readFloatBE=n?s:o}():function(){function t(e,t,r,n){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var a=Math.floor(Math.log(t)/Math.LN2);e((i<<31|a+127<<23|8388607&Math.round(t*Math.pow(2,-a)*8388608))>>>0,r,n)}}function o(e,t,r){var n=e(t,r),i=2*(n>>31)+1,a=n>>>23&255,o=8388607&n;return 255===a?o?NaN:i*(1/0):0===a?1401298464324817e-60*i*o:i*Math.pow(2,a-150)*(o+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=o.bind(null,i),e.readFloatBE=o.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function a(e,n,i){t[0]=e,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function o(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function s(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?i:a,e.writeDoubleBE=n?a:i,e.readDoubleLE=n?o:s,e.readDoubleBE=n?s:o}():function(){function t(e,t,r,n,i,a){var o=n<0?1:0;if(o&&(n=-n),0===n)e(0,i,a+t),e(1/n>0?0:2147483648,i,a+r);else if(isNaN(n))e(0,i,a+t),e(2146959360,i,a+r);else if(n>17976931348623157e292)e(0,i,a+t),e((o<<31|2146435072)>>>0,i,a+r);else{var s;if(n<22250738585072014e-324)e((s=n/5e-324)>>>0,i,a+t),e((o<<31|s/4294967296)>>>0,i,a+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(s=n*Math.pow(2,-u))>>>0,i,a+t),e((o<<31|u+1023<<20|1048576*s&1048575)>>>0,i,a+r)}}}function o(e,t,r,n,i){var a=e(n,i+t),o=e(n,i+r),s=2*(o>>31)+1,u=o>>>20&2047,c=4294967296*(1048575&o)+a;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=o.bind(null,i,0,4),e.readDoubleBE=o.bind(null,a,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},4153:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},9390:e=>{"use strict";e.exports=function(e,t,r){var n=r||8192,i=n>>>1,a=null,o=n;return function(r){if(r<1||r>i)return e(r);o+r>n&&(a=e(n),o=0);var s=t.call(a,o,o+=r);return 7&o&&(o=1+(7|o)),s}}},1447:(e,t)=>{"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var n,i=null,a=[],o=0;t<r;)(n=e[t++])<128?a[o++]=n:n>191&&n<224?a[o++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,a[o++]=55296+(n>>10),a[o++]=56320+(1023&n)):a[o++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,a.slice(0,o))),i.join("")):String.fromCharCode.apply(String,a.slice(0,o))},r.write=function(e,t,r){for(var n,i,a=r,o=0;o<e.length;++o)(n=e.charCodeAt(o))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(i=e.charCodeAt(o+1)))?(n=65536+((1023&n)<<10)+(1023&i),++o,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-a}},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,a=s(e),o=a[0],u=a[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,u)),l=0,d=u>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(u(e,s,s+o>c?c:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9674:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=t.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function a(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=a(t)^n>>5}for(t=a(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=a(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var u=e.slice(0,s),c=e.slice(s+1);if(c.length<6)return"Data too short";var l=o(u);if("string"==typeof l)return l;for(var d=[],f=0;f<c.length;++f){var h=c.charAt(f),p=r[h];if(void 0===p)return"Unknown character "+h;l=a(l)^p,f+6>=c.length||d.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:u,words:d}}function u(e,t,r,n){for(var i=0,a=0,o=(1<<r)-1,s=[],u=0;u<e.length;++u)for(i=i<<t|e[u],a+=t;a>=r;)a-=r,s.push(i>>a&o);if(n)a>0&&s.push(i<<r-a&o);else{if(a>=t)return"Excess padding";if(i<<r-a&o)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=o(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var s=e+"1",u=0;u<r.length;++u){var c=r[u];if(c>>5)throw new Error("Non 5-bit word");i=a(i)^c,s+=t.charAt(c)}for(u=0;u<6;++u)i=a(i);for(i^=1,u=0;u<6;++u)s+=t.charAt(i>>5*(5-u)&31);return s},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},1594:function(e,t,r){var n;!function(){"use strict";var i,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,s=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",l=1e14,d=14,f=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e7,g=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function y(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(t=e[n++]+"",r=d-t.length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function b(e,t){var r,n,i=e.c,a=t.c,o=e.s,s=t.s,u=e.e,c=t.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=u==c,!i||!a)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(s=(u=i.length)<(c=a.length)?u:c,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return u==c?0:u>c^r?1:-1}function v(e,t,r,n){if(e<t||e>r||e!==s(e))throw Error(u+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return m(e.e/d)==t&&e.c[t]%2!=0}function A(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function T(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}i=function e(t){var r,n,i,_,S,E,I,C,k,B,O=H.prototype={constructor:H,toString:null,valueOf:null},x=new H(1),N=20,P=4,D=-7,R=21,L=-1e7,U=1e7,M=!1,F=1,j=0,z={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},V="0123456789abcdefghijklmnopqrstuvwxyz";function H(e,t){var r,o,u,l,h,p,g,m,y=this;if(!(y instanceof H))return new H(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>U?y.c=y.e=null:e.e<L?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,h=e;h>=10;h/=10,l++);return void(l>U?y.c=y.e=null:(y.e=l,y.c=[e]))}m=String(e)}else{if(!a.test(m=String(e)))return i(y,m,p);y.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(l=m.indexOf("."))>-1&&(m=m.replace(".","")),(h=m.search(/e/i))>0?(l<0&&(l=h),l+=+m.slice(h+1),m=m.substring(0,h)):l<0&&(l=m.length)}else{if(v(t,2,V.length,"Base"),10==t)return K(y=new H(e),N+y.e+1,P);if(m=String(e),p="number"==typeof e){if(0*e!=0)return i(y,m,p,t);if(y.s=1/e<0?(m=m.slice(1),-1):1,H.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else y.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(r=V.slice(0,t),l=h=0,g=m.length;h<g;h++)if(r.indexOf(o=m.charAt(h))<0){if("."==o){if(h>l){l=g;continue}}else if(!u&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){u=!0,h=-1,l=0;continue}return i(y,String(e),p,t)}p=!1,(l=(m=n(m,t,10,y.s)).indexOf("."))>-1?m=m.replace(".",""):l=m.length}for(h=0;48===m.charCodeAt(h);h++);for(g=m.length;48===m.charCodeAt(--g););if(m=m.slice(h,++g)){if(g-=h,p&&H.DEBUG&&g>15&&(e>f||e!==s(e)))throw Error(c+y.s*e);if((l=l-h-1)>U)y.c=y.e=null;else if(l<L)y.c=[y.e=0];else{if(y.e=l,y.c=[],h=(l+1)%d,l<0&&(h+=d),h<g){for(h&&y.c.push(+m.slice(0,h)),g-=d;h<g;)y.c.push(+m.slice(h,h+=d));h=d-(m=m.slice(h)).length}else h-=g;for(;h--;m+="0");y.c.push(+m)}}else y.c=[y.e=0]}function q(e,t,r,n){var i,a,o,s,u;if(null==r?r=P:v(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)u=y(e.c),u=1==n||2==n&&(o<=D||o>=R)?A(u,o):T(u,o,"0");else if(a=(e=K(new H(e),t,r)).e,s=(u=y(e.c)).length,1==n||2==n&&(t<=a||a<=D)){for(;s<t;u+="0",s++);u=A(u,a)}else if(t-=o,u=T(u,a,"0"),a+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=a-s)>0)for(a+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function G(e,t){for(var r,n=1,i=new H(e[0]);n<e.length;n++){if(!(r=new H(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function Q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*d-1)>U?e.c=e.e=null:r<L?e.c=[e.e=0]:(e.e=r,e.c=t),e}function K(e,t,r,n){var i,a,u,c,f,p,g,m=e.c,y=h;if(m){e:{for(i=1,c=m[0];c>=10;c/=10,i++);if((a=t-i)<0)a+=d,u=t,g=(f=m[p=0])/y[i-u-1]%10|0;else if((p=o((a+1)/d))>=m.length){if(!n)break e;for(;m.length<=p;m.push(0));f=g=0,i=1,u=(a%=d)-d+1}else{for(f=c=m[p],i=1;c>=10;c/=10,i++);g=(u=(a%=d)-d+i)<0?0:f/y[i-u-1]%10|0}if(n=n||t<0||null!=m[p+1]||(u<0?f:f%y[i-u-1]),n=r<4?(g||n)&&(0==r||r==(e.s<0?3:2)):g>5||5==g&&(4==r||n||6==r&&(a>0?u>0?f/y[i-u]:0:m[p-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=y[(d-t%d)%d],e.e=-t||0):m[0]=e.e=0,e;if(0==a?(m.length=p,c=1,p--):(m.length=p+1,c=y[d-a],m[p]=u>0?s(f/y[i-u]%y[u])*c:0),n)for(;;){if(0==p){for(a=1,u=m[0];u>=10;u/=10,a++);for(u=m[0]+=c,c=1;u>=10;u/=10,c++);a!=c&&(e.e++,m[0]==l&&(m[0]=1));break}if(m[p]+=c,m[p]!=l)break;m[p--]=0,c=1}for(a=m.length;0===m[--a];m.pop());}e.e>U?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}function W(e){var t,r=e.e;return null===r?e.toString():(t=y(e.c),t=r<=D||r>=R?A(t,r):T(t,r,"0"),e.s<0?"-"+t:t)}return H.clone=e,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(r=e[t],0,g,t),N=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(r=e[t],0,8,t),P=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(v(r[0],-g,0,t),v(r[1],0,g,t),D=r[0],R=r[1]):(v(r,-g,g,t),D=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)v(r[0],-g,-1,t),v(r[1],1,g,t),L=r[0],U=r[1];else{if(v(r,-g,g,t),!r)throw Error(u+t+" cannot be zero: "+r);L=-(U=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(u+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(u+"crypto unavailable");M=r}else M=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(r=e[t],0,9,t),F=r),e.hasOwnProperty(t="POW_PRECISION")&&(v(r=e[t],0,g,t),j=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(u+t+" not an object: "+r);z=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);V=r}}return{DECIMAL_PLACES:N,ROUNDING_MODE:P,EXPONENTIAL_AT:[D,R],RANGE:[L,U],CRYPTO:M,MODULO_MODE:F,POW_PRECISION:j,FORMAT:z,ALPHABET:V}},H.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!H.DEBUG)return!0;var t,r,n=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-g&&i<=g&&i===s(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%d)<1&&(t+=d),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=l||r!==s(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(u+"Invalid BigNumber: "+e)},H.maximum=H.max=function(){return G(arguments,O.lt)},H.minimum=H.min=function(){return G(arguments,O.gt)},H.random=(_=9007199254740992,S=Math.random()*_&2097151?function(){return s(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,a,c=0,l=[],f=new H(x);if(null==e?e=N:v(e,0,g),i=o(e/d),M)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));c<i;)(a=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(l.push(a%1e14),c+=2);c=i/2}else{if(!crypto.randomBytes)throw M=!1,Error(u+"crypto unavailable");for(t=crypto.randomBytes(i*=7);c<i;)(a=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(l.push(a%1e14),c+=7);c=i/7}if(!M)for(;c<i;)(a=S())<9e15&&(l[c++]=a%1e14);for(i=l[--c],e%=d,i&&e&&(a=h[d-e],l[c]=s(i/a)*a);0===l[c];l.pop(),c--);if(c<0)l=[n=0];else{for(n=-1;0===l[0];l.splice(0,1),n-=d);for(c=1,a=l[0];a>=10;a/=10,c++);c<d&&(n-=d-c)}return f.e=n,f.c=l,f}),H.sum=function(){for(var e=1,t=arguments,r=new H(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){var e="0123456789";function t(e,t,r,n){for(var i,a,o=[0],s=0,u=e.length;s<u;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(s++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,a,o,s){var u,c,l,d,f,h,p,g,m=n.indexOf("."),b=N,v=P;for(m>=0&&(d=j,j=0,n=n.replace(".",""),h=(g=new H(i)).pow(n.length-m),j=d,g.c=t(T(y(h.c),h.e,"0"),10,a,e),g.e=g.c.length),l=d=(p=t(n,i,a,s?(u=V,e):(u=e,V))).length;0==p[--d];p.pop());if(!p[0])return u.charAt(0);if(m<0?--l:(h.c=p,h.e=l,h.s=o,p=(h=r(h,g,b,v,a)).c,f=h.r,l=h.e),m=p[c=l+b+1],d=a/2,f=f||c<0||null!=p[c+1],f=v<4?(null!=m||f)&&(0==v||v==(h.s<0?3:2)):m>d||m==d&&(4==v||f||6==v&&1&p[c-1]||v==(h.s<0?8:7)),c<1||!p[0])n=f?T(u.charAt(1),-b,u.charAt(0)):u.charAt(0);else{if(p.length=c,f)for(--a;++p[--c]>a;)p[c]=0,c||(++l,p=[1].concat(p));for(d=p.length;!p[--d];);for(m=0,n="";m<=d;n+=u.charAt(p[m++]));n=T(n,l,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,a,o,s=0,u=e.length,c=t%p,l=t/p|0;for(e=e.slice();u--;)s=((i=c*(a=e[u]%p)+(n=l*a+(o=e[u]/p|0)*c)%p*p+s)/r|0)+(n/p|0)+l*o,e[u]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,a,o,u){var c,f,h,p,g,y,b,v,w,A,T,_,S,E,I,C,k,B=n.s==i.s?1:-1,O=n.c,x=i.c;if(!(O&&O[0]&&x&&x[0]))return new H(n.s&&i.s&&(O?!x||O[0]!=x[0]:x)?O&&0==O[0]||!x?0*B:B/0:NaN);for(w=(v=new H(B)).c=[],B=a+(f=n.e-i.e)+1,u||(u=l,f=m(n.e/d)-m(i.e/d),B=B/d|0),h=0;x[h]==(O[h]||0);h++);if(x[h]>(O[h]||0)&&f--,B<0)w.push(1),p=!0;else{for(E=O.length,C=x.length,h=0,B+=2,(g=s(u/(x[0]+1)))>1&&(x=e(x,g,u),O=e(O,g,u),C=x.length,E=O.length),S=C,T=(A=O.slice(0,C)).length;T<C;A[T++]=0);k=x.slice(),k=[0].concat(k),I=x[0],x[1]>=u/2&&I++;do{if(g=0,(c=t(x,A,C,T))<0){if(_=A[0],C!=T&&(_=_*u+(A[1]||0)),(g=s(_/I))>1)for(g>=u&&(g=u-1),b=(y=e(x,g,u)).length,T=A.length;1==t(y,A,b,T);)g--,r(y,C<b?k:x,b,u),b=y.length,c=1;else 0==g&&(c=g=1),b=(y=x.slice()).length;if(b<T&&(y=[0].concat(y)),r(A,y,T,u),T=A.length,-1==c)for(;t(x,A,C,T)<1;)g++,r(A,C<T?k:x,T,u),T=A.length}else 0===c&&(g++,A=[0]);w[h++]=g,A[0]?A[T++]=O[S]||0:(A=[O[S]],T=1)}while((S++<E||null!=A[0])&&B--);p=null!=A[0],w[0]||w.splice(0,1)}if(u==l){for(h=1,B=w[0];B>=10;B/=10,h++);K(v,a+(v.e=h+f*d-1)+1,o,p)}else v.e=f,v.r=+p;return v}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,C=/^\.([^.]+)$/,k=/^-?(Infinity|NaN)$/,B=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,r,n){var i,a=r?t:t.replace(B,"");if(k.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(E,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,a=a.replace(I,"$1").replace(C,"0.$1")),t!=a))return new H(a,i);if(H.DEBUG)throw Error(u+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},O.absoluteValue=O.abs=function(){var e=new H(this);return e.s<0&&(e.s=1),e},O.comparedTo=function(e,t){return b(this,new H(e,t))},O.decimalPlaces=O.dp=function(e,t){var r,n,i,a=this;if(null!=e)return v(e,0,g),null==t?t=P:v(t,0,8),K(new H(a),e+a.e+1,t);if(!(r=a.c))return null;if(n=((i=r.length-1)-m(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},O.dividedBy=O.div=function(e,t){return r(this,new H(e,t),N,P)},O.dividedToIntegerBy=O.idiv=function(e,t){return r(this,new H(e,t),0,1)},O.exponentiatedBy=O.pow=function(e,t){var r,n,i,a,c,l,f,h,p=this;if((e=new H(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+W(e));if(null!=t&&(t=new H(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new H(Math.pow(+W(p),c?2-w(e):+W(e))),t?h.mod(t):h;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new H(NaN);(n=!l&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return a=p.s<0&&w(e)?-0:0,p.e>-1&&(a=1/a),new H(l?1/a:a);j&&(a=o(j/d+2))}for(c?(r=new H(.5),l&&(e.s=1),f=w(e)):f=(i=Math.abs(+W(e)))%2,h=new H(x);;){if(f){if(!(h=h.times(p)).c)break;a?h.c.length>a&&(h.c.length=a):n&&(h=h.mod(t))}if(i){if(0===(i=s(i/2)))break;f=i%2}else if(K(e=e.times(r),e.e+1,1),e.e>14)f=w(e);else{if(0==(i=+W(e)))break;f=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):n&&(p=p.mod(t))}return n?h:(l&&(h=x.div(h)),t?h.mod(t):a?K(h,j,P,void 0):h)},O.integerValue=function(e){var t=new H(this);return null==e?e=P:v(e,0,8),K(t,t.e+1,e)},O.isEqualTo=O.eq=function(e,t){return 0===b(this,new H(e,t))},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(e,t){return b(this,new H(e,t))>0},O.isGreaterThanOrEqualTo=O.gte=function(e,t){return 1===(t=b(this,new H(e,t)))||0===t},O.isInteger=function(){return!!this.c&&m(this.e/d)>this.c.length-2},O.isLessThan=O.lt=function(e,t){return b(this,new H(e,t))<0},O.isLessThanOrEqualTo=O.lte=function(e,t){return-1===(t=b(this,new H(e,t)))||0===t},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&0==this.c[0]},O.minus=function(e,t){var r,n,i,a,o=this,s=o.s;if(t=(e=new H(e,t)).s,!s||!t)return new H(NaN);if(s!=t)return e.s=-t,o.plus(e);var u=o.e/d,c=e.e/d,f=o.c,h=e.c;if(!u||!c){if(!f||!h)return f?(e.s=-t,e):new H(h?o:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new H(f[0]?o:3==P?-0:0)}if(u=m(u),c=m(c),f=f.slice(),s=u-c){for((a=s<0)?(s=-s,i=f):(c=u,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(a=(s=f.length)<(t=h.length))?s:t,s=t=0;t<n;t++)if(f[t]!=h[t]){a=f[t]<h[t];break}if(a&&(i=f,f=h,h=i,e.s=-e.s),(t=(n=h.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=l-1;n>s;){if(f[--n]<h[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=l}f[n]-=h[n]}for(;0==f[0];f.splice(0,1),--c);return f[0]?Q(e,f,c):(e.s=3==P?-1:1,e.c=[e.e=0],e)},O.modulo=O.mod=function(e,t){var n,i,a=this;return e=new H(e,t),!a.c||!e.s||e.c&&!e.c[0]?new H(NaN):!e.c||a.c&&!a.c[0]?new H(a):(9==F?(i=e.s,e.s=1,n=r(a,e,0,3),e.s=i,n.s*=i):n=r(a,e,0,F),(e=a.minus(n.times(e))).c[0]||1!=F||(e.s=a.s),e)},O.multipliedBy=O.times=function(e,t){var r,n,i,a,o,s,u,c,f,h,g,y,b,v,w,A=this,T=A.c,_=(e=new H(e,t)).c;if(!(T&&_&&T[0]&&_[0]))return!A.s||!e.s||T&&!T[0]&&!_||_&&!_[0]&&!T?e.c=e.e=e.s=null:(e.s*=A.s,T&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=m(A.e/d)+m(e.e/d),e.s*=A.s,(u=T.length)<(h=_.length)&&(b=T,T=_,_=b,i=u,u=h,h=i),i=u+h,b=[];i--;b.push(0));for(v=l,w=p,i=h;--i>=0;){for(r=0,g=_[i]%w,y=_[i]/w|0,a=i+(o=u);a>i;)r=((c=g*(c=T[--o]%w)+(s=y*c+(f=T[o]/w|0)*g)%w*w+b[a]+r)/v|0)+(s/w|0)+y*f,b[a--]=c%v;b[a]=r}return r?++n:b.splice(0,1),Q(e,b,n)},O.negated=function(){var e=new H(this);return e.s=-e.s||null,e},O.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new H(e,t)).s,!i||!t)return new H(NaN);if(i!=t)return e.s=-t,n.minus(e);var a=n.e/d,o=e.e/d,s=n.c,u=e.c;if(!a||!o){if(!s||!u)return new H(i/0);if(!s[0]||!u[0])return u[0]?e:new H(s[0]?n:0*i)}if(a=m(a),o=m(o),s=s.slice(),i=a-o){for(i>0?(o=a,r=u):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=u.length)<0&&(r=u,u=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+u[t]+i)/l|0,s[t]=l===s[t]?0:s[t]%l;return i&&(s=[i].concat(s),++o),Q(e,s,o)},O.precision=O.sd=function(e,t){var r,n,i,a=this;if(null!=e&&e!==!!e)return v(e,1,g),null==t?t=P:v(t,0,8),K(new H(a),e,t);if(!(r=a.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&a.e+1>n&&(n=a.e+1),n},O.shiftedBy=function(e){return v(e,-9007199254740991,f),this.times("1e"+e)},O.squareRoot=O.sqrt=function(){var e,t,n,i,a,o=this,s=o.c,u=o.s,c=o.e,l=N+4,d=new H("0.5");if(1!==u||!s||!s[0])return new H(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+W(o)))||u==1/0?(((t=y(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=m((c+1)/2)-(c<0||c%2),n=new H(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new H(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(a=n,n=d.times(a.plus(r(o,a,l,1))),y(a.c).slice(0,u)===(t=y(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(n,n.e+N+2,1),e=!n.times(n).eq(o));break}if(!i&&(K(a,a.e+N+2,0),a.times(a).eq(o))){n=a;break}l+=4,u+=4,i=1}return K(n,n.e+N+1,P,e)},O.toExponential=function(e,t){return null!=e&&(v(e,0,g),e++),q(this,e,t,1)},O.toFixed=function(e,t){return null!=e&&(v(e,0,g),e=e+this.e+1),q(this,e,t)},O.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=z;else if("object"!=typeof r)throw Error(u+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var a,o=n.split("."),s=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",d=o[0],f=o[1],h=i.s<0,p=h?d.slice(1):d,g=p.length;if(c&&(a=s,s=c,c=a,g-=a),s>0&&g>0){for(a=g%s||s,d=p.substr(0,a);a<g;a+=s)d+=l+p.substr(a,s);c>0&&(d+=l+p.slice(a)),h&&(d="-"+d)}n=f?d+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):d}return(r.prefix||"")+n+(r.suffix||"")},O.toFraction=function(e){var t,n,i,a,o,s,c,l,f,p,g,m,b=this,v=b.c;if(null!=e&&(!(c=new H(e)).isInteger()&&(c.c||1!==c.s)||c.lt(x)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+W(c));if(!v)return new H(b);for(t=new H(x),f=n=new H(x),i=l=new H(x),m=y(v),o=t.e=m.length-b.e-1,t.c[0]=h[(s=o%d)<0?d+s:s],e=!e||c.comparedTo(t)>0?o>0?t:f:c,s=U,U=1/0,c=new H(m),l.c[0]=0;p=r(c,t,0,1),1!=(a=n.plus(p.times(i))).comparedTo(e);)n=i,i=a,f=l.plus(p.times(a=f)),l=a,t=c.minus(p.times(a=t)),c=a;return a=r(e.minus(n),i,0,1),l=l.plus(a.times(f)),n=n.plus(a.times(i)),l.s=f.s=b.s,g=r(f,i,o*=2,P).minus(b).abs().comparedTo(r(l,n,o,P).minus(b).abs())<1?[f,i]:[l,n],U=s,g},O.toNumber=function(){return+W(this)},O.toPrecision=function(e,t){return null!=e&&v(e,1,g),q(this,e,t,2)},O.toString=function(e){var t,r=this,i=r.s,a=r.e;return null===a?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=a<=D||a>=R?A(y(r.c),a):T(y(r.c),a,"0"):10===e?t=T(y((r=K(new H(r),N+a+1,P)).c),r.e,"0"):(v(e,2,V.length,"Base"),t=n(T(y(r.c),a,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},O.valueOf=O.toJSON=function(){return W(this)},O._isBigNumber=!0,null!=t&&H.set(t),H}(),i.default=i.BigNumber=i,void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},6907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};let i;t.wordlists=n,t._default=i;try{t._default=i=r(2607),n.czech=i}catch(e){}try{t._default=i=r(5898),n.chinese_simplified=i}catch(e){}try{t._default=i=r(81),n.chinese_traditional=i}catch(e){}try{t._default=i=r(5428),n.korean=i}catch(e){}try{t._default=i=r(5040),n.french=i}catch(e){}try{t._default=i=r(5576),n.italian=i}catch(e){}try{t._default=i=r(5376),n.spanish=i}catch(e){}try{t._default=i=r(7967),n.japanese=i,n.JA=i}catch(e){}try{t._default=i=r(7357),n.portuguese=i}catch(e){}try{t._default=i=r(7736),n.english=i,n.EN=i}catch(e){}},749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2623),i=r(102),a=r(8941),o=r(9175),s=r(6907);let u=s._default;const c="Invalid mnemonic",l="Invalid entropy",d="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function f(e){return(e||"").normalize("NFKD")}function h(e,t,r){for(;e.length<r;)e=t+e;return e}function p(e){return parseInt(e,2)}function g(e){return e.map((e=>h(e.toString(2),"0",8))).join("")}function m(e){const t=8*e.length/32,r=n.sha256(Uint8Array.from(e));return g(Array.from(r)).slice(0,t)}function y(e){return"mnemonic"+(e||"")}function b(e,t){if(!(t=t||u))throw new Error(d);const r=f(e).split(" ");if(r.length%3!=0)throw new Error(c);const n=r.map((e=>{const r=t.indexOf(e);if(-1===r)throw new Error(c);return h(r.toString(2),"0",11)})).join(""),i=32*Math.floor(n.length/33),a=n.slice(0,i),o=n.slice(i),s=a.match(/(.{1,8})/g).map(p);if(s.length<16)throw new Error(l);if(s.length>32)throw new Error(l);if(s.length%4!=0)throw new Error(l);const g=Buffer.from(s);if(m(g)!==o)throw new Error("Invalid mnemonic checksum");return g.toString("hex")}function v(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),!(t=t||u))throw new Error(d);if(e.length<16)throw new TypeError(l);if(e.length>32)throw new TypeError(l);if(e.length%4!=0)throw new TypeError(l);const r=(g(Array.from(e))+m(e)).match(/(.{1,11})/g).map((e=>{const r=p(e);return t[r]}));return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Uint8Array.from(Buffer.from(f(e),"utf8")),n=Uint8Array.from(Buffer.from(y(f(t)),"utf8")),o=a.pbkdf2(i.sha512,r,n,{c:2048,dkLen:64});return Buffer.from(o)},t.mnemonicToSeed=function(e,t){const r=Uint8Array.from(Buffer.from(f(e),"utf8")),n=Uint8Array.from(Buffer.from(y(f(t)),"utf8"));return a.pbkdf2Async(i.sha512,r,n,{c:2048,dkLen:64}).then((e=>Buffer.from(e)))},t.mnemonicToEntropy=b,t.entropyToMnemonic=v,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(l);return v((t=t||(e=>Buffer.from(o.randomBytes(e))))(e/8),r)},t.validateMnemonic=function(e,t){try{b(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=s.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');u=t},t.getDefaultWordlist=function(){if(!u)throw new Error("No Default Wordlist set");return Object.keys(s.wordlists).filter((e=>"JA"!==e&&"EN"!==e&&s.wordlists[e].every(((e,t)=>e===u[t]))))[0]};var w=r(6907);t.wordlists=w.wordlists},1892:(e,t,r)=>{function n(e){if(!n.supported)return null;var t,a=e&&e.imports,o=(t="AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMK00AElgMAIABCADcDACAAQQhqQgA3AwAgAEEQakIANwMAIABBGGpCADcDACAAQSBqQgA3AwAgAEEoakIANwMAIABBMGpCADcDACAAQThqQgA3AwAgAEHAAGpCADcDACAAQcgAakIANwMAIABB0ABqQgA3AwAgAEHYAGpCADcDACAAQeAAakIANwMAIABB6ABqQgA3AwAgAEHwAGpCADcDACAAQfgAakIANwMAIABBgAFqQoiS853/zPmE6gBBACkDAIU3AwAgAEGIAWpCu86qptjQ67O7f0EIKQMAhTcDACAAQZABakKr8NP0r+68tzxBECkDAIU3AwAgAEGYAWpC8e30+KWn/aelf0EYKQMAhTcDACAAQaABakLRhZrv+s+Uh9EAQSApAwCFNwMAIABBqAFqQp/Y+dnCkdqCm39BKCkDAIU3AwAgAEGwAWpC6/qG2r+19sEfQTApAwCFNwMAIABBuAFqQvnC+JuRo7Pw2wBBOCkDAIU3AwAgAEHAAWpCADcDACAAQcgBakIANwMAIABB0AFqQgA3AwALbQEDfyAAQcABaiEDIABByAFqIQQgBCkDAKchBQJAA0AgASACRg0BIAVBgAFGBEAgAyADKQMAIAWtfDcDAEEAIQUgABADCyAAIAVqIAEtAAA6AAAgBUEBaiEFIAFBAWohAQwACwsgBCAFrTcDAAtkAQN/IABBwAFqIQEgAEHIAWohAiABIAEpAwAgAikDAHw3AwAgAEHQAWpCfzcDACACKQMApyEDAkADQCADQYABRg0BIAAgA2pBADoAACADQQFqIQMMAAsLIAIgA603AwAgABADC+U7AiB+CX8gAEGAAWohISAAQYgBaiEiIABBkAFqISMgAEGYAWohJCAAQaABaiElIABBqAFqISYgAEGwAWohJyAAQbgBaiEoICEpAwAhASAiKQMAIQIgIykDACEDICQpAwAhBCAlKQMAIQUgJikDACEGICcpAwAhByAoKQMAIQhCiJLznf/M+YTqACEJQrvOqqbY0Ouzu38hCkKr8NP0r+68tzwhC0Lx7fT4paf9p6V/IQxC0YWa7/rPlIfRACENQp/Y+dnCkdqCm38hDkLr+obav7X2wR8hD0L5wvibkaOz8NsAIRAgACkDACERIABBCGopAwAhEiAAQRBqKQMAIRMgAEEYaikDACEUIABBIGopAwAhFSAAQShqKQMAIRYgAEEwaikDACEXIABBOGopAwAhGCAAQcAAaikDACEZIABByABqKQMAIRogAEHQAGopAwAhGyAAQdgAaikDACEcIABB4ABqKQMAIR0gAEHoAGopAwAhHiAAQfAAaikDACEfIABB+ABqKQMAISAgDSAAQcABaikDAIUhDSAPIABB0AFqKQMAhSEPIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgFXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBZ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAXfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBl8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAafHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgG3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBx8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAdfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHnx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB98fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAgfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgH3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBt8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAVfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBp8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAgfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggHnx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBd8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiASfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBF8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByATfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBh8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAWfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBx8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAZfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgHXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBF8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAWfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgE3x8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIICB8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAefHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgG3x8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB98fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAUfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgF3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBh8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCASfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgGnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBV8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAYfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgGnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBR8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiASfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgHnx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIB18fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAcfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggH3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBN8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAXfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgFnx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBt8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAVfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggEXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFICB8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAZfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgGnx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBF8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAWfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGHx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBN8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAVfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggG3x8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIICB8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAffHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgEnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBx8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAdfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggF3x8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBl8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAUfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgHnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBN8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAdfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgF3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBt8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByARfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBl8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAUfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgFXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB58fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAYfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgFnx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIICB8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAffHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgEnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBp8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAdfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgFnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBJ8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAgfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgH3x8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIB58fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAVfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggG3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBF8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAYfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgF3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBR8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAafHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggE3x8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBl8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAcfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgHnx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBx8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAYfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgH3x8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIB18fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByASfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggFHx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBp8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAWfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgEXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHICB8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAVfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggGXx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBd8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSATfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgG3x8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBd8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAgfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgH3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBp8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAcfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgFHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBF8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAZfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgHXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBN8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAefHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgGHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBJ8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAVfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgG3x8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBZ8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAbfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgE3x8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBl8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAVfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgGHx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBd8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCASfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggFnx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGICB8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAcfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgGnx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIB98fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAUfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB58fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSARfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgEXx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBJ8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiATfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgFHx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBV8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAWfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggF3x8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBh8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAZfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgGnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBt8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAcfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHXx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIB58fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAffHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgIHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIB98fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAbfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgFXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBl8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAafHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgIHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIB58fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAXfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgEnx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB18fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByARfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgE3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBx8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAYfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgFnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBR8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFICEgISkDACABIAmFhTcDACAiICIpAwAgAiAKhYU3AwAgIyAjKQMAIAMgC4WFNwMAICQgJCkDACAEIAyFhTcDACAlICUpAwAgBSANhYU3AwAgJiAmKQMAIAYgDoWFNwMAICcgJykDACAHIA+FhTcDACAoICgpAwAgCCAQhYU3AwAL","function"==typeof atob?new Uint8Array(atob(t).split("").map(i)):new(r(8287).Buffer)(t,"base64")),s=null,u={buffer:o,memory:null,exports:null,realloc:function(e){u.exports.memory.grow(Math.ceil(Math.abs(e-u.memory.length)/65536)),u.memory=new Uint8Array(u.exports.memory.buffer)},onload:c};return c((function(){})),u;function c(t){if(u.exports)return t();if(s)s.then(t.bind(null,null)).catch(t);else{try{if(e&&e.async)throw new Error("async");l({instance:new WebAssembly.Instance(new WebAssembly.Module(o),a)})}catch(e){s=WebAssembly.instantiate(o,a).then(l)}c(t)}}function l(e){u.exports=e.instance.exports,u.memory=u.exports.memory&&u.exports.memory.buffer&&new Uint8Array(u.exports.memory.buffer)}}function i(e){return e.charCodeAt(0)}e.exports=n,n.supported="undefined"!=typeof WebAssembly},1685:(e,t,r)=>{var n=r(6889),i=r(1892)(),a=64,o=[];e.exports=h;var s=e.exports.BYTES_MIN=16,u=e.exports.BYTES_MAX=64,c=(e.exports.BYTES=32,e.exports.KEYBYTES_MIN=16),l=e.exports.KEYBYTES_MAX=64,d=(e.exports.KEYBYTES=32,e.exports.SALTBYTES=16),f=e.exports.PERSONALBYTES=16;function h(e,t,r,p,g){if(!(this instanceof h))return new h(e,t,r,p,g);if(!i||!i.exports)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");e||(e=32),!0!==g&&(n(e>=s,"digestLength must be at least "+s+", was given "+e),n(e<=u,"digestLength must be at most "+u+", was given "+e),null!=t&&n(t.length>=c,"key must be at least "+c+", was given "+t.length),null!=t&&n(t.length<=l,"key must be at least "+l+", was given "+t.length),null!=r&&n(r.length===d,"salt must be exactly "+d+", was given "+r.length),null!=p&&n(p.length===f,"personal must be exactly "+f+", was given "+p.length)),o.length||(o.push(a),a+=216),this.digestLength=e,this.finalized=!1,this.pointer=o.pop(),i.memory.fill(0,0,64),i.memory[0]=this.digestLength,i.memory[1]=t?t.length:0,i.memory[2]=1,i.memory[3]=1,r&&i.memory.set(r,32),p&&i.memory.set(p,48),this.pointer+216>i.memory.length&&i.realloc(this.pointer+216),i.exports.blake2b_init(this.pointer,this.digestLength),t&&(this.update(t),i.memory.fill(0,a,a+t.length),i.memory[this.pointer+200]=128)}function p(){}h.prototype.update=function(e){return n(!1===this.finalized,"Hash instance finalized"),n(e,"input must be TypedArray or Buffer"),a+e.length>i.memory.length&&i.realloc(a+e.length),i.memory.set(e,a),i.exports.blake2b_update(this.pointer,a,a+e.length),this},h.prototype.digest=function(e){if(n(!1===this.finalized,"Hash instance finalized"),this.finalized=!0,o.push(this.pointer),i.exports.blake2b_final(this.pointer),!e||"binary"===e)return i.memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if("hex"===e)return function(e,t,r){for(var n="",i=0;i<r;i++)n+=(a=e[t+i])<16?"0"+a.toString(16):a.toString(16);var a;return n}(i.memory,this.pointer+128,this.digestLength);n(e.length>=this.digestLength,"input must be TypedArray or Buffer");for(var t=0;t<this.digestLength;t++)e[t]=i.memory[this.pointer+128+t];return e},h.prototype.final=h.prototype.digest,h.WASM=i&&i.buffer,h.SUPPORTED="undefined"!=typeof WebAssembly,h.ready=function(e){return e||(e=p),i?new Promise((function(t,r){i.onload((function(n){n?r():t(),e(n)}))})):e(new Error("WebAssembly not supported"))},h.prototype.ready=h.ready},2206:(e,t,r)=>{var n=r(6889),i=r(1685);function a(e,t,r){var n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){var i=e[t]+r;r<0&&(i+=4294967296);var a=e[t+1]+n;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function s(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function u(e,t,r,n,i,s){var u=f[i],c=f[i+1],l=f[s],h=f[s+1];a(d,e,t),o(d,e,u,c);var p=d[n]^d[e],g=d[n+1]^d[e+1];d[n]=g,d[n+1]=p,a(d,r,n),p=d[t]^d[r],g=d[t+1]^d[r+1],d[t]=p>>>24^g<<8,d[t+1]=g>>>24^p<<8,a(d,e,t),o(d,e,l,h),p=d[n]^d[e],g=d[n+1]^d[e+1],d[n]=p>>>16^g<<16,d[n+1]=g>>>16^p<<16,a(d,r,n),p=d[t]^d[r],g=d[t+1]^d[r+1],d[t]=g>>>31^p<<1,d[t+1]=p>>>31^g<<1}var c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),d=new Uint32Array(32),f=new Uint32Array(32);function h(e,t){var r=0;for(r=0;r<16;r++)d[r]=e.h[r],d[r+16]=c[r];for(d[24]=d[24]^e.t,d[25]=d[25]^e.t/4294967296,t&&(d[28]=~d[28],d[29]=~d[29]),r=0;r<32;r++)f[r]=s(e.b,4*r);for(r=0;r<12;r++)u(0,8,16,24,l[16*r+0],l[16*r+1]),u(2,10,18,26,l[16*r+2],l[16*r+3]),u(4,12,20,28,l[16*r+4],l[16*r+5]),u(6,14,22,30,l[16*r+6],l[16*r+7]),u(0,10,20,30,l[16*r+8],l[16*r+9]),u(2,12,22,24,l[16*r+10],l[16*r+11]),u(4,14,16,26,l[16*r+12],l[16*r+13]),u(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^d[r]^d[r+16]}var p=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function g(e,t,r,n){p.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=e,p[0]=e,t&&(p[1]=t.length),p[2]=1,p[3]=1,r&&p.set(r,32),n&&p.set(n,48);for(var i=0;i<16;i++)this.h[i]=c[i]^s(p,4*i);t&&(m(this,t),this.c=128)}function m(e,t){for(var r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,h(e,!1),e.c=0),e.b[e.c++]=t[r]}g.prototype.update=function(e){return n(null!=e,"input must be Uint8Array or Buffer"),m(this,e),this},g.prototype.digest=function(e){var t=e&&"binary"!==e&&"hex"!==e?e:new Uint8Array(this.outlen);return n(t.length>=this.outlen,"out must have at least outlen bytes of space"),function(e,t){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;h(e,!0);for(var r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)}(this,t),"hex"===e?function(e){for(var t="",r=0;r<e.length;r++)t+=(n=e[r])<16?"0"+n.toString(16):n.toString(16);var n;return t}(t):t},g.prototype.final=g.prototype.digest,g.ready=function(e){i.ready((function(){e()}))};var y=g;e.exports=function(e,t,r,i,a){return!0!==a&&(n(e>=b,"outlen must be at least "+b+", was given "+e),n(e<=v,"outlen must be at most "+v+", was given "+e),null!=t&&n(t.length>=w,"key must be at least "+w+", was given "+t.length),null!=t&&n(t.length<=A,"key must be at most "+A+", was given "+t.length),null!=r&&n(r.length===T,"salt must be exactly "+T+", was given "+r.length),null!=i&&n(i.length===_,"personal must be exactly "+_+", was given "+i.length)),new y(e,t,r,i)},e.exports.ready=function(e){i.ready((function(){e()}))},e.exports.WASM_SUPPORTED=i.SUPPORTED,e.exports.WASM_LOADED=!1;var b=e.exports.BYTES_MIN=16,v=e.exports.BYTES_MAX=64,w=(e.exports.BYTES=32,e.exports.KEYBYTES_MIN=16),A=e.exports.KEYBYTES_MAX=64,T=(e.exports.KEYBYTES=32,e.exports.SALTBYTES=16),_=e.exports.PERSONALBYTES=16;i.ready((function(t){t||(e.exports.WASM_LOADED=!0,y=i)}))},8287:(e,t,r)=>{"use strict";const n=r(7526),i=r(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if($(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function p(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(i)return n?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let a,o=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(a=r;a<s;a++)if(c(e,a)===c(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===u)return n*o}else-1!==n&&(a-=a-n),n=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){let r=!0;for(let n=0;n<u;n++)if(c(e,a+n)!==c(t,n)){r=!1;break}if(r)return a}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const a=t.length;let o;for(n>a/2&&(n=a/2),o=0;o<n;++o){const n=parseInt(t.substr(2*o,2),16);if(Y(n))return o;e[r+o]=n}return o}function A(e,t,r,n){return W(Q(t,e.length-r),e,r,n)}function T(e,t,r,n){return W(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r,n){return W(K(t),e,r,n)}function S(e,t,r,n){return W(function(e,t){let r,n,i;const a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,s,u;switch(o){case 1:t<128&&(a=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(a=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(a=u))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=o}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=C));return r}(n)}t.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},u.allocUnsafe=function(e){return d(e)},u.allocUnsafeSlow=function(e){return d(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if($(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=u.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if($(t,Uint8Array))i+t.length>n.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):m.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if($(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0);const s=Math.min(a,o),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e<s;++e)if(c[e]!==l[e]){a=c[e],o=l[e];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return T(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function k(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function B(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=J[e[n]];return i}function x(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function N(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n,i){V(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function R(e,t,r,n,i){V(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function L(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,a){return t=+t,r>>>=0,a||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,a){return t=+t,r>>>=0,a||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);let n=this[e],i=1,a=0;for(;++a<t&&(i*=256);)n+=this[e+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=X((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);let n=this[e],i=1,a=0;for(;++a<t&&(i*=256);)n+=this[e+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);let n=t,i=1,a=this[e+--n];for(;n>0&&(i*=256);)a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=X((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||P(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||P(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=X((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=X((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}let i=0,a=1,o=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}let i=r-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=X((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=X((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const a=u.isBuffer(e)?e:u.from(e,n),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%o]}return this};const F={};function j(e,t,r){F[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function V(e,t,r,n,i,a){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=a>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(a+1)}${n}`:`>= -(2${n} ** ${8*(a+1)-1}${n}) and < 2 ** ${8*(a+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||q(t,e.length-(r+1))}(n,i,a)}function H(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,r){if(Math.floor(e)!==e)throw H(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function Q(e,t){let r;t=t||1/0;const n=e.length;let i=null;const a=[];for(let o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function K(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},6168:(e,t,r)=>{"use strict";var n=r(2861).Buffer,i=r(7406).Transform,a=r(3141).I;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(6698)(o,i);var s="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);o.prototype.update=function(e,t,r){var i=function(e,t){if(e instanceof n)return e;if("string"==typeof e)return n.from(e,t);if(u&&ArrayBuffer.isView(e)){if(0===e.byteLength)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(s&&e instanceof Uint8Array)return n.from(e);if(n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(e,t),a=this._update(i);return this.hashMode?this:(r&&(a=this._toString(a,r)),a)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=o},320:(e,t,r)=>{var n=r(8276);e.exports=function(e){return(new n).update(e).digest()}},3507:(e,t,r)=>{"use strict";var n=r(6698),i=r(1800),a=r(6168),o=r(2861).Buffer,s=r(320),u=r(6011),c=r(2802),l=o.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=o.concat([t,l],r));for(var n=this._ipad=o.allocUnsafe(r),i=this._opad=o.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},1800:(e,t,r)=>{"use strict";var n=r(6698),i=r(2861).Buffer,a=r(6168),o=i.alloc(128),s=64;function u(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,o],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],n[u]=92^t[u];this._hash=[r]}n(u,a),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=u},7680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3507),i=r(8947),a=r(2665);t.getMasterKeyFromSeed=e=>{const t=n("sha512","ed25519 seed").update(Buffer.from(e,"hex")).digest();return{key:t.slice(0,32),chainCode:t.slice(32)}},t.getPublicKey=(e,t=!0)=>{const r=i.sign.keyPair.fromSeed(e).secretKey.subarray(32),n=Buffer.alloc(1,0);return t?Buffer.concat([n,Buffer.from(r)]):Buffer.from(r)},t.isValidPath=e=>!!a.pathRegex.test(e)&&!e.split("/").slice(1).map(a.replaceDerive).some(isNaN),t.derivePath=(e,r)=>{if(!t.isValidPath(e))throw new Error("Invalid derivation path");const{key:i,chainCode:o}=t.getMasterKeyFromSeed(r);return e.split("/").slice(1).map(a.replaceDerive).map((e=>parseInt(e,10))).reduce(((e,t)=>(({key:e,chainCode:t},r)=>{const i=Buffer.allocUnsafe(4);i.writeUInt32BE(r,0);const a=Buffer.concat([Buffer.alloc(1,0),e,i]),o=n("sha512",t).update(a).digest();return{key:o.slice(0,32),chainCode:o.slice(32)}})(e,t+2147483648)),{key:i,chainCode:o})}},2665:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathRegex=new RegExp("^m(\\/[0-9]+')+$"),t.replaceDerive=e=>e.replace("'","")},8385:function(e,t,r){!function(t,n){"use strict";e.exports?e.exports=n(r(8947)):t.ed2curve=n(t.nacl)}(this,(function(e){"use strict";if(!e)throw new Error("tweetnacl not loaded");var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},r=t(),n=t([1]),i=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),a=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function o(e){var t,r;for(r=0;r<16;r++)e[r]+=65536,t=Math.floor(e[r]/65536),e[(r+1)*(r<15?1:0)]+=t-1+37*(t-1)*(15===r?1:0),e[r]-=65536*t}function s(e,t,r){for(var n,i=~(r-1),a=0;a<16;a++)n=i&(e[a]^t[a]),e[a]^=n,t[a]^=n}function u(e,t,r){var n;for(n=0;n<16;n++)e[n]=t[n]+r[n]|0}function c(e,t,r){var n;for(n=0;n<16;n++)e[n]=t[n]-r[n]|0}function l(e,t,r){var n,i,a=new Float64Array(31);for(n=0;n<31;n++)a[n]=0;for(n=0;n<16;n++)for(i=0;i<16;i++)a[n+i]+=t[n]*r[i];for(n=0;n<15;n++)a[n]+=38*a[n+16];for(n=0;n<16;n++)e[n]=a[n];o(e),o(e)}function d(e,t){l(e,t,t)}function f(e,r){var n,i,a,u=t(),c=t();for(n=0;n<16;n++)c[n]=r[n];for(o(c),o(c),o(c),i=0;i<2;i++){for(u[0]=c[0]-65517,n=1;n<15;n++)u[n]=c[n]-65535-(u[n-1]>>16&1),u[n-1]&=65535;u[15]=c[15]-32767-(u[14]>>16&1),a=u[15]>>16&1,u[14]&=65535,s(c,u,1-a)}for(n=0;n<16;n++)e[2*n]=255&c[n],e[2*n+1]=c[n]>>8}function h(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return f(r,e),f(n,t),function(e,t,r){var n,i=0;for(n=0;n<32;n++)i|=e[0+n]^r[0+n];return(1&i-1>>>8)-1}(r,0,n)}function p(e){var o=new Uint8Array(32),s=[t(),t(),t(),t()],p=t(),g=t();if(function(e,o){var s,p,g=t(),m=t(),y=t(),b=t(),v=t(),w=t(),A=t();return function(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}(e[2],n),function(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],o),d(y,e[1]),l(b,y,i),c(y,y,e[2]),u(b,e[2],b),d(v,b),d(w,v),l(A,w,v),l(g,A,y),l(g,g,b),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)d(i,i),1!==n&&l(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(g,g),l(g,g,y),l(g,g,b),l(g,g,b),l(e[0],g,b),d(m,e[0]),l(m,m,b),h(m,y)&&l(e[0],e[0],a),d(m,e[0]),l(m,m,b),h(m,y)?-1:(s=e[0],f(p=new Uint8Array(32),s),(1&p[0])==o[31]>>7&&c(e[0],r,e[0]),l(e[3],e[0],e[1]),0)}(s,e))return null;var m=s[1];return u(p,n,m),c(g,n,m),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)d(i,i),2!==n&&4!==n&&l(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(g,g),l(p,p,g),f(o,p),o}function g(t){var r,n=new Uint8Array(64),i=new Uint8Array(32);for(e.lowlevel.crypto_hash(n,t,32),n[0]&=248,n[31]&=127,n[31]|=64,r=0;r<32;r++)i[r]=n[r];for(r=0;r<64;r++)n[r]=0;return i}return{convertPublicKey:p,convertSecretKey:g,convertKeyPair:function(e){var t=p(e.publicKey);return t?{publicKey:t,secretKey:g(e.secretKey)}:null}}}))},7007:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,a,o,c;if(s(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){n.once&&e.removeEventListener(t,i),r(a)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var c=u.length,l=p(u,c);for(r=0;r<c;++r)n(l[r],this,t)}return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,a,o;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4729:(e,t,r)=>{"use strict";var n=r(2861).Buffer,i=r(8399).Transform;function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(6698)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},251:(e,t)=>{t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-l)-1,h>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=f,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+d],d+=f,l-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=c}return(h?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,u,c=8*a-i-1,l=(1<<c)-1,d=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(o++,u/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*u-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[r+h]=255&o,h+=p,o/=256,c-=8);e[r+h-p]|=128*g}},6698: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}}},1013:(e,t,r)=>{var n=r(7372).stringify,i=r(8146);e.exports=function(e){return{parse:i(e),stringify:n}},e.exports.parse=i(),e.exports.stringify=n},8146:(e,t,r)=>{var n=null;const i=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,a=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(null!=e){if(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0),t.alwaysParseAsBig=!0===e.alwaysParseAsBig&&e.alwaysParseAsBig,t.useNativeBigInt=!0===e.useNativeBigInt&&e.useNativeBigInt,void 0!==e.constructorAction){if("error"!==e.constructorAction&&"ignore"!==e.constructorAction&&"preserve"!==e.constructorAction)throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);t.constructorAction=e.constructorAction}if(void 0!==e.protoAction){if("error"!==e.protoAction&&"ignore"!==e.protoAction&&"preserve"!==e.protoAction)throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`);t.protoAction=e.protoAction}}var o,s,u,c,l={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},d=function(e){throw{name:"SyntaxError",message:e,at:o,text:u}},f=function(e){return e&&e!==s&&d("Expected '"+e+"' instead of '"+s+"'"),s=u.charAt(o),o+=1,s},h=function(){var e,i="";for("-"===s&&(i="-",f("-"));s>="0"&&s<="9";)i+=s,f();if("."===s)for(i+=".";f()&&s>="0"&&s<="9";)i+=s;if("e"===s||"E"===s)for(i+=s,f(),"-"!==s&&"+"!==s||(i+=s,f());s>="0"&&s<="9";)i+=s,f();if(e=+i,isFinite(e))return null==n&&(n=r(1594)),i.length>15?t.storeAsString?i:t.useNativeBigInt?BigInt(i):new n(i):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(e):new n(e):e;d("Bad number")},p=function(){var e,t,r,n="";if('"'===s)for(var i=o;f();){if('"'===s)return o-1>i&&(n+=u.substring(i,o-1)),f(),n;if("\\"===s){if(o-1>i&&(n+=u.substring(i,o-1)),f(),"u"===s){for(r=0,t=0;t<4&&(e=parseInt(f(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof l[s])break;n+=l[s]}i=o}}d("Bad string")},g=function(){for(;s&&s<=" ";)f()};return c=function(){switch(g(),s){case"{":return function(){var e,r=Object.create(null);if("{"===s){if(f("{"),g(),"}"===s)return f("}"),r;for(;s;){if(e=p(),g(),f(":"),!0===t.strict&&Object.hasOwnProperty.call(r,e)&&d('Duplicate key "'+e+'"'),!0===i.test(e)?"error"===t.protoAction?d("Object contains forbidden prototype property"):"ignore"===t.protoAction?c():r[e]=c():!0===a.test(e)?"error"===t.constructorAction?d("Object contains forbidden constructor property"):"ignore"===t.constructorAction?c():r[e]=c():r[e]=c(),g(),"}"===s)return f("}"),r;f(","),g()}}d("Bad object")}();case"[":return function(){var e=[];if("["===s){if(f("["),g(),"]"===s)return f("]"),e;for(;s;){if(e.push(c()),g(),"]"===s)return f("]"),e;f(","),g()}}d("Bad array")}();case'"':return p();case"-":return h();default:return s>="0"&&s<="9"?h():function(){switch(s){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null}d("Unexpected '"+s+"'")}()}},function(e,t){var r;return u=e+"",o=0,s=" ",r=c(),g(),s&&d("Syntax error"),"function"==typeof t?function e(r,n){var i,a=r[n];return a&&"object"==typeof a&&Object.keys(a).forEach((function(t){void 0!==(i=e(a,t))?a[t]=i:delete a[t]})),t.call(r,n,a)}({"":r},""):r}}},7372:(e,t,r)=>{var n=r(1594),i=e.exports;!function(){"use strict";var e,t,r,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function u(i,a){var o,c,l,d,f,h=e,p=a[i],g=null!=p&&(p instanceof n||n.isBigNumber(p));switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(i)),"function"==typeof r&&(p=r.call(a,i,p)),typeof p){case"string":return g?p:s(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":case"bigint":return String(p);case"object":if(!p)return"null";if(e+=t,f=[],"[object Array]"===Object.prototype.toString.apply(p)){for(d=p.length,o=0;o<d;o+=1)f[o]=u(o,p)||"null";return l=0===f.length?"[]":e?"[\n"+e+f.join(",\n"+e)+"\n"+h+"]":"["+f.join(",")+"]",e=h,l}if(r&&"object"==typeof r)for(d=r.length,o=0;o<d;o+=1)"string"==typeof r[o]&&(l=u(c=r[o],p))&&f.push(s(c)+(e?": ":":")+l);else Object.keys(p).forEach((function(t){var r=u(t,p);r&&f.push(s(t)+(e?": ":":")+r)}));return l=0===f.length?"{}":e?"{\n"+e+f.join(",\n"+e)+"\n"+h+"}":"{"+f.join(",")+"}",e=h,l}}"function"!=typeof i.stringify&&(i.stringify=function(n,i,a){var o;if(e="",t="","number"==typeof a)for(o=0;o<a;o+=1)t+=" ";else"string"==typeof a&&(t=a);if(r=i,i&&"function"!=typeof i&&("object"!=typeof i||"number"!=typeof i.length))throw new Error("JSON.stringify");return u("",{"":n})})}()},5508:(e,t,r)=>{e.exports=r(9792)(r(4817))},9792:(e,t,r)=>{const n=r(212),i=r(4614);e.exports=function(e){const t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},212:(e,t,r)=>{const{Transform:n}=r(8399);e.exports=e=>class t extends n{constructor(t,r,n,i,a){super(a),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(e)||(e=Buffer.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},4614:(e,t,r)=>{const{Transform:n}=r(8399);e.exports=e=>class t extends n{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(e)||(e=Buffer.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},9078:(e,t)=>{const r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],f=e[9]^e[19]^e[29]^e[39]^e[49];let h=d^(a<<1|o>>>31),p=f^(o<<1|a>>>31);const g=e[0]^h,m=e[1]^p,y=e[10]^h,b=e[11]^p,v=e[20]^h,w=e[21]^p,A=e[30]^h,T=e[31]^p,_=e[40]^h,S=e[41]^p;h=n^(s<<1|u>>>31),p=i^(u<<1|s>>>31);const E=e[2]^h,I=e[3]^p,C=e[12]^h,k=e[13]^p,B=e[22]^h,O=e[23]^p,x=e[32]^h,N=e[33]^p,P=e[42]^h,D=e[43]^p;h=a^(c<<1|l>>>31),p=o^(l<<1|c>>>31);const R=e[4]^h,L=e[5]^p,U=e[14]^h,M=e[15]^p,F=e[24]^h,j=e[25]^p,z=e[34]^h,V=e[35]^p,H=e[44]^h,q=e[45]^p;h=s^(d<<1|f>>>31),p=u^(f<<1|d>>>31);const G=e[6]^h,Q=e[7]^p,K=e[16]^h,W=e[17]^p,$=e[26]^h,Y=e[27]^p,J=e[36]^h,X=e[37]^p,Z=e[46]^h,ee=e[47]^p;h=c^(n<<1|i>>>31),p=l^(i<<1|n>>>31);const te=e[8]^h,re=e[9]^p,ne=e[18]^h,ie=e[19]^p,ae=e[28]^h,oe=e[29]^p,se=e[38]^h,ue=e[39]^p,ce=e[48]^h,le=e[49]^p,de=g,fe=m,he=b<<4|y>>>28,pe=y<<4|b>>>28,ge=v<<3|w>>>29,me=w<<3|v>>>29,ye=T<<9|A>>>23,be=A<<9|T>>>23,ve=_<<18|S>>>14,we=S<<18|_>>>14,Ae=E<<1|I>>>31,Te=I<<1|E>>>31,_e=k<<12|C>>>20,Se=C<<12|k>>>20,Ee=B<<10|O>>>22,Ie=O<<10|B>>>22,Ce=N<<13|x>>>19,ke=x<<13|N>>>19,Be=P<<2|D>>>30,Oe=D<<2|P>>>30,xe=L<<30|R>>>2,Ne=R<<30|L>>>2,Pe=U<<6|M>>>26,De=M<<6|U>>>26,Re=j<<11|F>>>21,Le=F<<11|j>>>21,Ue=z<<15|V>>>17,Me=V<<15|z>>>17,Fe=q<<29|H>>>3,je=H<<29|q>>>3,ze=G<<28|Q>>>4,Ve=Q<<28|G>>>4,He=W<<23|K>>>9,qe=K<<23|W>>>9,Ge=$<<25|Y>>>7,Qe=Y<<25|$>>>7,Ke=J<<21|X>>>11,We=X<<21|J>>>11,$e=ee<<24|Z>>>8,Ye=Z<<24|ee>>>8,Je=te<<27|re>>>5,Xe=re<<27|te>>>5,Ze=ne<<20|ie>>>12,et=ie<<20|ne>>>12,tt=oe<<7|ae>>>25,rt=ae<<7|oe>>>25,nt=se<<8|ue>>>24,it=ue<<8|se>>>24,at=ce<<14|le>>>18,ot=le<<14|ce>>>18;e[0]=de^~_e&Re,e[1]=fe^~Se&Le,e[10]=ze^~Ze&ge,e[11]=Ve^~et&me,e[20]=Ae^~Pe&Ge,e[21]=Te^~De&Qe,e[30]=Je^~he&Ee,e[31]=Xe^~pe&Ie,e[40]=xe^~He&tt,e[41]=Ne^~qe&rt,e[2]=_e^~Re&Ke,e[3]=Se^~Le&We,e[12]=Ze^~ge&Ce,e[13]=et^~me&ke,e[22]=Pe^~Ge&nt,e[23]=De^~Qe&it,e[32]=he^~Ee&Ue,e[33]=pe^~Ie&Me,e[42]=He^~tt&ye,e[43]=qe^~rt&be,e[4]=Re^~Ke&at,e[5]=Le^~We&ot,e[14]=ge^~Ce&Fe,e[15]=me^~ke&je,e[24]=Ge^~nt&ve,e[25]=Qe^~it&we,e[34]=Ee^~Ue&$e,e[35]=Ie^~Me&Ye,e[44]=tt^~ye&Be,e[45]=rt^~be&Oe,e[6]=Ke^~at&de,e[7]=We^~ot&fe,e[16]=Ce^~Fe&ze,e[17]=ke^~je&Ve,e[26]=nt^~ve&Ae,e[27]=it^~we&Te,e[36]=Ue^~$e&Je,e[37]=Me^~Ye&Xe,e[46]=ye^~Be&xe,e[47]=be^~Oe&Ne,e[8]=at^~de&_e,e[9]=ot^~fe&Se,e[18]=Fe^~ze&Ze,e[19]=je^~Ve&et,e[28]=ve^~Ae&Pe,e[29]=we^~Te&De,e[38]=$e^~Je&he,e[39]=Ye^~Xe&pe,e[48]=Be^~xe&He,e[49]=Oe^~Ne&qe,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},4817:(e,t,r)=>{const n=r(9078);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,128&e&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return t},i.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i},8276:(e,t,r)=>{"use strict";var n=r(6698),i=r(4729),a=r(2861).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,a,o){return u(e+(t&r|~t&n)+i+a|0,o)+t|0}function l(e,t,r,n,i,a,o){return u(e+(t&n|r&~n)+i+a|0,o)+t|0}function d(e,t,r,n,i,a,o){return u(e+(t^r^n)+i+a|0,o)+t|0}function f(e,t,r,n,i,a,o){return u(e+(r^(t|~n))+i+a|0,o)+t|0}n(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=c(r,n,i,a,e[0],3614090360,7),a=c(a,r,n,i,e[1],3905402710,12),i=c(i,a,r,n,e[2],606105819,17),n=c(n,i,a,r,e[3],3250441966,22),r=c(r,n,i,a,e[4],4118548399,7),a=c(a,r,n,i,e[5],1200080426,12),i=c(i,a,r,n,e[6],2821735955,17),n=c(n,i,a,r,e[7],4249261313,22),r=c(r,n,i,a,e[8],1770035416,7),a=c(a,r,n,i,e[9],2336552879,12),i=c(i,a,r,n,e[10],4294925233,17),n=c(n,i,a,r,e[11],2304563134,22),r=c(r,n,i,a,e[12],1804603682,7),a=c(a,r,n,i,e[13],4254626195,12),i=c(i,a,r,n,e[14],2792965006,17),r=l(r,n=c(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=l(a,r,n,i,e[6],3225465664,9),i=l(i,a,r,n,e[11],643717713,14),n=l(n,i,a,r,e[0],3921069994,20),r=l(r,n,i,a,e[5],3593408605,5),a=l(a,r,n,i,e[10],38016083,9),i=l(i,a,r,n,e[15],3634488961,14),n=l(n,i,a,r,e[4],3889429448,20),r=l(r,n,i,a,e[9],568446438,5),a=l(a,r,n,i,e[14],3275163606,9),i=l(i,a,r,n,e[3],4107603335,14),n=l(n,i,a,r,e[8],1163531501,20),r=l(r,n,i,a,e[13],2850285829,5),a=l(a,r,n,i,e[2],4243563512,9),i=l(i,a,r,n,e[7],1735328473,14),r=d(r,n=l(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=d(a,r,n,i,e[8],2272392833,11),i=d(i,a,r,n,e[11],1839030562,16),n=d(n,i,a,r,e[14],4259657740,23),r=d(r,n,i,a,e[1],2763975236,4),a=d(a,r,n,i,e[4],1272893353,11),i=d(i,a,r,n,e[7],4139469664,16),n=d(n,i,a,r,e[10],3200236656,23),r=d(r,n,i,a,e[13],681279174,4),a=d(a,r,n,i,e[0],3936430074,11),i=d(i,a,r,n,e[3],3572445317,16),n=d(n,i,a,r,e[6],76029189,23),r=d(r,n,i,a,e[9],3654602809,4),a=d(a,r,n,i,e[12],3873151461,11),i=d(i,a,r,n,e[15],530742520,16),r=f(r,n=d(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,r,n,i,e[7],1126891415,10),i=f(i,a,r,n,e[14],2878612391,15),n=f(n,i,a,r,e[5],4237533241,21),r=f(r,n,i,a,e[12],1700485571,6),a=f(a,r,n,i,e[3],2399980690,10),i=f(i,a,r,n,e[10],4293915773,15),n=f(n,i,a,r,e[1],2240044497,21),r=f(r,n,i,a,e[8],1873313359,6),a=f(a,r,n,i,e[15],4264355552,10),i=f(i,a,r,n,e[6],2734768916,15),n=f(n,i,a,r,e[13],1309151649,21),r=f(r,n,i,a,e[4],4149444226,6),a=f(a,r,n,i,e[11],3174756917,10),i=f(i,a,r,n,e[2],718787259,15),n=f(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},6889:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,r,n){t(e!=r,n)},t.notOk=function(e,r){t(!e,r)},t.equal=function(e,r,n){t(e==r,n)},t.ok=t,e.exports=t},6946:(e,t,r)=>{"use strict";e.exports=r(4394)},4394:(e,t,r)=>{"use strict";var n=t;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(3449),n.BufferWriter=r(818),n.Reader=r(6237),n.BufferReader=r(3158),n.util=r(3610),n.rpc=r(5047),n.roots=r(4529),n.configure=i,i()},6237:(e,t,r)=>{"use strict";e.exports=u;var n,i=r(3610),a=i.LongBits,o=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function f(){var e=new a(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new a(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=d(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=d(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},3158:(e,t,r)=>{"use strict";e.exports=a;var n=r(6237);(a.prototype=Object.create(n.prototype)).constructor=a;var i=r(3610);function a(e){n.call(this,e)}a._configure=function(){i.Buffer&&(a.prototype._slice=i.Buffer.prototype.slice)},a.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},a._configure()},4529:e=>{"use strict";e.exports={}},5047:(e,t,r)=>{"use strict";t.Service=r(7595)},7595:(e,t,r)=>{"use strict";e.exports=i;var n=r(3610);function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,a,o){if(!a)throw TypeError("request must be specified");var s=this;if(!o)return n.asPromise(e,s,t,r,i,a);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),(function(e,r){if(e)return s.emit("error",e,t),o(e);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",r,t),o(null,r)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:(e,t,r)=>{"use strict";e.exports=i;var n=r(3610);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var a=i.zero=new i(0,0);a.toNumber=function(){return 0},a.zzEncode=a.zzDecode=function(){return this},a.length=function(){return 1};var o=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return a;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):a},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===o?a:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},3610:function(e,t,r){"use strict";var n=t;function i(e,t,r){for(var n=Object.keys(t),i=0;i<n.length;++i)void 0!==e[n[i]]&&r||(e[n[i]]=t[n[i]]);return e}function a(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&i(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}n.asPromise=r(8045),n.base64=r(8839),n.EventEmitter=r(4358),n.float=r(9410),n.inquire=r(4153),n.utf8=r(1447),n.pool=r(9390),n.LongBits=r(2239),n.isNode=Boolean(void 0!==r.g&&r.g&&r.g.process&&r.g.process.versions&&r.g.process.versions.node),n.global=n.isNode&&r.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=i,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=a,n.ProtocolError=a("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},3449:(e,t,r)=>{"use strict";e.exports=d;var n,i=r(3610),a=i.LongBits,o=i.base64,s=i.utf8;function u(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var f=function(){return i.Buffer?function(){return(d.create=function(){return new n})()}:function(){return new d}};function h(e,t,r){t[r]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function g(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}d.create=f(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},p.prototype=Object.create(u.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(g,10,a.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=a.from(e);return this._push(g,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=a.from(e).zzEncode();return this._push(g,t.length(),t)},d.prototype.bool=function(e){return this._push(h,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=a.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var y=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var r=d.alloc(t=o.length(e));o.decode(e,r,0),e=r}return this.uint32(t)._push(y,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(h,1,0)},d.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},d._configure=function(e){n=e,d.create=f(),n._configure()}},818:(e,t,r)=>{"use strict";e.exports=a;var n=r(3449);(a.prototype=Object.create(n.prototype)).constructor=a;var i=r(3610);function a(){n.call(this)}function o(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}a._configure=function(){a.alloc=i._Buffer_allocUnsafe,a.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},a.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(a.writeBytesBuffer,t,e),this},a.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},a._configure()},6048:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,a,o,s,u;if("string"==typeof t&&(a="not ",t.substr(0,4)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+1>(s=e).length||-1===s.indexOf(".",u)?"argument":"property");o='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5382:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(5412),a=r(6708);r(6698)(c,i);for(var o=n(a.prototype),s=0;s<o.length;s++){var u=o[s];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3600:(e,t,r)=>{"use strict";e.exports=i;var n=r(4610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(6698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},5412:(e,t,r)=>{"use strict";var n;e.exports=S,S.ReadableState=_,r(7007).EventEmitter;var i,a=function(e,t){return e.listeners(t).length},o=r(345),s=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=r(9838);i=c&&c.debuglog?c.debuglog("stream"):function(){};var l,d,f,h=r(2726),p=r(5896),g=r(5291).getHighWaterMark,m=r(6048).F,y=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(S,o);var A=p.errorOrDestroy,T=["error","close","destroy","pause","resume"];function _(e,t,i){n=n||r(5382),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(3141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||r(5382),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new _(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function E(e,t,r,n,a){i("readableAddChunk",t);var o,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,O(e)))}}(e,c);else if(a||(o=function(e,t){var r,n;return n=t,s.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t)),r}(c,t)),o)A(e,o);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)c.endEmitted?A(e,new w):I(e,c,t,!0);else if(c.ended)A(e,new b);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?I(e,c,t,!1):x(e,c)):I(e,c,t,!1)}else n||(c.reading=!1,x(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&B(e)),x(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},S.prototype.unshift=function(e){return E(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){l||(l=r(3141).I);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function B(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(O,e))}function O(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function x(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){i("readable nexttick read 0"),e.read(0)}function R(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function M(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F,t,e))}function F(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function j(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):B(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,a=t.needReadable;return i("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",a=!0),t.ended||t.reading?i("reading or ended",a=!1):a&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){A(this,new v("_read()"))},S.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===process.stdout||e===process.stderr?p:s;function s(){i("onend"),e.end()}n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",(function t(a,o){i("onunpipe"),a===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,i("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",p),r.removeListener("data",l),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",u);var c=!1;function l(t){i("ondata");var a=e.write(t);i("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==j(n.pipes,e))&&!c&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(t){i("onerror",t),p(),e.removeListener("error",d),0===a(e,"error")&&A(e,t)}function f(){e.removeListener("finish",h),p()}function h(){i("onfinish"),e.removeListener("close",f),p()}function p(){i("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",f),e.once("finish",h),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=j(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?B(this):n.reading||process.nextTick(D,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(P,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(P,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(R,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){i("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<T.length;o++)e.on(T[o],this.emit.bind(this,T[o]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(2955)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=U,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===f&&(f=r(5157)),f(S,e,t)})},4610:(e,t,r)=>{"use strict";e.exports=l;var n=r(6048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(5382);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}r(6698)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},6708:(e,t,r)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=S,S.WritableState=_;var a,o={deprecate:r(4643)},s=r(345),u=r(8287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=r(5896),d=r(5291).getHighWaterMark,f=r(6048).F,h=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,v=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,A=l.errorOrDestroy;function T(){}function _(e,t,a){i=i||r(5382),e=e||{},"boolean"!=typeof a&&(a=t instanceof i),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(O,e,t),e._writableState.errorEmitted=!0,A(e,n)):(i(n),e._writableState.errorEmitted=!0,A(e,n),O(e,t))}(e,r,n,t,i);else{var a=k(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),n?process.nextTick(I,e,r,a,i):I(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(e){var t=this instanceof(i=i||r(5382));if(!t&&!a.call(S,this))return new S(e);this._writableState=new _(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function E(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)a[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;a.allBuffers=u,E(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,d=r.callback;if(E(e,t,!1,t.objectMode?1:c.length,c,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final((function(r){t.pendingcb--,r&&A(e,r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=k(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(B,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(6698)(S,s),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===S&&e&&e._writableState instanceof _}})):a=function(e){return e instanceof this},S.prototype.pipe=function(){A(this,new m)},S.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,o=!i.objectMode&&(n=e,u.isBuffer(n)||n instanceof c);return o&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=T),i.ending?function(e,t){var r=new v;A(e,r),process.nextTick(t,r)}(this,r):(o||function(e,t,r,n){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new h("chunk",["string","Buffer"],r)),!i||(A(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,n,i,a);return c}(this,i,o,e,t,r)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=l.destroy,S.prototype._undestroy=l.undestroy,S.prototype._destroy=function(e,t){t(e)}},2955:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(6238),o=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var r=e[f].read();null!==r&&(e[l]=null,e[o]=null,e[s]=null,t(h(r,!1)))}}function g(e){process.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[u]?r(e[u]):t(h(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(y,(i(t={},f,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[f].read();n?(r[l]=null,r[o]=null,r[s]=null,e(h(n,!1))):(r[o]=e,r[s]=t)},writable:!0}),t));return r[l]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[o]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[o];null!==n&&(r[l]=null,r[o]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",g.bind(null,r)),r}},2726:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=r(8287).Buffer,c=r(5340).inspect,l=c&&c.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,r,n,i=u.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,r=i,n=o,u.prototype.copy.call(t,r,n),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5896:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?a._writableState?a._writableState.errorEmitted?process.nextTick(r,a):(a._writableState.errorEmitted=!0,process.nextTick(t,a,e)):process.nextTick(t,a,e):i?(process.nextTick(r,a),i(e)):process.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},6238:(e,t,r)=>{"use strict";var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){s=!1,c=!0,o||a.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,d=!0,s||a.call(t)},h=function(e){a.call(t,e)},p=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new n),a.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),a.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",f),t.on("finish",l),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",p)}}},5157:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},7758:(e,t,r)=>{"use strict";var n,i=r(6048).F,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var l,d=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var f=t.map((function(e,i){var a=i<t.length-1;return function(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(6238)),n(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}(e,a,i>0,(function(e){l||(l=e),e&&f.forEach(u),a||(f.forEach(u),d(l))}))}));return t.reduce(c)}},5291:(e,t,r)=>{"use strict";var n=r(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},345:(e,t,r)=>{e.exports=r(7007).EventEmitter},8399:(e,t,r)=>{(t=e.exports=r(5412)).Stream=t,t.Readable=t,t.Writable=r(6708),t.Duplex=r(5382),t.Transform=r(4610),t.PassThrough=r(3600),t.finished=r(6238),t.pipeline=r(7758)},6011:(e,t,r)=>{"use strict";var n=r(8287).Buffer,i=r(6698),a=r(4729),o=new Array(16),s=[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],u=[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],c=[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],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function g(e,t,r,n,i,a,o,s){return p(e+(t^r^n)+a+o|0,s)+i|0}function m(e,t,r,n,i,a,o,s){return p(e+(t&r|~t&n)+a+o|0,s)+i|0}function y(e,t,r,n,i,a,o,s){return p(e+((t|~r)^n)+a+o|0,s)+i|0}function b(e,t,r,n,i,a,o,s){return p(e+(t&n|r&~n)+a+o|0,s)+i|0}function v(e,t,r,n,i,a,o,s){return p(e+(t^(r|~n))+a+o|0,s)+i|0}i(h,a),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,w=0|this._a,A=0|this._b,T=0|this._c,_=0|this._d,S=0|this._e,E=0;E<80;E+=1){var I,C;E<16?(I=g(r,n,i,a,h,e[s[E]],d[0],c[E]),C=v(w,A,T,_,S,e[u[E]],f[0],l[E])):E<32?(I=m(r,n,i,a,h,e[s[E]],d[1],c[E]),C=b(w,A,T,_,S,e[u[E]],f[1],l[E])):E<48?(I=y(r,n,i,a,h,e[s[E]],d[2],c[E]),C=y(w,A,T,_,S,e[u[E]],f[2],l[E])):E<64?(I=b(r,n,i,a,h,e[s[E]],d[3],c[E]),C=m(w,A,T,_,S,e[u[E]],f[3],l[E])):(I=v(r,n,i,a,h,e[s[E]],d[4],c[E]),C=g(w,A,T,_,S,e[u[E]],f[4],l[E])),r=h,h=a,a=p(i,10),i=n,n=I,w=S,S=_,_=p(T,10),T=A,A=C}var k=this._b+i+_|0;this._b=this._c+a+S|0,this._c=this._d+h+w|0,this._d=this._e+r+A|0,this._e=this._a+n+T|0,this._a=k},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},2861:(e,t,r)=>{var n=r(8287),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1582:(e,t,r)=>{const n=r(5600);n.async=r(727),e.exports=n},727:(e,t,r)=>{const n=r(2831),{checkAndInit:i,smix:a}=r(831);e.exports=async function(e,t,r,o,s,u,c,l){const{XY:d,V:f,B32:h,x:p,_X:g,B:m,tickCallback:y}=i(e,t,r,o,s,u,c);for(var b=0;b<s;b++)await a(m,128*b*o,o,r,f,d,g,h,p,y,l);return n.pbkdf2Sync(e,m,1,u,"sha256")}},5600:(e,t,r)=>{const n=r(2831),{checkAndInit:i,smixSync:a}=r(831);e.exports=function(e,t,r,o,s,u,c){const{XY:l,V:d,B32:f,x:h,_X:p,B:g,tickCallback:m}=i(e,t,r,o,s,u,c);for(var y=0;y<s;y++)a(g,128*y*o,o,r,d,l,p,f,h,m);return n.pbkdf2Sync(e,g,1,u,"sha256")}},831:(e,t,r)=>{const n=r(2831),i=2147483647;function a(e,t,r,n,i,a,o){let l;for(c(e,t+64*(2*n-1),i,0,64),l=0;l<2*n;l++)u(e,64*l,i,0,64),s(i,a,o),c(i,0,e,r+64*l,64);for(l=0;l<n;l++)c(e,r+2*l*64,e,t+64*l,64);for(l=0;l<n;l++)c(e,r+64*(2*l+1),e,t+64*(l+n),64)}function o(e,t){return e<<t|e>>>32-t}function s(e,t,r){let n;for(n=0;n<16;n++)t[n]=255&e[4*n+0],t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(c(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=o(r[0]+r[12],7),r[8]^=o(r[4]+r[0],9),r[12]^=o(r[8]+r[4],13),r[0]^=o(r[12]+r[8],18),r[9]^=o(r[5]+r[1],7),r[13]^=o(r[9]+r[5],9),r[1]^=o(r[13]+r[9],13),r[5]^=o(r[1]+r[13],18),r[14]^=o(r[10]+r[6],7),r[2]^=o(r[14]+r[10],9),r[6]^=o(r[2]+r[14],13),r[10]^=o(r[6]+r[2],18),r[3]^=o(r[15]+r[11],7),r[7]^=o(r[3]+r[15],9),r[11]^=o(r[7]+r[3],13),r[15]^=o(r[11]+r[7],18),r[1]^=o(r[0]+r[3],7),r[2]^=o(r[1]+r[0],9),r[3]^=o(r[2]+r[1],13),r[0]^=o(r[3]+r[2],18),r[6]^=o(r[5]+r[4],7),r[7]^=o(r[6]+r[5],9),r[4]^=o(r[7]+r[6],13),r[5]^=o(r[4]+r[7],18),r[11]^=o(r[10]+r[9],7),r[8]^=o(r[11]+r[10],9),r[9]^=o(r[8]+r[11],13),r[10]^=o(r[9]+r[8],18),r[12]^=o(r[15]+r[14],7),r[13]^=o(r[12]+r[15],9),r[14]^=o(r[13]+r[12],13),r[15]^=o(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=255&t[n],e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function u(e,t,r,n,i){for(let a=0;a<i;a++)r[n+a]^=e[t+a]}function c(e,t,r,n,i){if(Buffer.isBuffer(e)&&Buffer.isBuffer(r))e.copy(r,n,t,t+i);else for(;i--;)r[n++]=e[t++]}e.exports={checkAndInit:function(e,t,r,a,o,s,u){if(0===r||r&r-1)throw Error("N must be > 0 and a power of 2");if(r>i/128/a)throw Error("Parameter N is too large");if(a>i/128/o)throw Error("Parameter r is too large");let c,l=Buffer.alloc(256*a),d=Buffer.alloc(128*a*r),f=new Int32Array(16),h=new Int32Array(16),p=Buffer.alloc(64),g=n.pbkdf2Sync(e,t,1,128*o*a,"sha256");if(u){let e=o*r*2,t=0;c=function(){++t,t%1e3==0&&u({current:t,total:e,percent:t/e*100})}}return{XY:l,V:d,B32:f,x:h,_X:p,B:g,tickCallback:c}},smix:async function(e,t,r,n,i,o,s,c,l,d,f){f=f||5e3;let h,p=128*r;for(e.copy(o,0,t,t+p),h=0;h<n;h++)o.copy(i,h*p,0,0+p),h%f==0&&await new Promise((e=>setImmediate(e))),a(o,0,p,r,s,c,l),d&&d();for(h=0;h<n;h++){let e=0+64*(2*r-1);u(i,(o.readUInt32LE(e)&n-1)*p,o,0,p),h%f==0&&await new Promise((e=>setImmediate(e))),a(o,0,p,r,s,c,l),d&&d()}o.copy(e,t,0,0+p)},smixSync:function(e,t,r,n,i,o,s,c,l,d){let f,h=128*r;for(e.copy(o,0,t,t+h),f=0;f<n;f++)o.copy(i,f*h,0,0+h),a(o,0,h,r,s,c,l),d&&d();for(f=0;f<n;f++){let e=0+64*(2*r-1);u(i,(o.readUInt32LE(e)&n-1)*h,o,0,h),a(o,0,h,r,s,c,l),d&&d()}o.copy(e,t,0,0+h)}}},392:(e,t,r)=>{var n=r(2861).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var u=o%i,c=Math.min(a-s,i-u),l=0;l<c;l++)r[u+l]=e[s+l];s+=c,(o+=c)%i==0&&this._update(r)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},2802:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(7816),n.sha1=r(3737),n.sha224=r(6710),n.sha256=r(4107),n.sha384=r(2827),n.sha512=r(2890)},7816:(e,t,r)=>{var n=r(6698),i=r(392),a=r(2861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=n)<<5|t>>>27)+l(h,i,a,s)+u+r[f]+o[h];u=s,s=a,a=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},3737:(e,t,r)=>{var n=r(6698),i=r(392),a=r(2861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=(t=r[f-3]^r[f-8]^r[f-14]^r[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=c(n)+d(p,i,a,s)+u+r[h]+o[p]|0;u=s,s=a,a=l(i),i=n,n=g}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},6710:(e,t,r)=>{var n=r(6698),i=r(4107),a=r(392),o=r(2861).Buffer,s=new Array(64);function u(){this.init(),this._w=s,a.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},4107:(e,t,r)=>{var n=r(6698),i=r(392),a=r(2861).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+h(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=m+f(u)+c(u,p,g)+o[b]+r[b]|0,w=d(n)+l(n,i,a)|0;m=g,g=p,p=u,u=s+v|0,s=a,a=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},u.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},2827:(e,t,r)=>{var n=r(6698),i=r(2890),a=r(392),o=r(2861).Buffer,s=new Array(160);function u(){this.init(),this._w=s,a.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},2890:(e,t,r)=>{var n=r(6698),i=r(392),a=r(2861).Buffer,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],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,A=0|this._bl,T=0|this._cl,_=0|this._dl,S=0|this._el,E=0|this._fl,I=0|this._gl,C=0|this._hl,k=0;k<32;k+=2)t[k]=e.readInt32BE(4*k),t[k+1]=e.readInt32BE(4*k+4);for(;k<160;k+=2){var B=t[k-30],O=t[k-30+1],x=h(B,O),N=p(O,B),P=g(B=t[k-4],O=t[k-4+1]),D=m(O,B),R=t[k-14],L=t[k-14+1],U=t[k-32],M=t[k-32+1],F=N+L|0,j=x+R+y(F,N)|0;j=(j=j+P+y(F=F+D|0,D)|0)+U+y(F=F+M|0,M)|0,t[k]=j,t[k+1]=F}for(var z=0;z<160;z+=2){j=t[z],F=t[z+1];var V=l(r,n,i),H=l(w,A,T),q=d(r,w),G=d(w,r),Q=f(s,S),K=f(S,s),W=o[z],$=o[z+1],Y=c(s,u,b),J=c(S,E,I),X=C+K|0,Z=v+Q+y(X,C)|0;Z=(Z=(Z=Z+Y+y(X=X+J|0,J)|0)+W+y(X=X+$|0,$)|0)+j+y(X=X+F|0,F)|0;var ee=G+H|0,te=q+V+y(ee,G)|0;v=b,C=I,b=u,I=E,u=s,E=S,s=a+Z+y(S=_+X|0,_)|0,a=i,_=T,i=n,T=A,n=r,A=w,r=Z+te+y(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+A|0,this._cl=this._cl+T|0,this._dl=this._dl+_|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+I|0,this._hl=this._hl+C|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,A)|0,this._ch=this._ch+i+y(this._cl,T)|0,this._dh=this._dh+a+y(this._dl,_)|0,this._eh=this._eh+s+y(this._el,S)|0,this._fh=this._fh+u+y(this._fl,E)|0,this._gh=this._gh+b+y(this._gl,I)|0,this._hh=this._hh+v+y(this._hl,C)|0},u.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},3141:(e,t,r)=>{"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},8947:(e,t,r)=>{!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=t(),s=t([1]),u=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function g(e,t,r,n,i){var a,o=0;for(a=0;a<i;a++)o|=e[t+a]^r[n+a];return(1&o-1>>>8)-1}function m(e,t,r,n){return g(e,t,r,n,16)}function y(e,t,r,n){return g(e,t,r,n,32)}function b(e,t,r,n){!function(e,t,r,n){for(var i,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=a,T=o,_=s,S=u,E=c,I=l,C=d,k=f,B=h,O=p,x=g,N=m,P=y,D=b,R=v,L=w,U=0;U<20;U+=2)A^=(i=(P^=(i=(B^=(i=(E^=(i=A+P|0)<<7|i>>>25)+A|0)<<9|i>>>23)+E|0)<<13|i>>>19)+B|0)<<18|i>>>14,I^=(i=(T^=(i=(D^=(i=(O^=(i=I+T|0)<<7|i>>>25)+I|0)<<9|i>>>23)+O|0)<<13|i>>>19)+D|0)<<18|i>>>14,x^=(i=(C^=(i=(_^=(i=(R^=(i=x+C|0)<<7|i>>>25)+x|0)<<9|i>>>23)+R|0)<<13|i>>>19)+_|0)<<18|i>>>14,L^=(i=(N^=(i=(k^=(i=(S^=(i=L+N|0)<<7|i>>>25)+L|0)<<9|i>>>23)+S|0)<<13|i>>>19)+k|0)<<18|i>>>14,A^=(i=(S^=(i=(_^=(i=(T^=(i=A+S|0)<<7|i>>>25)+A|0)<<9|i>>>23)+T|0)<<13|i>>>19)+_|0)<<18|i>>>14,I^=(i=(E^=(i=(k^=(i=(C^=(i=I+E|0)<<7|i>>>25)+I|0)<<9|i>>>23)+C|0)<<13|i>>>19)+k|0)<<18|i>>>14,x^=(i=(O^=(i=(B^=(i=(N^=(i=x+O|0)<<7|i>>>25)+x|0)<<9|i>>>23)+N|0)<<13|i>>>19)+B|0)<<18|i>>>14,L^=(i=(R^=(i=(D^=(i=(P^=(i=L+R|0)<<7|i>>>25)+L|0)<<9|i>>>23)+P|0)<<13|i>>>19)+D|0)<<18|i>>>14;A=A+a|0,T=T+o|0,_=_+s|0,S=S+u|0,E=E+c|0,I=I+l|0,C=C+d|0,k=k+f|0,B=B+h|0,O=O+p|0,x=x+g|0,N=N+m|0,P=P+y|0,D=D+b|0,R=R+v|0,L=L+w|0,e[0]=A>>>0&255,e[1]=A>>>8&255,e[2]=A>>>16&255,e[3]=A>>>24&255,e[4]=T>>>0&255,e[5]=T>>>8&255,e[6]=T>>>16&255,e[7]=T>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=C>>>0&255,e[25]=C>>>8&255,e[26]=C>>>16&255,e[27]=C>>>24&255,e[28]=k>>>0&255,e[29]=k>>>8&255,e[30]=k>>>16&255,e[31]=k>>>24&255,e[32]=B>>>0&255,e[33]=B>>>8&255,e[34]=B>>>16&255,e[35]=B>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=x>>>0&255,e[41]=x>>>8&255,e[42]=x>>>16&255,e[43]=x>>>24&255,e[44]=N>>>0&255,e[45]=N>>>8&255,e[46]=N>>>16&255,e[47]=N>>>24&255,e[48]=P>>>0&255,e[49]=P>>>8&255,e[50]=P>>>16&255,e[51]=P>>>24&255,e[52]=D>>>0&255,e[53]=D>>>8&255,e[54]=D>>>16&255,e[55]=D>>>24&255,e[56]=R>>>0&255,e[57]=R>>>8&255,e[58]=R>>>16&255,e[59]=R>>>24&255,e[60]=L>>>0&255,e[61]=L>>>8&255,e[62]=L>>>16&255,e[63]=L>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=0;A<20;A+=2)a^=(i=(y^=(i=(h^=(i=(c^=(i=a+y|0)<<7|i>>>25)+a|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,l^=(i=(o^=(i=(b^=(i=(p^=(i=l+o|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,g^=(i=(d^=(i=(s^=(i=(v^=(i=g+d|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(m^=(i=(f^=(i=(u^=(i=w+m|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+f|0)<<18|i>>>14,a^=(i=(u^=(i=(s^=(i=(o^=(i=a+u|0)<<7|i>>>25)+a|0)<<9|i>>>23)+o|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(c^=(i=(f^=(i=(d^=(i=l+c|0)<<7|i>>>25)+l|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,g^=(i=(p^=(i=(h^=(i=(m^=(i=g+p|0)<<7|i>>>25)+g|0)<<9|i>>>23)+m|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(v^=(i=(b^=(i=(y^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=a>>>0&255,e[1]=a>>>8&255,e[2]=a>>>16&255,e[3]=a>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function A(e,t,r,n,i,a,o){var s,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=a[u];for(;i>=64;){for(b(l,c,o,w),u=0;u<64;u++)e[t+u]=r[n+u]^l[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(b(l,c,o,w),u=0;u<i;u++)e[t+u]=r[n+u]^l[u];return 0}function T(e,t,r,n,i){var a,o,s=new Uint8Array(16),u=new Uint8Array(64);for(o=0;o<16;o++)s[o]=0;for(o=0;o<8;o++)s[o]=n[o];for(;r>=64;){for(b(u,s,i,w),o=0;o<64;o++)e[t+o]=u[o];for(a=1,o=8;o<16;o++)a=a+(255&s[o])|0,s[o]=255&a,a>>>=8;r-=64,t+=64}if(r>0)for(b(u,s,i,w),o=0;o<r;o++)e[t+o]=u[o];return 0}function _(e,t,r,n,i){var a=new Uint8Array(32);v(a,n,i,w);for(var o=new Uint8Array(8),s=0;s<8;s++)o[s]=n[s+16];return T(e,t,r,o,a)}function S(e,t,r,n,i,a,o){var s=new Uint8Array(32);v(s,a,o,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=a[c+16];return A(e,t,r,n,i,u,s)}var E=function(e){var t,r,n,i,a,o,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),a=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|a<<12),this.r[5]=a>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(a>>>14|o<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|s<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,r,n,i,a){var o=new E(a);return o.update(r,n,i),o.finish(e,t),0}function C(e,t,r,n,i,a){var o=new Uint8Array(16);return I(o,0,r,n,i,a),m(e,t,o,0)}function k(e,t,r,n,i){var a;if(r<32)return-1;for(S(e,0,t,0,r,n,i),I(e,16,e,32,r-32,e),a=0;a<16;a++)e[a]=0;return 0}function B(e,t,r,n,i){var a,o=new Uint8Array(32);if(r<32)return-1;if(_(o,0,32,n,i),0!==C(t,16,t,32,r-32,o))return-1;for(S(e,0,t,0,r,n,i),a=0;a<32;a++)e[a]=0;return 0}function O(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function x(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function N(e,t,r){for(var n,i=~(r-1),a=0;a<16;a++)n=i&(e[a]^t[a]),e[a]^=n,t[a]^=n}function P(e,r){var n,i,a,o=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(x(s),x(s),x(s),i=0;i<2;i++){for(o[0]=s[0]-65517,n=1;n<15;n++)o[n]=s[n]-65535-(o[n-1]>>16&1),o[n-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),a=o[15]>>16&1,o[14]&=65535,N(s,o,1-a)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function D(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return P(r,e),P(n,t),y(r,0,n,0)}function R(e){var t=new Uint8Array(32);return P(t,e),1&t[0]}function L(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function U(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function M(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function F(e,t,r){var n,i,a=0,o=0,s=0,u=0,c=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,T=0,_=0,S=0,E=0,I=0,C=0,k=0,B=0,O=0,x=0,N=0,P=0,D=0,R=0,L=r[0],U=r[1],M=r[2],F=r[3],j=r[4],z=r[5],V=r[6],H=r[7],q=r[8],G=r[9],Q=r[10],K=r[11],W=r[12],$=r[13],Y=r[14],J=r[15];a+=(n=t[0])*L,o+=n*U,s+=n*M,u+=n*F,c+=n*j,l+=n*z,d+=n*V,f+=n*H,h+=n*q,p+=n*G,g+=n*Q,m+=n*K,y+=n*W,b+=n*$,v+=n*Y,w+=n*J,o+=(n=t[1])*L,s+=n*U,u+=n*M,c+=n*F,l+=n*j,d+=n*z,f+=n*V,h+=n*H,p+=n*q,g+=n*G,m+=n*Q,y+=n*K,b+=n*W,v+=n*$,w+=n*Y,A+=n*J,s+=(n=t[2])*L,u+=n*U,c+=n*M,l+=n*F,d+=n*j,f+=n*z,h+=n*V,p+=n*H,g+=n*q,m+=n*G,y+=n*Q,b+=n*K,v+=n*W,w+=n*$,A+=n*Y,T+=n*J,u+=(n=t[3])*L,c+=n*U,l+=n*M,d+=n*F,f+=n*j,h+=n*z,p+=n*V,g+=n*H,m+=n*q,y+=n*G,b+=n*Q,v+=n*K,w+=n*W,A+=n*$,T+=n*Y,_+=n*J,c+=(n=t[4])*L,l+=n*U,d+=n*M,f+=n*F,h+=n*j,p+=n*z,g+=n*V,m+=n*H,y+=n*q,b+=n*G,v+=n*Q,w+=n*K,A+=n*W,T+=n*$,_+=n*Y,S+=n*J,l+=(n=t[5])*L,d+=n*U,f+=n*M,h+=n*F,p+=n*j,g+=n*z,m+=n*V,y+=n*H,b+=n*q,v+=n*G,w+=n*Q,A+=n*K,T+=n*W,_+=n*$,S+=n*Y,E+=n*J,d+=(n=t[6])*L,f+=n*U,h+=n*M,p+=n*F,g+=n*j,m+=n*z,y+=n*V,b+=n*H,v+=n*q,w+=n*G,A+=n*Q,T+=n*K,_+=n*W,S+=n*$,E+=n*Y,I+=n*J,f+=(n=t[7])*L,h+=n*U,p+=n*M,g+=n*F,m+=n*j,y+=n*z,b+=n*V,v+=n*H,w+=n*q,A+=n*G,T+=n*Q,_+=n*K,S+=n*W,E+=n*$,I+=n*Y,C+=n*J,h+=(n=t[8])*L,p+=n*U,g+=n*M,m+=n*F,y+=n*j,b+=n*z,v+=n*V,w+=n*H,A+=n*q,T+=n*G,_+=n*Q,S+=n*K,E+=n*W,I+=n*$,C+=n*Y,k+=n*J,p+=(n=t[9])*L,g+=n*U,m+=n*M,y+=n*F,b+=n*j,v+=n*z,w+=n*V,A+=n*H,T+=n*q,_+=n*G,S+=n*Q,E+=n*K,I+=n*W,C+=n*$,k+=n*Y,B+=n*J,g+=(n=t[10])*L,m+=n*U,y+=n*M,b+=n*F,v+=n*j,w+=n*z,A+=n*V,T+=n*H,_+=n*q,S+=n*G,E+=n*Q,I+=n*K,C+=n*W,k+=n*$,B+=n*Y,O+=n*J,m+=(n=t[11])*L,y+=n*U,b+=n*M,v+=n*F,w+=n*j,A+=n*z,T+=n*V,_+=n*H,S+=n*q,E+=n*G,I+=n*Q,C+=n*K,k+=n*W,B+=n*$,O+=n*Y,x+=n*J,y+=(n=t[12])*L,b+=n*U,v+=n*M,w+=n*F,A+=n*j,T+=n*z,_+=n*V,S+=n*H,E+=n*q,I+=n*G,C+=n*Q,k+=n*K,B+=n*W,O+=n*$,x+=n*Y,N+=n*J,b+=(n=t[13])*L,v+=n*U,w+=n*M,A+=n*F,T+=n*j,_+=n*z,S+=n*V,E+=n*H,I+=n*q,C+=n*G,k+=n*Q,B+=n*K,O+=n*W,x+=n*$,N+=n*Y,P+=n*J,v+=(n=t[14])*L,w+=n*U,A+=n*M,T+=n*F,_+=n*j,S+=n*z,E+=n*V,I+=n*H,C+=n*q,k+=n*G,B+=n*Q,O+=n*K,x+=n*W,N+=n*$,P+=n*Y,D+=n*J,w+=(n=t[15])*L,o+=38*(T+=n*M),s+=38*(_+=n*F),u+=38*(S+=n*j),c+=38*(E+=n*z),l+=38*(I+=n*V),d+=38*(C+=n*H),f+=38*(k+=n*q),h+=38*(B+=n*G),p+=38*(O+=n*Q),g+=38*(x+=n*K),m+=38*(N+=n*W),y+=38*(P+=n*$),b+=38*(D+=n*Y),v+=38*(R+=n*J),a=(n=(a+=38*(A+=n*U))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=(a+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),a+=i-1+37*(i-1),e[0]=a,e[1]=o,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function j(e,t){F(e,t,t)}function z(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)j(i,i),2!==n&&4!==n&&F(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function V(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)j(i,i),1!==n&&F(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function H(e,r,n){var i,a,o=new Uint8Array(32),s=new Float64Array(80),c=t(),l=t(),d=t(),f=t(),h=t(),p=t();for(a=0;a<31;a++)o[a]=r[a];for(o[31]=127&r[31]|64,o[0]&=248,L(s,n),a=0;a<16;a++)l[a]=s[a],f[a]=c[a]=d[a]=0;for(c[0]=f[0]=1,a=254;a>=0;--a)N(c,l,i=o[a>>>3]>>>(7&a)&1),N(d,f,i),U(h,c,d),M(c,c,d),U(d,l,f),M(l,l,f),j(f,h),j(p,c),F(c,d,c),F(d,l,h),U(h,c,d),M(c,c,d),j(l,c),M(d,f,p),F(c,d,u),U(c,c,f),F(d,d,c),F(c,f,p),F(f,l,s),j(l,h),N(c,l,i),N(d,f,i);for(a=0;a<16;a++)s[a+16]=c[a],s[a+32]=d[a],s[a+48]=l[a],s[a+64]=f[a];var g=s.subarray(32),m=s.subarray(16);return z(g,g),F(m,m,g),P(e,m),0}function q(e,t){return H(e,t,a)}function G(e,t){return n(t,32),q(e,t)}function Q(e,t,r){var n=new Uint8Array(32);return H(n,r,t),v(e,i,n,w)}E.prototype.blocks=function(e,t,r){for(var n,i,a,o,s,u,c,l,d,f,h,p,g,m,y,b,v,w,A,T=this.fin?0:2048,_=this.h[0],S=this.h[1],E=this.h[2],I=this.h[3],C=this.h[4],k=this.h[5],B=this.h[6],O=this.h[7],x=this.h[8],N=this.h[9],P=this.r[0],D=this.r[1],R=this.r[2],L=this.r[3],U=this.r[4],M=this.r[5],F=this.r[6],j=this.r[7],z=this.r[8],V=this.r[9];r>=16;)f=d=0,f+=(_+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*P,f+=(S+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*V),f+=(E+=8191&(i>>>10|(a=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(I+=8191&(a>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*j),d=(f+=(C+=8191&(o>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(k+=s>>>1&8191)*(5*M),f+=(B+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*U),f+=(O+=8191&(u>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*L),f+=(x+=8191&(c>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*R),h=d+=(f+=(N+=l>>>5|T)*(5*D))>>>13,h+=_*D,h+=S*P,h+=E*(5*V),h+=I*(5*z),d=(h+=C*(5*j))>>>13,h&=8191,h+=k*(5*F),h+=B*(5*M),h+=O*(5*U),h+=x*(5*L),d+=(h+=N*(5*R))>>>13,h&=8191,p=d,p+=_*R,p+=S*D,p+=E*P,p+=I*(5*V),d=(p+=C*(5*z))>>>13,p&=8191,p+=k*(5*j),p+=B*(5*F),p+=O*(5*M),p+=x*(5*U),g=d+=(p+=N*(5*L))>>>13,g+=_*L,g+=S*R,g+=E*D,g+=I*P,d=(g+=C*(5*V))>>>13,g&=8191,g+=k*(5*z),g+=B*(5*j),g+=O*(5*F),g+=x*(5*M),m=d+=(g+=N*(5*U))>>>13,m+=_*U,m+=S*L,m+=E*R,m+=I*D,d=(m+=C*P)>>>13,m&=8191,m+=k*(5*V),m+=B*(5*z),m+=O*(5*j),m+=x*(5*F),y=d+=(m+=N*(5*M))>>>13,y+=_*M,y+=S*U,y+=E*L,y+=I*R,d=(y+=C*D)>>>13,y&=8191,y+=k*P,y+=B*(5*V),y+=O*(5*z),y+=x*(5*j),b=d+=(y+=N*(5*F))>>>13,b+=_*F,b+=S*M,b+=E*U,b+=I*L,d=(b+=C*R)>>>13,b&=8191,b+=k*D,b+=B*P,b+=O*(5*V),b+=x*(5*z),v=d+=(b+=N*(5*j))>>>13,v+=_*j,v+=S*F,v+=E*M,v+=I*U,d=(v+=C*L)>>>13,v&=8191,v+=k*R,v+=B*D,v+=O*P,v+=x*(5*V),w=d+=(v+=N*(5*z))>>>13,w+=_*z,w+=S*j,w+=E*F,w+=I*M,d=(w+=C*U)>>>13,w&=8191,w+=k*L,w+=B*R,w+=O*D,w+=x*P,A=d+=(w+=N*(5*V))>>>13,A+=_*V,A+=S*z,A+=E*j,A+=I*F,d=(A+=C*M)>>>13,A&=8191,A+=k*U,A+=B*L,A+=O*R,A+=x*D,_=f=8191&(d=(d=((d+=(A+=N*P)>>>13)<<2)+d|0)+(f&=8191)|0),S=h+=d>>>=13,E=p&=8191,I=g&=8191,C=m&=8191,k=y&=8191,B=b&=8191,O=v&=8191,x=w&=8191,N=A&=8191,t+=16,r-=16;this.h[0]=_,this.h[1]=S,this.h[2]=E,this.h[3]=I,this.h[4]=C,this.h[5]=k,this.h[6]=B,this.h[7]=O,this.h[8]=x,this.h[9]=N},E.prototype.finish=function(e,t){var r,n,i,a,o=new Uint16Array(10);if(this.leftover){for(a=this.leftover,this.buffer[a++]=1;a<16;a++)this.buffer[a]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,a=2;a<10;a++)this.h[a]+=r,r=this.h[a]>>>13,this.h[a]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,a=1;a<10;a++)o[a]=this.h[a]+r,r=o[a]>>>13,o[a]&=8191;for(o[9]-=8192,n=(1^r)-1,a=0;a<10;a++)o[a]&=n;for(n=~n,a=0;a<10;a++)this.h[a]=this.h[a]&n|o[a];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,a=1;a<8;a++)i=(this.h[a]+this.pad[a]|0)+(i>>>16)|0,this.h[a]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var K=k,W=B,$=[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 Y(e,t,r,n){for(var i,a,o,s,u,c,l,d,f,h,p,g,m,y,b,v,w,A,T,_,S,E,I,C,k,B,O=new Int32Array(16),x=new Int32Array(16),N=e[0],P=e[1],D=e[2],R=e[3],L=e[4],U=e[5],M=e[6],F=e[7],j=t[0],z=t[1],V=t[2],H=t[3],q=t[4],G=t[5],Q=t[6],K=t[7],W=0;n>=128;){for(T=0;T<16;T++)_=8*T+W,O[T]=r[_+0]<<24|r[_+1]<<16|r[_+2]<<8|r[_+3],x[T]=r[_+4]<<24|r[_+5]<<16|r[_+6]<<8|r[_+7];for(T=0;T<80;T++)if(i=N,a=P,o=D,s=R,u=L,c=U,l=M,f=j,h=z,p=V,g=H,m=q,y=G,b=Q,I=65535&(E=K),C=E>>>16,k=65535&(S=F),B=S>>>16,I+=65535&(E=(q>>>14|L<<18)^(q>>>18|L<<14)^(L>>>9|q<<23)),C+=E>>>16,k+=65535&(S=(L>>>14|q<<18)^(L>>>18|q<<14)^(q>>>9|L<<23)),B+=S>>>16,I+=65535&(E=q&G^~q&Q),C+=E>>>16,k+=65535&(S=L&U^~L&M),B+=S>>>16,S=$[2*T],I+=65535&(E=$[2*T+1]),C+=E>>>16,k+=65535&S,B+=S>>>16,S=O[T%16],C+=(E=x[T%16])>>>16,k+=65535&S,B+=S>>>16,k+=(C+=(I+=65535&E)>>>16)>>>16,I=65535&(E=A=65535&I|C<<16),C=E>>>16,k=65535&(S=w=65535&k|(B+=k>>>16)<<16),B=S>>>16,I+=65535&(E=(j>>>28|N<<4)^(N>>>2|j<<30)^(N>>>7|j<<25)),C+=E>>>16,k+=65535&(S=(N>>>28|j<<4)^(j>>>2|N<<30)^(j>>>7|N<<25)),B+=S>>>16,C+=(E=j&z^j&V^z&V)>>>16,k+=65535&(S=N&P^N&D^P&D),B+=S>>>16,d=65535&(k+=(C+=(I+=65535&E)>>>16)>>>16)|(B+=k>>>16)<<16,v=65535&I|C<<16,I=65535&(E=g),C=E>>>16,k=65535&(S=s),B=S>>>16,C+=(E=A)>>>16,k+=65535&(S=w),B+=S>>>16,P=i,D=a,R=o,L=s=65535&(k+=(C+=(I+=65535&E)>>>16)>>>16)|(B+=k>>>16)<<16,U=u,M=c,F=l,N=d,z=f,V=h,H=p,q=g=65535&I|C<<16,G=m,Q=y,K=b,j=v,T%16==15)for(_=0;_<16;_++)S=O[_],I=65535&(E=x[_]),C=E>>>16,k=65535&S,B=S>>>16,S=O[(_+9)%16],I+=65535&(E=x[(_+9)%16]),C+=E>>>16,k+=65535&S,B+=S>>>16,w=O[(_+1)%16],I+=65535&(E=((A=x[(_+1)%16])>>>1|w<<31)^(A>>>8|w<<24)^(A>>>7|w<<25)),C+=E>>>16,k+=65535&(S=(w>>>1|A<<31)^(w>>>8|A<<24)^w>>>7),B+=S>>>16,w=O[(_+14)%16],C+=(E=((A=x[(_+14)%16])>>>19|w<<13)^(w>>>29|A<<3)^(A>>>6|w<<26))>>>16,k+=65535&(S=(w>>>19|A<<13)^(A>>>29|w<<3)^w>>>6),B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,O[_]=65535&k|B<<16,x[_]=65535&I|C<<16;I=65535&(E=j),C=E>>>16,k=65535&(S=N),B=S>>>16,S=e[0],C+=(E=t[0])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[0]=N=65535&k|B<<16,t[0]=j=65535&I|C<<16,I=65535&(E=z),C=E>>>16,k=65535&(S=P),B=S>>>16,S=e[1],C+=(E=t[1])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[1]=P=65535&k|B<<16,t[1]=z=65535&I|C<<16,I=65535&(E=V),C=E>>>16,k=65535&(S=D),B=S>>>16,S=e[2],C+=(E=t[2])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[2]=D=65535&k|B<<16,t[2]=V=65535&I|C<<16,I=65535&(E=H),C=E>>>16,k=65535&(S=R),B=S>>>16,S=e[3],C+=(E=t[3])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[3]=R=65535&k|B<<16,t[3]=H=65535&I|C<<16,I=65535&(E=q),C=E>>>16,k=65535&(S=L),B=S>>>16,S=e[4],C+=(E=t[4])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[4]=L=65535&k|B<<16,t[4]=q=65535&I|C<<16,I=65535&(E=G),C=E>>>16,k=65535&(S=U),B=S>>>16,S=e[5],C+=(E=t[5])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[5]=U=65535&k|B<<16,t[5]=G=65535&I|C<<16,I=65535&(E=Q),C=E>>>16,k=65535&(S=M),B=S>>>16,S=e[6],C+=(E=t[6])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[6]=M=65535&k|B<<16,t[6]=Q=65535&I|C<<16,I=65535&(E=K),C=E>>>16,k=65535&(S=F),B=S>>>16,S=e[7],C+=(E=t[7])>>>16,k+=65535&S,B+=S>>>16,B+=(k+=(C+=(I+=65535&E)>>>16)>>>16)>>>16,e[7]=F=65535&k|B<<16,t[7]=K=65535&I|C<<16,W+=128,n-=128}return n}function J(e,t,r){var n,i=new Int32Array(8),a=new Int32Array(8),o=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,a[0]=4089235720,a[1]=2227873595,a[2]=4271175723,a[3]=1595750129,a[4]=2917565137,a[5]=725511199,a[6]=4215389547,a[7]=327033209,Y(i,a,t,r),r%=128,n=0;n<r;n++)o[n]=t[s-r+n];for(o[r]=128,o[(r=256-128*(r<112?1:0))-9]=0,p(o,r-8,s/536870912|0,s<<3),Y(i,a,o,r),n=0;n<8;n++)p(e,8*n,i[n],a[n]);return 0}function X(e,r){var n=t(),i=t(),a=t(),o=t(),s=t(),u=t(),c=t(),d=t(),f=t();M(n,e[1],e[0]),M(f,r[1],r[0]),F(n,n,f),U(i,e[0],e[1]),U(f,r[0],r[1]),F(i,i,f),F(a,e[3],r[3]),F(a,a,l),F(o,e[2],r[2]),U(o,o,o),M(s,i,n),M(u,o,a),U(c,o,a),U(d,i,n),F(e[0],s,u),F(e[1],d,c),F(e[2],c,u),F(e[3],s,d)}function Z(e,t,r){var n;for(n=0;n<4;n++)N(e[n],t[n],r)}function ee(e,r){var n=t(),i=t(),a=t();z(a,r[2]),F(n,r[0],a),F(i,r[1],a),P(e,i),e[31]^=R(n)<<7}function te(e,t,r){var n,i;for(O(e[0],o),O(e[1],s),O(e[2],s),O(e[3],o),i=255;i>=0;--i)Z(e,t,n=r[i/8|0]>>(7&i)&1),X(t,e),X(e,e),Z(e,t,n)}function re(e,r){var n=[t(),t(),t(),t()];O(n[0],d),O(n[1],f),O(n[2],s),F(n[3],d,f),te(e,n,r)}function ne(e,r,i){var a,o=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||n(r,32),J(o,r,32),o[0]&=248,o[31]&=127,o[31]|=64,re(s,o),ee(e,s),a=0;a<32;a++)r[a+32]=e[a];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ae(e,t){var r,n,i,a;for(n=63;n>=32;--n){for(r=0,i=n-32,a=n-12;i<a;++i)t[i]+=r-16*t[n]*ie[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function oe(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ae(e,r)}function se(e,r,n,i){var a,o,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),d=[t(),t(),t(),t()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=n+64;for(a=0;a<n;a++)e[64+a]=r[a];for(a=0;a<32;a++)e[32+a]=s[32+a];for(J(c,e.subarray(32),n+32),oe(c),re(d,c),ee(e,d),a=32;a<64;a++)e[a]=i[a];for(J(u,e,n+64),oe(u),a=0;a<64;a++)l[a]=0;for(a=0;a<32;a++)l[a]=c[a];for(a=0;a<32;a++)for(o=0;o<32;o++)l[a+o]+=u[a]*s[o];return ae(e.subarray(32),l),f}function ue(e,r,n,i){var a,u=new Uint8Array(32),l=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(n<64)return-1;if(function(e,r){var n=t(),i=t(),a=t(),u=t(),l=t(),d=t(),f=t();return O(e[2],s),L(e[1],r),j(a,e[1]),F(u,a,c),M(a,a,e[2]),U(u,e[2],u),j(l,u),j(d,l),F(f,d,l),F(n,f,a),F(n,n,u),V(n,n),F(n,n,a),F(n,n,u),F(n,n,u),F(e[0],n,u),j(i,e[0]),F(i,i,u),D(i,a)&&F(e[0],e[0],h),j(i,e[0]),F(i,i,u),D(i,a)?-1:(R(e[0])===r[31]>>7&&M(e[0],o,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(a=0;a<n;a++)e[a]=r[a];for(a=0;a<32;a++)e[a+32]=i[a];if(J(l,e,n),oe(l),te(d,f,l),re(f,r.subarray(32)),X(d,f),ee(u,d),n-=64,y(r,0,u,0)){for(a=0;a<n;a++)e[a]=0;return-1}for(a=0;a<n;a++)e[a]=r[a+64];return n}var ce=64,le=32,de=64;function fe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function pe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:v,crypto_stream_xor:S,crypto_stream:_,crypto_stream_salsa20_xor:A,crypto_stream_salsa20:T,crypto_onetimeauth:I,crypto_onetimeauth_verify:C,crypto_verify_16:m,crypto_verify_32:y,crypto_secretbox:k,crypto_secretbox_open:B,crypto_scalarmult:H,crypto_scalarmult_base:q,crypto_box_beforenm:Q,crypto_box_afternm:K,crypto_box:function(e,t,r,n,i,a){var o=new Uint8Array(32);return Q(o,i,a),K(e,t,r,n,o)},crypto_box_open:function(e,t,r,n,i,a){var o=new Uint8Array(32);return Q(o,i,a),W(e,t,r,n,o)},crypto_box_keypair:G,crypto_hash:J,crypto_sign:se,crypto_sign_keypair:ne,crypto_sign_open:ue,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ce,crypto_sign_PUBLICKEYBYTES:le,crypto_sign_SECRETKEYBYTES:de,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:ie,pack25519:P,unpack25519:L,M:F,A:U,S:j,Z:M,pow2523:V,add:X,set25519:O,modL:ae,scalarmult:te,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,r){he(e,t,r),fe(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),a=0;a<e.length;a++)n[a+32]=e[a];return k(i,n,n.length,t,r),i.subarray(16)},e.secretbox.open=function(e,t,r){he(e,t,r),fe(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),a=0;a<e.length;a++)n[a+16]=e[a];return n.length<32||0!==B(i,n,n.length,t,r)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return H(r,e,t),r},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,r,n,i){var a=e.box.before(n,i);return e.secretbox(t,r,a)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return Q(r,e,t),r},e.box.after=e.secretbox,e.box.open=function(t,r,n,i){var a=e.box.before(n,i);return e.secretbox.open(t,r,a)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return G(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==de)throw new Error("bad secret key size");var r=new Uint8Array(ce+e.length);return se(r,e,e.length,t),r},e.sign.open=function(e,t){if(he(e,t),t.length!==le)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=ue(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),a=0;a<i.length;a++)i[a]=r[a];return i},e.sign.detached=function(t,r){for(var n=e.sign(t,r),i=new Uint8Array(ce),a=0;a<i.length;a++)i[a]=n[a];return i},e.sign.detached.verify=function(e,t,r){if(he(e,t,r),t.length!==ce)throw new Error("bad signature size");if(r.length!==le)throw new Error("bad public key size");var n,i=new Uint8Array(ce+e.length),a=new Uint8Array(ce+e.length);for(n=0;n<ce;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+ce]=e[n];return ue(a,i,i.length,r)>=0},e.sign.keyPair=function(){var e=new Uint8Array(le),t=new Uint8Array(de);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==de)throw new Error("bad secret key size");for(var t=new Uint8Array(le),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(le),r=new Uint8Array(de),n=0;n<32;n++)r[n]=e[n];return ne(t,r,!0),{publicKey:t,secretKey:r}},e.sign.publicKeyLength=le,e.sign.secretKeyLength=de,e.sign.seedLength=32,e.sign.signatureLength=ce,e.hash=function(e){he(e);var t=new Uint8Array(64);return J(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===g(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG((function(e,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)t.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)e[n]=i[n];pe(i)})):(t=r(1281))&&t.randomBytes&&e.setPRNG((function(e,r){var n,i=t.randomBytes(r);for(n=0;n<r;n++)e[n]=i[n];pe(i)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},4643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},611:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{NIL:()=>O,parse:()=>m,stringify:()=>l,v1:()=>g,v3:()=>E,v4:()=>I,v5:()=>B,validate:()=>s,version:()=>x});var i=new Uint8Array(16);function a(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&o.test(e)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var d,f,h=0,p=0;const g=function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||d,s=void 0!==e.clockseq?e.clockseq:f;if(null==o||null==s){var u=e.random||(e.rng||a)();null==o&&(o=d=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:p+1,m=c-h+(g-p)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>h)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=c,p=g,f=s;var y=(1e4*(268435455&(c+=122192928e5))+g)%4294967296;i[n++]=y>>>24&255,i[n++]=y>>>16&255,i[n++]=y>>>8&255,i[n++]=255&y;var b=c/4294967296*1e4&268435455;i[n++]=b>>>8&255,i[n++]=255&b,i[n++]=b>>>24&15|16,i[n++]=b>>>16&255,i[n++]=s>>>8|128,i[n++]=255&s;for(var v=0;v<6;++v)i[n+v]=o[v];return t||l(i)},m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function y(e,t,r){function n(e,n,i,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=m(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(n),o.set(e,n.length),(o=r(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){a=a||0;for(var s=0;s<16;++s)i[a+s]=o[s];return i}return l(o)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function b(e){return 14+(e+64>>>9<<4)+1}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t,r,n,i,a){return v((o=v(v(t,e),v(n,a)))<<(s=i)|o>>>32-s,r);var o,s}function A(e,t,r,n,i,a,o){return w(t&r|~t&n,e,t,i,a,o)}function T(e,t,r,n,i,a,o){return w(t&n|r&~n,e,t,i,a,o)}function _(e,t,r,n,i,a,o){return w(t^r^n,e,t,i,a,o)}function S(e,t,r,n,i,a,o){return w(r^(t|~n),e,t,i,a,o)}const E=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var a=e[i>>5]>>>i%32&255,o=parseInt(n.charAt(a>>>4&15)+n.charAt(15&a),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[b(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=r,u=n,c=i,l=a;r=A(r,n,i,a,e[o],7,-680876936),a=A(a,r,n,i,e[o+1],12,-389564586),i=A(i,a,r,n,e[o+2],17,606105819),n=A(n,i,a,r,e[o+3],22,-1044525330),r=A(r,n,i,a,e[o+4],7,-176418897),a=A(a,r,n,i,e[o+5],12,1200080426),i=A(i,a,r,n,e[o+6],17,-1473231341),n=A(n,i,a,r,e[o+7],22,-45705983),r=A(r,n,i,a,e[o+8],7,1770035416),a=A(a,r,n,i,e[o+9],12,-1958414417),i=A(i,a,r,n,e[o+10],17,-42063),n=A(n,i,a,r,e[o+11],22,-1990404162),r=A(r,n,i,a,e[o+12],7,1804603682),a=A(a,r,n,i,e[o+13],12,-40341101),i=A(i,a,r,n,e[o+14],17,-1502002290),r=T(r,n=A(n,i,a,r,e[o+15],22,1236535329),i,a,e[o+1],5,-165796510),a=T(a,r,n,i,e[o+6],9,-1069501632),i=T(i,a,r,n,e[o+11],14,643717713),n=T(n,i,a,r,e[o],20,-373897302),r=T(r,n,i,a,e[o+5],5,-701558691),a=T(a,r,n,i,e[o+10],9,38016083),i=T(i,a,r,n,e[o+15],14,-660478335),n=T(n,i,a,r,e[o+4],20,-405537848),r=T(r,n,i,a,e[o+9],5,568446438),a=T(a,r,n,i,e[o+14],9,-1019803690),i=T(i,a,r,n,e[o+3],14,-187363961),n=T(n,i,a,r,e[o+8],20,1163531501),r=T(r,n,i,a,e[o+13],5,-1444681467),a=T(a,r,n,i,e[o+2],9,-51403784),i=T(i,a,r,n,e[o+7],14,1735328473),r=_(r,n=T(n,i,a,r,e[o+12],20,-1926607734),i,a,e[o+5],4,-378558),a=_(a,r,n,i,e[o+8],11,-2022574463),i=_(i,a,r,n,e[o+11],16,1839030562),n=_(n,i,a,r,e[o+14],23,-35309556),r=_(r,n,i,a,e[o+1],4,-1530992060),a=_(a,r,n,i,e[o+4],11,1272893353),i=_(i,a,r,n,e[o+7],16,-155497632),n=_(n,i,a,r,e[o+10],23,-1094730640),r=_(r,n,i,a,e[o+13],4,681279174),a=_(a,r,n,i,e[o],11,-358537222),i=_(i,a,r,n,e[o+3],16,-722521979),n=_(n,i,a,r,e[o+6],23,76029189),r=_(r,n,i,a,e[o+9],4,-640364487),a=_(a,r,n,i,e[o+12],11,-421815835),i=_(i,a,r,n,e[o+15],16,530742520),r=S(r,n=_(n,i,a,r,e[o+2],23,-995338651),i,a,e[o],6,-198630844),a=S(a,r,n,i,e[o+7],10,1126891415),i=S(i,a,r,n,e[o+14],15,-1416354905),n=S(n,i,a,r,e[o+5],21,-57434055),r=S(r,n,i,a,e[o+12],6,1700485571),a=S(a,r,n,i,e[o+3],10,-1894986606),i=S(i,a,r,n,e[o+10],15,-1051523),n=S(n,i,a,r,e[o+1],21,-2054922799),r=S(r,n,i,a,e[o+8],6,1873313359),a=S(a,r,n,i,e[o+15],10,-30611744),i=S(i,a,r,n,e[o+6],15,-1560198380),n=S(n,i,a,r,e[o+13],21,1309151649),r=S(r,n,i,a,e[o+4],6,-145523070),a=S(a,r,n,i,e[o+11],10,-1120210379),i=S(i,a,r,n,e[o+2],15,718787259),n=S(n,i,a,r,e[o+9],21,-343485551),r=v(r,s),n=v(n,u),i=v(i,c),a=v(a,l)}return[r,n,i,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(b(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),I=function(e,t,r){var n=(e=e||{}).random||(e.rng||a)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return l(n)};function C(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function k(e,t){return e<<t|e>>>32-t}const B=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),u=0;u<o;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<o;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h];for(var p=16;p<80;++p)f[p]=k(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var g=r[0],m=r[1],y=r[2],b=r[3],v=r[4],w=0;w<80;++w){var A=Math.floor(w/20),T=k(g,5)+C(A,m,y,b)+v+t[A]+f[w]>>>0;v=b,b=y,y=k(m,30)>>>0,m=g,g=T}r[0]=r[0]+g>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),O="00000000-0000-0000-0000-000000000000",x=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},899:()=>{},6137:()=>{},4181:()=>{},4197:()=>{},3086:()=>{},7406:()=>{},5340:()=>{},9838:()=>{},2831:()=>{},1281:()=>{},6425:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,o=(s=Object.create(null),e=>{const t=i.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const u=e=>(e=e.toLowerCase(),t=>o(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,d=c("undefined"),f=u("ArrayBuffer"),h=c("string"),p=c("function"),g=c("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==o(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=u("Date"),v=u("File"),w=u("Blob"),A=u("FileList"),T=u("URLSearchParams"),[_,S,E,I]=["ReadableStream","Request","Response","Headers"].map(u);function C(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),l(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function k(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,O=e=>!d(e)&&e!==B,x=(N="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>N&&e instanceof N);var N;const P=u("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),R=u("RegExp"),L=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};C(r,((r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)})),Object.defineProperties(e,n)},U="abcdefghijklmnopqrstuvwxyz",M="0123456789",F={DIGIT:M,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+M},j=u("AsyncFunction"),z=(V="function"==typeof setImmediate,H=p(B.postMessage),V?setImmediate:H?(q=`axios@${Math.random()}`,G=[],B.addEventListener("message",(({source:e,data:t})=>{e===B&&t===q&&G.length&&G.shift()()}),!1),e=>{G.push(e),B.postMessage(q,"*")}):e=>setTimeout(e));var V,H,q,G;const Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(B):"undefined"!=typeof process&&process.nextTick||z;var K={isArray:l,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=o(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isReadableStream:_,isRequest:S,isResponse:E,isHeaders:I,isUndefined:d,isDate:b,isFile:v,isBlob:w,isRegExp:R,isFunction:p,isStream:e=>m(e)&&p(e.pipe),isURLSearchParams:T,isTypedArray:x,isFileList:A,forEach:C,merge:function e(){const{caseless:t}=O(this)&&this||{},r={},n=(n,i)=>{const a=t&&k(r,i)||i;y(r[a])&&y(n)?r[a]=e(r[a],n):y(n)?r[a]=e({},n):l(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:i}={})=>(C(t,((t,i)=>{r&&p(t)?e[i]=n(t,r):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;const u={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],n&&!n(s,e,t)||u[s]||(t[s]=e[s],u[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:u,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:P,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:B,isContextDefined:O,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=l(e)?[]:{};return C(e,((e,t)=>{const a=r(e,n+1);!d(a)&&(i[t]=a)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:j,isThenable:e=>e&&(m(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:z,asap:Q};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}K.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}});const $=W.prototype,Y={};function J(e){return K.isPlainObject(e)||K.isArray(e)}function X(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(W,Y),Object.defineProperty($,"isAxiosError",{value:!0}),W.from=(e,t,r,n,i,a)=>{const o=Object.create($);return K.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const ee=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!s&&K.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,i){let s=e;if(e&&!i&&"object"==typeof e)if(K.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(J)}(e)||(K.isFileList(e)||K.endsWith(r,"[]"))&&(s=K.toArray(e)))return r=X(r),s.forEach((function(e,n){!K.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,a):null===o?r:r+"[]",u(e))})),!1;return!!J(e)||(t.append(Z(i,r,a),u(e)),!1)}const l=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:u,isVisitable:J});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!K.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),K.forEach(r,(function(r,a){!0===(!(K.isUndefined(r)||null===r)&&i.call(t,r,K.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),l.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const ie=ne.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ae;K.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(a=i?i(t,r):K.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,fe=le&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pe=le&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:fe,navigator:de,origin:pe}),...ce};function me(e){function t(e,r,n,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=i>=e.length;return a=!a&&K.isArray(n)?n.length:a,s?(K.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!o):(n[a]&&K.isObject(n[a])||(n[a]=[]),t(e,r,n[a],i)&&K.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}(n[a])),!o)}if(K.isFormData(e)&&K.isFunction(e.entries)){const r={};return K.forEachEntry(e,((e,n)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ye={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=K.isObject(e);if(i&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return n?JSON.stringify(me(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e){if(K.isString(e))try{return(0,JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var be=ye;const ve=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),we=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:K.isArray(e)?e.map(Te):String(e)}function _e(e,t,r,n,i){return K.isFunction(n)?n.call(this,t,r):(i&&(t=r),K.isString(t)?K.isString(n)?-1!==t.indexOf(n):K.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=Ae(t);if(!i)throw new Error("header name must be a non-empty string");const a=K.findKey(n,i);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=Te(e))}const a=(e,t)=>K.forEach(e,((e,r)=>i(e,r,t)));if(K.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(K.isHeaders(e))for(const[t,n]of e.entries())i(n,t,r);else null!=e&&i(t,e,r);return this}get(e,t){if(e=Ae(e)){const r=K.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const r=K.findKey(this,e);return!(!r||void 0===this[r]||t&&!_e(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=Ae(e)){const i=K.findKey(r,e);!i||t&&!_e(0,r[i],i,t)||(delete r[i],n=!0)}}return K.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!_e(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return K.forEach(this,((n,i)=>{const a=K.findKey(r,i);if(a)return t[a]=Te(n),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();o!==i&&delete t[i],t[o]=Te(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&K.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ae(e);t[n]||(function(e,t){const r=K.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return K.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),K.freezeMethods(Se);var Ee=Se;function Ie(e,t){const r=this||be,n=t||r,i=Ee.from(n.headers);let a=n.data;return K.forEach(e,(function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function Ce(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function Be(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}K.inherits(ke,W,{__CANCEL__:!0});const Oe=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=n[o];i||(i=u),r[a]=s,n[a]=u;let l=o,d=0;for(;l!==a;)d+=r[l++],l%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),u-i<t)return;const f=c&&u-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=a?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),a-s)))},()=>r&&o(r)]}((r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,u=i(s);n=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:u||void 0,estimated:u&&o&&a<=o?(o-a)/u:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),r)},xe=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ne=e=>(...t)=>K.asap((()=>e(...t)));var Pe=ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,De=ge.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];K.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),K.isString(n)&&o.push("path="+n),K.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Re(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Ee?{...e}:e;function Ue(e,t){t=t||{};const r={};function n(e,t,r,n){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:n},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function i(e,t,r,i){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e,0,i):n(e,t,0,i)}function a(e,t){if(!K.isUndefined(t))return n(void 0,t)}function o(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}const u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,r)=>i(Le(e),Le(t),0,!0)};return K.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=u[n]||i,o=a(e[n],t[n],n);K.isUndefined(o)&&a!==s||(r[n]=o)})),r}var Me=e=>{const t=Ue({},e);let r,{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:u}=t;if(t.headers=s=Ee.from(s),t.url=oe(Re(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),K.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(i&&K.isFunction(i)&&(i=i(t)),i||!1!==i&&Pe(t.url))){const e=a&&o&&De.read(o);e&&s.set(a,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Me(e);let i=n.data;const a=Ee.from(n.headers).normalize();let o,s,u,c,l,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=n;function p(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function m(){if(!g)return;const n=Ee.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Be((function(e){t(e),p()}),(function(e){r(e),p()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ue;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new W(t,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),g=null},void 0===i&&a.setContentType(null),"setRequestHeader"in g&&K.forEach(a.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),K.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),d&&"json"!==d&&(g.responseType=n.responseType),h&&([u,l]=Oe(h,!0),g.addEventListener("progress",u)),f&&g.upload&&([s,c]=Oe(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new ke(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);y&&-1===ge.protocols.indexOf(y)?r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):g.send(i||null)}))},je=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof W?t:new ke(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=n;return s.unsubscribe=()=>K.asap(o),s}};const ze=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},Ve=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*ze(r,t)}(e,t);let a,o=0,s=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return s(),void e.close();let a=n.byteLength;if(r){let e=o+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qe=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Qe=new TextEncoder,e=>Qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qe;const Ke=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},We=qe&&Ke((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),$e=qe&&Ke((()=>K.isReadableStream(new Response("").body))),Ye={stream:$e&&(e=>e.body)};var Je;He&&(Je=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ye[e]&&(Ye[e]=K.isFunction(Je[e])?t=>t[e]():(t,r)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:d="same-origin",fetchOptions:f}=Me(e);c=c?(c+"").toLowerCase():"text";let h,p=je([i,a&&a.toAbortSignal()],o);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(u&&We&&"get"!==r&&"head"!==r&&0!==(m=await(async(e,t)=>{const r=K.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await Ge(e)).byteLength:void 0)})(t):r})(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(K.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=xe(m,Oe(Ne(u)));n=Ve(r.body,65536,e,t)}}K.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:i?d:void 0});let a=await fetch(h);const o=$e&&("stream"===c||"response"===c);if($e&&(s||o&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=K.toFiniteNumber(a.headers.get("content-length")),[r,n]=s&&xe(t,Oe(Ne(s),!0))||[];a=new Response(Ve(a.body,65536,r,(()=>{n&&n(),g&&g()})),e)}c=c||"text";let y=await Ye[K.findKey(Ye,c)||"text"](a,e);return!o&&g&&g(),await new Promise(((t,r)=>{Be(t,r,{data:y,headers:Ee.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:h})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,h),{cause:t.cause||t});throw W.from(t,t&&t.code,e,h)}})};K.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>K.isFunction(e)||null===e||!1===e;var tt=e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){let t;if(r=e[a],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new W(`Unknown adapter '${t}'`);if(n)break;i[t||"#"+a]=n}if(!n){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new W("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function nt(e){return rt(e),e.headers=Ee.from(e.headers),e.data=Ie.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Ie.call(e,e.transformResponse,t),t.headers=Ee.from(t.headers),t}),(function(t){return Ce(t)||(rt(e),t&&t.response&&(t.response.data=Ie.call(e,e.transformResponse,t.response),t.response.headers=Ee.from(t.response.headers))),Promise.reject(t)}))}const it={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{it[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const at={};it.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new W(n(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!at[i]&&(at[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},it.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new W("option "+a+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+a,W.ERR_BAD_OPTION)}},validators:it};const st=ot.validators;class ut{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&(K.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:st.function,serialize:st.function},!0)),ot.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&K.merge(i.common,i[t.method]);i&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Ee.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[nt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}l=o.length;let f=t;for(d=0;d<l;){const e=o[d++],t=o[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return oe(Re((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],(function(e){ut.prototype[e]=function(t,r){return this.request(Ue(r||{},{method:e,url:t,data:(r||{}).data}))}})),K.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(Ue(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)}));var ct=ut;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new ke(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var dt=lt;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ft).forEach((([e,t])=>{ft[t]=e}));var ht=ft;const pt=function e(t){const r=new ct(t),i=n(ct.prototype.request,r);return K.extend(i,ct.prototype,r,{allOwnKeys:!0}),K.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(Ue(t,r))},i}(be);pt.Axios=ct,pt.CanceledError=ke,pt.CancelToken=dt,pt.isCancel=Ce,pt.VERSION="1.7.9",pt.toFormData=te,pt.AxiosError=W,pt.Cancel=pt.CanceledError,pt.all=function(e){return Promise.all(e)},pt.spread=function(e){return function(t){return e.apply(null,t)}},pt.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},pt.mergeConfig=Ue,pt.AxiosHeaders=Ee,pt.formToJSON=e=>me(K.isHTMLForm(e)?new FormData(e):e),pt.getAdapter=tt,pt.HttpStatusCode=ht,pt.default=pt,e.exports=pt},5898:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},81:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},2607:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},7736:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},5040:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},5576:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},7967:e=>{"use strict";e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},5428:e=>{"use strict";e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},7357:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},5376:e=>{"use strict";e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);__webpack_require__.r(r);var n={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,__webpack_require__.d(r,n),r},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AssetCategory:()=>V,AuctionType:()=>y,AuctionTypes:()=>z,Chain:()=>m,CollectionStatsOrderBy:()=>G,CollectionStatsSelectFields:()=>q,CollectionsFieldsToSelect:()=>F,CollectionsOrderBy:()=>U,CollectionsSummaryFilter:()=>H,DropsOderBy:()=>R,EventUserRolePermission:()=>fe,EventUserRoles:()=>de,FieldsToSelect:()=>P,GlobalOfferFieldsToSelect:()=>j,GlobalOfferOrderBy:()=>M,IEventCategory:()=>ee,IssuingType:()=>$,LaunchpadModule:()=>x,Marketplace:()=>N,NftActivityType:()=>Q,OfferType:()=>X,OrderByTradingActivity:()=>K,PoolType:()=>Y,SCInteraction:()=>O,SearchOrderBy:()=>D,SelectFieldsTradingActivity:()=>W,StakingStatus:()=>J,SuggestOrderBy:()=>L,Type:()=>Z,XOXNOClient:()=>b,eventCategories:()=>te,eventPermissions:()=>pe,eventRoles:()=>he,eventSubCategories:()=>ue,getEventCategories:()=>ce,getEventSubCategories:()=>le});var e=__webpack_require__(4820),t=__webpack_require__(236),r=__webpack_require__(3979),n=__webpack_require__(5766),i=__webpack_require__(4473),a=__webpack_require__(7586),o=__webpack_require__(3145),s=__webpack_require__(5132),u=__webpack_require__(9712),c=__webpack_require__(3473),l=__webpack_require__(1594),d=__webpack_require__.n(l);const f="https://api.xoxno.com",h="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",p="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",g="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var m,y;!function(e){e.MAINNET="1",e.DEVNET="D"}(m||(m={}));class b{static instance;apiUrl;apiKey;chain;config;constructor(e=f,t="",r){this.apiUrl=e,this.apiKey=t,this.chain=r,this.config=r==m.MAINNET?{mediaUrl:"https://media.xoxno.com",gatewayUrl:"https://gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:h,DR_SC:p,KG_SC:g,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{mediaUrl:"https://devnet-media.xoxno.com",gatewayUrl:"https://devnet-gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:h,DR_SC:p,KG_SC:g,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:e=f,apiKey:t="",chain:r=m.MAINNET}={}){if(null==b.instance||null==b.instance){if(r==m.DEVNET)return b.instance=new b(e??"https://devnet-api.xoxno.com",t,r),b.instance;b.instance=new b(e,t,r)}return b.instance}static getInstance(){if(null==b.instance||null==b.instance)throw new Error("XOXNOClient is not initialized");return b.instance}fetchWithTimeout=async(e,t={})=>{const r=t?.headers?.Authorization,n="Bearer undefined"===r?void 0:r,i={"Accept-Encoding":"gzip,deflate,br",Referer:"https://xoxno.sdk","User-Agent":"XOXNO/1.0/SDK",..."POST"===t.method?{"Content-Type":"application/json"}:{},...n?{Authorization:n}:{}},a=`${"string"==typeof e&&e.startsWith("/")?`${this.apiUrl}${e}`:e}${t.params?"?"+Object.keys(t.params).map((e=>`${e}=${encodeURIComponent(t.params[e])}`)).join("&"):""}`,o=await fetch(a,{...t,cache:"no-store",...Object.keys(i).length?{headers:i}:{},method:t.method??"GET"});if(!o.ok){const t=await o.text();let r;try{r=JSON.parse(t)}catch(e){r={message:t}}throw new Error(`${e}: ${o.status};${o.statusText};${r.message}`)}return o.json()}}!function(e){e[e.NftBid=0]="NftBid",e[e.Nft=1]="Nft",e[e.SftAll=2]="SftAll",e[e.SftOnePerPayment=3]="SftOnePerPayment"}(y||(y={}));var v=__webpack_require__(2528),w=__webpack_require__(8403);class A{proxy;parser=new v.ResultsParser;constructor(){const e=b.getInstance().config.gatewayUrl;this.proxy=new w.ProxyNetworkProvider(e,{timeout:1e4})}async runQuery(e,t){try{const e=await this.proxy.queryContract(t.buildQuery());return this.parser.parseQueryResponse(e,t.getEndpoint())}catch(r){throw console.log(`Unexpected error when running query '${t.buildQuery().func}' to sc '${e.getAddress().bech32()}' `),console.error(r),r}}}var T=__webpack_require__(4966);const _=JSON.parse('{"buildInfo":{"rustc":{"version":"1.80.0-nightly","commitHash":"8679004993f08807289911d9f400f4ac4391d2bc","commitDate":"2024-05-23","channel":"Nightly","short":"rustc 1.80.0-nightly (867900499 2024-05-23)"},"contractCrate":{"name":"xoxno-protocol","version":"1.0.0"},"framework":{"name":"multiversx-sc","version":"0.50.5"}},"name":"XOXNOProtocol","constructor":{"inputs":[{"name":"bid_cut_percentage","type":"u64"},{"name":"signer","type":"Address"},{"name":"wrapping_sc","type":"Address"},{"name":"wrapping_token","type":"TokenIdentifier"},{"name":"aggregator","type":"Address"}],"outputs":[]},"upgradeConstructor":{"inputs":[{"name":"sc_accumulator","type":"Address"},{"name":"aggregator","type":"Address"}],"outputs":[]},"endpoints":[{"name":"listing","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"listings","type":"variadic<BulkListing>","multi_arg":true}],"outputs":[]},{"name":"bid","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"}],"outputs":[]},{"name":"endAuction","mutability":"mutable","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[]},{"name":"buy","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"opt_sft_buy_amount","type":"optional<BigUint>","multi_arg":true}],"outputs":[]},{"name":"buySwap","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"steps","type":"List<AggregatorStep>"},{"name":"limits","type":"List<TokenAmount>"},{"name":"opt_sft_buy_amount","type":"optional<BigUint>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"buyFor","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"opt_sft_buy_amount","type":"optional<BigUint>","multi_arg":true},{"name":"buy_for","type":"optional<Address>","multi_arg":true},{"name":"message","type":"optional<bytes>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"bulkBuy","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<EsdtTokenPayment>"}]},{"name":"withdraw","mutability":"mutable","inputs":[{"name":"signature","type":"bytes"},{"name":"withdraws","type":"variadic<u64>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"changeListing","mutability":"mutable","inputs":[{"name":"updates","type":"variadic<BulkUpdateListing>","multi_arg":true}],"outputs":[]},{"name":"getMarketplaceCutPercentage","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"getOffersByWallet","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"checkOfferSent","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"nft","type":"TokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"bool"}]},{"name":"getListingsByWallet","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getActiveListingsBids","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenItemsForSale","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenAuctionIds","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenOffersIds","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenItemsQuantityForSale","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"BigUint"}]},{"name":"getAcceptedTokens","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<EgldOrEsdtTokenIdentifier>","multi_result":true}]},{"name":"blackListWallets","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<Address>","multi_result":true}]},{"name":"whitelistedContracts","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<Address>","multi_result":true}]},{"name":"getClaimableAmount","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"token_id","type":"EgldOrEsdtTokenIdentifier"},{"name":"token_nonce","type":"u64"}],"outputs":[{"type":"BigUint"}]},{"name":"getClaimableTokens","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<EgldOrEsdtTokenIdentifier>","multi_result":true}]},{"name":"getClaimableTokenNonces","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getCollectionsListed","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<TokenIdentifier>","multi_result":true}]},{"name":"getAllListings","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getOffers","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getStatus","mutability":"readonly","inputs":[],"outputs":[{"type":"bool"}]},{"name":"getFullAuctionData","mutability":"readonly","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[{"type":"Auction"}]},{"name":"offerById","mutability":"readonly","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[{"type":"Offer"}]},{"name":"getRewardBalance","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"getRewardTicker","mutability":"readonly","inputs":[],"outputs":[{"type":"EgldOrEsdtTokenIdentifier"}]},{"name":"specialRewardAmount","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"BigUint"}]},{"name":"defaultRewardAmount","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"getGlobalOffers","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getGlobalOffer","mutability":"readonly","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[{"type":"GlobalOffer"}]},{"name":"getCollectionGlobalOffers","mutability":"readonly","inputs":[{"name":"collection","type":"TokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"userGlobalOffers","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"userCollectionGlobalOffers","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"collection","type":"TokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getCollectionConfig","mutability":"readonly","inputs":[{"name":"ticker","type":"TokenIdentifier"}],"outputs":[{"type":"CollectionFeeConfig"}]},{"name":"freezedAuctions","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getAccumulator","mutability":"readonly","inputs":[],"outputs":[{"type":"Address"}]},{"name":"getListingsCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getOffersCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getGlobalOffersCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getListings","mutability":"readonly","inputs":[{"name":"from","type":"u32"},{"name":"to","type":"u32"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getCollectionsCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"isCollectionListed","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"bool"}]},{"name":"expiredOffersCount","mutability":"readonly","inputs":[],"outputs":[{"type":"List<u64>"}]},{"name":"getAcceptedTokensCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getTokenItemsForSaleCount","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"u32"}]},{"name":"getOnSaleTokensForTicker","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonces","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<TokensOnSale>"}]},{"name":"getAuctionsForTicker","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"List<u64>"}]},{"name":"getFullAuctionsForTicker","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"List<Auction>"}]},{"name":"getTokenOffers","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonces","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<BulkOffers>"}]},{"name":"getBulkOffers","mutability":"readonly","inputs":[{"name":"offers","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<BulkOffers>"}]},{"name":"getBulkGlobalOffers","mutability":"readonly","inputs":[{"name":"offers","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<GlobalOffer>"}]},{"name":"getBulkGlobalOffersByCollection","mutability":"readonly","inputs":[{"name":"ticker","type":"TokenIdentifier"}],"outputs":[{"type":"List<GlobalOffer>"}]},{"name":"getBulkListings","mutability":"readonly","inputs":[{"name":"auction_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<TokensOnSale>"}]},{"name":"doesAuctionExist","mutability":"readonly","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[{"type":"bool"}]},{"name":"doesGlobalOfferExist","mutability":"readonly","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[{"type":"bool"}]},{"name":"doesOfferExist","mutability":"readonly","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[{"type":"bool"}]},{"name":"isSCWl","mutability":"readonly","inputs":[{"name":"sc","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"acceptOffer","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"offer_id","type":"u64"},{"name":"auction_id","type":"optional<u64>","multi_arg":true}],"outputs":[]},{"name":"declineOffer","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"offer_id","type":"u64"},{"name":"auction_id","type":"optional<u64>","multi_arg":true}],"outputs":[]},{"name":"withdrawOffer","mutability":"mutable","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[]},{"name":"sendOffer","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_token_nonce","type":"u64"},{"name":"payment_amount","type":"BigUint"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"nft_amount","type":"BigUint"},{"name":"deadline","type":"u64"}],"outputs":[{"type":"u64"}]},{"name":"sendGlobalOffer","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_nonce","type":"u64"},{"name":"price","type":"BigUint"},{"name":"collection","type":"TokenIdentifier"},{"name":"quantity","type":"BigUint"},{"name":"attributes","type":"optional<bytes>","multi_arg":true}],"outputs":[{"type":"u64"}]},{"name":"withdrawGlobalOffer","mutability":"mutable","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[]},{"name":"acceptGlobalOffer","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"offer_id","type":"u64"},{"name":"auction_id_opt","type":"optional<List<u64>>","multi_arg":true},{"name":"signature","type":"optional<bytes>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"returnListing","mutability":"mutable","inputs":[{"name":"auction_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"withdrawGlobalOffers","mutability":"mutable","inputs":[{"name":"offer_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"deleteOffersByWallet","mutability":"mutable","inputs":[{"name":"user","type":"Address"}],"outputs":[]},{"name":"cleanExpiredOffers","mutability":"mutable","inputs":[{"name":"offer_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"addRewardBalance","onlyOwner":true,"mutability":"mutable","payableInTokens":["*"],"inputs":[],"outputs":[]},{"name":"setRewardTicker","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[]},{"name":"setSpecialRewardAmount","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"setDefaultRewardAmount","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"setAcceptedTokens","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[]},{"name":"removeAcceptedTokens","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"bool"}]},{"name":"addWhitelist","mutability":"mutable","inputs":[{"name":"sc","type":"Address"}],"outputs":[]},{"name":"removeWhitelist","mutability":"mutable","inputs":[{"name":"sc","type":"Address"}],"outputs":[]},{"name":"setStatus","mutability":"mutable","inputs":[{"name":"status","type":"bool"}],"outputs":[]},{"name":"setCutPercentage","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"new_cut_percentage","type":"u64"}],"outputs":[]},{"name":"unFreezeAuctionId","mutability":"mutable","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[]},{"name":"unFreezeAllAuctionIds","mutability":"mutable","inputs":[],"outputs":[]},{"name":"freezeAuctionId","mutability":"mutable","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[]},{"name":"claimLeftOverDust","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"claimSavedFundsForUser","mutability":"mutable","inputs":[{"name":"wallet","type":"Address"}],"outputs":[]},{"name":"addBlackListWallet","mutability":"mutable","inputs":[{"name":"wallet","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"removeBlackListWallet","mutability":"mutable","inputs":[{"name":"wallet","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"setCutFeesReverted","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"value","type":"bool"}],"outputs":[]},{"name":"setRoyaltiesReverted","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"value","type":"bool"}],"outputs":[]},{"name":"setExtraFees","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"amount","type":"BigUint"},{"name":"address","type":"Address"}],"outputs":[]},{"name":"setCustomRoyalties","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"min","type":"BigUint"},{"name":"max","type":"BigUint"},{"name":"enabled","type":"bool"}],"outputs":[]},{"name":"setConfigAdmin","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"admin","type":"Address"}],"outputs":[]},{"name":"deposit","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[],"outputs":[]},{"name":"withdrawDeposit","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"userDeposit","mutability":"readonly","inputs":[{"name":"user","type":"Address"},{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"EgldOrEsdtTokenPayment"}]}],"promisesCallbackNames":["callback_ash"],"events":[{"identifier":"auction_token_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"auctioned_token_amount","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"min_bid","type":"BigUint","indexed":true},{"name":"max_bid","type":"BigUint","indexed":true},{"name":"start_time","type":"u64","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"accepted_payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"accepted_payment_token_nonce","type":"u64","indexed":true},{"name":"auction_type","type":"AuctionType","indexed":true},{"name":"creator_royalties_percentage","type":"BigUint","indexed":true}]},{"identifier":"send_global_offer","inputs":[{"name":"offer","type":"GlobalOffer","indexed":true}]},{"identifier":"remove_global_offer","inputs":[{"name":"offer_id","type":"u64","indexed":true},{"name":"collection","type":"TokenIdentifier","indexed":true}]},{"identifier":"accept_global_offer","inputs":[{"name":"offer","type":"GlobalOffer","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"nonces","type":"List<EsdtTokenPayment>","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"auction_ids","type":"List<u64>","indexed":true}]},{"identifier":"offer_token_event","inputs":[{"name":"token_type","type":"TokenIdentifier","indexed":true},{"name":"token_nonce","type":"u64","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"status","type":"OfferStatus","indexed":true},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_token_nonce","type":"u64","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"offer_owner","type":"Address","indexed":true},{"name":"marketplace_cut_percentage","type":"BigUint","indexed":true},{"name":"offer_id","type":"u64","indexed":true}]},{"identifier":"withdraw_offer_token_event","inputs":[{"name":"token_type","type":"TokenIdentifier","indexed":true},{"name":"token_nonce","type":"u64","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"status","type":"OfferStatus","indexed":true},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_token_nonce","type":"u64","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"offer_owner","type":"Address","indexed":true},{"name":"marketplace_cut_percentage","type":"BigUint","indexed":true},{"name":"offer_id","type":"u64","indexed":true}]},{"identifier":"accept_offer_token_event","inputs":[{"name":"token_type","type":"TokenIdentifier","indexed":true},{"name":"token_nonce","type":"u64","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"status","type":"OfferStatus","indexed":true},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_token_nonce","type":"u64","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"offer_owner","type":"Address","indexed":true},{"name":"marketplace_cut_percentage","type":"BigUint","indexed":true},{"name":"offer_id","type":"u64","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"auction_removed","type":"u64","indexed":true}]},{"identifier":"bid_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"bidder","type":"Address","indexed":true},{"name":"bid_amount","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"token_payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"token_payment_nonce","type":"u64","indexed":true}]},{"identifier":"end_auction_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"auction_winner","type":"Address","indexed":true},{"name":"winning_bid_amount","type":"BigUint","indexed":true},{"name":"auction_seller","type":"Address","indexed":true},{"name":"token_payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"token_payment_nonce","type":"u64","indexed":true}]},{"identifier":"change_listing_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"owner","type":"Address","indexed":true},{"name":"old_price","type":"BigUint","indexed":true},{"name":"new_price","type":"BigUint","indexed":true},{"name":"payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_nonce","type":"u64","indexed":true},{"name":"deadline","type":"u64","indexed":true}]},{"identifier":"out_bid_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"old_bidder","type":"Address","indexed":true},{"name":"new_bidder","type":"Address","indexed":true},{"name":"refund_amount","type":"BigUint","indexed":true},{"name":"new_amount","type":"BigUint","indexed":true},{"name":"refund_payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"refund_payment_nonce","type":"u64","indexed":true}]},{"identifier":"buy_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_bought_tokens","type":"BigUint","indexed":true},{"name":"buyer","type":"Address","indexed":true},{"name":"bid_sft_amount","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"accepted_payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"accepted_payment_token_nonce","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"message","type":"bytes","indexed":true},{"name":"buy_by","type":"Address","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"original_payment","type":"EgldOrEsdtTokenPayment","indexed":true}]},{"identifier":"withdraw_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true}]},{"identifier":"user_deposit","inputs":[{"name":"owner","type":"Address","indexed":true},{"name":"payment","type":"EgldOrEsdtTokenPayment","indexed":true}]},{"identifier":"collection_config_event","inputs":[{"name":"collection","type":"TokenIdentifier","indexed":true},{"name":"config","type":"CollectionFeeConfig","indexed":true}]}],"esdtAttributes":[],"hasCallback":false,"types":{"AggregatorStep":{"type":"struct","fields":[{"name":"token_in","type":"TokenIdentifier"},{"name":"token_out","type":"TokenIdentifier"},{"name":"amount_in","type":"BigUint"},{"name":"pool_address","type":"Address"},{"name":"function_name","type":"bytes"},{"name":"arguments","type":"List<bytes>"}]},"Auction":{"type":"struct","fields":[{"name":"auctioned_token_type","type":"TokenIdentifier"},{"name":"auctioned_token_nonce","type":"u64"},{"name":"nr_auctioned_tokens","type":"BigUint"},{"name":"auction_type","type":"AuctionType"},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_token_nonce","type":"u64"},{"name":"min_bid","type":"BigUint"},{"name":"max_bid","type":"Option<BigUint>"},{"name":"start_time","type":"u64"},{"name":"deadline","type":"u64"},{"name":"original_owner","type":"Address"},{"name":"current_bid","type":"BigUint"},{"name":"current_winner","type":"Address"},{"name":"marketplace_cut_percentage","type":"BigUint"},{"name":"creator_royalties_percentage","type":"BigUint"}]},"AuctionType":{"type":"enum","variants":[{"name":"None","discriminant":0},{"name":"NftBid","discriminant":1},{"name":"Nft","discriminant":2},{"name":"SftAll","discriminant":3},{"name":"SftOnePerPayment","discriminant":4}]},"BulkListing":{"type":"struct","fields":[{"name":"min_bid","type":"BigUint"},{"name":"max_bid","type":"BigUint"},{"name":"deadline","type":"u64"},{"name":"accepted_payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"bid","type":"bool"},{"name":"opt_sft_max_one_per_payment","type":"bool"},{"name":"opt_start_time","type":"u64"},{"name":"collection","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"nft_amount","type":"BigUint"},{"name":"royalties","type":"BigUint"}]},"BulkOffers":{"type":"struct","fields":[{"name":"offer_id","type":"u64"},{"name":"nonce","type":"u64"},{"name":"offer","type":"Offer"}]},"BulkUpdateListing":{"type":"struct","fields":[{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier"},{"name":"new_price","type":"BigUint"},{"name":"auction_id","type":"u64"},{"name":"deadline","type":"u64"}]},"CollectionExtraFeesConfig":{"type":"struct","fields":[{"name":"amount","type":"BigUint"},{"name":"address","type":"Address"}]},"CollectionFeeConfig":{"type":"struct","fields":[{"name":"reverse_cut_fees","type":"bool"},{"name":"reverse_royalties","type":"bool"},{"name":"custom_royalties","type":"bool"},{"name":"min_royalties","type":"BigUint"},{"name":"max_royalties","type":"BigUint"},{"name":"extra_fees","type":"CollectionExtraFeesConfig"},{"name":"admin","type":"Address"}]},"EgldOrEsdtTokenPayment":{"type":"struct","fields":[{"name":"token_identifier","type":"EgldOrEsdtTokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"amount","type":"BigUint"}]},"EsdtTokenPayment":{"type":"struct","fields":[{"name":"token_identifier","type":"TokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"amount","type":"BigUint"}]},"GlobalOffer":{"type":"struct","fields":[{"name":"offer_id","type":"u64"},{"name":"collection","type":"TokenIdentifier"},{"name":"quantity","type":"BigUint"},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_nonce","type":"u64"},{"name":"price","type":"BigUint"},{"name":"timestamp","type":"u64"},{"name":"owner","type":"Address"},{"name":"attributes","type":"Option<bytes>"},{"name":"new_version","type":"bool"}]},"Offer":{"type":"struct","fields":[{"name":"token_type","type":"TokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"quantity","type":"BigUint"},{"name":"status","type":"OfferStatus"},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_token_nonce","type":"u64"},{"name":"price","type":"BigUint"},{"name":"deadline","type":"u64"},{"name":"timestamp","type":"u64"},{"name":"offer_owner","type":"Address"},{"name":"marketplace_cut_percentage","type":"BigUint"},{"name":"new_version","type":"bool"}]},"OfferStatus":{"type":"enum","variants":[{"name":"Pending","discriminant":0},{"name":"Accepted","discriminant":1},{"name":"Declined","discriminant":2},{"name":"Withdraw","discriminant":3}]},"TokenAmount":{"type":"struct","fields":[{"name":"token","type":"TokenIdentifier"},{"name":"amount","type":"BigUint"}]},"TokensOnSale":{"type":"struct","fields":[{"name":"auction_id","type":"u64"},{"name":"token_type","type":"u8"},{"name":"auction","type":"Auction"}]}}}');var S=__webpack_require__.t(_,2);const E=JSON.parse('{"buildInfo":{"rustc":{"version":"1.69.0-nightly","commitHash":"c8e6a9e8b6251bbc8276cb78cabe1998deecbed7","commitDate":"2023-01-23","channel":"Nightly","short":"rustc 1.69.0-nightly (c8e6a9e8b 2023-01-23)"},"contractCrate":{"name":"minter","version":"0.0.0"},"framework":{"name":"multiversx-sc","version":"0.39.6"}},"name":"Minter","constructor":{"inputs":[{"name":"local_owner","type":"Address"},{"name":"cut_percentage","type":"BigUint"},{"name":"signer_wallet","type":"Address"}],"outputs":[]},"endpoints":[{"name":"buy","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"quantity","type":"u32"},{"name":"signature","type":"optional<bytes>","multi_arg":true},{"name":"data","type":"optional<bytes>","multi_arg":true}],"outputs":[]},{"name":"buyFor","onlyOwner":true,"mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"quantity","type":"u32"},{"name":"user","type":"Address"},{"name":"twispay","type":"bytes"},{"name":"signature","type":"optional<bytes>","multi_arg":true},{"name":"data","type":"optional<bytes>","multi_arg":true}],"outputs":[]},{"name":"giveaway","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"to","type":"Address"},{"name":"quantity","type":"u32"}],"outputs":[]},{"name":"giveawayAdmin","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"to","type":"Address"},{"name":"quantity","type":"u32"},{"name":"twispay","type":"bytes"},{"name":"signature","type":"optional<bytes>","multi_arg":true},{"name":"data","type":"optional<bytes>","multi_arg":true}],"outputs":[]},{"name":"reveal","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"tag","type":"bytes"}],"outputs":[]},{"name":"changeLocalOwner","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"owner","type":"Address"}],"outputs":[]},{"name":"tradingControl","mutability":"mutable","inputs":[{"name":"collection","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"burn","mutability":"mutable","inputs":[{"name":"collection","type":"bytes"}],"outputs":[]},{"name":"transferOwner","mutability":"mutable","inputs":[{"name":"collection","type":"bytes"}],"outputs":[]},{"name":"claim_royalties","mutability":"mutable","inputs":[],"outputs":[]},{"name":"claimESDT","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonces","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"setCutPercentage","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"new_cut_percentage","type":"BigUint"}],"outputs":[]},{"name":"claimTokens","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u32"}],"outputs":[]},{"name":"addRewards","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"tag","type":"bytes"},{"name":"reward","type":"BigUint"}],"outputs":[]},{"name":"removeRewards","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"}],"outputs":[]},{"name":"stopMintShareholder","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"}],"outputs":[]},{"name":"stopRoyaltiesShareholder","mutability":"mutable","inputs":[],"outputs":[]},{"name":"addMintShareholder","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"shareholders","type":"variadic<multi<Address,BigUint>>","multi_arg":true}],"outputs":[]},{"name":"addRoyaltiesShareholder","mutability":"mutable","inputs":[{"name":"shareholders","type":"variadic<multi<Address,BigUint>>","multi_arg":true}],"outputs":[]},{"name":"getMintShareholders","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<ShareHolders>","multi_result":true}]},{"name":"getRoyaltiesShareholders","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<ShareHolders>","multi_result":true}]},{"name":"isMintEditBlocked","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"bool"}]},{"name":"rewardPerCollection","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"RewardStruct"}]},{"name":"isRoyaltiesEditBlocked","mutability":"readonly","inputs":[],"outputs":[{"type":"bool"}]},{"name":"cutPercentage","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"localOwner","mutability":"readonly","inputs":[],"outputs":[{"type":"Address"}]},{"name":"buysPerWallet","mutability":"readonly","inputs":[{"name":"user","type":"Address"},{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"buysStagePerWallet","mutability":"readonly","inputs":[{"name":"user","type":"Address"},{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"getNFTsIDs","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<bytes>","multi_result":true}]},{"name":"nextNftNonce","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"getAcceptedTokens","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<EgldOrEsdtTokenIdentifier>","multi_result":true}]},{"name":"lastNFTIdAdded","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"listingByTag","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"Listing"}]},{"name":"maxBuysPerTag","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"tokenByTag","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"TokenIdentifier"}]},{"name":"isActive","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"bool"}]},{"name":"getPaymentTokenPrice","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"BigUint"}]},{"name":"revealID","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"bytes"}]},{"name":"collections","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<bytes>","multi_result":true}]},{"name":"signer","mutability":"readonly","inputs":[],"outputs":[{"type":"bytes"}]},{"name":"listingByTagV2","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"NewListing"}]},{"name":"mintStage","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<multi<bytes,Stage>>","multi_result":true}]},{"name":"getWhitelistedWallets","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"variadic<Address>","multi_result":true}]},{"name":"isWhitelisted","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"},{"name":"address","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"getListings","mutability":"readonly","inputs":[],"outputs":[{"type":"List<NewListing>"}]},{"name":"getListing","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"NewListing"}]},{"name":"getStages","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"List<Stage>"}]},{"name":"getStage","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"Stage"}]},{"name":"whitelistSize","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"listing","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"cid","type":"bytes"},{"name":"tags","type":"bytes"},{"name":"base_nft_name","type":"bytes"},{"name":"royalties","type":"BigUint"},{"name":"token_name","type":"bytes"},{"name":"token_ticker","type":"bytes"},{"name":"collection_size","type":"u32"},{"name":"global_max_per_wallet","type":"u32"},{"name":"collectiontag","type":"bytes"},{"name":"nft_ending","type":"bytes"},{"name":"name_shuffle","type":"bool"},{"name":"has_attributes","type":"bool"},{"name":"has_kyc","type":"bool"},{"name":"refund_policy","type":"bool"},{"name":"public_burn","type":"bool"},{"name":"bot_protection","type":"bool"},{"name":"has_reveal","type":"bool"}],"outputs":[]},{"name":"createStage","mutability":"mutable","inputs":[{"name":"args","type":"StageArgs"}],"outputs":[]},{"name":"removeStage","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[]},{"name":"changeTime","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"start_date","type":"u64"},{"name":"end_time","type":"u64"}],"outputs":[]},{"name":"removePaymentToken","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"token","type":"TokenIdentifier"}],"outputs":[]},{"name":"addPaymentToken","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"price","type":"BigUint"}],"outputs":[]},{"name":"addWhitelists","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"},{"name":"wallets","type":"variadic<Address>","multi_arg":true}],"outputs":[]},{"name":"removeWhitelists","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"},{"name":"wallets","type":"variadic<Address>","multi_arg":true}],"outputs":[]},{"name":"clearWhitelist","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[]},{"name":"maxBuysPerWallet","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"max","type":"u32"}],"outputs":[]},{"name":"maxStageBuysPerWallet","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"max","type":"u32"}],"outputs":[]},{"name":"changeStageMintLimit","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"mint_limit","type":"u32"}],"outputs":[]},{"name":"changeWLStatus","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"botProtection","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"enableReveal","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"cid","type":"bytes"}],"outputs":[]},{"name":"publicBurn","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"setActive","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"is_active","type":"bool"}],"outputs":[]}],"events":[{"identifier":"emit_minting_stage_status","inputs":[{"name":"stage","type":"Stage","indexed":true}]},{"identifier":"emit_minting_status","inputs":[{"name":"contract_info","type":"NewListing","indexed":true}]},{"identifier":"emit_listing_event","inputs":[{"name":"listing","type":"NewListing","indexed":true}]},{"identifier":"emit_stage_event","inputs":[{"name":"stage","type":"Stage","indexed":true}]},{"identifier":"emit_stage_mint_event","inputs":[{"name":"stage","type":"Stage","indexed":true},{"name":"total_mint","type":"u32","indexed":true}]},{"identifier":"emit_buy_event","inputs":[{"name":"payments","type":"List<EsdtTokenPayment>","indexed":true},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"buyer","type":"Address","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"token_identifier","type":"TokenIdentifier","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"epoch","type":"u64","indexed":true}]},{"identifier":"emit_buy_fiat_event","inputs":[{"name":"payments","type":"List<EsdtTokenPayment>","indexed":true},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"buyer","type":"Address","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"token_identifier","type":"TokenIdentifier","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"epoch","type":"u64","indexed":true},{"name":"twispay","type":"bytes","indexed":true}]}],"hasCallback":true,"types":{"EsdtTokenPayment":{"type":"struct","fields":[{"name":"token_identifier","type":"TokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"amount","type":"BigUint"}]},"Listing":{"type":"struct","fields":[{"name":"cid","type":"bytes"},{"name":"tags","type":"bytes"},{"name":"collectiontag","type":"bytes"},{"name":"base_nft_name","type":"bytes"},{"name":"nft_ending","type":"bytes"},{"name":"royalties","type":"BigUint"},{"name":"mint_price","type":"BigUint"},{"name":"collection_size","type":"u32"},{"name":"start_date","type":"u64"},{"name":"mint_roles","type":"bool"},{"name":"owner_transfered","type":"bool"}]},"NewListing":{"type":"struct","fields":[{"name":"cid","type":"bytes"},{"name":"tags","type":"bytes"},{"name":"collection_tag","type":"bytes"},{"name":"media_type","type":"bytes"},{"name":"base_nft_name","type":"bytes"},{"name":"has_attributes","type":"bool"},{"name":"owner_transfered","type":"bool"},{"name":"collection_size","type":"u32"},{"name":"nft_minted","type":"u32"},{"name":"global_max_per_wallet","type":"u32"},{"name":"royalties","type":"BigUint"},{"name":"token","type":"TokenIdentifier"},{"name":"old_version","type":"bool"},{"name":"name_shuffle","type":"bool"},{"name":"transfer_role","type":"bool"},{"name":"public_burn","type":"bool"},{"name":"has_kyc","type":"bool"},{"name":"refund_policy","type":"bool"},{"name":"bot_protection","type":"bool"},{"name":"has_reveal","type":"bool"}]},"RewardStruct":{"type":"struct","fields":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"amount","type":"BigUint"},{"name":"reward","type":"BigUint"}]},"ShareHolders":{"type":"struct","fields":[{"name":"address","type":"Address"},{"name":"share","type":"BigUint"}]},"Stage":{"type":"struct","fields":[{"name":"name","type":"bytes"},{"name":"tag","type":"bytes"},{"name":"status","type":"bool"},{"name":"is_whitelist","type":"bool"},{"name":"start_time","type":"u64"},{"name":"end_time","type":"u64"},{"name":"mint_limit","type":"u32"},{"name":"mint_count","type":"u32"},{"name":"prices","type":"List<EsdtTokenPayment>"},{"name":"max_per_wallet","type":"u32"}]},"StageArgs":{"type":"struct","fields":[{"name":"name","type":"bytes"},{"name":"tag","type":"bytes"},{"name":"is_whitelist","type":"bool"},{"name":"start_time","type":"u64"},{"name":"end_time","type":"u64"},{"name":"mint_limit","type":"u32"},{"name":"prices","type":"List<EsdtTokenPayment>"},{"name":"max_per_wallet","type":"u32"}]}}}');var I=__webpack_require__.t(E,2);class C{static manager;static exchange;static minter;static market;static staking;static p2p;static async getMarket(){if(!C.market){const e=T.AbiRegistry.create(S);C.market=e}return C.market}static async getManager(){if(!C.manager){const e=await b.getInstance().fetchWithTimeout(`${b.getInstance().config.mediaUrl}/smartcontractabi/manage.json`,{next:{tags:["getManager"]}}),t=T.AbiRegistry.create(e);C.manager=t}return C.manager}static async getMinter(){if(!C.minter){const e=T.AbiRegistry.create(I);C.minter=e}return C.minter}static async getStaking(){if(!C.staking){const e=await b.getInstance().fetchWithTimeout(`${b.getInstance().config.mediaUrl}/smartcontractabi/staking-nfts.abi.json`,{next:{tags:["getStaking"]}}),t=T.AbiRegistry.create(e);C.staking=t}return C.staking}static async getExchange(){if(!C.exchange){const e=await b.getInstance().fetchWithTimeout(`${b.getInstance().config.mediaUrl}/smartcontractabi/rs-exchange.abi.json`,{next:{tags:["getExchange"]}}),t=T.AbiRegistry.create(e);C.exchange=t}return C.exchange}static async getP2P(){if(!C.p2p){const e=await b.getInstance().fetchWithTimeout(`${b.getInstance().config.mediaUrl}/smartcontractabi/p2p.abi.json`,{next:{tags:["getP2P"]}}),t=T.AbiRegistry.create(e);C.p2p=t}return C.p2p}}var k=__webpack_require__(1998);const B=(e,r)=>new k.SmartContract({address:new t.Address(r),abi:e});class O{xo;call;api;config;factory;constructor(e){this.config=b.getInstance().config;const t=B(e,this.config.XO_SC);this.xo=t,this.call=new A,this.api=b.getInstance();const r=new c.TransactionsFactoryConfig({chainID:this.api.chain.valueOf()});this.factory=new u.SmartContractTransactionsFactory({config:r,abi:e})}static async init(){const e=await C.getMarket();return new O(e)}async getResult(e){return await this.call.runQuery(this.xo,e)}getMarketplaceFees=async()=>{const e=this.xo.methods.getMarketplaceCutPercentage(),t=await this.getResult(e);return parseInt(t.firstValue?.valueOf())};getAcceptedPaymentTokens=async()=>{const e=this.xo.methods.getAcceptedTokens(),t=await this.getResult(e);return t.firstValue?.valueOf()};getGlobalOfferIDs=async()=>{const e=this.xo.methods.getGlobalOffers(),t=await this.getResult(e);return t.firstValue?.valueOf().map((e=>parseInt(e)))};async getUserPoolBalance(e,t,r){if(!(e=>e.includes("erd1")&&62===e?.length)(e))throw new Error("Invalid address:"+e);const n=await this.getResult(this.xo.methods.userDeposit([e,t,r]));return n?.firstValue?new i.BigUIntValue(n.firstValue.valueOf().amount).valueOf().shiftedBy(-18).toNumber():0}isOfferActive(e,t){return e<=t}getGlobalOfferData=async e=>{const t=this.xo.methods.getGlobalOffer([e]),r=await this.getResult(t),n=r.firstValue?.valueOf();return n.offer_id=parseInt(n.offer_id.valueOf()),n.marketplace="xoxno",n.short_price=parseFloat(new i.BigUIntValue(n.price).valueOf().shiftedBy(-18).toString()),n.new_version=Boolean(n.new_version),n.new_version?n.isActive=!0:n.isActive=this.isOfferActive(n.short_price,await this.getUserPoolBalance(n.owner,n.payment_token,n.payment_nonce)),n.quantity=parseInt(n.quantity.valueOf()),n.payment_nonce=parseInt(n.payment_nonce.valueOf()),n.price=n.price.valueOf(),n.timestamp=parseInt(n.timestamp.valueOf()),n.owner=n.owner.valueOf().toString(),n.attributes&&(n.attributes=JSON.parse(Buffer.from(n.attributes.valueOf().toString(),"base64").toString("ascii"))),n};getAuctionInfo=async e=>{const t=this.xo.methods.getFullAuctionData([e]),r=await this.getResult(t),n=r.firstValue?.valueOf();return n?(n.auctioned_token_nonce=parseInt(n.auctioned_token_nonce.valueOf()),n.nr_auctioned_tokens=parseInt(n.nr_auctioned_tokens.valueOf()),n.auction_type=n.auction_type.name,n.payment_token_nonce=parseInt(n.payment_token_nonce.valueOf()),n.min_bid=n.min_bid.valueOf(),n.max_bid=n.max_bid.valueOf(),n.start_time=parseInt(n.start_time.valueOf()),n.deadline=parseInt(n.deadline.valueOf()),n.original_owner=n.original_owner.valueOf().toString(),n.current_winner=n.current_winner.valueOf().toString(),n.current_bid=n.current_bid.valueOf().toString(),n.marketplace_cut_percentage=n.marketplace_cut_percentage.valueOf(),n.creator_royalties_percentage=n.creator_royalties_percentage.valueOf(),n):null};async getListingsCount(){const e=await this.getResult(this.xo.methods.getListingsCount());return parseInt(e.firstValue?.valueOf())}async getOffersCount(){const e=await this.getResult(this.xo.methods.getOffersCount());return parseInt(e.firstValue?.valueOf())}async getGlobalOffersCount(){const e=await this.getResult(this.xo.methods.getGlobalOffersCount());return parseInt(e.firstValue?.valueOf())}async getCollectionsCount(){const e=await this.getResult(this.xo.methods.getCollectionsCount());return parseInt(e.firstValue?.valueOf())}async isCollectionListed(e){const t=await this.getResult(this.xo.methods.isCollectionListed([e]));return Boolean(t.firstValue?.valueOf())}async getCollectionNFTsOnSaleCount(e){const t=await this.getResult(this.xo.methods.getTokenItemsForSaleCount([e]));return parseInt(t.firstValue?.valueOf())}async getAuctionIDsForCollection(e){const t=await this.getResult(this.xo.methods.getAuctionsForTicker([e])),r=t.firstValue?.valueOf().map((e=>parseInt(e)));return r}withdrawAuctions({auctionIDs:r,sender:n,market:a="xoxno",signature:o}){if("xoxno"===a){const a=this.xo.methodsExplicit.withdraw([e.BytesValue.fromHex(o),...r.map((e=>new i.U64Value(e)))]);return n.nonce&&a.withNonce(n.nonce),[a.withChainID(this.api.chain).withSender(new t.Address(n.address)).withGasLimit(Math.min(6e8,25e6+8e6*r.length)).buildTransaction().toPlainObject()]}if("frameit"==a)return r.map(((e,r)=>{const a=this.xo.methodsExplicit.withdraw([new i.U64Value(e)]);return n.nonce&&a.withNonce(n.nonce+r),a.withChainID(this.api.chain).withSender(new t.Address(n.address)).withGasLimit(Math.min(6e8,25e6)).withExplicitReceiver(new t.Address(this.config.FM_SC)).buildTransaction().toPlainObject()}));if("deadrare"==a)return r.map(((e,r)=>{const a=this.xo.methodsExplicit.withdraw([new i.U64Value(e)]);return n.nonce&&a.withNonce(n.nonce+r),a.withChainID(this.api.chain).withSender(new t.Address(n.address)).withGasLimit(Math.min(6e8,25e6)).withExplicitReceiver(new t.Address(this.config.DR_SC)).buildTransaction().toPlainObject()}));throw new Error("Market not supported")}withdrawGlobalOffer(e,r="xoxno",n){if("xoxno"!=r)throw Error("Marketplace not supported");const i=this.xo.methods.withdrawGlobalOffer([e]);return n.nonce&&i.withNonce(n.nonce),i.withChainID(this.api.chain).withSender(new t.Address(n.address)).withGasLimit(2e7).buildTransaction().toPlainObject()}acceptGlobalOffer({signature:e,offer_id:r,auction_ids_opt:n,market:i,nfts:a,address:o,nonce:u}){if("xoxno"!=i)throw Error("Marketplace not supported");const c=e?this.xo.methods.acceptGlobalOffer([r,n??[],e]):this.xo.methods.acceptGlobalOffer([r,n]);return c.withSender(new t.Address(o)),a.length>0&&c.withMultiESDTNFTTransfer(a.map((e=>s.TokenTransfer.semiFungible(e.collection,e.nonce,e.amount??1)))),u&&c.withNonce(u),c.withChainID(this.api.chain).withGasLimit(Math.min(35e6+7e6*(a.length+n.length)+(null==e?15e6:0),6e8)).buildTransaction().toPlainObject()}sendGlobalOffer({payment_token:e,payment_nonce:r,price:n,collection:i,quantity:a,attributes:o,depositAmount:u,address:c,nonce:l}){const d=this.xo.methods.sendGlobalOffer([e,r,s.TokenTransfer.egldFromAmount(n).toString(),i,a,...o?[o]:[]]);return l&&d.withNonce(l),d.withSender(new t.Address(c)),u&&d.withValue(u),d.withChainID(this.api.chain).withGasLimit(25e6+(o?1500*o?.length:0)).buildTransaction().toPlainObject()}sendCustomOffer({payment_token:e,payment_nonce:r,price:n,deadline:i,nft:a,depositAmount:o,address:u,nonce:c}){const l=this.xo.methods.sendOffer([e,r,s.TokenTransfer.egldFromAmount(n).toString(),a.collection,a.nonce,a.amount??1,i]);return c&&l.withNonce(c),l.withSender(new t.Address(u)),o&&l.withValue(o),l.withChainID(this.api.chain).withGasLimit(3e7).buildTransaction().toPlainObject()}withdrawCustomOffer(e,r,n){if("xoxno"===n){const n=this.xo.methods.withdrawOffer([e]);return r.nonce&&n.withNonce(r.nonce),n.withSender(new t.Address(r.address)),n.withChainID(this.api.chain).withGasLimit(15e6).buildTransaction().toPlainObject()}throw Error("Market not supported")}declineCustomOffer(e,r,n,i){if("xoxno"==i){const i=n.onSale?this.xo.methods.declineOffer([e,n.saleInfo?.auctionId]):this.xo.methods.declineOffer([e]);return r.nonce&&i.withNonce(r.nonce),i.withSender(new t.Address(r.address)),n.onSale||i.withSingleESDTNFTTransfer(s.TokenTransfer.semiFungible(n.collection,n.nonce,1)),i.withChainID(this.api.chain).withGasLimit(2e7).buildTransaction().toPlainObject()}throw Error("Market not supported")}acceptCustomOffer(e,r,n,i){if("xoxno"==i){const i=n.onSale?this.xo.methods.acceptOffer([e,n.saleInfo?.auctionId]):this.xo.methods.acceptOffer([e]);return r.nonce&&i.withNonce(r.nonce),i.withSender(new t.Address(r.address)),n.onSale||i.withSingleESDTNFTTransfer(s.TokenTransfer.semiFungible(n.collection,n.nonce,1)),i.withChainID(this.api.chain).withGasLimit(45e6).buildTransaction().toPlainObject()}throw Error("Market not supported")}endAuction(e,r,n="xoxno"){if("xoxno"==n){const n=this.xo.methods.endAuction([e]);return r.nonce&&n.withNonce(r.nonce),n.withSender(new t.Address(r.address)),n.withChainID(this.api.chain).withGasLimit(6e7).buildTransaction().toPlainObject()}throw new Error("Market not supported")}bidOnAuctionId(e,r,n,i,a){const o="EGLD"==i.collection,u=this.factory.createTransactionForExecute({sender:new t.Address(a.address),contract:new t.Address(this.config.XO_SC),function:"bid",gasLimit:30000000n,arguments:[e,r,n],nativeTransferAmount:o?BigInt(i.amount):void 0,tokenTransfers:o?void 0:[new s.TokenTransfer({token:new s.Token({identifier:i.collection,nonce:BigInt(i.nonce??0)}),amount:BigInt(i.amount)})]});return a.nonce&&(u.nonce=BigInt(a.nonce)),u.toPlainObject()}bulkBuy(e,r,n){const i=this.xo.methods.bulkBuy(e);return n.nonce&&i.withNonce(n.nonce),i.withSender(new t.Address(n.address)),"EGLD"==r.collection?i.withValue(r.amount):i.withSingleESDTTransfer(s.TokenTransfer.fungibleFromBigInteger(r.collection,r.amount,r.decimals??18)),i.withChainID(this.api.chain).withGasLimit(Math.min(6e8,25e6+2e7*e.length)).buildTransaction().toPlainObject()}async buyAuctionById({auctionID:e,collection:r,nonce:n,paymentAmount:i,quantity:a=1,token:o="EGLD",withCheck:u=!0,isBigUintPayment:c=!1,isBid:l=!1,decimals:d=18,market:f="xoxno",sender:h}){if("xoxno"!==f)throw new Error("Market not supported");if(!e)throw new Error("AuctionID not provided");let p=null;if(!i||!o||!r||!n||u){if(p=await this.getAuctionInfo(e),null===p)throw new Error("Auction not found");if(p.auction_type===y.Nft||p.auction_type===y.SftOnePerPayment)throw new Error("Auction type is not NFT or SftOnePerPayment")}const g=p?.payment_token_type??o,m=!!p||c;let b=l?p?.max_bid??i:p?.min_bid??i;if(!b)throw new Error("Payment amount not provided");const v=this.xo.methods.buy([e,p?.auctioned_token_type??r,p?.auctioned_token_nonce??n,a]);if(h.nonce&&v.withNonce(h.nonce),v.withSender(new t.Address(h.address)),"EGLD"===o)v.withValue(m?s.TokenTransfer.egldFromBigInteger(b):s.TokenTransfer.egldFromAmount(b));else{if(!m){if(p=await this.getAuctionInfo(e),null===p)throw new Error("Auction not found");b=l?p.max_bid:p.min_bid}v.withSingleESDTTransfer(s.TokenTransfer.fungibleFromBigInteger(g,b,d))}return v.withChainID(this.api.chain).withGasLimit(45e6).buildTransaction().toPlainObject()}async changeListing(r,s,u){if(!u)throw Error("Market is required");const c=new a.StructType("BulkUpdateListing",[new n.FieldDefinition("payment_token_type","",new o.TokenIdentifierType),new n.FieldDefinition("new_price","",new i.BigUIntType),new n.FieldDefinition("auction_id","",new i.U64Type),new n.FieldDefinition("deadline","",new i.U64Type)]),l=[];r.forEach((({paymentToken:e,price:t,auctionID:r,deadline:s})=>{l.push(new a.Struct(c,[new n.Field(new o.TokenIdentifierValue(e),"payment_token_type"),new n.Field(new i.BigUIntValue(t),"new_price"),new n.Field(new i.U64Value(r),"auction_id"),new n.Field(new i.U64Value(s),"deadline")]))}));const d=this.xo.methods.changeListing([e.VariadicValue.fromItems(...l)]);return s.nonce&&d.withNonce(s.nonce),d.withSender(new t.Address(s.address)),d.withChainID(this.api.chain).withGasLimit(Math.min(6e8,25e6+5e6*r.length)).buildTransaction().toPlainObject()}async listNFTs(e,u){const c=new a.StructType("BulkListing",[new n.FieldDefinition("min_bid","",new i.BigUIntType),new n.FieldDefinition("max_bid","",new i.BigUIntType),new n.FieldDefinition("deadline","",new i.U64Type),new n.FieldDefinition("accepted_payment_token","",new o.TokenIdentifierType),new n.FieldDefinition("bid","",new r.BooleanType),new n.FieldDefinition("opt_sft_max_one_per_payment","",new r.BooleanType),new n.FieldDefinition("opt_start_time","",new i.U64Type),new n.FieldDefinition("collection","",new o.TokenIdentifierType),new n.FieldDefinition("nonce","",new i.U64Type),new n.FieldDefinition("nft_amount","",new i.BigUIntType)]),l=[],f=[];e.forEach((e=>{const t=e.accepted_payment_token_decimals??18,u=new(d())(e.min_bid).shiftedBy(t),h=new(d())(e.max_bid??0).shiftedBy(t);f.push(s.TokenTransfer.semiFungible(e.collection,e.nonce,e.nft_amount)),l.push(new a.Struct(c,[new n.Field(new i.BigUIntValue(u),"min_bid"),new n.Field(new i.BigUIntValue(h),"max_bid"),new n.Field(new i.U64Value(new(d())(e.deadline??0)),"deadline"),new n.Field(new o.TokenIdentifierValue(e.accepted_payment_token??"EGLD"),"accepted_payment_token"),new n.Field(new r.BooleanValue(e.bid??!1),"bid"),new n.Field(new r.BooleanValue(e.isSFTPack??!1),"opt_sft_max_one_per_payment"),new n.Field(new i.U64Value(new(d())(e.opt_start_time?e.opt_start_time:0)),"opt_start_time"),new n.Field(new o.TokenIdentifierValue(e.collection),"collection"),new n.Field(new i.U64Value(e.nonce),"nonce"),new n.Field(new i.BigUIntValue(new(d())(e.nft_amount)),"nft_amount")]))}));const h=this.xo.methods.listings(l);return u.nonce&&h.withNonce(u.nonce),h.withSender(new t.Address(u.address)),h.withMultiESDTNFTTransfer(f),h.withChainID(this.api.chain).withGasLimit(Math.min(6e8,25e6+45e5*e.length)).buildTransaction().toPlainObject()}}class x{minter;call;constructor(e){this.minter=e,this.call=new A}async getResult(e){return await this.call.runQuery(this.minter,e)}static async init(e){const t=await C.getMinter(),r=B(t,e);return new x(r)}getAllUniqueTags=async()=>{const e=this.minter.methods.collections(),t=await this.getResult(e);return t.firstValue?.valueOf().map((e=>e.toString()))};getWalletGlobalBuyCount=async(e,t)=>{const r=this.minter.methods.buysPerWallet([e,t]),n=await this.getResult(r);return n.firstValue?.valueOf()};getWalletStageBuyCount=async(e,t,r)=>{const n=this.minter.methods.buysStagePerWallet([e,t,r]),i=await this.getResult(n);return i.firstValue?.valueOf()};getLocalOwner=async()=>{const e=this.minter.methods.localOwner(),t=await this.getResult(e);return t.firstValue?.valueOf()};getLaunchpadCutFee=async()=>{const e=this.minter.methods.cutPercentage(),t=await this.getResult(e);return t.firstValue?.valueOf()};getStageWhitelist=async(e,t)=>{const r=this.minter.methods.getWhitelistedWallets([e,t]),n=await this.getResult(r);return n.firstValue?.valueOf().map((e=>e.toString()))};getStages=async e=>{const t=this.minter.methods.mintStage([e]),r=await this.getResult(t);return r.firstValue?.valueOf().map((e=>{const t=e[1].valueOf();return t.name=t.name.toString(),t.tag=t.name.toString(),t.start_time=parseInt(t.start_time.toString()),t.end_time=parseInt(t.end_time.toString()),t.mint_limit=parseInt(t.mint_limit.toString()),t.mint_count=parseInt(t.mint_count.toString()),t.max_per_wallet=parseInt(t.max_per_wallet.toString()),t.prices=t.prices.map((e=>{const t=e.valueOf();return{...t,token_nonce:parseInt(t.token_nonce.toString()),amount:t.amount.toString()}})),t}))}}var N,P,D,R,L,U,M,F,j,z,V,H,q,G,Q,K,W,$,Y,J,X,Z,ee;!function(e){e.XO="xoxno",e.FM="frameit",e.DR="deadrare",e.KG="krogan"}(N||(N={})),function(e){e.Rank="metadata.rarity.rank",e.Attributes="metadata.attributes",e.Description="metadata.description",e.Name="name",e.OnSale="onSale",e.SaleInfo="saleInfo",e.Royalties="royalties",e.Identifier="identifier",e.Collection="collection",e.OriginalURL="url",e.Nonce="nonce",e.ContentType="originalMedia.contentType",e.WasProcessed="wasProcessed",e.AvifURL="avifUrl",e.WebpURL="webpUrl",e.Type="type"}(P||(P={})),function(e){e.PriceHighToLow="saleInfo.minBidShort desc",e.PriceLowToHigh="saleInfo.minBidShort asc",e.MaxPriceHighToLow="saleInfo.maxBidShort desc",e.MaxPriceLowToHigh="saleInfo.maxBidShort asc",e.BidPriceHighToLow="saleInfo.currentBidShort desc",e.BidPriceLowToHigh="saleInfo.currentBidShort asc",e.RarityHighToLow="metadata.rarity.rank desc",e.RarityLowToHigh="metadata.rarity.rank asc",e.NonceHighToLow="nonce desc",e.NonceLowToHigh="nonce asc",e.RecentListed="saleInfo.timestamp desc",e.OldestListed="saleInfo.timestamp asc",e.EndingLate="saleInfo.deadline desc",e.EndingSoon="saleInfo.deadline asc"}(D||(D={})),function(e){e.EndingLate="startTime desc",e.EndingSoon="startTime asc"}(R||(R={})),function(e){e.TotalVolumeHighToLow="statistics/tradeData/totalEgldVolume desc",e.FollowersHighToLow="statistics/other/followCount desc",e.IsVerifiedTrueToFalse="isVerified desc",e.HasImageTrueToFalse="profile desc",e.HasBannerTrueToFalse="banner desc"}(L||(L={})),function(e){e.WeekVolumeHighToLow="statistics.tradeData.weekEgldVolume desc",e.WeekVolumeLowToHigh="statistics.tradeData.weekEgldVolume asc",e.DailyVolumeHighToLow="statistics.tradeData.dayEgldVolume desc",e.DailyVolumeLowToHigh="statistics.tradeData.dayEgldVolume asc",e.TotalVolumeHighToLow="statistics.tradeData.totalEgldVolume desc",e.TotalVolumeLowToHigh="statistics.tradeData.totalEgldVolume asc",e.AvgVolumePriceHighToLow="statistics.tradeData.averageEgldPrice desc",e.AvgVolumePriceLowToHigh="statistics.tradeData.averageEgldPrice asc",e.ATHHighToLow="statistics.tradeData.athEgldPrice desc",e.ATHLowToHigh="statistics.tradeData.athEgldPrice asc",e.TotalTradesHighToLow="statistics.tradeData.totalTrades desc",e.TotalTradesLowToHigh="statistics.tradeData.totalTrades asc",e.SupplyHighToLow="statistics.other.nftCount desc",e.SupplyLowToHigh="statistics.other.nftCount asc",e.FollowersHighToLow="statistics.other.followCount desc",e.FollowersLowToHigh="statistics.other.followCount asc"}(U||(U={})),function(e){e.PriceHighToLow="priceShort desc",e.PriceLowToHigh="priceShort asc",e.OfferIdHighToLow="offerIddesc",e.OfferIdLowToHigh="offerId asc",e.RecentListed="timestamp desc",e.OldestListed="timestamp asc"}(M||(M={})),function(e){e.Profile="profile",e.Description="description",e.Creator="creator",e.Owner="owner",e.Socials="socials",e.Type="type",e.HasStaking="hasStaking",e.Name="name",e.Banner="banner",e.IsVerified="isVerified",e.IsMintable="isMintable",e.Statistics="statistics",e.Collection="collection"}(F||(F={})),function(e){e.Attributes="attributes",e.Collection="collection",e.Marketplace="marketplace",e.PaymentToken="paymentToken",e.LongPrice="price",e.ShortPrice="priceShort"}(j||(j={})),function(e){e.FixedPrice="FixedPrice",e.Auctions="Auctions",e.All="All",e.AllListed="AllListed"}(z||(z={})),function(e){e.ALL="all",e.Trade="trade",e.P2P="p2p",e.Staking="staking",e.Minting="minting"}(V||(V={})),function(e){e.TotalVolume="TotalVolume",e.TotalTrades="TotalTrades",e.DailyVolume="DailyVolume",e.Last2DaysVolume="Last2DaysVolume",e.DailyTrades="DailyTrades",e.Last2DaysTrades="Last2DaysTrades",e.WeekTrades="WeekTrades",e.LastWeekTrades="LastWeekTrades",e.WeekVolume="WeekVolume",e.LastWeekVolume="LastWeekVolume",e.WeeklyTradesMargin="WeeklyTradesMargin",e.DailyTradesMargin="DailyTradesMargin",e.WeeklyVolumeMargin="WeeklyVolumeMargin",e.DailyVolumeEgldMargin="DailyVolumeEgldMargin",e.CollectionAthTrade="CollectionAthTrade"}(H||(H={})),function(e){e.TradingStats="tradingStats"}(q||(q={})),function(e){e.ListedCountDesc="tradingStats.listedCount DESC",e.ListedCountAsc="tradingStats.listedCount ASC",e.FloorPriceDesc="tradingStats.floorPrice DESC",e.FloorPriceAsc="tradingStats.floorPrice ASC",e.TotalVolumeDesc="tradingStats.totalVolume DESC",e.TotalVolumeAsc="tradingStats.totalVolume ASC",e.TotalTradesDesc="tradingStats.totalTrades DESC",e.TotalTradesAsc="tradingStats.totalTrades ASC",e.AllTimeHighDesc="tradingStats.allTimeHigh.price DESC",e.AllTimeHighAsc="tradingStats.allTimeHigh.price ASC",e.DayVolumeDesc="tradingStats.day.volume DESC",e.DayVolumeAsc="tradingStats.day.volume ASC",e.DayVolumeMarginDesc="tradingStats.day.volumeMargin DESC",e.DayVolumeMarginAsc="tradingStats.day.volumeMargin ASC",e.DayTradesDesc="tradingStats.day.trades DESC",e.DayTradesAsc="tradingStats.day.trades ASC",e.DayTradesMarginDesc="tradingStats.day.tradesMargin DESC",e.DayTradesMarginAsc="tradingStats.day.tradesMargin ASC",e.WeekVolumeDesc="tradingStats.week.volume DESC",e.WeekVolumeAsc="tradingStats.week.volume ASC",e.WeekVolumeMarginDesc="tradingStats.week.volumeMargin DESC",e.WeekVolumeMarginAsc="tradingStats.week.volumeMargin ASC",e.WeekTradesDesc="tradingStats.week.trades DESC",e.WeekTradesAsc="tradingStats.week.trades ASC",e.WeekTradesMarginDesc="tradingStats.week.tradesMargin DESC",e.WeekTradesMarginAsc="tradingStats.week.tradesMargin ASC",e.MonthVolumeDesc="tradingStats.month.volume DESC",e.MonthVolumeAsc="tradingStats.month.volume ASC",e.MonthVolumeMarginDesc="tradingStats.month.volumeMargin DESC",e.MonthVolumeMarginAsc="tradingStats.month.volumeMargin ASC",e.MonthTradesDesc="tradingStats.month.trades DESC",e.MonthTradesAsc="tradingStats.month.trades ASC",e.MonthTradesMarginDesc="tradingStats.month.tradesMargin DESC",e.MonthTradesMarginAsc="tradingStats.month.tradesMargin ASC",e.YearVolumeDesc="tradingStats.year.volume DESC",e.YearVolumeAsc="tradingStats.year.volume ASC",e.YearVolumeMarginDesc="tradingStats.year.volumeMargin DESC",e.YearVolumeMarginAsc="tradingStats.year.volumeMargin ASC",e.YearTradesDesc="tradingStats.year.trades DESC",e.YearTradesAsc="tradingStats.year.trades ASC",e.YearTradesMarginDesc="tradingStats.year.tradesMargin DESC",e.YearTradesMarginAsc="tradingStats.year.tradesMargin ASC"}(G||(G={})),function(e){e.NFT_CREATE="nftCreate",e.NFT_BURN="nftBurn",e.NFT_UPDATE="nftUpdate",e.NFT_TRANSFER="nftTransfer",e.LISTING_CREATE="listingCreate",e.LISTING_WITHDRAW="listingWithdraw",e.LISTING_UPDATE="listingUpdate",e.AUCTION_BID="auctionBid",e.AUCTION_OUT_BID="auctionOutBid",e.OFFER_CREATE="offerCreate",e.OFFER_WITHDRAW="offerWithdraw",e.OFFER_REJECT="offerReject",e.GLOBAL_OFFER_CREATE="globalOfferCreate",e.GLOBAL_OFFER_WITHDRAW="globalOfferWithdraw",e.TRADE="trade",e.BULK_TRADE="bulkTrade",e.AUCTION_TRADE="auctionTrade",e.OTHER_TRADE="otherTrade",e.OFFER_TRADE="offerTrade",e.GLOBAL_OFFER_TRADE="globalOfferTrade",e.STAKE="stake",e.UN_STAKE="unStake"}(Q||(Q={})),function(e){e.PriceHighToLow="activityData.egldValue desc",e.PriceLowToHigh="activityData.egldValue asc",e.RecentPlaced="timestamp desc",e.OldestPlaced="timestamp asc"}(K||(K={})),function(e){e[e.attributes=0]="attributes",e[e.collection=1]="collection",e[e.offer_id=2]="offer_id",e[e.owner=3]="owner",e[e.short_price=4]="short_price",e[e.price=5]="price",e[e.id=6]="id",e[e.dataType=7]="dataType",e[e.marketplace=8]="marketplace",e[e.payment_token=9]="payment_token"}(W||(W={})),function(e){e.Dynamic="Dynamic",e.Fixed="Fixed"}($||($={})),function(e){e.Duo="Duo",e.Single="Single",e.Perk="Perk"}(Y||(Y={})),function(e){e.Staked="staked",e.Unbounding="unstaked",e.Available="available"}(J||(J={})),function(e){e.Received="received",e.Placed="placed"}(X||(X={})),function(e){e.NonFungibleESDT="NonFungibleESDT"}(Z||(Z={})),function(e){e.FESTIVAL="festival",e.CONFERENCE="conference",e.NETWORKING="networking",e.MEETUP="meetup",e.WEB3="web3",e.ENTERTAINMENT="entertainment"}(ee||(ee={}));const te=Object.values(ee);var re,ne,ie,ae,oe,se;!function(e){e.MUSIC="music",e.ARTS_AND_CULTURE="arts-and-culture",e.FOOD_AND_DRINK="food-and-drink",e.LIFESTYLE_AND_WELLNESS="lifestyle-and-wellness",e.LOCAL_AND_COMMUNITY="local-and-community"}(re||(re={})),function(e){e.TECHNOLOGY_AND_INNOVATION="technology-and-innovation",e.BUSINESS_AND_FINANCE="business-and-finance",e.HEALTHCARE_AND_SCIENCE="healthcare-and-science",e.EDUCATION_AND_LEARNING="education-and-learning",e.MARKETING_AND_MEDIA="marketing-and-media"}(ne||(ne={})),function(e){e.INDUSTRY_SPECIFIC="industry-specific",e.CAREER_DEVELOPMENT="career-development",e.INVESTOR_AND_STARTUPS="investor-and-startups",e.SOCIAL_IMPACT="social-impact",e.PERSONAL_DEVELOPMENT="personal-development"}(ie||(ie={})),function(e){e.HOBBIES_AND_INTERESTS="hobbies-and-interests",e.PROFESSIONAL_GROUPS="professional-groups",e.SOCIAL_GATHERING="social-gathering",e.EDUCATION_AND_SKILLS="education-and-skills",e.FAMILY_AND_KIDS="family-and-kids"}(ae||(ae={})),function(e){e.BLOCKCHAIN_AND_CRYPTOCURRENCY="blockchain-and-cryptocurrency",e.METAVERSE_AND_VR="metaverse-and-vr",e.DEFI_AND_FINANCE="defi-and-finance",e.DAO_AND_GOVERNANCE="dao-and-governance",e.WEB3_STARTUPS="web3-startups"}(oe||(oe={})),function(e){e.LIVE_MUSIC="live-music",e.COMEDY_SHOWS="comedy-shows",e.THEATRE_AND_PERFORMANCE="theatre-and-performance",e.MOVIES="movies",e.NIGHTLIFE_AND_CLUBBING="nightlife-and-clubbing"}(se||(se={}));const ue={festival:Object.values(re),conference:Object.values(ne),networking:Object.values(ie),meetup:Object.values(ae),web3:Object.values(oe),entertainment:Object.values(se)};async function ce(){return te}async function le(e){return ue[e]}var de,fe;!function(e){e.EVENT_MANAGER="event-manager",e.CHECK_IN_MANAGER="check-in-manager",e.EVENT_READER="event-reader"}(de||(de={})),function(e){e.EVENT_READER_VIEW="event-reader-view",e.EVENT_MANAGER_EDIT_PAGE="event-manager-edit-page",e.EVENT_MANAGER_CREATE_TICKET="event-manager-create-ticket",e.EVENT_MANAGER_EDIT_TICKET="event-manager-edit-ticket",e.EVENT_MANAGER_DELETE_TICKET="event-manager-delete-ticket",e.EVENT_MANAGER_EDIT_GUEST="event-manager-edit-guest",e.EVENT_MANAGER_CREATE_STAGE="event-manager-create-stage",e.EVENT_MANAGER_EDIT_STAGE="event-manager-edit-stage"}(fe||(fe={}));const he=Object.values(de),pe=Object.values(fe)})(),module.exports=__webpack_exports__})();
|
|
1
|
+
(()=>{var e,t,n,i,a={1594:function(e,t,n){var i;!function(){"use strict";var a,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,o=Math.floor,u="[BigNumber Error] ",l=u+"Number primitive has more than 15 significant digits: ",d=1e14,m=14,p=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,f=1e9;function g(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,n,i=1,a=e.length,r=e[0]+"";i<a;){for(t=e[i++]+"",n=m-t.length;n--;t="0"+t);r+=t}for(a=r.length;48===r.charCodeAt(--a););return r.slice(0,a+1||1)}function h(e,t){var n,i,a=e.c,r=t.c,s=e.s,o=t.s,u=e.e,l=t.e;if(!s||!o)return null;if(n=a&&!a[0],i=r&&!r[0],n||i)return n?i?0:-o:s;if(s!=o)return s;if(n=s<0,i=u==l,!a||!r)return i?0:!a^n?1:-1;if(!i)return u>l^n?1:-1;for(o=(u=a.length)<(l=r.length)?u:l,s=0;s<o;s++)if(a[s]!=r[s])return a[s]>r[s]^n?1:-1;return u==l?0:u>l^n?1:-1}function _(e,t,n,i){if(e<t||e>n||e!==o(e))throw Error(u+(i||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return g(e.e/m)==t&&e.c[t]%2!=0}function T(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,n){var i,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(i=e.length)){for(a=n,t-=i;--t;a+=n);e+=a}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}a=function e(t){var n,i,a,E,A,O,v,S,x,I,C=j.prototype={constructor:j,toString:null,valueOf:null},D=new j(1),N=20,B=4,P=-7,L=21,q=-1e7,U=1e7,R=!1,M=1,F=0,V={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},G="0123456789abcdefghijklmnopqrstuvwxyz";function j(e,t){var n,s,u,d,c,y,f,g,b=this;if(!(b instanceof j))return new j(e,t);if(null==t){if(e&&!0===e._isBigNumber)return b.s=e.s,void(!e.c||e.e>U?b.c=b.e=null:e.e<q?b.c=[b.e=0]:(b.e=e.e,b.c=e.c.slice()));if((y="number"==typeof e)&&0*e==0){if(b.s=1/e<0?(e=-e,-1):1,e===~~e){for(d=0,c=e;c>=10;c/=10,d++);return void(d>U?b.c=b.e=null:(b.e=d,b.c=[e]))}g=String(e)}else{if(!r.test(g=String(e)))return a(b,g,y);b.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(d=g.indexOf("."))>-1&&(g=g.replace(".","")),(c=g.search(/e/i))>0?(d<0&&(d=c),d+=+g.slice(c+1),g=g.substring(0,c)):d<0&&(d=g.length)}else{if(_(t,2,G.length,"Base"),10==t)return $(b=new j(e),N+b.e+1,B);if(g=String(e),y="number"==typeof e){if(0*e!=0)return a(b,g,y,t);if(b.s=1/e<0?(g=g.slice(1),-1):1,j.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else b.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=G.slice(0,t),d=c=0,f=g.length;c<f;c++)if(n.indexOf(s=g.charAt(c))<0){if("."==s){if(c>d){d=f;continue}}else if(!u&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){u=!0,c=-1,d=0;continue}return a(b,String(e),y,t)}y=!1,(d=(g=i(g,t,10,b.s)).indexOf("."))>-1?g=g.replace(".",""):d=g.length}for(c=0;48===g.charCodeAt(c);c++);for(f=g.length;48===g.charCodeAt(--f););if(g=g.slice(c,++f)){if(f-=c,y&&j.DEBUG&&f>15&&(e>p||e!==o(e)))throw Error(l+b.s*e);if((d=d-c-1)>U)b.c=b.e=null;else if(d<q)b.c=[b.e=0];else{if(b.e=d,b.c=[],c=(d+1)%m,d<0&&(c+=m),c<f){for(c&&b.c.push(+g.slice(0,c)),f-=m;c<f;)b.c.push(+g.slice(c,c+=m));c=m-(g=g.slice(c)).length}else c-=f;for(;c--;g+="0");b.c.push(+g)}}else b.c=[b.e=0]}function W(e,t,n,i){var a,r,s,o,u;if(null==n?n=B:_(n,0,8),!e.c)return e.toString();if(a=e.c[0],s=e.e,null==t)u=b(e.c),u=1==i||2==i&&(s<=P||s>=L)?T(u,s):k(u,s,"0");else if(r=(e=$(new j(e),t,n)).e,o=(u=b(e.c)).length,1==i||2==i&&(t<=r||r<=P)){for(;o<t;u+="0",o++);u=T(u,r)}else if(t-=s,u=k(u,r,"0"),r+1>o){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=r-o)>0)for(r+1==o&&(u+=".");t--;u+="0");return e.s<0&&a?"-"+u:u}function H(e,t){for(var n,i=1,a=new j(e[0]);i<e.length;i++){if(!(n=new j(e[i])).s){a=n;break}t.call(a,n)&&(a=n)}return a}function z(e,t,n){for(var i=1,a=t.length;!t[--a];t.pop());for(a=t[0];a>=10;a/=10,i++);return(n=i+n*m-1)>U?e.c=e.e=null:n<q?e.c=[e.e=0]:(e.e=n,e.c=t),e}function $(e,t,n,i){var a,r,u,l,p,y,f,g=e.c,b=c;if(g){e:{for(a=1,l=g[0];l>=10;l/=10,a++);if((r=t-a)<0)r+=m,u=t,f=(p=g[y=0])/b[a-u-1]%10|0;else if((y=s((r+1)/m))>=g.length){if(!i)break e;for(;g.length<=y;g.push(0));p=f=0,a=1,u=(r%=m)-m+1}else{for(p=l=g[y],a=1;l>=10;l/=10,a++);f=(u=(r%=m)-m+a)<0?0:p/b[a-u-1]%10|0}if(i=i||t<0||null!=g[y+1]||(u<0?p:p%b[a-u-1]),i=n<4?(f||i)&&(0==n||n==(e.s<0?3:2)):f>5||5==f&&(4==n||i||6==n&&(r>0?u>0?p/b[a-u]:0:g[y-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,i?(t-=e.e+1,g[0]=b[(m-t%m)%m],e.e=-t||0):g[0]=e.e=0,e;if(0==r?(g.length=y,l=1,y--):(g.length=y+1,l=b[m-r],g[y]=u>0?o(p/b[a-u]%b[u])*l:0),i)for(;;){if(0==y){for(r=1,u=g[0];u>=10;u/=10,r++);for(u=g[0]+=l,l=1;u>=10;u/=10,l++);r!=l&&(e.e++,g[0]==d&&(g[0]=1));break}if(g[y]+=l,g[y]!=d)break;g[y--]=0,l=1}for(r=g.length;0===g[--r];g.pop());}e.e>U?e.c=e.e=null:e.e<q&&(e.c=[e.e=0])}return e}function K(e){var t,n=e.e;return null===n?e.toString():(t=b(e.c),t=n<=P||n>=L?T(t,n):k(t,n,"0"),e.s<0?"-"+t:t)}return j.clone=e,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(_(n=e[t],0,f,t),N=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(_(n=e[t],0,8,t),B=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(_(n[0],-f,0,t),_(n[1],0,f,t),P=n[0],L=n[1]):(_(n,-f,f,t),P=-(L=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)_(n[0],-f,-1,t),_(n[1],1,f,t),q=n[0],U=n[1];else{if(_(n,-f,f,t),!n)throw Error(u+t+" cannot be zero: "+n);q=-(U=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(u+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw R=!n,Error(u+"crypto unavailable");R=n}else R=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(_(n=e[t],0,9,t),M=n),e.hasOwnProperty(t="POW_PRECISION")&&(_(n=e[t],0,f,t),F=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(u+t+" not an object: "+n);V=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);G=n}}return{DECIMAL_PLACES:N,ROUNDING_MODE:B,EXPONENTIAL_AT:[P,L],RANGE:[q,U],CRYPTO:R,MODULO_MODE:M,POW_PRECISION:F,FORMAT:V,ALPHABET:G}},j.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!j.DEBUG)return!0;var t,n,i=e.c,a=e.e,r=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===r||-1===r)&&a>=-f&&a<=f&&a===o(a)){if(0===i[0]){if(0===a&&1===i.length)return!0;break e}if((t=(a+1)%m)<1&&(t+=m),String(i[0]).length==t){for(t=0;t<i.length;t++)if((n=i[t])<0||n>=d||n!==o(n))break e;if(0!==n)return!0}}}else if(null===i&&null===a&&(null===r||1===r||-1===r))return!0;throw Error(u+"Invalid BigNumber: "+e)},j.maximum=j.max=function(){return H(arguments,C.lt)},j.minimum=j.min=function(){return H(arguments,C.gt)},j.random=(E=9007199254740992,A=Math.random()*E&2097151?function(){return o(Math.random()*E)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,i,a,r,l=0,d=[],p=new j(D);if(null==e?e=N:_(e,0,f),a=s(e/m),R)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)(r=131072*t[l]+(t[l+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[l]=n[0],t[l+1]=n[1]):(d.push(r%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw R=!1,Error(u+"crypto unavailable");for(t=crypto.randomBytes(a*=7);l<a;)(r=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(d.push(r%1e14),l+=7);l=a/7}if(!R)for(;l<a;)(r=A())<9e15&&(d[l++]=r%1e14);for(a=d[--l],e%=m,a&&e&&(r=c[m-e],d[l]=o(a/r)*r);0===d[l];d.pop(),l--);if(l<0)d=[i=0];else{for(i=-1;0===d[0];d.splice(0,1),i-=m);for(l=1,r=d[0];r>=10;r/=10,l++);l<m&&(i-=m-l)}return p.e=i,p.c=d,p}),j.sum=function(){for(var e=1,t=arguments,n=new j(t[0]);e<t.length;)n=n.plus(t[e++]);return n},i=function(){var e="0123456789";function t(e,t,n,i){for(var a,r,s=[0],o=0,u=e.length;o<u;){for(r=s.length;r--;s[r]*=t);for(s[0]+=i.indexOf(e.charAt(o++)),a=0;a<s.length;a++)s[a]>n-1&&(null==s[a+1]&&(s[a+1]=0),s[a+1]+=s[a]/n|0,s[a]%=n)}return s.reverse()}return function(i,a,r,s,o){var u,l,d,m,p,c,y,f,g=i.indexOf("."),h=N,_=B;for(g>=0&&(m=F,F=0,i=i.replace(".",""),c=(f=new j(a)).pow(i.length-g),F=m,f.c=t(k(b(c.c),c.e,"0"),10,r,e),f.e=f.c.length),d=m=(y=t(i,a,r,o?(u=G,e):(u=e,G))).length;0==y[--m];y.pop());if(!y[0])return u.charAt(0);if(g<0?--d:(c.c=y,c.e=d,c.s=s,y=(c=n(c,f,h,_,r)).c,p=c.r,d=c.e),g=y[l=d+h+1],m=r/2,p=p||l<0||null!=y[l+1],p=_<4?(null!=g||p)&&(0==_||_==(c.s<0?3:2)):g>m||g==m&&(4==_||p||6==_&&1&y[l-1]||_==(c.s<0?8:7)),l<1||!y[0])i=p?k(u.charAt(1),-h,u.charAt(0)):u.charAt(0);else{if(y.length=l,p)for(--r;++y[--l]>r;)y[l]=0,l||(++d,y=[1].concat(y));for(m=y.length;!y[--m];);for(g=0,i="";g<=m;i+=u.charAt(y[g++]));i=k(i,d,u.charAt(0))}return i}}(),n=function(){function e(e,t,n){var i,a,r,s,o=0,u=e.length,l=t%y,d=t/y|0;for(e=e.slice();u--;)o=((a=l*(r=e[u]%y)+(i=d*r+(s=e[u]/y|0)*l)%y*y+o)/n|0)+(i/y|0)+d*s,e[u]=a%n;return o&&(e=[o].concat(e)),e}function t(e,t,n,i){var a,r;if(n!=i)r=n>i?1:-1;else for(a=r=0;a<n;a++)if(e[a]!=t[a]){r=e[a]>t[a]?1:-1;break}return r}function n(e,t,n,i){for(var a=0;n--;)e[n]-=a,a=e[n]<t[n]?1:0,e[n]=a*i+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,a,r,s,u){var l,p,c,y,f,b,h,_,w,T,k,E,A,O,v,S,x,I=i.s==a.s?1:-1,C=i.c,D=a.c;if(!(C&&C[0]&&D&&D[0]))return new j(i.s&&a.s&&(C?!D||C[0]!=D[0]:D)?C&&0==C[0]||!D?0*I:I/0:NaN);for(w=(_=new j(I)).c=[],I=r+(p=i.e-a.e)+1,u||(u=d,p=g(i.e/m)-g(a.e/m),I=I/m|0),c=0;D[c]==(C[c]||0);c++);if(D[c]>(C[c]||0)&&p--,I<0)w.push(1),y=!0;else{for(O=C.length,S=D.length,c=0,I+=2,(f=o(u/(D[0]+1)))>1&&(D=e(D,f,u),C=e(C,f,u),S=D.length,O=C.length),A=S,k=(T=C.slice(0,S)).length;k<S;T[k++]=0);x=D.slice(),x=[0].concat(x),v=D[0],D[1]>=u/2&&v++;do{if(f=0,(l=t(D,T,S,k))<0){if(E=T[0],S!=k&&(E=E*u+(T[1]||0)),(f=o(E/v))>1)for(f>=u&&(f=u-1),h=(b=e(D,f,u)).length,k=T.length;1==t(b,T,h,k);)f--,n(b,S<h?x:D,h,u),h=b.length,l=1;else 0==f&&(l=f=1),h=(b=D.slice()).length;if(h<k&&(b=[0].concat(b)),n(T,b,k,u),k=T.length,-1==l)for(;t(D,T,S,k)<1;)f++,n(T,S<k?x:D,k,u),k=T.length}else 0===l&&(f++,T=[0]);w[c++]=f,T[0]?T[k++]=C[A]||0:(T=[C[A]],k=1)}while((A++<O||null!=T[0])&&I--);y=null!=T[0],w[0]||w.splice(0,1)}if(u==d){for(c=1,I=w[0];I>=10;I/=10,c++);$(_,r+(_.e=c+p*m-1)+1,s,y)}else _.e=p,_.r=+y;return _}}(),O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,v=/^([^.]+)\.$/,S=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,a=function(e,t,n,i){var a,r=n?t:t.replace(I,"");if(x.test(r))e.s=isNaN(r)?null:r<0?-1:1;else{if(!n&&(r=r.replace(O,(function(e,t,n){return a="x"==(n=n.toLowerCase())?16:"b"==n?2:8,i&&i!=a?e:t})),i&&(a=i,r=r.replace(v,"$1").replace(S,"0.$1")),t!=r))return new j(r,a);if(j.DEBUG)throw Error(u+"Not a"+(i?" base "+i:"")+" number: "+t);e.s=null}e.c=e.e=null},C.absoluteValue=C.abs=function(){var e=new j(this);return e.s<0&&(e.s=1),e},C.comparedTo=function(e,t){return h(this,new j(e,t))},C.decimalPlaces=C.dp=function(e,t){var n,i,a,r=this;if(null!=e)return _(e,0,f),null==t?t=B:_(t,0,8),$(new j(r),e+r.e+1,t);if(!(n=r.c))return null;if(i=((a=n.length-1)-g(this.e/m))*m,a=n[a])for(;a%10==0;a/=10,i--);return i<0&&(i=0),i},C.dividedBy=C.div=function(e,t){return n(this,new j(e,t),N,B)},C.dividedToIntegerBy=C.idiv=function(e,t){return n(this,new j(e,t),0,1)},C.exponentiatedBy=C.pow=function(e,t){var n,i,a,r,l,d,p,c,y=this;if((e=new j(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+K(e));if(null!=t&&(t=new j(t)),l=e.e>14,!y.c||!y.c[0]||1==y.c[0]&&!y.e&&1==y.c.length||!e.c||!e.c[0])return c=new j(Math.pow(+K(y),l?2-w(e):+K(e))),t?c.mod(t):c;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new j(NaN);(i=!d&&y.isInteger()&&t.isInteger())&&(y=y.mod(t))}else{if(e.e>9&&(y.e>0||y.e<-1||(0==y.e?y.c[0]>1||l&&y.c[1]>=24e7:y.c[0]<8e13||l&&y.c[0]<=9999975e7)))return r=y.s<0&&w(e)?-0:0,y.e>-1&&(r=1/r),new j(d?1/r:r);F&&(r=s(F/m+2))}for(l?(n=new j(.5),d&&(e.s=1),p=w(e)):p=(a=Math.abs(+K(e)))%2,c=new j(D);;){if(p){if(!(c=c.times(y)).c)break;r?c.c.length>r&&(c.c.length=r):i&&(c=c.mod(t))}if(a){if(0===(a=o(a/2)))break;p=a%2}else if($(e=e.times(n),e.e+1,1),e.e>14)p=w(e);else{if(0==(a=+K(e)))break;p=a%2}y=y.times(y),r?y.c&&y.c.length>r&&(y.c.length=r):i&&(y=y.mod(t))}return i?c:(d&&(c=D.div(c)),t?c.mod(t):r?$(c,F,B,void 0):c)},C.integerValue=function(e){var t=new j(this);return null==e?e=B:_(e,0,8),$(t,t.e+1,e)},C.isEqualTo=C.eq=function(e,t){return 0===h(this,new j(e,t))},C.isFinite=function(){return!!this.c},C.isGreaterThan=C.gt=function(e,t){return h(this,new j(e,t))>0},C.isGreaterThanOrEqualTo=C.gte=function(e,t){return 1===(t=h(this,new j(e,t)))||0===t},C.isInteger=function(){return!!this.c&&g(this.e/m)>this.c.length-2},C.isLessThan=C.lt=function(e,t){return h(this,new j(e,t))<0},C.isLessThanOrEqualTo=C.lte=function(e,t){return-1===(t=h(this,new j(e,t)))||0===t},C.isNaN=function(){return!this.s},C.isNegative=function(){return this.s<0},C.isPositive=function(){return this.s>0},C.isZero=function(){return!!this.c&&0==this.c[0]},C.minus=function(e,t){var n,i,a,r,s=this,o=s.s;if(t=(e=new j(e,t)).s,!o||!t)return new j(NaN);if(o!=t)return e.s=-t,s.plus(e);var u=s.e/m,l=e.e/m,p=s.c,c=e.c;if(!u||!l){if(!p||!c)return p?(e.s=-t,e):new j(c?s:NaN);if(!p[0]||!c[0])return c[0]?(e.s=-t,e):new j(p[0]?s:3==B?-0:0)}if(u=g(u),l=g(l),p=p.slice(),o=u-l){for((r=o<0)?(o=-o,a=p):(l=u,a=c),a.reverse(),t=o;t--;a.push(0));a.reverse()}else for(i=(r=(o=p.length)<(t=c.length))?o:t,o=t=0;t<i;t++)if(p[t]!=c[t]){r=p[t]<c[t];break}if(r&&(a=p,p=c,c=a,e.s=-e.s),(t=(i=c.length)-(n=p.length))>0)for(;t--;p[n++]=0);for(t=d-1;i>o;){if(p[--i]<c[i]){for(n=i;n&&!p[--n];p[n]=t);--p[n],p[i]+=d}p[i]-=c[i]}for(;0==p[0];p.splice(0,1),--l);return p[0]?z(e,p,l):(e.s=3==B?-1:1,e.c=[e.e=0],e)},C.modulo=C.mod=function(e,t){var i,a,r=this;return e=new j(e,t),!r.c||!e.s||e.c&&!e.c[0]?new j(NaN):!e.c||r.c&&!r.c[0]?new j(r):(9==M?(a=e.s,e.s=1,i=n(r,e,0,3),e.s=a,i.s*=a):i=n(r,e,0,M),(e=r.minus(i.times(e))).c[0]||1!=M||(e.s=r.s),e)},C.multipliedBy=C.times=function(e,t){var n,i,a,r,s,o,u,l,p,c,f,b,h,_,w,T=this,k=T.c,E=(e=new j(e,t)).c;if(!(k&&E&&k[0]&&E[0]))return!T.s||!e.s||k&&!k[0]&&!E||E&&!E[0]&&!k?e.c=e.e=e.s=null:(e.s*=T.s,k&&E?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=g(T.e/m)+g(e.e/m),e.s*=T.s,(u=k.length)<(c=E.length)&&(h=k,k=E,E=h,a=u,u=c,c=a),a=u+c,h=[];a--;h.push(0));for(_=d,w=y,a=c;--a>=0;){for(n=0,f=E[a]%w,b=E[a]/w|0,r=a+(s=u);r>a;)n=((l=f*(l=k[--s]%w)+(o=b*l+(p=k[s]/w|0)*f)%w*w+h[r]+n)/_|0)+(o/w|0)+b*p,h[r--]=l%_;h[r]=n}return n?++i:h.splice(0,1),z(e,h,i)},C.negated=function(){var e=new j(this);return e.s=-e.s||null,e},C.plus=function(e,t){var n,i=this,a=i.s;if(t=(e=new j(e,t)).s,!a||!t)return new j(NaN);if(a!=t)return e.s=-t,i.minus(e);var r=i.e/m,s=e.e/m,o=i.c,u=e.c;if(!r||!s){if(!o||!u)return new j(a/0);if(!o[0]||!u[0])return u[0]?e:new j(o[0]?i:0*a)}if(r=g(r),s=g(s),o=o.slice(),a=r-s){for(a>0?(s=r,n=u):(a=-a,n=o),n.reverse();a--;n.push(0));n.reverse()}for((a=o.length)-(t=u.length)<0&&(n=u,u=o,o=n,t=a),a=0;t;)a=(o[--t]=o[t]+u[t]+a)/d|0,o[t]=d===o[t]?0:o[t]%d;return a&&(o=[a].concat(o),++s),z(e,o,s)},C.precision=C.sd=function(e,t){var n,i,a,r=this;if(null!=e&&e!==!!e)return _(e,1,f),null==t?t=B:_(t,0,8),$(new j(r),e,t);if(!(n=r.c))return null;if(i=(a=n.length-1)*m+1,a=n[a]){for(;a%10==0;a/=10,i--);for(a=n[0];a>=10;a/=10,i++);}return e&&r.e+1>i&&(i=r.e+1),i},C.shiftedBy=function(e){return _(e,-9007199254740991,p),this.times("1e"+e)},C.squareRoot=C.sqrt=function(){var e,t,i,a,r,s=this,o=s.c,u=s.s,l=s.e,d=N+4,m=new j("0.5");if(1!==u||!o||!o[0])return new j(!u||u<0&&(!o||o[0])?NaN:o?s:1/0);if(0==(u=Math.sqrt(+K(s)))||u==1/0?(((t=b(o)).length+l)%2==0&&(t+="0"),u=Math.sqrt(+t),l=g((l+1)/2)-(l<0||l%2),i=new j(t=u==1/0?"5e"+l:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+l)):i=new j(u+""),i.c[0])for((u=(l=i.e)+d)<3&&(u=0);;)if(r=i,i=m.times(r.plus(n(s,r,d,1))),b(r.c).slice(0,u)===(t=b(i.c)).slice(0,u)){if(i.e<l&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||($(i,i.e+N+2,1),e=!i.times(i).eq(s));break}if(!a&&($(r,r.e+N+2,0),r.times(r).eq(s))){i=r;break}d+=4,u+=4,a=1}return $(i,i.e+N+1,B,e)},C.toExponential=function(e,t){return null!=e&&(_(e,0,f),e++),W(this,e,t,1)},C.toFixed=function(e,t){return null!=e&&(_(e,0,f),e=e+this.e+1),W(this,e,t)},C.toFormat=function(e,t,n){var i,a=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=V;else if("object"!=typeof n)throw Error(u+"Argument not an object: "+n);if(i=a.toFixed(e,t),a.c){var r,s=i.split("."),o=+n.groupSize,l=+n.secondaryGroupSize,d=n.groupSeparator||"",m=s[0],p=s[1],c=a.s<0,y=c?m.slice(1):m,f=y.length;if(l&&(r=o,o=l,l=r,f-=r),o>0&&f>0){for(r=f%o||o,m=y.substr(0,r);r<f;r+=o)m+=d+y.substr(r,o);l>0&&(m+=d+y.slice(r)),c&&(m="-"+m)}i=p?m+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?p.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):p):m}return(n.prefix||"")+i+(n.suffix||"")},C.toFraction=function(e){var t,i,a,r,s,o,l,d,p,y,f,g,h=this,_=h.c;if(null!=e&&(!(l=new j(e)).isInteger()&&(l.c||1!==l.s)||l.lt(D)))throw Error(u+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+K(l));if(!_)return new j(h);for(t=new j(D),p=i=new j(D),a=d=new j(D),g=b(_),s=t.e=g.length-h.e-1,t.c[0]=c[(o=s%m)<0?m+o:o],e=!e||l.comparedTo(t)>0?s>0?t:p:l,o=U,U=1/0,l=new j(g),d.c[0]=0;y=n(l,t,0,1),1!=(r=i.plus(y.times(a))).comparedTo(e);)i=a,a=r,p=d.plus(y.times(r=p)),d=r,t=l.minus(y.times(r=t)),l=r;return r=n(e.minus(i),a,0,1),d=d.plus(r.times(p)),i=i.plus(r.times(a)),d.s=p.s=h.s,f=n(p,a,s*=2,B).minus(h).abs().comparedTo(n(d,i,s,B).minus(h).abs())<1?[p,a]:[d,i],U=o,f},C.toNumber=function(){return+K(this)},C.toPrecision=function(e,t){return null!=e&&_(e,1,f),W(this,e,t,2)},C.toString=function(e){var t,n=this,a=n.s,r=n.e;return null===r?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=r<=P||r>=L?T(b(n.c),r):k(b(n.c),r,"0"):10===e?t=k(b((n=$(new j(n),N+r+1,B)).c),n.e,"0"):(_(e,2,G.length,"Base"),t=i(k(b(n.c),r,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},C.valueOf=C.toJSON=function(){return K(this)},C._isBigNumber=!0,null!=t&&j.set(t),j}(),a.default=a.BigNumber=a,void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}()}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return a[e].call(n.exports,n,n.exports,s),n.exports}s.m=a,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var a=Object.create(null);s.r(a);var r={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,s.d(a,r),a},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>e+".cjs.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i="@xoxno/sdk-js:",s.l=(e,t,a,r)=>{if(n[e])n[e].push(t);else{var o,u;if(void 0!==a)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var m=l[d];if(m.getAttribute("src")==e||m.getAttribute("data-webpack")==i+a){o=m;break}}o||(u=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",i+a),o.src=e),n[e]=[t];var p=(t,i)=>{o.onerror=o.onload=null,clearTimeout(c);var a=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(i))),t)return t(i)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),u&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=n[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={954:0};s.f.j=(t,n)=>{var i=s.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var a=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=a);var r=s.p+s.u(t),o=new Error;s.l(r,(n=>{if(s.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",o.name="ChunkLoadError",o.type=a,o.request=r,i[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,a,[r,o,u]=n,l=0;if(r.some((t=>0!==e[t]))){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);u&&u(s)}for(t&&t(n);l<r.length;l++)a=r[l],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};(()=>{"use strict";s.r(o),s.d(o,{AssetCategory:()=>C,AuctionType:()=>l,AuctionTypes:()=>I,Chain:()=>u,CollectionStatsOrderBy:()=>B,CollectionStatsSelectFields:()=>N,CollectionsFieldsToSelect:()=>S,CollectionsOrderBy:()=>O,CollectionsSummaryFilter:()=>D,DropsOderBy:()=>E,EventUserRolePermission:()=>ee,EventUserRoles:()=>Z,FieldsToSelect:()=>T,GlobalOfferFieldsToSelect:()=>x,GlobalOfferOrderBy:()=>v,IEventCategory:()=>G,IssuingType:()=>U,LaunchpadModule:()=>_,Marketplace:()=>w,NftActivityType:()=>P,OfferType:()=>F,OrderByTradingActivity:()=>L,PoolType:()=>R,SCInteraction:()=>h,SearchOrderBy:()=>k,SelectFieldsTradingActivity:()=>q,StakingStatus:()=>M,SuggestOrderBy:()=>A,Type:()=>V,XOXNOClient:()=>d,eventCategories:()=>j,eventPermissions:()=>ne,eventRoles:()=>te,eventSubCategories:()=>X,getEventCategories:()=>Q,getEventSubCategories:()=>J});var e=s(1594),t=s.n(e);const n="https://api.xoxno.com",i="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",a="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",r="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var u,l;!function(e){e.MAINNET="1",e.DEVNET="D"}(u||(u={}));class d{static instance;apiUrl;apiKey;chain;config;constructor(e=n,t="",s){this.apiUrl=e,this.apiKey=t,this.chain=s,this.config=s==u.MAINNET?{mediaUrl:"https://media.xoxno.com",gatewayUrl:"https://gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:i,DR_SC:a,KG_SC:r,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{mediaUrl:"https://devnet-media.xoxno.com",gatewayUrl:"https://devnet-gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:i,DR_SC:a,KG_SC:r,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:e=n,apiKey:t="",chain:i=u.MAINNET}={}){if(null==d.instance||null==d.instance){if(i==u.DEVNET)return d.instance=new d(e??"https://devnet-api.xoxno.com",t,i),d.instance;d.instance=new d(e,t,i)}return d.instance}static getInstance(){if(null==d.instance||null==d.instance)throw new Error("XOXNOClient is not initialized");return d.instance}fetchWithTimeout=async(e,t={})=>{const n=t?.headers?.Authorization,i="Bearer undefined"===n?void 0:n,a={"Accept-Encoding":"gzip,deflate,br",Referer:"https://xoxno.sdk","User-Agent":"XOXNO/1.0/SDK",..."POST"===t.method?{"Content-Type":"application/json"}:{},...i?{Authorization:i}:{}},r=`${"string"==typeof e&&e.startsWith("/")?`${this.apiUrl}${e}`:e}${t.params?"?"+Object.keys(t.params).map((e=>`${e}=${encodeURIComponent(t.params[e])}`)).join("&"):""}`,s=await fetch(r,{...t,cache:"no-store",...Object.keys(a).length?{headers:a}:{},method:t.method??"GET"});if(!s.ok){const t=await s.text();let n;try{n=JSON.parse(t)}catch(e){n={message:t}}throw new Error(`${e}: ${s.status};${s.statusText};${n.message}`)}return s.json()}}!function(e){e[e.NftBid=0]="NftBid",e[e.Nft=1]="Nft",e[e.SftAll=2]="SftAll",e[e.SftOnePerPayment=3]="SftOnePerPayment"}(l||(l={}));class m{proxy;parser;constructor(e,t){this.proxy=e,this.parser=t}static async init(){const{ProxyNetworkProvider:e}=await Promise.all([s.e(425),s.e(13),s.e(403)]).then(s.t.bind(s,8403,23)),{ResultsParser:t}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(385)]).then(s.bind(s,2528)),n=new e(d.getInstance().config.gatewayUrl,{timeout:1e4});return new m(n,new t)}async runQuery(e,t){try{const e=await this.proxy.queryContract(t.buildQuery());return this.parser.parseQueryResponse(e,t.getEndpoint())}catch(n){throw console.log(`Unexpected error when running query '${t.buildQuery().func}' to sc '${e.getAddress().bech32()}' `),console.error(n),n}}}const p=JSON.parse('{"buildInfo":{"rustc":{"version":"1.80.0-nightly","commitHash":"8679004993f08807289911d9f400f4ac4391d2bc","commitDate":"2024-05-23","channel":"Nightly","short":"rustc 1.80.0-nightly (867900499 2024-05-23)"},"contractCrate":{"name":"xoxno-protocol","version":"1.0.0"},"framework":{"name":"multiversx-sc","version":"0.50.5"}},"name":"XOXNOProtocol","constructor":{"inputs":[{"name":"bid_cut_percentage","type":"u64"},{"name":"signer","type":"Address"},{"name":"wrapping_sc","type":"Address"},{"name":"wrapping_token","type":"TokenIdentifier"},{"name":"aggregator","type":"Address"}],"outputs":[]},"upgradeConstructor":{"inputs":[{"name":"sc_accumulator","type":"Address"},{"name":"aggregator","type":"Address"}],"outputs":[]},"endpoints":[{"name":"listing","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"listings","type":"variadic<BulkListing>","multi_arg":true}],"outputs":[]},{"name":"bid","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"}],"outputs":[]},{"name":"endAuction","mutability":"mutable","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[]},{"name":"buy","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"opt_sft_buy_amount","type":"optional<BigUint>","multi_arg":true}],"outputs":[]},{"name":"buySwap","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"steps","type":"List<AggregatorStep>"},{"name":"limits","type":"List<TokenAmount>"},{"name":"opt_sft_buy_amount","type":"optional<BigUint>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"buyFor","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_id","type":"u64"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"opt_sft_buy_amount","type":"optional<BigUint>","multi_arg":true},{"name":"buy_for","type":"optional<Address>","multi_arg":true},{"name":"message","type":"optional<bytes>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"bulkBuy","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"auction_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<EsdtTokenPayment>"}]},{"name":"withdraw","mutability":"mutable","inputs":[{"name":"signature","type":"bytes"},{"name":"withdraws","type":"variadic<u64>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"changeListing","mutability":"mutable","inputs":[{"name":"updates","type":"variadic<BulkUpdateListing>","multi_arg":true}],"outputs":[]},{"name":"getMarketplaceCutPercentage","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"getOffersByWallet","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"checkOfferSent","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"nft","type":"TokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"bool"}]},{"name":"getListingsByWallet","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getActiveListingsBids","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenItemsForSale","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenAuctionIds","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenOffersIds","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getTokenItemsQuantityForSale","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"BigUint"}]},{"name":"getAcceptedTokens","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<EgldOrEsdtTokenIdentifier>","multi_result":true}]},{"name":"blackListWallets","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<Address>","multi_result":true}]},{"name":"whitelistedContracts","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<Address>","multi_result":true}]},{"name":"getClaimableAmount","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"token_id","type":"EgldOrEsdtTokenIdentifier"},{"name":"token_nonce","type":"u64"}],"outputs":[{"type":"BigUint"}]},{"name":"getClaimableTokens","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<EgldOrEsdtTokenIdentifier>","multi_result":true}]},{"name":"getClaimableTokenNonces","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getCollectionsListed","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<TokenIdentifier>","multi_result":true}]},{"name":"getAllListings","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getOffers","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getStatus","mutability":"readonly","inputs":[],"outputs":[{"type":"bool"}]},{"name":"getFullAuctionData","mutability":"readonly","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[{"type":"Auction"}]},{"name":"offerById","mutability":"readonly","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[{"type":"Offer"}]},{"name":"getRewardBalance","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"getRewardTicker","mutability":"readonly","inputs":[],"outputs":[{"type":"EgldOrEsdtTokenIdentifier"}]},{"name":"specialRewardAmount","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"BigUint"}]},{"name":"defaultRewardAmount","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"getGlobalOffers","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getGlobalOffer","mutability":"readonly","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[{"type":"GlobalOffer"}]},{"name":"getCollectionGlobalOffers","mutability":"readonly","inputs":[{"name":"collection","type":"TokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"userGlobalOffers","mutability":"readonly","inputs":[{"name":"address","type":"Address"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"userCollectionGlobalOffers","mutability":"readonly","inputs":[{"name":"address","type":"Address"},{"name":"collection","type":"TokenIdentifier"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getCollectionConfig","mutability":"readonly","inputs":[{"name":"ticker","type":"TokenIdentifier"}],"outputs":[{"type":"CollectionFeeConfig"}]},{"name":"freezedAuctions","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getAccumulator","mutability":"readonly","inputs":[],"outputs":[{"type":"Address"}]},{"name":"getListingsCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getOffersCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getGlobalOffersCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getListings","mutability":"readonly","inputs":[{"name":"from","type":"u32"},{"name":"to","type":"u32"}],"outputs":[{"type":"variadic<u64>","multi_result":true}]},{"name":"getCollectionsCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"isCollectionListed","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"bool"}]},{"name":"expiredOffersCount","mutability":"readonly","inputs":[],"outputs":[{"type":"List<u64>"}]},{"name":"getAcceptedTokensCount","mutability":"readonly","inputs":[],"outputs":[{"type":"u32"}]},{"name":"getTokenItemsForSaleCount","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"u32"}]},{"name":"getOnSaleTokensForTicker","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonces","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<TokensOnSale>"}]},{"name":"getAuctionsForTicker","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"List<u64>"}]},{"name":"getFullAuctionsForTicker","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"}],"outputs":[{"type":"List<Auction>"}]},{"name":"getTokenOffers","mutability":"readonly","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"nonces","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<BulkOffers>"}]},{"name":"getBulkOffers","mutability":"readonly","inputs":[{"name":"offers","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<BulkOffers>"}]},{"name":"getBulkGlobalOffers","mutability":"readonly","inputs":[{"name":"offers","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<GlobalOffer>"}]},{"name":"getBulkGlobalOffersByCollection","mutability":"readonly","inputs":[{"name":"ticker","type":"TokenIdentifier"}],"outputs":[{"type":"List<GlobalOffer>"}]},{"name":"getBulkListings","mutability":"readonly","inputs":[{"name":"auction_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[{"type":"List<TokensOnSale>"}]},{"name":"doesAuctionExist","mutability":"readonly","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[{"type":"bool"}]},{"name":"doesGlobalOfferExist","mutability":"readonly","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[{"type":"bool"}]},{"name":"doesOfferExist","mutability":"readonly","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[{"type":"bool"}]},{"name":"isSCWl","mutability":"readonly","inputs":[{"name":"sc","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"acceptOffer","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"offer_id","type":"u64"},{"name":"auction_id","type":"optional<u64>","multi_arg":true}],"outputs":[]},{"name":"declineOffer","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"offer_id","type":"u64"},{"name":"auction_id","type":"optional<u64>","multi_arg":true}],"outputs":[]},{"name":"withdrawOffer","mutability":"mutable","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[]},{"name":"sendOffer","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_token_nonce","type":"u64"},{"name":"payment_amount","type":"BigUint"},{"name":"nft_type","type":"TokenIdentifier"},{"name":"nft_nonce","type":"u64"},{"name":"nft_amount","type":"BigUint"},{"name":"deadline","type":"u64"}],"outputs":[{"type":"u64"}]},{"name":"sendGlobalOffer","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_nonce","type":"u64"},{"name":"price","type":"BigUint"},{"name":"collection","type":"TokenIdentifier"},{"name":"quantity","type":"BigUint"},{"name":"attributes","type":"optional<bytes>","multi_arg":true}],"outputs":[{"type":"u64"}]},{"name":"withdrawGlobalOffer","mutability":"mutable","inputs":[{"name":"offer_id","type":"u64"}],"outputs":[]},{"name":"acceptGlobalOffer","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"offer_id","type":"u64"},{"name":"auction_id_opt","type":"optional<List<u64>>","multi_arg":true},{"name":"signature","type":"optional<bytes>","multi_arg":true}],"outputs":[],"allow_multiple_var_args":true},{"name":"returnListing","mutability":"mutable","inputs":[{"name":"auction_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"withdrawGlobalOffers","mutability":"mutable","inputs":[{"name":"offer_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"deleteOffersByWallet","mutability":"mutable","inputs":[{"name":"user","type":"Address"}],"outputs":[]},{"name":"cleanExpiredOffers","mutability":"mutable","inputs":[{"name":"offer_ids","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"addRewardBalance","onlyOwner":true,"mutability":"mutable","payableInTokens":["*"],"inputs":[],"outputs":[]},{"name":"setRewardTicker","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[]},{"name":"setSpecialRewardAmount","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"token","type":"TokenIdentifier"},{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"setDefaultRewardAmount","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"setAcceptedTokens","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[]},{"name":"removeAcceptedTokens","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"bool"}]},{"name":"addWhitelist","mutability":"mutable","inputs":[{"name":"sc","type":"Address"}],"outputs":[]},{"name":"removeWhitelist","mutability":"mutable","inputs":[{"name":"sc","type":"Address"}],"outputs":[]},{"name":"setStatus","mutability":"mutable","inputs":[{"name":"status","type":"bool"}],"outputs":[]},{"name":"setCutPercentage","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"new_cut_percentage","type":"u64"}],"outputs":[]},{"name":"unFreezeAuctionId","mutability":"mutable","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[]},{"name":"unFreezeAllAuctionIds","mutability":"mutable","inputs":[],"outputs":[]},{"name":"freezeAuctionId","mutability":"mutable","inputs":[{"name":"auction_id","type":"u64"}],"outputs":[]},{"name":"claimLeftOverDust","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"claimSavedFundsForUser","mutability":"mutable","inputs":[{"name":"wallet","type":"Address"}],"outputs":[]},{"name":"addBlackListWallet","mutability":"mutable","inputs":[{"name":"wallet","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"removeBlackListWallet","mutability":"mutable","inputs":[{"name":"wallet","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"setCutFeesReverted","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"value","type":"bool"}],"outputs":[]},{"name":"setRoyaltiesReverted","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"value","type":"bool"}],"outputs":[]},{"name":"setExtraFees","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"amount","type":"BigUint"},{"name":"address","type":"Address"}],"outputs":[]},{"name":"setCustomRoyalties","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"min","type":"BigUint"},{"name":"max","type":"BigUint"},{"name":"enabled","type":"bool"}],"outputs":[]},{"name":"setConfigAdmin","mutability":"mutable","inputs":[{"name":"token_id","type":"TokenIdentifier"},{"name":"admin","type":"Address"}],"outputs":[]},{"name":"deposit","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[],"outputs":[]},{"name":"withdrawDeposit","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"amount","type":"BigUint"}],"outputs":[]},{"name":"userDeposit","mutability":"readonly","inputs":[{"name":"user","type":"Address"},{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"EgldOrEsdtTokenPayment"}]}],"promisesCallbackNames":["callback_ash"],"events":[{"identifier":"auction_token_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"auctioned_token_amount","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"min_bid","type":"BigUint","indexed":true},{"name":"max_bid","type":"BigUint","indexed":true},{"name":"start_time","type":"u64","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"accepted_payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"accepted_payment_token_nonce","type":"u64","indexed":true},{"name":"auction_type","type":"AuctionType","indexed":true},{"name":"creator_royalties_percentage","type":"BigUint","indexed":true}]},{"identifier":"send_global_offer","inputs":[{"name":"offer","type":"GlobalOffer","indexed":true}]},{"identifier":"remove_global_offer","inputs":[{"name":"offer_id","type":"u64","indexed":true},{"name":"collection","type":"TokenIdentifier","indexed":true}]},{"identifier":"accept_global_offer","inputs":[{"name":"offer","type":"GlobalOffer","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"nonces","type":"List<EsdtTokenPayment>","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"auction_ids","type":"List<u64>","indexed":true}]},{"identifier":"offer_token_event","inputs":[{"name":"token_type","type":"TokenIdentifier","indexed":true},{"name":"token_nonce","type":"u64","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"status","type":"OfferStatus","indexed":true},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_token_nonce","type":"u64","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"offer_owner","type":"Address","indexed":true},{"name":"marketplace_cut_percentage","type":"BigUint","indexed":true},{"name":"offer_id","type":"u64","indexed":true}]},{"identifier":"withdraw_offer_token_event","inputs":[{"name":"token_type","type":"TokenIdentifier","indexed":true},{"name":"token_nonce","type":"u64","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"status","type":"OfferStatus","indexed":true},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_token_nonce","type":"u64","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"offer_owner","type":"Address","indexed":true},{"name":"marketplace_cut_percentage","type":"BigUint","indexed":true},{"name":"offer_id","type":"u64","indexed":true}]},{"identifier":"accept_offer_token_event","inputs":[{"name":"token_type","type":"TokenIdentifier","indexed":true},{"name":"token_nonce","type":"u64","indexed":true},{"name":"quantity","type":"BigUint","indexed":true},{"name":"status","type":"OfferStatus","indexed":true},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_token_nonce","type":"u64","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"deadline","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"offer_owner","type":"Address","indexed":true},{"name":"marketplace_cut_percentage","type":"BigUint","indexed":true},{"name":"offer_id","type":"u64","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"auction_removed","type":"u64","indexed":true}]},{"identifier":"bid_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"bidder","type":"Address","indexed":true},{"name":"bid_amount","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"token_payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"token_payment_nonce","type":"u64","indexed":true}]},{"identifier":"end_auction_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"auction_winner","type":"Address","indexed":true},{"name":"winning_bid_amount","type":"BigUint","indexed":true},{"name":"auction_seller","type":"Address","indexed":true},{"name":"token_payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"token_payment_nonce","type":"u64","indexed":true}]},{"identifier":"change_listing_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"owner","type":"Address","indexed":true},{"name":"old_price","type":"BigUint","indexed":true},{"name":"new_price","type":"BigUint","indexed":true},{"name":"payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"payment_nonce","type":"u64","indexed":true},{"name":"deadline","type":"u64","indexed":true}]},{"identifier":"out_bid_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"old_bidder","type":"Address","indexed":true},{"name":"new_bidder","type":"Address","indexed":true},{"name":"refund_amount","type":"BigUint","indexed":true},{"name":"new_amount","type":"BigUint","indexed":true},{"name":"refund_payment_type","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"refund_payment_nonce","type":"u64","indexed":true}]},{"identifier":"buy_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_bought_tokens","type":"BigUint","indexed":true},{"name":"buyer","type":"Address","indexed":true},{"name":"bid_sft_amount","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true},{"name":"accepted_payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"accepted_payment_token_nonce","type":"u64","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"message","type":"bytes","indexed":true},{"name":"buy_by","type":"Address","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"original_payment","type":"EgldOrEsdtTokenPayment","indexed":true}]},{"identifier":"withdraw_event","inputs":[{"name":"auction_token_id","type":"TokenIdentifier","indexed":true},{"name":"auctioned_token_nonce","type":"u64","indexed":true},{"name":"auction_id","type":"u64","indexed":true},{"name":"nr_auctioned_tokens","type":"BigUint","indexed":true},{"name":"seller","type":"Address","indexed":true}]},{"identifier":"user_deposit","inputs":[{"name":"owner","type":"Address","indexed":true},{"name":"payment","type":"EgldOrEsdtTokenPayment","indexed":true}]},{"identifier":"collection_config_event","inputs":[{"name":"collection","type":"TokenIdentifier","indexed":true},{"name":"config","type":"CollectionFeeConfig","indexed":true}]}],"esdtAttributes":[],"hasCallback":false,"types":{"AggregatorStep":{"type":"struct","fields":[{"name":"token_in","type":"TokenIdentifier"},{"name":"token_out","type":"TokenIdentifier"},{"name":"amount_in","type":"BigUint"},{"name":"pool_address","type":"Address"},{"name":"function_name","type":"bytes"},{"name":"arguments","type":"List<bytes>"}]},"Auction":{"type":"struct","fields":[{"name":"auctioned_token_type","type":"TokenIdentifier"},{"name":"auctioned_token_nonce","type":"u64"},{"name":"nr_auctioned_tokens","type":"BigUint"},{"name":"auction_type","type":"AuctionType"},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_token_nonce","type":"u64"},{"name":"min_bid","type":"BigUint"},{"name":"max_bid","type":"Option<BigUint>"},{"name":"start_time","type":"u64"},{"name":"deadline","type":"u64"},{"name":"original_owner","type":"Address"},{"name":"current_bid","type":"BigUint"},{"name":"current_winner","type":"Address"},{"name":"marketplace_cut_percentage","type":"BigUint"},{"name":"creator_royalties_percentage","type":"BigUint"}]},"AuctionType":{"type":"enum","variants":[{"name":"None","discriminant":0},{"name":"NftBid","discriminant":1},{"name":"Nft","discriminant":2},{"name":"SftAll","discriminant":3},{"name":"SftOnePerPayment","discriminant":4}]},"BulkListing":{"type":"struct","fields":[{"name":"min_bid","type":"BigUint"},{"name":"max_bid","type":"BigUint"},{"name":"deadline","type":"u64"},{"name":"accepted_payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"bid","type":"bool"},{"name":"opt_sft_max_one_per_payment","type":"bool"},{"name":"opt_start_time","type":"u64"},{"name":"collection","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"nft_amount","type":"BigUint"},{"name":"royalties","type":"BigUint"}]},"BulkOffers":{"type":"struct","fields":[{"name":"offer_id","type":"u64"},{"name":"nonce","type":"u64"},{"name":"offer","type":"Offer"}]},"BulkUpdateListing":{"type":"struct","fields":[{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier"},{"name":"new_price","type":"BigUint"},{"name":"auction_id","type":"u64"},{"name":"deadline","type":"u64"}]},"CollectionExtraFeesConfig":{"type":"struct","fields":[{"name":"amount","type":"BigUint"},{"name":"address","type":"Address"}]},"CollectionFeeConfig":{"type":"struct","fields":[{"name":"reverse_cut_fees","type":"bool"},{"name":"reverse_royalties","type":"bool"},{"name":"custom_royalties","type":"bool"},{"name":"min_royalties","type":"BigUint"},{"name":"max_royalties","type":"BigUint"},{"name":"extra_fees","type":"CollectionExtraFeesConfig"},{"name":"admin","type":"Address"}]},"EgldOrEsdtTokenPayment":{"type":"struct","fields":[{"name":"token_identifier","type":"EgldOrEsdtTokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"amount","type":"BigUint"}]},"EsdtTokenPayment":{"type":"struct","fields":[{"name":"token_identifier","type":"TokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"amount","type":"BigUint"}]},"GlobalOffer":{"type":"struct","fields":[{"name":"offer_id","type":"u64"},{"name":"collection","type":"TokenIdentifier"},{"name":"quantity","type":"BigUint"},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_nonce","type":"u64"},{"name":"price","type":"BigUint"},{"name":"timestamp","type":"u64"},{"name":"owner","type":"Address"},{"name":"attributes","type":"Option<bytes>"},{"name":"new_version","type":"bool"}]},"Offer":{"type":"struct","fields":[{"name":"token_type","type":"TokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"quantity","type":"BigUint"},{"name":"status","type":"OfferStatus"},{"name":"payment_token_type","type":"EgldOrEsdtTokenIdentifier"},{"name":"payment_token_nonce","type":"u64"},{"name":"price","type":"BigUint"},{"name":"deadline","type":"u64"},{"name":"timestamp","type":"u64"},{"name":"offer_owner","type":"Address"},{"name":"marketplace_cut_percentage","type":"BigUint"},{"name":"new_version","type":"bool"}]},"OfferStatus":{"type":"enum","variants":[{"name":"Pending","discriminant":0},{"name":"Accepted","discriminant":1},{"name":"Declined","discriminant":2},{"name":"Withdraw","discriminant":3}]},"TokenAmount":{"type":"struct","fields":[{"name":"token","type":"TokenIdentifier"},{"name":"amount","type":"BigUint"}]},"TokensOnSale":{"type":"struct","fields":[{"name":"auction_id","type":"u64"},{"name":"token_type","type":"u8"},{"name":"auction","type":"Auction"}]}}}');var c=s.t(p,2);const y=JSON.parse('{"buildInfo":{"rustc":{"version":"1.69.0-nightly","commitHash":"c8e6a9e8b6251bbc8276cb78cabe1998deecbed7","commitDate":"2023-01-23","channel":"Nightly","short":"rustc 1.69.0-nightly (c8e6a9e8b 2023-01-23)"},"contractCrate":{"name":"minter","version":"0.0.0"},"framework":{"name":"multiversx-sc","version":"0.39.6"}},"name":"Minter","constructor":{"inputs":[{"name":"local_owner","type":"Address"},{"name":"cut_percentage","type":"BigUint"},{"name":"signer_wallet","type":"Address"}],"outputs":[]},"endpoints":[{"name":"buy","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"quantity","type":"u32"},{"name":"signature","type":"optional<bytes>","multi_arg":true},{"name":"data","type":"optional<bytes>","multi_arg":true}],"outputs":[]},{"name":"buyFor","onlyOwner":true,"mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"quantity","type":"u32"},{"name":"user","type":"Address"},{"name":"twispay","type":"bytes"},{"name":"signature","type":"optional<bytes>","multi_arg":true},{"name":"data","type":"optional<bytes>","multi_arg":true}],"outputs":[]},{"name":"giveaway","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"to","type":"Address"},{"name":"quantity","type":"u32"}],"outputs":[]},{"name":"giveawayAdmin","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"to","type":"Address"},{"name":"quantity","type":"u32"},{"name":"twispay","type":"bytes"},{"name":"signature","type":"optional<bytes>","multi_arg":true},{"name":"data","type":"optional<bytes>","multi_arg":true}],"outputs":[]},{"name":"reveal","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"tag","type":"bytes"}],"outputs":[]},{"name":"changeLocalOwner","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"owner","type":"Address"}],"outputs":[]},{"name":"tradingControl","mutability":"mutable","inputs":[{"name":"collection","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"burn","mutability":"mutable","inputs":[{"name":"collection","type":"bytes"}],"outputs":[]},{"name":"transferOwner","mutability":"mutable","inputs":[{"name":"collection","type":"bytes"}],"outputs":[]},{"name":"claim_royalties","mutability":"mutable","inputs":[],"outputs":[]},{"name":"claimESDT","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonces","type":"variadic<u64>","multi_arg":true}],"outputs":[]},{"name":"setCutPercentage","onlyOwner":true,"mutability":"mutable","inputs":[{"name":"new_cut_percentage","type":"BigUint"}],"outputs":[]},{"name":"claimTokens","mutability":"mutable","inputs":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u32"}],"outputs":[]},{"name":"addRewards","mutability":"mutable","payableInTokens":["*"],"inputs":[{"name":"tag","type":"bytes"},{"name":"reward","type":"BigUint"}],"outputs":[]},{"name":"removeRewards","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"}],"outputs":[]},{"name":"stopMintShareholder","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"}],"outputs":[]},{"name":"stopRoyaltiesShareholder","mutability":"mutable","inputs":[],"outputs":[]},{"name":"addMintShareholder","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"shareholders","type":"variadic<multi<Address,BigUint>>","multi_arg":true}],"outputs":[]},{"name":"addRoyaltiesShareholder","mutability":"mutable","inputs":[{"name":"shareholders","type":"variadic<multi<Address,BigUint>>","multi_arg":true}],"outputs":[]},{"name":"getMintShareholders","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<ShareHolders>","multi_result":true}]},{"name":"getRoyaltiesShareholders","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<ShareHolders>","multi_result":true}]},{"name":"isMintEditBlocked","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"bool"}]},{"name":"rewardPerCollection","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"RewardStruct"}]},{"name":"isRoyaltiesEditBlocked","mutability":"readonly","inputs":[],"outputs":[{"type":"bool"}]},{"name":"cutPercentage","mutability":"readonly","inputs":[],"outputs":[{"type":"BigUint"}]},{"name":"localOwner","mutability":"readonly","inputs":[],"outputs":[{"type":"Address"}]},{"name":"buysPerWallet","mutability":"readonly","inputs":[{"name":"user","type":"Address"},{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"buysStagePerWallet","mutability":"readonly","inputs":[{"name":"user","type":"Address"},{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"getNFTsIDs","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<bytes>","multi_result":true}]},{"name":"nextNftNonce","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"getAcceptedTokens","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<EgldOrEsdtTokenIdentifier>","multi_result":true}]},{"name":"lastNFTIdAdded","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"listingByTag","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"Listing"}]},{"name":"maxBuysPerTag","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"tokenByTag","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"TokenIdentifier"}]},{"name":"isActive","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"bool"}]},{"name":"getPaymentTokenPrice","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"token","type":"EgldOrEsdtTokenIdentifier"}],"outputs":[{"type":"BigUint"}]},{"name":"revealID","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"nonce","type":"u64"}],"outputs":[{"type":"bytes"}]},{"name":"collections","mutability":"readonly","inputs":[],"outputs":[{"type":"variadic<bytes>","multi_result":true}]},{"name":"signer","mutability":"readonly","inputs":[],"outputs":[{"type":"bytes"}]},{"name":"listingByTagV2","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"NewListing"}]},{"name":"mintStage","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"variadic<multi<bytes,Stage>>","multi_result":true}]},{"name":"getWhitelistedWallets","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"variadic<Address>","multi_result":true}]},{"name":"isWhitelisted","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"},{"name":"address","type":"Address"}],"outputs":[{"type":"bool"}]},{"name":"getListings","mutability":"readonly","inputs":[],"outputs":[{"type":"List<NewListing>"}]},{"name":"getListing","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"NewListing"}]},{"name":"getStages","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"}],"outputs":[{"type":"List<Stage>"}]},{"name":"getStage","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"Stage"}]},{"name":"whitelistSize","mutability":"readonly","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[{"type":"u32"}]},{"name":"listing","mutability":"mutable","payableInTokens":["EGLD"],"inputs":[{"name":"cid","type":"bytes"},{"name":"tags","type":"bytes"},{"name":"base_nft_name","type":"bytes"},{"name":"royalties","type":"BigUint"},{"name":"token_name","type":"bytes"},{"name":"token_ticker","type":"bytes"},{"name":"collection_size","type":"u32"},{"name":"global_max_per_wallet","type":"u32"},{"name":"collectiontag","type":"bytes"},{"name":"nft_ending","type":"bytes"},{"name":"name_shuffle","type":"bool"},{"name":"has_attributes","type":"bool"},{"name":"has_kyc","type":"bool"},{"name":"refund_policy","type":"bool"},{"name":"public_burn","type":"bool"},{"name":"bot_protection","type":"bool"},{"name":"has_reveal","type":"bool"}],"outputs":[]},{"name":"createStage","mutability":"mutable","inputs":[{"name":"args","type":"StageArgs"}],"outputs":[]},{"name":"removeStage","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[]},{"name":"changeTime","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"start_date","type":"u64"},{"name":"end_time","type":"u64"}],"outputs":[]},{"name":"removePaymentToken","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"token","type":"TokenIdentifier"}],"outputs":[]},{"name":"addPaymentToken","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"token","type":"TokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"price","type":"BigUint"}],"outputs":[]},{"name":"addWhitelists","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"},{"name":"wallets","type":"variadic<Address>","multi_arg":true}],"outputs":[]},{"name":"removeWhitelists","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"},{"name":"wallets","type":"variadic<Address>","multi_arg":true}],"outputs":[]},{"name":"clearWhitelist","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage","type":"bytes"}],"outputs":[]},{"name":"maxBuysPerWallet","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"max","type":"u32"}],"outputs":[]},{"name":"maxStageBuysPerWallet","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"max","type":"u32"}],"outputs":[]},{"name":"changeStageMintLimit","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"mint_limit","type":"u32"}],"outputs":[]},{"name":"changeWLStatus","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"botProtection","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"enableReveal","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"cid","type":"bytes"}],"outputs":[]},{"name":"publicBurn","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"status","type":"bool"}],"outputs":[]},{"name":"setActive","mutability":"mutable","inputs":[{"name":"tag","type":"bytes"},{"name":"stage_name","type":"bytes"},{"name":"is_active","type":"bool"}],"outputs":[]}],"events":[{"identifier":"emit_minting_stage_status","inputs":[{"name":"stage","type":"Stage","indexed":true}]},{"identifier":"emit_minting_status","inputs":[{"name":"contract_info","type":"NewListing","indexed":true}]},{"identifier":"emit_listing_event","inputs":[{"name":"listing","type":"NewListing","indexed":true}]},{"identifier":"emit_stage_event","inputs":[{"name":"stage","type":"Stage","indexed":true}]},{"identifier":"emit_stage_mint_event","inputs":[{"name":"stage","type":"Stage","indexed":true},{"name":"total_mint","type":"u32","indexed":true}]},{"identifier":"emit_buy_event","inputs":[{"name":"payments","type":"List<EsdtTokenPayment>","indexed":true},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"buyer","type":"Address","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"token_identifier","type":"TokenIdentifier","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"epoch","type":"u64","indexed":true}]},{"identifier":"emit_buy_fiat_event","inputs":[{"name":"payments","type":"List<EsdtTokenPayment>","indexed":true},{"name":"payment_token","type":"EgldOrEsdtTokenIdentifier","indexed":true},{"name":"buyer","type":"Address","indexed":true},{"name":"price","type":"BigUint","indexed":true},{"name":"token_identifier","type":"TokenIdentifier","indexed":true},{"name":"timestamp","type":"u64","indexed":true},{"name":"epoch","type":"u64","indexed":true},{"name":"twispay","type":"bytes","indexed":true}]}],"hasCallback":true,"types":{"EsdtTokenPayment":{"type":"struct","fields":[{"name":"token_identifier","type":"TokenIdentifier"},{"name":"token_nonce","type":"u64"},{"name":"amount","type":"BigUint"}]},"Listing":{"type":"struct","fields":[{"name":"cid","type":"bytes"},{"name":"tags","type":"bytes"},{"name":"collectiontag","type":"bytes"},{"name":"base_nft_name","type":"bytes"},{"name":"nft_ending","type":"bytes"},{"name":"royalties","type":"BigUint"},{"name":"mint_price","type":"BigUint"},{"name":"collection_size","type":"u32"},{"name":"start_date","type":"u64"},{"name":"mint_roles","type":"bool"},{"name":"owner_transfered","type":"bool"}]},"NewListing":{"type":"struct","fields":[{"name":"cid","type":"bytes"},{"name":"tags","type":"bytes"},{"name":"collection_tag","type":"bytes"},{"name":"media_type","type":"bytes"},{"name":"base_nft_name","type":"bytes"},{"name":"has_attributes","type":"bool"},{"name":"owner_transfered","type":"bool"},{"name":"collection_size","type":"u32"},{"name":"nft_minted","type":"u32"},{"name":"global_max_per_wallet","type":"u32"},{"name":"royalties","type":"BigUint"},{"name":"token","type":"TokenIdentifier"},{"name":"old_version","type":"bool"},{"name":"name_shuffle","type":"bool"},{"name":"transfer_role","type":"bool"},{"name":"public_burn","type":"bool"},{"name":"has_kyc","type":"bool"},{"name":"refund_policy","type":"bool"},{"name":"bot_protection","type":"bool"},{"name":"has_reveal","type":"bool"}]},"RewardStruct":{"type":"struct","fields":[{"name":"token","type":"EgldOrEsdtTokenIdentifier"},{"name":"nonce","type":"u64"},{"name":"amount","type":"BigUint"},{"name":"reward","type":"BigUint"}]},"ShareHolders":{"type":"struct","fields":[{"name":"address","type":"Address"},{"name":"share","type":"BigUint"}]},"Stage":{"type":"struct","fields":[{"name":"name","type":"bytes"},{"name":"tag","type":"bytes"},{"name":"status","type":"bool"},{"name":"is_whitelist","type":"bool"},{"name":"start_time","type":"u64"},{"name":"end_time","type":"u64"},{"name":"mint_limit","type":"u32"},{"name":"mint_count","type":"u32"},{"name":"prices","type":"List<EsdtTokenPayment>"},{"name":"max_per_wallet","type":"u32"}]},"StageArgs":{"type":"struct","fields":[{"name":"name","type":"bytes"},{"name":"tag","type":"bytes"},{"name":"is_whitelist","type":"bool"},{"name":"start_time","type":"u64"},{"name":"end_time","type":"u64"},{"name":"mint_limit","type":"u32"},{"name":"prices","type":"List<EsdtTokenPayment>"},{"name":"max_per_wallet","type":"u32"}]}}}');var f=s.t(y,2);class g{static manager;static exchange;static minter;static market;static staking;static p2p;static async getMarket(){if(!g.market){const{AbiRegistry:e}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(766)]).then(s.t.bind(s,4966,23)),t=e.create(c);g.market=t}return g.market}static async getManager(){if(!g.manager){const e=await d.getInstance().fetchWithTimeout(`${d.getInstance().config.mediaUrl}/smartcontractabi/manage.json`,{next:{tags:["getManager"]}}),{AbiRegistry:t}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(766)]).then(s.t.bind(s,4966,23)),n=t.create(e);g.manager=n}return g.manager}static async getMinter(){if(!g.minter){const{AbiRegistry:e}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(766)]).then(s.t.bind(s,4966,23)),t=e.create(f);g.minter=t}return g.minter}static async getStaking(){if(!g.staking){const e=await d.getInstance().fetchWithTimeout(`${d.getInstance().config.mediaUrl}/smartcontractabi/staking-nfts.abi.json`,{next:{tags:["getStaking"]}}),{AbiRegistry:t}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(766)]).then(s.t.bind(s,4966,23)),n=t.create(e);g.staking=n}return g.staking}static async getExchange(){if(!g.exchange){const e=await d.getInstance().fetchWithTimeout(`${d.getInstance().config.mediaUrl}/smartcontractabi/rs-exchange.abi.json`,{next:{tags:["getExchange"]}}),{AbiRegistry:t}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(766)]).then(s.t.bind(s,4966,23)),n=t.create(e);g.exchange=n}return g.exchange}static async getP2P(){if(!g.p2p){const e=await d.getInstance().fetchWithTimeout(`${d.getInstance().config.mediaUrl}/smartcontractabi/p2p.abi.json`,{next:{tags:["getP2P"]}}),{AbiRegistry:t}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(766)]).then(s.t.bind(s,4966,23)),n=t.create(e);g.p2p=n}return g.p2p}}const b=async(e,t)=>{const{SmartContract:n}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(147)]).then(s.bind(s,1998)),{Address:i}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23));return new n({address:new i(t),abi:e})};class h{xo;api;config;factory;constructor(e,t,n){this.config=e.config,this.xo=t,this.api=e,this.factory=n}static async init(){const e=await g.getMarket(),t=d.getInstance(),n=await b(e,t.config.XO_SC),{SmartContractTransactionsFactory:i}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(147)]).then(s.bind(s,9712)),{TransactionsFactoryConfig:a}=await s.e(473).then(s.bind(s,3473)),r=new i({config:new a({chainID:t.chain.valueOf()}),abi:e});return new h(t,n,r)}async getResult(e){const t=await m.init();return await t.runQuery(this.xo,e)}getMarketplaceFees=async()=>{const e=this.xo.methods.getMarketplaceCutPercentage(),t=await this.getResult(e);return parseInt(t.firstValue?.valueOf())};getAcceptedPaymentTokens=async()=>{const e=this.xo.methods.getAcceptedTokens(),t=await this.getResult(e);return t.firstValue?.valueOf()};getGlobalOfferIDs=async()=>{const e=this.xo.methods.getGlobalOffers(),t=await this.getResult(e);return t.firstValue?.valueOf().map((e=>parseInt(e)))};async getUserPoolBalance(e,t,n){if(!(e=>e.includes("erd1")&&62===e?.length)(e))throw new Error("Invalid address:"+e);const i=await this.getResult(this.xo.methods.userDeposit([e,t,n]));if(!i?.firstValue)return 0;const{BigUIntValue:a}=await Promise.all([s.e(425),s.e(626),s.e(854)]).then(s.t.bind(s,4473,23));return new a(i.firstValue.valueOf().amount).valueOf().shiftedBy(-18).toNumber()}isOfferActive(e,t){return e<=t}getGlobalOfferData=async e=>{const t=this.xo.methods.getGlobalOffer([e]),n=await this.getResult(t),i=n.firstValue?.valueOf();i.offer_id=parseInt(i.offer_id.valueOf()),i.marketplace="xoxno";const{BigUIntValue:a}=await Promise.all([s.e(425),s.e(626),s.e(854)]).then(s.t.bind(s,4473,23));return i.short_price=parseFloat(new a(i.price).valueOf().shiftedBy(-18).toString()),i.new_version=Boolean(i.new_version),i.new_version?i.isActive=!0:i.isActive=this.isOfferActive(i.short_price,await this.getUserPoolBalance(i.owner,i.payment_token,i.payment_nonce)),i.quantity=parseInt(i.quantity.valueOf()),i.payment_nonce=parseInt(i.payment_nonce.valueOf()),i.price=i.price.valueOf(),i.timestamp=parseInt(i.timestamp.valueOf()),i.owner=i.owner.valueOf().toString(),i.attributes&&(i.attributes=JSON.parse(Buffer.from(i.attributes.valueOf().toString(),"base64").toString("ascii"))),i};getAuctionInfo=async e=>{const t=this.xo.methods.getFullAuctionData([e]),n=await this.getResult(t),i=n.firstValue?.valueOf();return i?(i.auctioned_token_nonce=parseInt(i.auctioned_token_nonce.valueOf()),i.nr_auctioned_tokens=parseInt(i.nr_auctioned_tokens.valueOf()),i.auction_type=i.auction_type.name,i.payment_token_nonce=parseInt(i.payment_token_nonce.valueOf()),i.min_bid=i.min_bid.valueOf(),i.max_bid=i.max_bid.valueOf(),i.start_time=parseInt(i.start_time.valueOf()),i.deadline=parseInt(i.deadline.valueOf()),i.original_owner=i.original_owner.valueOf().toString(),i.current_winner=i.current_winner.valueOf().toString(),i.current_bid=i.current_bid.valueOf().toString(),i.marketplace_cut_percentage=i.marketplace_cut_percentage.valueOf(),i.creator_royalties_percentage=i.creator_royalties_percentage.valueOf(),i):null};async getListingsCount(){const e=await this.getResult(this.xo.methods.getListingsCount());return parseInt(e.firstValue?.valueOf())}async getOffersCount(){const e=await this.getResult(this.xo.methods.getOffersCount());return parseInt(e.firstValue?.valueOf())}async getGlobalOffersCount(){const e=await this.getResult(this.xo.methods.getGlobalOffersCount());return parseInt(e.firstValue?.valueOf())}async getCollectionsCount(){const e=await this.getResult(this.xo.methods.getCollectionsCount());return parseInt(e.firstValue?.valueOf())}async isCollectionListed(e){const t=await this.getResult(this.xo.methods.isCollectionListed([e]));return Boolean(t.firstValue?.valueOf())}async getCollectionNFTsOnSaleCount(e){const t=await this.getResult(this.xo.methods.getTokenItemsForSaleCount([e]));return parseInt(t.firstValue?.valueOf())}async getAuctionIDsForCollection(e){const t=await this.getResult(this.xo.methods.getAuctionsForTicker([e])),n=t.firstValue?.valueOf().map((e=>parseInt(e)));return n}async withdrawAuctions({auctionIDs:e,sender:t,market:n="xoxno",signature:i}){const{BytesValue:a}=await Promise.all([s.e(425),s.e(626),s.e(392)]).then(s.bind(s,1392)),{U64Value:r}=await Promise.all([s.e(425),s.e(626),s.e(854)]).then(s.t.bind(s,4473,23)),{Address:o}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23));if("xoxno"===n){const n=this.xo.methodsExplicit.withdraw([a.fromHex(i),...e.map((e=>new r(e)))]);return t.nonce&&n.withNonce(t.nonce),[n.withChainID(this.api.chain).withSender(new o(t.address)).withGasLimit(Math.min(6e8,25e6+8e6*e.length)).buildTransaction().toPlainObject()]}if("frameit"==n)return e.map(((e,n)=>{const i=this.xo.methodsExplicit.withdraw([new r(e)]);return t.nonce&&i.withNonce(t.nonce+n),i.withChainID(this.api.chain).withSender(new o(t.address)).withGasLimit(Math.min(6e8,25e6)).withExplicitReceiver(new o(this.config.FM_SC)).buildTransaction().toPlainObject()}));if("deadrare"==n)return e.map(((e,n)=>{const i=this.xo.methodsExplicit.withdraw([new r(e)]);return t.nonce&&i.withNonce(t.nonce+n),i.withChainID(this.api.chain).withSender(new o(t.address)).withGasLimit(Math.min(6e8,25e6)).withExplicitReceiver(new o(this.config.DR_SC)).buildTransaction().toPlainObject()}));throw new Error("Market not supported")}async withdrawGlobalOffer(e,t="xoxno",n){const{Address:i}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23));if("xoxno"!=t)throw Error("Marketplace not supported");const a=this.xo.methods.withdrawGlobalOffer([e]);return n.nonce&&a.withNonce(n.nonce),a.withChainID(this.api.chain).withSender(new i(n.address)).withGasLimit(2e7).buildTransaction().toPlainObject()}async acceptGlobalOffer({signature:e,offer_id:t,auction_ids_opt:n,market:i,nfts:a,address:r,nonce:o}){const{Address:u}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:l}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23));if("xoxno"!=i)throw Error("Marketplace not supported");const d=e?this.xo.methods.acceptGlobalOffer([t,n??[],e]):this.xo.methods.acceptGlobalOffer([t,n]);return d.withSender(new u(r)),a.length>0&&d.withMultiESDTNFTTransfer(a.map((e=>l.semiFungible(e.collection,e.nonce,e.amount??1)))),o&&d.withNonce(o),d.withChainID(this.api.chain).withGasLimit(Math.min(35e6+7e6*(a.length+n.length)+(null==e?15e6:0),6e8)).buildTransaction().toPlainObject()}async sendGlobalOffer({payment_token:e,payment_nonce:t,price:n,collection:i,quantity:a,attributes:r,depositAmount:o,address:u,nonce:l}){const{Address:d}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:m}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23)),p=this.xo.methods.sendGlobalOffer([e,t,m.egldFromAmount(n).toString(),i,a,...r?[r]:[]]);return l&&p.withNonce(l),p.withSender(new d(u)),o&&p.withValue(o),p.withChainID(this.api.chain).withGasLimit(25e6+(r?1500*r?.length:0)).buildTransaction().toPlainObject()}async sendCustomOffer({payment_token:e,payment_nonce:t,price:n,deadline:i,nft:a,depositAmount:r,address:o,nonce:u}){const{Address:l}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:d}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23)),m=this.xo.methods.sendOffer([e,t,d.egldFromAmount(n).toString(),a.collection,a.nonce,a.amount??1,i]);return u&&m.withNonce(u),m.withSender(new l(o)),r&&m.withValue(r),m.withChainID(this.api.chain).withGasLimit(3e7).buildTransaction().toPlainObject()}async withdrawCustomOffer(e,t,n){const{Address:i}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23));if("xoxno"===n){const n=this.xo.methods.withdrawOffer([e]);return t.nonce&&n.withNonce(t.nonce),n.withSender(new i(t.address)),n.withChainID(this.api.chain).withGasLimit(15e6).buildTransaction().toPlainObject()}throw Error("Market not supported")}async declineCustomOffer(e,t,n,i){const{Address:a}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:r}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23));if("xoxno"==i){const i=n.onSale?this.xo.methods.declineOffer([e,n.saleInfo?.auctionId]):this.xo.methods.declineOffer([e]);return t.nonce&&i.withNonce(t.nonce),i.withSender(new a(t.address)),n.onSale||i.withSingleESDTNFTTransfer(r.semiFungible(n.collection,n.nonce,1)),i.withChainID(this.api.chain).withGasLimit(2e7).buildTransaction().toPlainObject()}throw Error("Market not supported")}async acceptCustomOffer(e,t,n,i){const{Address:a}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:r}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23));if("xoxno"==i){const i=n.onSale?this.xo.methods.acceptOffer([e,n.saleInfo?.auctionId]):this.xo.methods.acceptOffer([e]);return t.nonce&&i.withNonce(t.nonce),i.withSender(new a(t.address)),n.onSale||i.withSingleESDTNFTTransfer(r.semiFungible(n.collection,n.nonce,1)),i.withChainID(this.api.chain).withGasLimit(45e6).buildTransaction().toPlainObject()}throw Error("Market not supported")}async endAuction(e,t,n="xoxno"){const{Address:i}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23));if("xoxno"==n){const n=this.xo.methods.endAuction([e]);return t.nonce&&n.withNonce(t.nonce),n.withSender(new i(t.address)),n.withChainID(this.api.chain).withGasLimit(6e7).buildTransaction().toPlainObject()}throw new Error("Market not supported")}async bidOnAuctionId(e,t,n,i,a){const{Address:r}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:o}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23)),{Token:u}=await s.e(132).then(s.t.bind(s,5132,23)),l="EGLD"==i.collection,d=this.factory.createTransactionForExecute({sender:new r(a.address),contract:new r(this.config.XO_SC),function:"bid",gasLimit:30000000n,arguments:[e,t,n],nativeTransferAmount:l?BigInt(i.amount):void 0,tokenTransfers:l?void 0:[new o({token:new u({identifier:i.collection,nonce:BigInt(i.nonce??0)}),amount:BigInt(i.amount)})]});return a.nonce&&(d.nonce=BigInt(a.nonce)),d.toPlainObject()}async bulkBuy(e,t,n){const{Address:i}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:a}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23)),r=this.xo.methods.bulkBuy(e);return n.nonce&&r.withNonce(n.nonce),r.withSender(new i(n.address)),"EGLD"==t.collection?r.withValue(t.amount):r.withSingleESDTTransfer(a.fungibleFromBigInteger(t.collection,t.amount,t.decimals??18)),r.withChainID(this.api.chain).withGasLimit(Math.min(6e8,25e6+2e7*e.length)).buildTransaction().toPlainObject()}async buyAuctionById({auctionID:e,collection:t,nonce:n,paymentAmount:i,quantity:a=1,token:r="EGLD",withCheck:o=!0,isBigUintPayment:u=!1,isBid:d=!1,decimals:m=18,market:p="xoxno",sender:c}){const{Address:y}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),{TokenTransfer:f}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23));if("xoxno"!==p)throw new Error("Market not supported");if(!e)throw new Error("AuctionID not provided");let g=null;if(!i||!r||!t||!n||o){if(g=await this.getAuctionInfo(e),null===g)throw new Error("Auction not found");if(g.auction_type===l.Nft||g.auction_type===l.SftOnePerPayment)throw new Error("Auction type is not NFT or SftOnePerPayment")}const b=g?.payment_token_type??r,h=!!g||u;let _=d?g?.max_bid??i:g?.min_bid??i;if(!_)throw new Error("Payment amount not provided");const w=this.xo.methods.buy([e,g?.auctioned_token_type??t,g?.auctioned_token_nonce??n,a]);if(c.nonce&&w.withNonce(c.nonce),w.withSender(new y(c.address)),"EGLD"===r)w.withValue(h?f.egldFromBigInteger(_):f.egldFromAmount(_));else{if(!h){if(g=await this.getAuctionInfo(e),null===g)throw new Error("Auction not found");_=d?g.max_bid:g.min_bid}w.withSingleESDTTransfer(f.fungibleFromBigInteger(b,_,m))}return w.withChainID(this.api.chain).withGasLimit(45e6).buildTransaction().toPlainObject()}async changeListing(e,t,n){const{BigUIntType:i,U64Type:a,U64Value:r,BigUIntValue:o}=await Promise.all([s.e(425),s.e(626),s.e(854)]).then(s.t.bind(s,4473,23)),{Field:u,FieldDefinition:l}=await Promise.all([s.e(425),s.e(626),s.e(242)]).then(s.t.bind(s,5766,23)),{Struct:d,StructType:m}=await Promise.all([s.e(425),s.e(626),s.e(586)]).then(s.bind(s,7586)),{TokenIdentifierType:p,TokenIdentifierValue:c}=await Promise.all([s.e(425),s.e(626),s.e(145)]).then(s.bind(s,3145)),{VariadicValue:y}=await Promise.all([s.e(425),s.e(626),s.e(54)]).then(s.bind(s,6054)),{Address:f}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23));if(!n)throw Error("Market is required");const g=new m("BulkUpdateListing",[new l("payment_token_type","",new p),new l("new_price","",new i),new l("auction_id","",new a),new l("deadline","",new a)]),b=[];e.forEach((({paymentToken:e,price:t,auctionID:n,deadline:i})=>{b.push(new d(g,[new u(new c(e),"payment_token_type"),new u(new o(t),"new_price"),new u(new r(n),"auction_id"),new u(new r(i),"deadline")]))}));const h=this.xo.methods.changeListing([y.fromItems(...b)]);return t.nonce&&h.withNonce(t.nonce),h.withSender(new f(t.address)),h.withChainID(this.api.chain).withGasLimit(Math.min(6e8,25e6+5e6*e.length)).buildTransaction().toPlainObject()}async listNFTs(e,n){const{BigUIntType:i,U64Type:a,U64Value:r,BigUIntValue:o}=await Promise.all([s.e(425),s.e(626),s.e(854)]).then(s.t.bind(s,4473,23)),{Field:u,FieldDefinition:l}=await Promise.all([s.e(425),s.e(626),s.e(242)]).then(s.t.bind(s,5766,23)),{Struct:d,StructType:m}=await Promise.all([s.e(425),s.e(626),s.e(586)]).then(s.bind(s,7586)),{TokenIdentifierType:p,TokenIdentifierValue:c}=await Promise.all([s.e(425),s.e(626),s.e(145)]).then(s.bind(s,3145)),{BooleanType:y,BooleanValue:f}=await Promise.all([s.e(425),s.e(626),s.e(979)]).then(s.bind(s,3979)),{TokenTransfer:g}=await Promise.all([s.e(425),s.e(626),s.e(401),s.e(966),s.e(528),s.e(13),s.e(661),s.e(820),s.e(989)]).then(s.t.bind(s,4820,23)),{Address:b}=await Promise.all([s.e(401),s.e(415)]).then(s.t.bind(s,236,23)),h=new m("BulkListing",[new l("min_bid","",new i),new l("max_bid","",new i),new l("deadline","",new a),new l("accepted_payment_token","",new p),new l("bid","",new y),new l("opt_sft_max_one_per_payment","",new y),new l("opt_start_time","",new a),new l("collection","",new p),new l("nonce","",new a),new l("nft_amount","",new i)]),_=[],w=[];e.forEach((e=>{const n=e.accepted_payment_token_decimals??18,i=new(t())(e.min_bid).shiftedBy(n),a=new(t())(e.max_bid??0).shiftedBy(n);w.push(g.semiFungible(e.collection,e.nonce,e.nft_amount)),_.push(new d(h,[new u(new o(i),"min_bid"),new u(new o(a),"max_bid"),new u(new r(new(t())(e.deadline??0)),"deadline"),new u(new c(e.accepted_payment_token??"EGLD"),"accepted_payment_token"),new u(new f(e.bid??!1),"bid"),new u(new f(e.isSFTPack??!1),"opt_sft_max_one_per_payment"),new u(new r(new(t())(e.opt_start_time?e.opt_start_time:0)),"opt_start_time"),new u(new c(e.collection),"collection"),new u(new r(e.nonce),"nonce"),new u(new o(new(t())(e.nft_amount)),"nft_amount")]))}));const T=this.xo.methods.listings(_);return n.nonce&&T.withNonce(n.nonce),T.withSender(new b(n.address)),T.withMultiESDTNFTTransfer(w),T.withChainID(this.api.chain).withGasLimit(Math.min(6e8,25e6+45e5*e.length)).buildTransaction().toPlainObject()}}class _{minter;constructor(e){this.minter=e}async getResult(e){const t=await m.init();return await t.runQuery(this.minter,e)}static async init(e){const t=await g.getMinter(),n=await b(t,e);return new _(n)}getAllUniqueTags=async()=>{const e=this.minter.methods.collections(),t=await this.getResult(e);return t.firstValue?.valueOf().map((e=>e.toString()))};getWalletGlobalBuyCount=async(e,t)=>{const n=this.minter.methods.buysPerWallet([e,t]),i=await this.getResult(n);return i.firstValue?.valueOf()};getWalletStageBuyCount=async(e,t,n)=>{const i=this.minter.methods.buysStagePerWallet([e,t,n]),a=await this.getResult(i);return a.firstValue?.valueOf()};getLocalOwner=async()=>{const e=this.minter.methods.localOwner(),t=await this.getResult(e);return t.firstValue?.valueOf()};getLaunchpadCutFee=async()=>{const e=this.minter.methods.cutPercentage(),t=await this.getResult(e);return t.firstValue?.valueOf()};getStageWhitelist=async(e,t)=>{const n=this.minter.methods.getWhitelistedWallets([e,t]),i=await this.getResult(n);return i.firstValue?.valueOf().map((e=>e.toString()))};getStages=async e=>{const t=this.minter.methods.mintStage([e]),n=await this.getResult(t);return n.firstValue?.valueOf().map((e=>{const t=e[1].valueOf();return t.name=t.name.toString(),t.tag=t.name.toString(),t.start_time=parseInt(t.start_time.toString()),t.end_time=parseInt(t.end_time.toString()),t.mint_limit=parseInt(t.mint_limit.toString()),t.mint_count=parseInt(t.mint_count.toString()),t.max_per_wallet=parseInt(t.max_per_wallet.toString()),t.prices=t.prices.map((e=>{const t=e.valueOf();return{...t,token_nonce:parseInt(t.token_nonce.toString()),amount:t.amount.toString()}})),t}))}}var w,T,k,E,A,O,v,S,x,I,C,D,N,B,P,L,q,U,R,M,F,V,G;!function(e){e.XO="xoxno",e.FM="frameit",e.DR="deadrare",e.KG="krogan"}(w||(w={})),function(e){e.Rank="metadata.rarity.rank",e.Attributes="metadata.attributes",e.Description="metadata.description",e.Name="name",e.OnSale="onSale",e.SaleInfo="saleInfo",e.Royalties="royalties",e.Identifier="identifier",e.Collection="collection",e.OriginalURL="url",e.Nonce="nonce",e.ContentType="originalMedia.contentType",e.WasProcessed="wasProcessed",e.AvifURL="avifUrl",e.WebpURL="webpUrl",e.Type="type"}(T||(T={})),function(e){e.PriceHighToLow="saleInfo.minBidShort desc",e.PriceLowToHigh="saleInfo.minBidShort asc",e.MaxPriceHighToLow="saleInfo.maxBidShort desc",e.MaxPriceLowToHigh="saleInfo.maxBidShort asc",e.BidPriceHighToLow="saleInfo.currentBidShort desc",e.BidPriceLowToHigh="saleInfo.currentBidShort asc",e.RarityHighToLow="metadata.rarity.rank desc",e.RarityLowToHigh="metadata.rarity.rank asc",e.NonceHighToLow="nonce desc",e.NonceLowToHigh="nonce asc",e.RecentListed="saleInfo.timestamp desc",e.OldestListed="saleInfo.timestamp asc",e.EndingLate="saleInfo.deadline desc",e.EndingSoon="saleInfo.deadline asc"}(k||(k={})),function(e){e.EndingLate="startTime desc",e.EndingSoon="startTime asc"}(E||(E={})),function(e){e.TotalVolumeHighToLow="statistics/tradeData/totalEgldVolume desc",e.FollowersHighToLow="statistics/other/followCount desc",e.IsVerifiedTrueToFalse="isVerified desc",e.HasImageTrueToFalse="profile desc",e.HasBannerTrueToFalse="banner desc"}(A||(A={})),function(e){e.WeekVolumeHighToLow="statistics.tradeData.weekEgldVolume desc",e.WeekVolumeLowToHigh="statistics.tradeData.weekEgldVolume asc",e.DailyVolumeHighToLow="statistics.tradeData.dayEgldVolume desc",e.DailyVolumeLowToHigh="statistics.tradeData.dayEgldVolume asc",e.TotalVolumeHighToLow="statistics.tradeData.totalEgldVolume desc",e.TotalVolumeLowToHigh="statistics.tradeData.totalEgldVolume asc",e.AvgVolumePriceHighToLow="statistics.tradeData.averageEgldPrice desc",e.AvgVolumePriceLowToHigh="statistics.tradeData.averageEgldPrice asc",e.ATHHighToLow="statistics.tradeData.athEgldPrice desc",e.ATHLowToHigh="statistics.tradeData.athEgldPrice asc",e.TotalTradesHighToLow="statistics.tradeData.totalTrades desc",e.TotalTradesLowToHigh="statistics.tradeData.totalTrades asc",e.SupplyHighToLow="statistics.other.nftCount desc",e.SupplyLowToHigh="statistics.other.nftCount asc",e.FollowersHighToLow="statistics.other.followCount desc",e.FollowersLowToHigh="statistics.other.followCount asc"}(O||(O={})),function(e){e.PriceHighToLow="priceShort desc",e.PriceLowToHigh="priceShort asc",e.OfferIdHighToLow="offerIddesc",e.OfferIdLowToHigh="offerId asc",e.RecentListed="timestamp desc",e.OldestListed="timestamp asc"}(v||(v={})),function(e){e.Profile="profile",e.Description="description",e.Creator="creator",e.Owner="owner",e.Socials="socials",e.Type="type",e.HasStaking="hasStaking",e.Name="name",e.Banner="banner",e.IsVerified="isVerified",e.IsMintable="isMintable",e.Statistics="statistics",e.Collection="collection"}(S||(S={})),function(e){e.Attributes="attributes",e.Collection="collection",e.Marketplace="marketplace",e.PaymentToken="paymentToken",e.LongPrice="price",e.ShortPrice="priceShort"}(x||(x={})),function(e){e.FixedPrice="FixedPrice",e.Auctions="Auctions",e.All="All",e.AllListed="AllListed"}(I||(I={})),function(e){e.ALL="all",e.Trade="trade",e.P2P="p2p",e.Staking="staking",e.Minting="minting"}(C||(C={})),function(e){e.TotalVolume="TotalVolume",e.TotalTrades="TotalTrades",e.DailyVolume="DailyVolume",e.Last2DaysVolume="Last2DaysVolume",e.DailyTrades="DailyTrades",e.Last2DaysTrades="Last2DaysTrades",e.WeekTrades="WeekTrades",e.LastWeekTrades="LastWeekTrades",e.WeekVolume="WeekVolume",e.LastWeekVolume="LastWeekVolume",e.WeeklyTradesMargin="WeeklyTradesMargin",e.DailyTradesMargin="DailyTradesMargin",e.WeeklyVolumeMargin="WeeklyVolumeMargin",e.DailyVolumeEgldMargin="DailyVolumeEgldMargin",e.CollectionAthTrade="CollectionAthTrade"}(D||(D={})),function(e){e.TradingStats="tradingStats"}(N||(N={})),function(e){e.ListedCountDesc="tradingStats.listedCount DESC",e.ListedCountAsc="tradingStats.listedCount ASC",e.FloorPriceDesc="tradingStats.floorPrice DESC",e.FloorPriceAsc="tradingStats.floorPrice ASC",e.TotalVolumeDesc="tradingStats.totalVolume DESC",e.TotalVolumeAsc="tradingStats.totalVolume ASC",e.TotalTradesDesc="tradingStats.totalTrades DESC",e.TotalTradesAsc="tradingStats.totalTrades ASC",e.AllTimeHighDesc="tradingStats.allTimeHigh.price DESC",e.AllTimeHighAsc="tradingStats.allTimeHigh.price ASC",e.DayVolumeDesc="tradingStats.day.volume DESC",e.DayVolumeAsc="tradingStats.day.volume ASC",e.DayVolumeMarginDesc="tradingStats.day.volumeMargin DESC",e.DayVolumeMarginAsc="tradingStats.day.volumeMargin ASC",e.DayTradesDesc="tradingStats.day.trades DESC",e.DayTradesAsc="tradingStats.day.trades ASC",e.DayTradesMarginDesc="tradingStats.day.tradesMargin DESC",e.DayTradesMarginAsc="tradingStats.day.tradesMargin ASC",e.WeekVolumeDesc="tradingStats.week.volume DESC",e.WeekVolumeAsc="tradingStats.week.volume ASC",e.WeekVolumeMarginDesc="tradingStats.week.volumeMargin DESC",e.WeekVolumeMarginAsc="tradingStats.week.volumeMargin ASC",e.WeekTradesDesc="tradingStats.week.trades DESC",e.WeekTradesAsc="tradingStats.week.trades ASC",e.WeekTradesMarginDesc="tradingStats.week.tradesMargin DESC",e.WeekTradesMarginAsc="tradingStats.week.tradesMargin ASC",e.MonthVolumeDesc="tradingStats.month.volume DESC",e.MonthVolumeAsc="tradingStats.month.volume ASC",e.MonthVolumeMarginDesc="tradingStats.month.volumeMargin DESC",e.MonthVolumeMarginAsc="tradingStats.month.volumeMargin ASC",e.MonthTradesDesc="tradingStats.month.trades DESC",e.MonthTradesAsc="tradingStats.month.trades ASC",e.MonthTradesMarginDesc="tradingStats.month.tradesMargin DESC",e.MonthTradesMarginAsc="tradingStats.month.tradesMargin ASC",e.YearVolumeDesc="tradingStats.year.volume DESC",e.YearVolumeAsc="tradingStats.year.volume ASC",e.YearVolumeMarginDesc="tradingStats.year.volumeMargin DESC",e.YearVolumeMarginAsc="tradingStats.year.volumeMargin ASC",e.YearTradesDesc="tradingStats.year.trades DESC",e.YearTradesAsc="tradingStats.year.trades ASC",e.YearTradesMarginDesc="tradingStats.year.tradesMargin DESC",e.YearTradesMarginAsc="tradingStats.year.tradesMargin ASC"}(B||(B={})),function(e){e.NFT_CREATE="nftCreate",e.NFT_BURN="nftBurn",e.NFT_UPDATE="nftUpdate",e.NFT_TRANSFER="nftTransfer",e.LISTING_CREATE="listingCreate",e.LISTING_WITHDRAW="listingWithdraw",e.LISTING_UPDATE="listingUpdate",e.AUCTION_BID="auctionBid",e.AUCTION_OUT_BID="auctionOutBid",e.OFFER_CREATE="offerCreate",e.OFFER_WITHDRAW="offerWithdraw",e.OFFER_REJECT="offerReject",e.GLOBAL_OFFER_CREATE="globalOfferCreate",e.GLOBAL_OFFER_WITHDRAW="globalOfferWithdraw",e.TRADE="trade",e.BULK_TRADE="bulkTrade",e.AUCTION_TRADE="auctionTrade",e.OTHER_TRADE="otherTrade",e.OFFER_TRADE="offerTrade",e.GLOBAL_OFFER_TRADE="globalOfferTrade",e.STAKE="stake",e.UN_STAKE="unStake"}(P||(P={})),function(e){e.PriceHighToLow="activityData.egldValue desc",e.PriceLowToHigh="activityData.egldValue asc",e.RecentPlaced="timestamp desc",e.OldestPlaced="timestamp asc"}(L||(L={})),function(e){e[e.attributes=0]="attributes",e[e.collection=1]="collection",e[e.offer_id=2]="offer_id",e[e.owner=3]="owner",e[e.short_price=4]="short_price",e[e.price=5]="price",e[e.id=6]="id",e[e.dataType=7]="dataType",e[e.marketplace=8]="marketplace",e[e.payment_token=9]="payment_token"}(q||(q={})),function(e){e.Dynamic="Dynamic",e.Fixed="Fixed"}(U||(U={})),function(e){e.Duo="Duo",e.Single="Single",e.Perk="Perk"}(R||(R={})),function(e){e.Staked="staked",e.Unbounding="unstaked",e.Available="available"}(M||(M={})),function(e){e.Received="received",e.Placed="placed"}(F||(F={})),function(e){e.NonFungibleESDT="NonFungibleESDT"}(V||(V={})),function(e){e.FESTIVAL="festival",e.CONFERENCE="conference",e.NETWORKING="networking",e.MEETUP="meetup",e.WEB3="web3",e.ENTERTAINMENT="entertainment"}(G||(G={}));const j=Object.values(G);var W,H,z,$,K,Y;!function(e){e.MUSIC="music",e.ARTS_AND_CULTURE="arts-and-culture",e.FOOD_AND_DRINK="food-and-drink",e.LIFESTYLE_AND_WELLNESS="lifestyle-and-wellness",e.LOCAL_AND_COMMUNITY="local-and-community"}(W||(W={})),function(e){e.TECHNOLOGY_AND_INNOVATION="technology-and-innovation",e.BUSINESS_AND_FINANCE="business-and-finance",e.HEALTHCARE_AND_SCIENCE="healthcare-and-science",e.EDUCATION_AND_LEARNING="education-and-learning",e.MARKETING_AND_MEDIA="marketing-and-media"}(H||(H={})),function(e){e.INDUSTRY_SPECIFIC="industry-specific",e.CAREER_DEVELOPMENT="career-development",e.INVESTOR_AND_STARTUPS="investor-and-startups",e.SOCIAL_IMPACT="social-impact",e.PERSONAL_DEVELOPMENT="personal-development"}(z||(z={})),function(e){e.HOBBIES_AND_INTERESTS="hobbies-and-interests",e.PROFESSIONAL_GROUPS="professional-groups",e.SOCIAL_GATHERING="social-gathering",e.EDUCATION_AND_SKILLS="education-and-skills",e.FAMILY_AND_KIDS="family-and-kids"}($||($={})),function(e){e.BLOCKCHAIN_AND_CRYPTOCURRENCY="blockchain-and-cryptocurrency",e.METAVERSE_AND_VR="metaverse-and-vr",e.DEFI_AND_FINANCE="defi-and-finance",e.DAO_AND_GOVERNANCE="dao-and-governance",e.WEB3_STARTUPS="web3-startups"}(K||(K={})),function(e){e.LIVE_MUSIC="live-music",e.COMEDY_SHOWS="comedy-shows",e.THEATRE_AND_PERFORMANCE="theatre-and-performance",e.MOVIES="movies",e.NIGHTLIFE_AND_CLUBBING="nightlife-and-clubbing"}(Y||(Y={}));const X={festival:Object.values(W),conference:Object.values(H),networking:Object.values(z),meetup:Object.values($),web3:Object.values(K),entertainment:Object.values(Y)};async function Q(){return j}async function J(e){return X[e]}var Z,ee;!function(e){e.EVENT_MANAGER="event-manager",e.CHECK_IN_MANAGER="check-in-manager",e.EVENT_READER="event-reader"}(Z||(Z={})),function(e){e.EVENT_READER_VIEW="event-reader-view",e.EVENT_MANAGER_EDIT_PAGE="event-manager-edit-page",e.EVENT_MANAGER_CREATE_TICKET="event-manager-create-ticket",e.EVENT_MANAGER_EDIT_TICKET="event-manager-edit-ticket",e.EVENT_MANAGER_DELETE_TICKET="event-manager-delete-ticket",e.EVENT_MANAGER_EDIT_GUEST="event-manager-edit-guest",e.EVENT_MANAGER_CREATE_STAGE="event-manager-create-stage",e.EVENT_MANAGER_EDIT_STAGE="event-manager-edit-stage"}(ee||(ee={}));const te=Object.values(Z),ne=Object.values(ee)})(),module.exports=o})();
|