Reading from NEAR testnet…
Reading from NEAR testnet…
29QAypbpdknZ9TiDwJGoa7NSGBUrPiGjr36RcN6YgTyK
web4.nearbuilders.testnet to web4.nearbuilders.testnet · failed
fs_store()
o>>>11|Xo<<5)&8065;var is=jo[14]|jo[15]<<8;this._r[8]=(Xo>>>8|is<<8)&8191,this._r[9]=is>>>5&127,this._pad[0]=jo[16]|jo[17]<<8,this._pad[1]=jo[18]|jo[19]<<8,this._pad[2]=jo[20]|jo[21]<<8,this._pad[3]=jo[22]|jo[23]<<8,this._pad[4]=jo[24]|jo[25]<<8,this._pad[5]=jo[26]|jo[27]<<8,this._pad[6]=jo[28]|jo[29]<<8,this._pad[7]=jo[30]|jo[31]<<8}return Ao.prototype._blocks=function(jo,Lo,Ho){for(var zo=this._fin?0:2048,Go=this._h[0],Vo=this._h[1],Yo=this._h[2],Xo=this._h[3],is=this._h[4],yl=this._h[5],us=this._h[6],hs=this._h[7],_l=this._h[8],xl=this._h[9],Il=this._r[0],Ol=this._r[1],Tl=this._r[2],Cl=this._r[3],Nl=this._r[4],Wl=this._r[5],Dl=this._r[6],Rl=this._r[7],Qo=this._r[8],Jo=this._r[9];Ho>=16;){var rs=jo[Lo+0]|jo[Lo+1]<<8;Go+=rs&8191;var ps=jo[Lo+2]|jo[Lo+3]<<8;Vo+=(rs>>>13|ps<<3)&8191;var _c=jo[Lo+4]|jo[Lo+5]<<8;Yo+=(ps>>>10|_c<<6)&8191;var $l=jo[Lo+6]|jo[Lo+7]<<8;Xo+=(_c>>>7|$l<<9)&8191;var El=jo[Lo+8]|jo[Lo+9]<<8;is+=($l>>>4|El<<12)&8191,yl+=El>>>1&8191;var ds=jo[Lo+10]|jo[Lo+11]<<8;us+=(El>>>14|ds<<2)&8191;var os=jo[Lo+12]|jo[Lo+13]<<8;hs+=(ds>>>11|os<<5)&8191;var Al=jo[Lo+14]|jo[Lo+15]<<8;_l+=(os>>>8|Al<<8)&8191,xl+=Al>>>5|zo;var Ul=0,Zl=Ul;Zl+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._h[9]=xl},Ao.prototype.finish=function(jo,Lo){Lo===void 0&&(Lo=0);var Ho=new Uint16Array(10),zo,Go,Vo,Yo;if(this._leftover){for(Yo=this._leftover,this._buffer[Yo++]=1;Yo<16;Yo++)this._buffer[Yo]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(zo=this._h[1]>>>13,this._h[1]&=8191,Yo=2;Yo<10;Yo++)this._h[Yo]+=zo,zo=this._h[Yo]>>>13,this._h[Yo]&=8191;for(this._h[0]+=zo*5,zo=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=zo,zo=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=zo,Ho[0]=this._h[0]+5,zo=Ho[0]>>>13,Ho[0]&=8191,Yo=1;Yo<10;Yo++)Ho[Yo]=this._h[Yo]+zo,zo=Ho[Yo]>>>13,Ho[Yo]&=8191;for(Ho[9]-=8192,Go=(zo^1)-1,Yo=0;Yo<10;Yo++)Ho[Yo]&=Go;for(Go=~Go,Yo=0;Yo<10;Yo++)this._h[Yo]=this._h[Yo]&Go|Ho[Yo];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,Vo=this._h[0]+this._pad[0],this._h[0]=Vo&65535,Yo=1;Yo<8;Yo++)Vo=(this._h[Yo]+this._pad[Yo]|0)+(Vo>>>16)|0,this._h[Yo]=Vo&65535;return jo[Lo+0]=this._h[0]>>>0,jo[Lo+1]=this._h[0]>>>8,jo[Lo+2]=this._h[1]>>>0,jo[Lo+3]=this._h[1]>>>8,jo[Lo+4]=this._h[2]>>>0,jo[Lo+5]=this._h[2]>>>8,jo[Lo+6]=this._h[3]>>>0,jo[Lo+7]=this._h[3]>>>8,jo[Lo+8]=this._h[4]>>>0,jo[Lo+9]=this._h[4]>>>8,jo[Lo+10]=this._h[5]>>>0,jo[Lo+11]=this._h[5]>>>8,jo[Lo+12]=this._h[6]>>>0,jo[Lo+13]=this._h[6]>>>8,jo[Lo+14]=this._h[7]>>>0,jo[Lo+15]=this._h[7]>>>8,this._finished=!0,this},Ao.prototype.update=function(jo){var Lo=0,Ho=jo.length,zo;if(this._leftover){zo=16-this._leftover,zo>Ho&&(zo=Ho);for(var Go=0;Go<zo;Go++)this._buffer[this._leftover+Go]=jo[Lo+Go];if(Ho-=zo,Lo+=zo,this._leftover+=zo,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(Ho>=16&&(zo=Ho-Ho%16,this._blocks(jo,Lo,zo),Lo+=zo,Ho-=zo),Ho){for(var Go=0;Go<Ho;Go++)this._buffer[this._leftover+Go]=jo[Lo+Go];this._leftover+=Ho}return this},Ao.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var jo=new Uint8Array(16);return this.finish(jo),jo},Ao.prototype.clean=function(){return io.wipe(this._buffer),io.wipe(this._r),io.wipe(this._h),io.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},Ao}();Mn.Poly1305=fo;function $o(Ao,jo){var Lo=new fo(Ao);Lo.update(jo);var Ho=Lo.digest();return Lo.clean(),Ho}Mn.oneTimeAuth=$o;function mo(Ao,jo){return Ao.length!==Mn.DIGEST_LENGTH||jo.length!==Mn.DIGEST_LENGTH?!1:Fn.equal(Ao,jo)}Mn.equal=mo})(poly1305);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0});var Fn=chacha,io=poly1305,fo=wipe$1,$o=binary,mo=constantTime;Mn.KEY_LENGTH=32,Mn.NONCE_LENGTH=12,Mn.TAG_LENGTH=16;var Ao=new Uint8Array(16),jo=function(){function Lo(Ho){if(this.nonceLength=Mn.NONCE_LENGTH,this.tagLength=Mn.TAG_LENGTH,Ho.length!==Mn.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(Ho)}return Lo.prototype.seal=function(Ho,zo,Go,Vo){if(Ho.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var Yo=new Uint8Array(16);Yo.set(Ho,Yo.length-Ho.length);var Xo=new Uint8Array(32);Fn.stream(this._key,Yo,Xo,4);var is=zo.length+this.tagLength,yl;if(Vo){if(Vo.length!==is)throw new Error("ChaCha20Poly1305: incorrect destination length");yl=Vo}else yl=new Uint8Array(is);return Fn.streamXOR(this._key,Yo,zo,yl,4),this._authenticate(yl.subarray(yl.length-this.tagLength,yl.length),Xo,yl.subarray(0,yl.length-this.tagLength),Go),fo.wipe(Yo),yl},Lo.prototype.open=function(Ho,zo,Go,Vo){if(Ho.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(zo.length<this.tagLength)return null;var Yo=new Uint8Array(16);Yo.set(Ho,Yo.length-Ho.length);var Xo=new Uint8Array(32);Fn.stream(this._key,Yo,Xo,4);var is=new Uint8Array(this.tagLength);if(this._authenticate(is,Xo,zo.subarray(0,zo.length-this.tagLength),Go),!mo.equal(is,zo.subarray(zo.length-this.tagLength,zo.length)))return null;var yl=zo.length-this.tagLength,us;if(Vo){if(Vo.length!==yl)throw new Error("ChaCha20Poly1305: incorrect destination length");us=Vo}else us=new Uint8Array(yl);return Fn.streamXOR(this._key,Yo,zo.subarray(0,zo.length-this.tagLength),us,4),fo.wipe(Yo),us},Lo.prototype.clean=function(){return fo.wipe(this._key),this},Lo.prototype._authenticate=function(Ho,zo,Go,Vo){var Yo=new io.Poly1305(zo);Vo&&(Yo.update(Vo),Vo.length%16>0&&Yo.update(Ao.subarray(Vo.length%16))),Yo.update(Go),Go.length%16>0&&Yo.update(Ao.subarray(Go.length%16));var Xo=new Uint8Array(8);Vo&&$o.writeUint64LE(Vo.length,Xo),Yo.update(Xo),$o.writeUint64LE(Go.length,Xo),Yo.update(Xo);for(var is=Yo.digest(),yl=0;yl<is.length;yl++)Ho[yl]=is[yl];Yo.clean(),fo.wipe(is),fo.wipe(Xo)},Lo}();Mn.ChaCha20Poly1305=jo})(chacha20poly1305);var hkdf={},hmac$1={},hash$1={};Object.defineProperty(hash$1,"__esModule",{value:!0});function isSerializableHash(Mn){return typeof Mn.saveState<"u"&&typeof Mn.restoreState<"u"&&typeof Mn.cleanSavedState<"u"}hash$1.isSerializableHash=isSerializableHash;Object.defineProperty(hmac$1,"__esModule",{value:!0});var hash_1=hash$1,constant_time_1=constantTime,wipe_1$2=wipe$1,HMAC=function(){function Mn(Fn,io){this._finished=!1,this._inner=new Fn,this._outer=new Fn,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var fo=new Uint8Array(this.blockSize);io.length>this.blockSize?this._inner.update(io).finish(fo).clean():fo.set(io);for(var $o=0;$o<fo.length;$o++)fo[$o]^=54;this._inner.update(fo);for(var $o=0;$o<fo.length;$o++)fo[$o]^=106;this._outer.update(fo),hash_1.isSerializableHash(this._inner)&&hash_1.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),wipe_1$2.wipe(fo)}return Mn.prototype.reset=function(){if(!hash_1.isSerializableHash(this._inner)||!hash_1.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},Mn.prototype.clean=function(){hash_1.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),hash_1.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},Mn.prototype.update=function(Fn){return this._inner.update(Fn),this},Mn.prototype.finish=function(Fn){return this._finished?(this._outer.finish(Fn),this):(this._inner.finish(Fn),this._outer.update(Fn.subarray(0,this.digestLength)).finish(Fn),this._finished=!0,this)},Mn.prototype.digest=function(){var Fn=new Uint8Array(this.digestLength);return this.finish(Fn),Fn},Mn.prototype.saveState=function(){if(!hash_1.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},Mn.prototype.restoreState=function(Fn){if(!hash_1.isSerializableHash(this._inner)||!hash_1.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(Fn),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},Mn.prototype.cleanSavedState=function(Fn){if(!hash_1.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(Fn)},Mn}();hmac$1.HMAC=HMAC;function hmac(Mn,Fn,io){var fo=new HMAC(Mn,Fn);fo.update(io);var $o=fo.digest();return fo.clean(),$o}hmac$1.hmac=hmac;hmac$1.equal=constant_time_1.equal;Object.defineProperty(hkdf,"__esModule",{value:!0});var hmac_1=hmac$1,wipe_1$1=wipe$1,HKDF=function(){function Mn(Fn,io,fo,$o){fo===void 0&&(fo=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=Fn,this._info=$o;var mo=hmac_1.hmac(this._hash,fo,io);this._hmac=new hmac_1.HMAC(Fn,mo),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return Mn.prototype._fillBuffer=function(){this._counter[0]++;var Fn=this._counter[0];if(Fn===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),Fn>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},Mn.prototype.expand=function(Fn){for(var io=new Uint8Array(Fn),fo=0;fo<io.length;fo++)this._bufpos===this._buffer.length&&this._fillBuffer(),io[fo]=this._buffer[this._bufpos++];return io},Mn.prototype.clean=function(){this._hmac.clean(),wipe_1$1.wipe(this._buffer),wipe_1$1.wipe(this._counter),this._bufpos=0},Mn}(),HKDF_1=hkdf.HKDF=HKDF,random$1={},system={},browser$5={};Object.defineProperty(browser$5,"__esModule",{value:!0});browser$5.BrowserRandomSource=void 0;const QUOTA=65536;class BrowserRandomSource{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const Fn=typeof self<"u"?self.crypto||self.msCrypto:null;Fn&&Fn.getRandomValues!==void 0&&(this._crypto=Fn,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(Fn){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const io=new Uint8Array(Fn);for(let fo=0;fo<io.length;fo+=QUOTA)this._crypto.getRandomValues(io.subarray(fo,fo+Math.min(io.length-fo,QUOTA)));return io}}browser$5.BrowserRandomSource=BrowserRandomSource;function commonjsRequire(Mn){throw new Error('Could not dynamically require "'+Mn+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var node$7={};Object.defineProperty(node$7,"__esModule",{value:!0});node$7.NodeRandomSource=void 0;const wipe_1=wipe$1;class NodeRandomSource{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof commonjsRequire<"u"){const Fn=requireCryptoBrowserify();Fn&&Fn.randomBytes&&(this._crypto=Fn,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(Fn){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let io=this._crypto.randomBytes(Fn);if(io.length!==Fn)throw new Error("NodeRandomSource: got fewer bytes than requested");const fo=new Uint8Array(Fn);for(let $o=0;$o<fo.length;$o++)fo[$o]=io[$o];return(0,wipe_1.wipe)(io),fo}}node$7.NodeRandomSource=NodeRandomSource;Object.defineProperty(system,"__esModule",{value:!0});system.SystemRandomSource=void 0;const browser_1=browser$5,node_1=node$7;class SystemRandomSource{constructor(){if(this.isAvailable=!1,this.name="",this._source=new browser_1.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new node_1.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(Fn){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(Fn)}}system.SystemRandomSource=SystemRandomSource;(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.randomStringForEntropy=Mn.randomString=Mn.randomUint32=Mn.randomBytes=Mn.defaultRandomSource=void 0;const Fn=system,io=binary,fo=wipe$1;Mn.defaultRandomSource=new Fn.SystemRandomSource;function $o(Ho,zo=Mn.defaultRandomSource){return zo.randomBytes(Ho)}Mn.randomBytes=$o;function mo(Ho=Mn.defaultRandomSource){const zo=$o(4,Ho),Go=(0,io.readUint32LE)(zo);return(0,fo.wipe)(zo),Go}Mn.randomUint32=mo;const Ao="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function jo(Ho,zo=Ao,Go=Mn.defaultRandomSource){if(zo.length<2)throw new Error("randomString charset is too short");if(zo.length>256)throw new Error("randomString charset is too long");let Vo="";const Yo=zo.length,Xo=256-256%Yo;for(;Ho>0;){const is=$o(Math.ceil(Ho*256/Xo),Go);for(let yl=0;yl<is.length&&Ho>0;yl++){const us=is[yl];us<Xo&&(Vo+=zo.charAt(us%Yo),Ho--)}(0,fo.wipe)(is)}return Vo}Mn.randomString=jo;function Lo(Ho,zo=Ao,Go=Mn.defaultRandomSource){const Vo=Math.ceil(Ho/(Math.log(zo.length)/Math.LN2));return jo(Vo,zo,Go)}Mn.randomStringForEntropy=Lo})(random$1);var sha256$3={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0});var Fn=binary,io=wipe$1;Mn.DIGEST_LENGTH=32,Mn.BLOCK_SIZE=64;var fo=function(){function jo(){this.digestLength=Mn.DIGEST_LENGTH,this.blockSize=Mn.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return jo.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},jo.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},jo.prototype.clean=function(){io.wipe(this._buffer),io.wipe(this._temp),this.reset()},jo.prototype.update=function(Lo,Ho){if(Ho===void 0&&(Ho=Lo.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var zo=0;if(this._bytesHashed+=Ho,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&Ho>0;)this._buffer[this._bufferLength++]=Lo[zo++],Ho--;this._bufferLength===this.blockSize&&(mo(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(Ho>=this.blockSize&&(zo=mo(this._temp,this._state,Lo,zo,Ho),Ho%=this.blockSize);Ho>0;)this._buffer[this._bufferLength++]=Lo[zo++],Ho--;return this},jo.prototype.finish=function(Lo){if(!this._finished){var Ho=this._bytesHashed,zo=this._bufferLength,Go=Ho/536870912|0,Vo=Ho<<3,Yo=Ho%64<56?64:128;this._buffer[zo]=128;for(var Xo=zo+1;Xo<Yo-8;Xo++)this._buffer[Xo]=0;Fn.writeUint32BE(Go,this._buffer,Yo-8),Fn.writeUint32BE(Vo,this._buffer,Yo-4),mo(this._temp,this._state,this._buffer,0,Yo),this._finished=!0}for(var Xo=0;Xo<this.digestLength/4;Xo++)Fn.writeUint32BE(this._state[Xo],Lo,Xo*4);return this},jo.prototype.digest=function(){var Lo=new Uint8Array(this.digestLength);return this.finish(Lo),Lo},jo.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},jo.prototype.restoreState=function(Lo){return this._state.set(Lo.state),this._bufferLength=Lo.bufferLength,Lo.buffer&&this._buffer.set(Lo.buffer),this._bytesHashed=Lo.bytesHashed,this._finished=!1,this},jo.prototype.cleanSavedState=function(Lo){io.wipe(Lo.state),Lo.buffer&&io.wipe(Lo.buffer),Lo.bufferLength=0,Lo.bytesHashed=0},jo}();Mn.SHA256=fo;var $o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function mo(jo,Lo,Ho,zo,Go){for(;Go>=64;){for(var Vo=Lo[0],Yo=Lo[1],Xo=Lo[2],is=Lo[3],yl=Lo[4],us=Lo[5],hs=Lo[6],_l=Lo[7],xl=0;xl<16;xl++){var Il=zo+xl*4;jo[xl]=Fn.readUint32BE(Ho,Il)}for(var xl=16;xl<64;xl++){var Ol=jo[xl-2],Tl=(Ol>>>17|Ol<<15)^(Ol>>>19|Ol<<13)^Ol>>>10;Ol=jo[xl-15];var Cl=(Ol>>>7|Ol<<25)^(Ol>>>18|Ol<<14)^Ol>>>3;jo[xl]=(Tl+jo[xl-7]|0)+(Cl+jo[xl-16]|0)}for(var xl=0;xl<64;xl++){var Tl=(((yl>>>6|yl<<26)^(yl>>>11|yl<<21)^(yl>>>25|yl<<7))+(yl&us^~yl&hs)|0)+(_l+($o[xl]+jo[xl]|0)|0)|0,Cl=((Vo>>>2|Vo<<30)^(Vo>>>13|Vo<<19)^(Vo>>>22|Vo<<10))+(Vo&Yo^Vo&Xo^Yo&Xo)|0;_l=hs,hs=us,us=yl,yl=is+Tl|0,is=Xo,Xo=Yo,Yo=Vo,Vo=Tl+Cl|0}Lo[0]+=Vo,Lo[1]+=Yo,Lo[2]+=Xo,Lo[3]+=is,Lo[4]+=yl,Lo[5]+=us,Lo[6]+=hs,Lo[7]+=_l,zo+=64,Go-=64}return zo}function Ao(jo){var Lo=new fo;Lo.update(jo);var Ho=Lo.digest();return Lo.clean(),Ho}Mn.hash=Ao})(sha256$3);var x25519={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.sharedKey=Mn.generateKeyPair=Mn.generateKeyPairFromSeed=Mn.scalarMultBase=Mn.scalarMult=Mn.SHARED_KEY_LENGTH=Mn.SECRET_KEY_LENGTH=Mn.PUBLIC_KEY_LENGTH=void 0;const Fn=random$1,io=wipe$1;Mn.PUBLIC_KEY_LENGTH=32,Mn.SECRET_KEY_LENGTH=32,Mn.SHARED_KEY_LENGTH=32;function fo(xl){const Il=new Float64Array(16);if(xl)for(let Ol=0;Ol<xl.length;Ol++)Il[Ol]=xl[Ol];return Il}const $o=new Uint8Array(32);$o[0]=9;const mo=fo([56129,1]);function Ao(xl){let Il=1;for(let Ol=0;Ol<16;Ol++){let Tl=xl[Ol]+Il+65535;Il=Math.floor(Tl/65536),xl[Ol]=Tl-Il*65536}xl[0]+=Il-1+37*(Il-1)}function jo(xl,Il,Ol){const Tl=~(Ol-1);for(let Cl=0;Cl<16;Cl++){const Nl=Tl&(xl[Cl]^Il[Cl]);xl[Cl]^=Nl,Il[Cl]^=Nl}}function Lo(xl,Il){const Ol=fo(),Tl=fo();for(let Cl=0;Cl<16;Cl++)Tl[Cl]=Il[Cl];Ao(Tl),Ao(Tl),Ao(Tl);for(let Cl=0;Cl<2;Cl++){Ol[0]=Tl[0]-65517;for(let Wl=1;Wl<15;Wl++)Ol[Wl]=Tl[Wl]-65535-(Ol[Wl-1]>>16&1),Ol[Wl-1]&=65535;Ol[15]=Tl[15]-32767-(Ol[14]>>16&1);const Nl=Ol[15]>>16&1;Ol[14]&=65535,jo(Tl,Ol,1-Nl)}for(let Cl=0;Cl<16;Cl++)xl[2*Cl]=Tl[Cl]&255,xl[2*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Cl=Math.floor(Tl/65536),Jo=Tl-Cl*65536,Tl=rs+Cl+65535,Cl=Math.floor(Tl/65536),rs=Tl-Cl*65536,Tl=ps+Cl+65535,Cl=Math.floor(Tl/65536),ps=Tl-Cl*65536,Tl=_c+Cl+65535,Cl=Math.floor(Tl/65536),_c=Tl-Cl*65536,Tl=$l+Cl+65535,Cl=Math.floor(Tl/65536),$l=Tl-Cl*65536,Tl=El+Cl+65535,Cl=Math.floor(Tl/65536),El=Tl-Cl*65536,Tl=ds+Cl+65535,Cl=Math.floor(Tl/65536),ds=Tl-Cl*65536,Tl=os+Cl+65535,Cl=Math.floor(Tl/65536),os=Tl-Cl*65536,Tl=Al+Cl+65535,Cl=Math.floor(Tl/65536),Al=Tl-Cl*65536,Tl=Ul+Cl+65535,Cl=Math.floor(Tl/65536),Ul=Tl-Cl*65536,Tl=Zl+Cl+65535,Cl=Math.floor(Tl/65536),Zl=Tl-Cl*65536,Nl+=Cl-1+37*(Cl-1),Cl=1,Tl=Nl+Cl+65535,Cl=Math.floor(Tl/65536),Nl=Tl-Cl*65536,Tl=Wl+Cl+65535,Cl=Math.floor(Tl/65536),Wl=Tl-Cl*65536,Tl=Dl+Cl+65535,Cl=Math.floor(Tl/65536),Dl=Tl-Cl*65536,Tl=Rl+Cl+65535,Cl=Math.floor(Tl/65536),Rl=Tl-Cl*65536,Tl=Qo+Cl+65535,Cl=Math.floor(Tl/65536),Qo=Tl-Cl*65536,Tl=Jo+Cl+65535,Cl=Math.floor(Tl/65536),Jo=Tl-Cl*65536,Tl=rs+Cl+65535,Cl=Math.floor(Tl/65536),rs=Tl-Cl*65536,Tl=ps+Cl+65535,Cl=Math.floor(Tl/65536),ps=Tl-Cl*65536,Tl=_c+Cl+65535,Cl=Math.floor(Tl/65536),_c=Tl-Cl*65536,Tl=$l+Cl+65535,Cl=Math.floor(Tl/65536),$l=Tl-Cl*65536,Tl=El+Cl+65535,Cl=Math.floor(Tl/65536),El=Tl-Cl*65536,Tl=ds+Cl+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l,mo),zo(Cl,Cl,Dl),Vo(Wl,Wl,Cl),Vo(Cl,Dl,Qo),Vo(Dl,Nl,Tl),Yo(Nl,Rl),jo(Cl,Nl,$l),jo(Wl,Dl,$l)}for(let _c=0;_c<16;_c++)Tl[_c+16]=Cl[_c],Tl[_c+32]=Wl[_c],Tl[_c+48]=Nl[_c],Tl[_c+64]=Dl[_c];const Jo=Tl.subarray(32),rs=Tl.subarray(16);Xo(Jo,Jo),Vo(rs,rs,Jo);const ps=new Uint8Array(32);return Lo(ps,rs),ps}Mn.scalarMult=is;function yl(xl){return is(xl,$o)}Mn.scalarMultBase=yl;function us(xl){if(xl.length!==Mn.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Mn.SECRET_KEY_LENGTH} bytes`);const Il=new Uint8Array(xl);return{publicKey:yl(Il),secretKey:Il}}Mn.generateKeyPairFromSeed=us;function hs(xl){const Il=(0,Fn.randomBytes)(32,xl),Ol=us(Il);return(0,io.wipe)(Il),Ol}Mn.generateKeyPair=hs;function _l(xl,Il,Ol=!1){if(xl.length!==Mn.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(Il.length!==Mn.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const Tl=is(xl,Il);if(Ol){let Cl=0;for(let Nl=0;Nl<Tl.length;Nl++)Cl|=Tl[Nl];if(Cl===0)throw new Error("X25519: invalid shared key")}return Tl}Mn.sharedKey=_l})(x25519);function allocUnsafe(Mn=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(Mn):new Uint8Array(Mn)}function concat(Mn,Fn){Fn||(Fn=Mn.reduce(($o,mo)=>$o+mo.length,0));const io=allocUnsafe(Fn);let fo=0;for(const $o of Mn)io.set($o,fo),fo+=$o.length;return io}function base$3(Mn,Fn){if(Mn.length>=255)throw new TypeError("Alphabet too long");for(var io=new Uint8Array(256),fo=0;fo<io.length;fo++)io[fo]=255;for(var $o=0;$o<Mn.length;$o++){var mo=Mn.charAt($o),Ao=mo.charCodeAt(0);if(io[Ao]!==255)throw new TypeError(mo+" is ambiguous");io[Ao]=$o}var jo=Mn.length,Lo=Mn.charAt(0),Ho=Math.log(jo)/Math.log(256),zo=Math.log(256)/Math.log(jo);function Go(Xo){if(Xo instanceof Uint8Array||(ArrayBuffer.isView(Xo)?Xo=new Uint8Array(Xo.buffer,Xo.byteOffset,Xo.byteLength):Array.isArray(Xo)&&(Xo=Uint8Array.from(Xo))),!(Xo instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(Xo.length===0)return"";for(var is=0,yl=0,us=0,hs=Xo.length;us!==hs&&Xo[us]===0;)us++,is++;for(var _l=(hs-us)*zo+1>>>0,xl=new Uint8Array(_l);us!==hs;){for(var Il=Xo[us],Ol=0,Tl=_l-1;(Il!==0||Ol<yl)&&Tl!==-1;Tl--,Ol++)Il+=256*xl[Tl]>>>0,xl[Tl]=Il%jo>>>0,Il=Il/jo>>>0;if(Il!==0)throw new Error("Non-zero carry");yl=Ol,us++}for(var Cl=_l-yl;Cl!==_l&&xl[Cl]===0;)Cl++;for(var Nl=Lo.repeat(is);Cl<_l;++Cl)Nl+=Mn.charAt(xl[Cl]);return Nl}function Vo(Xo){if(typeof Xo!="string")throw new TypeError("Expected String");if(Xo.length===0)return new Uint8Array;var is=0;if(Xo[is]!==" "){for(var yl=0,us=0;Xo[is]===Lo;)yl++,is++;for(var hs=(Xo.length-is)*Ho+1>>>0,_l=new Uint8Array(hs);Xo[is];){var xl=io[Xo.charCodeAt(is)];if(xl===255)return;for(var Il=0,Ol=hs-1;(xl!==0||Il<us)&&Ol!==-1;Ol--,Il++)xl+=jo*_l[Ol]>>>0,_l[Ol]=xl%256>>>0,xl=xl/256>>>0;if(xl!==0)throw new Error("Non-zero carry");us=Il,is++}if(Xo[is]!==" "){for(var Tl=hs-us;Tl!==hs&&_l[Tl]===0;)Tl++;for(var Cl=new Uint8Array(yl+(hs-Tl)),Nl=yl;Tl!==hs;)Cl[Nl++]=_l[Tl++];return Cl}}}function Yo(Xo){var is=Vo(Xo);if(is)return is;throw new Error(`Non-${Fn} character`)}return{encode:Go,decodeUnsafe:Vo,decode:Yo}}var src$3=base$3,_brrp__multiformats_scope_baseX=src$3;const coerce$2=Mn=>{if(Mn instanceof Uint8Array&&Mn.constructor.name==="Uint8Array")return Mn;if(Mn instanceof ArrayBuffer)return new Uint8Array(Mn);if(ArrayBuffer.isView(Mn))return new Uint8Array(Mn.buffer,Mn.byteOffset,Mn.byteLength);throw new Error("Unknown type, must be binary type")},fromString$1=Mn=>new TextEncoder().encode(Mn),toString$c=Mn=>new TextDecoder().decode(Mn);class Encoder{constructor(Fn,io,fo){this.name=Fn,this.prefix=io,this.baseEncode=fo}encode(Fn){if(Fn instanceof Uint8Array)return`${this.prefix}${this.baseEncode(Fn)}`;throw Error("Unknown type, must be binary type")}}class Decoder{constructor(Fn,io,fo){if(this.name=Fn,this.prefix=io,io.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=io.codePointAt(0),this.baseDecode=fo}decode(Fn){if(typeof Fn=="string"){if(Fn.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(Fn)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(Fn.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(Fn){return or$3(this,Fn)}}class ComposedDecoder{constructor(Fn){this.decoders=Fn}or(Fn){return or$3(this,Fn)}decode(Fn){const io=Fn[0],fo=this.decoders[io];if(fo)return fo.decode(Fn);throw RangeError(`Unable to decode multibase string ${JSON.stringify(Fn)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const or$3=(Mn,Fn)=>new ComposedDecoder({...Mn.decoders||{[Mn.prefix]:Mn},...Fn.decoders||{[Fn.prefix]:Fn}});class Codec{constructor(Fn,io,fo,$o){this.name=Fn,this.prefix=io,this.baseEncode=fo,this.baseDecode=$o,this.encoder=new Encoder(Fn,io,fo),this.decoder=new Decoder(Fn,io,$o)}encode(Fn){return this.encoder.encode(Fn)}decode(Fn){return this.decoder.decode(Fn)}}const from=({name:Mn,prefix:Fn,encode:io,decode:fo})=>new Codec(Mn,Fn,io,fo),baseX=({prefix:Mn,name:Fn,alphabet:io})=>{const{encode:fo,decode:$o}=_brrp__multiformats_scope_baseX(io,Fn);return from({prefix:Mn,name:Fn,encode:fo,decode:mo=>coerce$2($o(mo))})},decode$2=(Mn,Fn,io,fo)=>{const $o={};for(let zo=0;zo<Fn.length;++zo)$o[Fn[zo]]=zo;let mo=Mn.length;for(;Mn[mo-1]==="=";)--mo;const Ao=new Uint8Array(mo*io/8|0);let jo=0,Lo=0,Ho=0;for(let zo=0;zo<mo;++zo){const Go=$o[Mn[zo]];if(Go===void 0)throw new SyntaxError(`Non-${fo} character`);Lo=Lo<<io|Go,jo+=io,jo>=8&&(jo-=8,Ao[Ho++]=255&Lo>>jo)}if(jo>=io||255&Lo<<8-jo)throw new SyntaxError("Unexpected end of data");return Ao},encode$3=(Mn,Fn,io)=>{const fo=Fn[Fn.length-1]==="=",$o=(1<<io)-1;let mo="",Ao=0,jo=0;for(let Lo=0;Lo<Mn.length;++Lo)for(jo=jo<<8|Mn[Lo],Ao+=8;Ao>io;)Ao-=io,mo+=Fn[$o&jo>>Ao];if(Ao&&(mo+=Fn[$o&jo<<io-Ao]),fo)for(;mo.length*io&7;)mo+="=";return mo},rfc4648=({name:Mn,prefix:Fn,bitsPerChar:io,alphabet:fo})=>from({prefix:Fn,name:Mn,encode($o){return encode$3($o,fo,io)},decode($o){return decode$2($o,fo,io,Mn)}}),identity$2=from({prefix:"\0",name:"identity",encode:Mn=>toString$c(Mn),decode:Mn=>fromString$1(Mn)}),identityBase=Object.freeze(Object.defineProperty({__proto__:null,identity:identity$2},Symbol.toStringTag,{value:"Module"})),base2=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),base2$1=Object.freeze(Object.defineProperty({__proto__:null,base2},Symbol.toStringTag,{value:"Module"})),base8=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),base8$1=Object.freeze(Object.defineProperty({__proto__:null,base8},Symbol.toStringTag,{value:"Module"})),base10=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),base10$1=Object.freeze(Object.defineProperty({__proto__:null,base10},Symbol.toStringTag,{value:"Module"})),base16=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),base16$1=Object.freeze(Object.defineProperty({__proto__:null,base16,base16upper},Symbol.toStringTag,{value:"Module"})),base32=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),base32upper=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),base32pad=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),base32padupper=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),base32hex=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),base32hexupper=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),base32hexpad=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),base32$1=Object.freeze(Object.defineProperty({__proto__:null,base32,base32hex,base32hexpad,base32hexpadupper,base32hexupper,base32pad,base32padupper,base32upper,base32z},Symbol.toStringTag,{value:"Module"})),base36=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),base36$1=Object.freeze(Object.defineProperty({__proto__:null,base36,base36upper},Symbol.toStringTag,{value:"Module"})),base58btc=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),base58=Object.freeze(Object.defineProperty({__proto__:null,base58btc,base58flickr},Symbol.toStringTag,{value:"Module"})),base64=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),base64pad=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),base64$1=Object.freeze(Object.defineProperty({__proto__:null,base64,base64pad,base64url,base64urlpad},Symbol.toStringTag,{value:"Module"})),alphabet=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),alphabetBytesToChars=alphabet.reduce((Mn,Fn,io)=>(Mn[io]=Fn,Mn),[]),alphabetCharsToBytes=alphabet.reduce((Mn,Fn,io)=>(Mn[Fn.codePointAt(0)]=io,Mn),[]);function encode$2(Mn){return Mn.reduce((Fn,io)=>(Fn+=alphabetBytesToChars[io],Fn),"")}function decode$1(Mn){const Fn=[];for(const io of Mn){const fo=alphabetCharsToBytes[io.codePointAt(0)];if(fo===void 0)throw new Error(`Non-base256emoji character: ${io}`);Fn.push(fo)}return new Uint8Array(Fn)}const base256emoji=from({prefix:"🚀",name:"base256emoji",encode:encode$2,decode:decode$1}),base256emoji$1=Object.freeze(Object.defineProperty({__proto__:null,base256emoji},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const bases={...identityBase,...base2$1,...base8$1,...base10$1,...base16$1,...base32$1,...base36$1,...base58,...base64$1,...base256emoji$1};function createCodec(Mn,Fn,io,fo){return{name:Mn,prefix:Fn,encoder:{name:Mn,prefix:Fn,encode:io},decoder:{decode:fo}}}const string=createCodec("utf8","u",Mn=>"u"+new TextDecoder("utf8").decode(Mn),Mn=>new TextEncoder().encode(Mn.substring(1))),ascii=createCodec("ascii","a",Mn=>{let Fn="a";for(let io=0;io<Mn.length;io++)Fn+=String.fromCharCode(Mn[io]);return Fn},Mn=>{Mn=Mn.substring(1);const Fn=allocUnsafe(Mn.length);for(let io=0;io<Mn.length;io++)Fn[io]=Mn.charCodeAt(io);return Fn}),BASES={utf8:string,"utf-8":string,hex:bases.base16,latin1:ascii,ascii,binary:ascii,...bases};function fromString(Mn,Fn="utf8"){const io=BASES[Fn];if(!io)throw new Error(`Unsupported encoding "${Fn}"`);return(Fn==="utf8"||Fn==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(Mn,"utf8"):io.decoder.decode(`${io.prefix}${Mn}`)}function toString$b(Mn,Fn="utf8"){const io=BASES[Fn];if(!io)throw new Error(`Unsupported encoding "${Fn}"`);return(Fn==="utf8"||Fn==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(Mn.buffer,Mn.byteOffset,Mn.byteLength).toString("utf8"):io.encoder.encode(Mn).substring(1)}var ellipticExports=requireElliptic(),ed25519$1={},sha512={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0});var Fn=binary,io=wipe$1;Mn.DIGEST_LENGTH=64,Mn.BLOCK_SIZE=128;var fo=function(){function jo(){this.digestLength=Mn.DIGEST_LENGTH,this.blockSize=Mn.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return jo.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},jo.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},jo.prototype.clean=function(){io.wipe(this._buffer),io.wipe(this._tempHi),io.wipe(this._tempLo),this.reset()},jo.prototype.update=function(Lo,Ho){if(Ho===void 0&&(Ho=Lo.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var zo=0;if(this._bytesHashed+=Ho,this._bufferLength>0){for(;this._bufferLength<Mn.BLOCK_SIZE&&Ho>0;)this._buffer[this._bufferLength++]=Lo[zo++],Ho--;this._bufferLength===this.blockSize&&(mo(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(Ho>=this.blockSize&&(zo=mo(this._tempHi,this._tempLo,this._stateHi,this._stateLo,Lo,zo,Ho),Ho%=this.blockSize);Ho>0;)this._buffer[this._bufferLength++]=Lo[zo++],Ho--;return this},jo.prototype.finish=function(Lo){if(!this._finished){var Ho=this._bytesHashed,zo=this._bufferLength,Go=Ho/536870912|0,Vo=Ho<<3,Yo=Ho%128<112?128:256;this._buffer[zo]=128;for(var Xo=zo+1;Xo<Yo-8;Xo++)this._buffer[Xo]=0;Fn.writeUint32BE(Go,this._buffer,Yo-8),Fn.writeUint32BE(Vo,this._buffer,Yo-4),mo(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,Yo),this._finished=!0}for(var Xo=0;Xo<this.digestLength/8;Xo++)Fn.writeUint32BE(this._stateHi[Xo],Lo,Xo*8),Fn.writeUint32BE(this._stateLo[Xo],Lo,Xo*8+4);return this},jo.prototype.digest=function(){var Lo=new Uint8Array(this.digestLength);return this.finish(Lo),Lo},jo.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},jo.prototype.restoreState=function(Lo){return this._stateHi.set(Lo.stateHi),this._stateLo.set(Lo.stateLo),this._bufferLength=Lo.bufferLength,Lo.buffer&&this._buffer.set(Lo.buffer),this._bytesHashed=Lo.bytesHashed,this._finished=!1,this},jo.prototype.cleanSavedState=function(Lo){io.wipe(Lo.stateHi),io.wipe(Lo.stateLo),Lo.buffer&&io.wipe(Lo.buffer),Lo.bufferLength=0,Lo.bytesHashed=0},jo}();Mn.SHA512=fo;var $o=new Int32Array([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 mo(jo,Lo,Ho,zo,Go,Vo,Yo){for(var Xo=Ho[0],is=Ho[1],yl=Ho[2],us=Ho[3],hs=Ho[4],_l=Ho[5],xl=Ho[6],Il=Ho[7],Ol=zo[0],Tl=zo[1],Cl=zo[2],Nl=zo[3],Wl=zo[4],Dl=zo[5],Rl=zo[6],Qo=zo[7],Jo,rs,ps,_c,$l,El,ds,os;Yo>=128;){for(var Al=0;Al<16;Al++){var Ul=8*Al+Vo;jo[Al]=Fn.readUint32BE(Go,Ul),Lo[Al]=Fn.readUint32BE(Go,Ul+4)}for(var Al=0;Al<80;Al++){var Zl=Xo,Pl=is,Hl=yl,Ml=us,Fl=hs,Yl=_l,Bl=xl,Kl=Il,Gl=Ol,fu=Tl,bu=Cl,rp=Nl,tp=Wl,op=Dl,vp=Rl,ip=Qo;if(Jo=Il,rs=Qo,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=(hs>>>14|Wl<<18)^(hs>>>18|Wl<<14)^(Wl>>>9|hs<<23),rs=(Wl>>>14|hs<<18)^(Wl>>>18|hs<<14)^(hs>>>9|Wl<<23),$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,Jo=hs&_l^~hs&xl,rs=Wl&Dl^~Wl&Rl,$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,Jo=$o[Al*2],rs=$o[Al*2+1],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,Jo=jo[Al%16],rs=Lo[Al%16],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,ps=ds&65535|os<<16,_c=$l&65535|El<<16,Jo=ps,rs=_c,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=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|ps<<26),$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,jo[Ul]=ds&65535|os<<16,Lo[Ul]=$l&65535|El<<16}Jo=Xo,rs=Ol,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[0],rs=zo[0],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[0]=Xo=ds&65535|os<<16,zo[0]=Ol=$l&65535|El<<16,Jo=is,rs=Tl,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[1],rs=zo[1],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[1]=is=ds&65535|os<<16,zo[1]=Tl=$l&65535|El<<16,Jo=yl,rs=Cl,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[2],rs=zo[2],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[2]=yl=ds&65535|os<<16,zo[2]=Cl=$l&65535|El<<16,Jo=us,rs=Nl,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[3],rs=zo[3],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[3]=us=ds&65535|os<<16,zo[3]=Nl=$l&65535|El<<16,Jo=hs,rs=Wl,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[4],rs=zo[4],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[4]=hs=ds&65535|os<<16,zo[4]=Wl=$l&65535|El<<16,Jo=_l,rs=Dl,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[5],rs=zo[5],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[5]=_l=ds&65535|os<<16,zo[5]=Dl=$l&65535|El<<16,Jo=xl,rs=Rl,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[6],rs=zo[6],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[6]=xl=ds&65535|os<<16,zo[6]=Rl=$l&65535|El<<16,Jo=Il,rs=Qo,$l=rs&65535,El=rs>>>16,ds=Jo&65535,os=Jo>>>16,Jo=Ho[7],rs=zo[7],$l+=rs&65535,El+=rs>>>16,ds+=Jo&65535,os+=Jo>>>16,El+=$l>>>16,ds+=El>>>16,os+=ds>>>16,Ho[7]=Il=ds&65535|os<<16,zo[7]=Qo=$l&65535|El<<16,Vo+=128,Yo-=128}return Vo}function Ao(jo){var Lo=new fo;Lo.update(jo);var Ho=Lo.digest();return Lo.clean(),Ho}Mn.hash=Ao})(sha512);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.convertSecretKeyToX25519=Mn.convertPublicKeyToX25519=Mn.verify=Mn.sign=Mn.extractPublicKeyFromSecretKey=Mn.generateKeyPair=Mn.generateKeyPairFromSeed=Mn.SEED_LENGTH=Mn.SECRET_KEY_LENGTH=Mn.PUBLIC_KEY_LENGTH=Mn.SIGNATURE_LENGTH=void 0;const Fn=random$1,io=sha512,fo=wipe$1;Mn.SIGNATURE_LENGTH=64,Mn.PUBLIC_KEY_LENGTH=32,Mn.SECRET_KEY_LENGTH=64,Mn.SEED_LENGTH=32;function $o(Ml){const Fl=new Float64Array(16);if(Ml)for(let Yl=0;Yl<Ml.length;Yl++)Fl[Yl]=Ml[Yl];return Fl}const mo=new Uint8Array(32);mo[0]=9;const Ao=$o(),jo=$o([1]),Lo=$o([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),Ho=$o([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),zo=$o([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),Go=$o([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),Vo=$o([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Yo(Ml,Fl){for(let Yl=0;Yl<16;Yl++)Ml[Yl]=Fl[Yl]|0}function Xo(Ml){let Fl=1;for(let Yl=0;Yl<16;Yl++){let Bl=Ml[Yl]+Fl+65535;Fl=Math.floor(Bl/65536),Ml[Yl]=Bl-Fl*65536}Ml[0]+=Fl-1+37*(Fl-1)}function is(Ml,Fl,Yl){const Bl=~(Yl-1);for(let Kl=0;Kl<16;Kl++){const Gl=Bl&(Ml[Kl]^Fl[Kl]);Ml[Kl]^=Gl,Fl[Kl]^=Gl}}function yl(Ml,Fl){const Yl=$o(),Bl=$o();for(let Kl=0;Kl<16;Kl++)Bl[Kl]=Fl[Kl];Xo(Bl),Xo(Bl),Xo(Bl);for(let Kl=0;Kl<2;Kl++){Yl[0]=Bl[0]-65517;for(let fu=1;fu<15;fu++)Yl[fu]=Bl[fu]-65535-(Yl[fu-1]>>16&1),Yl[fu-1]&=65535;Yl[15]=Bl[15]-32767-(Yl[14]>>16&1);const Gl=Yl[15]>>16&1;Yl[14]&=65535,is(Bl,Yl,1-Gl)}for(let Kl=0;Kl<16;Kl++)Ml[2*Kl]=Bl[Kl]&255,Ml[2*Kl+1]=Bl[Kl]>>8}function us(Ml,Fl){let Yl=0;for(let Bl=0;Bl<32;Bl++)Yl|=Ml[Bl]^Fl[Bl];return(1&Yl-1>>>8)-1}function hs(Ml,Fl){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u=Bl-Kl*65536,Bl=bu+Kl+65535,Kl=Math.floor(Bl/65536),bu=Bl-Kl*65536,Bl=rp+Kl+65535,Kl=Math.floor(Bl/65536),rp=Bl-Kl*65536,Bl=tp+Kl+65535,Kl=Math.floor(Bl/65536),tp=Bl-Kl*65536,Bl=op+Kl+65535,Kl=Math.floor(Bl/65536),op=Bl-Kl*65536,Bl=vp+Kl+65535,Kl=Math.floor(Bl/65536),vp=Bl-Kl*65536,Bl=ip+Kl+65535,Kl=Math.floor(Bl/65536),ip=Bl-Kl*65536,Bl=up+Kl+65535,Kl=Math.floor(Bl/65536),up=Bl-Kl*65536,Bl=$p+Kl+65535,Kl=Math.floor(Bl/65536),$p=Bl-Kl*65536,Bl=gp+Kl+65535,Kl=Math.floor(Bl/65536),gp=Bl-Kl*65536,Bl=yp+Kl+65535,Kl=Math.floor(Bl/65536),yp=Bl-Kl*65536,Bl=_p+Kl+65535,Kl=Math.floor(Bl/65536),_p=Bl-Kl*65536,Bl=mp+Kl+65535,Kl=Math.floor(Bl/65536),mp=Bl-Kl*65536,Bl=wp+Kl+65535,Kl=Math.floor(Bl/65536),wp=Bl-Kl*65536,Bl=Sp+Kl+65535,Kl=Math.floor(Bl/65536),Sp=Bl-Kl*65536,Gl+=Kl-1+37*(Kl-1),Kl=1,Bl=Gl+Kl+65535,Kl=Math.floor(Bl/65536),Gl=Bl-Kl*65536,Bl=fu+Kl+65535,Kl=Math.floor(Bl/65536),fu=Bl-Kl*65536,Bl=bu+Kl+65535,Kl=Math.floor(Bl/65536),bu=Bl-Kl*65536,Bl=rp+Kl+65535,Kl=Math.floor(Bl/65536),rp=Bl-Kl*65536,Bl=tp+Kl+65535,Kl=Math.floor(Bl/65536),tp=Bl-Kl*65536,Bl=op+Kl+65535,Kl=Math.floor(Bl/65536),op=Bl-Kl*65536,Bl=vp+Kl+65535,Kl=Math.floor(Bl/65536),vp=Bl-Kl*65536,Bl=ip+Kl+65535,Kl=Math.floor(Bl/65536),ip=Bl-Kl*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Il(Bl,Ml[0],Ml[1]),Il(op,Fl[0],Fl[1]),Tl(Bl,Bl,op),Tl(Kl,Ml[3],Fl[3]),Tl(Kl,Kl,Ho),Tl(Gl,Ml[2],Fl[2]),Il(Gl,Gl,Gl),Ol(fu,Bl,Yl),Ol(bu,Gl,Kl),Il(rp,Gl,Kl),Il(tp,Bl,Yl),Tl(Ml[0],fu,bu),Tl(Ml[1],tp,rp),Tl(Ml[2],rp,bu),Tl(Ml[3],fu,tp)}function Rl(Ml,Fl,Yl){for(let Bl=0;Bl<4;Bl++)is(Ml[Bl],Fl[Bl],Yl)}function Qo(Ml,Fl){const Yl=$o(),Bl=$o(),Kl=$o();Nl(Kl,Fl[2]),Tl(Yl,Fl[0],Kl),Tl(Bl,Fl[1],Kl),yl(Ml,Bl),Ml[31]^=_l(Yl)<<7}function Jo(Ml,Fl,Yl){Yo(Ml[0],Ao),Yo(Ml[1],jo),Yo(Ml[2],jo),Yo(Ml[3],Ao);for(let Bl=255;Bl>=0;--Bl){const Kl=Yl[Bl/8|0]>>(Bl&7)&1;Rl(Ml,Fl,Kl),Dl(Fl,Ml),Dl(Ml,Ml),Rl(Ml,Fl,Kl)}}function rs(Ml,Fl){const Yl=[$o(),$o(),$o(),$o()];Yo(Yl[0],zo),Yo(Yl[1],Go),Yo(Yl[2],jo),Tl(Yl[3],zo,Go),Jo(Ml,Yl,Fl)}function ps(Ml){if(Ml.length!==Mn.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Mn.SEED_LENGTH} bytes`);const Fl=(0,io.hash)(Ml);Fl[0]&=248,Fl[31]&=127,Fl[31]|=64;const Yl=new Uint8Array(32),Bl=[$o(),$o(),$o(),$o()];rs(Bl,Fl),Qo(Yl,Bl);const Kl=new Uint8Array(64);return Kl.set(Ml),Kl.set(Yl,32),{publicKey:Yl,secretKey:Kl}}Mn.generateKeyPairFromSeed=ps;function _c(Ml){const Fl=(0,Fn.randomBytes)(32,Ml),Yl=ps(Fl);return(0,fo.wipe)(Fl),Yl}Mn.generateKeyPair=_c;function $l(Ml){if(Ml.length!==Mn.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Mn.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(Ml.subarray(32))}Mn.extractPublicKeyFromSecretKey=$l;const El=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 ds(Ml,Fl){let Yl,Bl,Kl,Gl;for(Bl=63;Bl>=32;--Bl){for(Yl=0,Kl=Bl-32,Gl=Bl-12;Kl<Gl;++Kl)Fl[Kl]+=Yl-16*Fl[Bl]*El[Kl-(Bl-32)],Yl=Math.floor((Fl[Kl]+128)/256),Fl[Kl]-=Yl*256;Fl[Kl]+=Yl,Fl[Bl]=0}for(Yl=0,Kl=0;Kl<32;Kl++)Fl[Kl]+=Yl-(Fl[31]>>4)*El[Kl],Yl=Fl[Kl]>>8,Fl[Kl]&=255;for(Kl=0;Kl<32;Kl++)Fl[Kl]-=Yl*El[Kl];for(Bl=0;Bl<32;Bl++)Fl[Bl+1]+=Fl[Bl]>>8,Ml[Bl]=Fl[Bl]&255}function os(Ml){const Fl=new Float64Array(64);for(let Yl=0;Yl<64;Yl++)Fl[Yl]=Ml[Yl];for(let Yl=0;Yl<64;Yl++)Ml[Yl]=0;ds(Ml,Fl)}function Al(Ml,Fl){const Yl=new Float64Array(64),Bl=[$o(),$o(),$o(),$o()],Kl=(0,io.hash)(Ml.subarray(0,32));Kl[0]&=248,Kl[31]&=127,Kl[31]|=64;const Gl=new Uint8Array(64);Gl.set(Kl.subarray(32),32);const fu=new io.SHA512;fu.update(Gl.subarray(32)),fu.update(Fl);const bu=fu.digest();fu.clean(),os(bu),rs(Bl,bu),Qo(Gl,Bl),fu.reset(),fu.update(Gl.subarray(0,32)),fu.update(Ml.subarray(32)),fu.update(Fl);const rp=fu.digest();os(rp);for(let tp=0;tp<32;tp++)Yl[tp]=bu[tp];for(let tp=0;tp<32;tp++)for(let op=0;op<32;op++)Yl[tp+op]+=rp[tp]*Kl[op];return ds(Gl.subarray(32),Yl),Gl}Mn.sign=Al;function Ul(Ml,Fl){const Yl=$o(),Bl=$o(),Kl=$o(),Gl=$o(),fu=$o(),bu=$o(),rp=$o();return Yo(Ml[2],jo),xl(Ml[1],Fl),Cl(Kl,Ml[1]),Tl(Gl,Kl,Lo),Ol(Kl,Kl,Ml[2]),Il(Gl,Ml[2],Gl),Cl(fu,Gl),Cl(bu,fu),Tl(rp,bu,fu),Tl(Yl,rp,Kl),Tl(Yl,Yl,Gl),Wl(Yl,Yl),Tl(Yl,Yl,Kl),Tl(Yl,Yl,Gl),Tl(Yl,Yl,Gl),Tl(Ml[0],Yl,Gl),Cl(Bl,Ml[0]),Tl(Bl,Bl,Gl),hs(Bl,Kl)&&Tl(Ml[0],Ml[0],Vo),Cl(Bl,Ml[0]),Tl(Bl,Bl,Gl),hs(Bl,Kl)?-1:(_l(Ml[0])===Fl[31]>>7&&Ol(Ml[0],Ao,Ml[0]),Tl(Ml[3],Ml[0],Ml[1]),0)}function Zl(Ml,Fl,Yl){const Bl=new Uint8Array(32),Kl=[$o(),$o(),$o(),$o()],Gl=[$o(),$o(),$o(),$o()];if(Yl.length!==Mn.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Mn.SIGNATURE_LENGTH} bytes`);if(Ul(Gl,Ml))return!1;const fu=new io.SHA512;fu.update(Yl.subarray(0,32)),fu.update(Ml),fu.update(Fl);const bu=fu.digest();return os(bu),Jo(Kl,Gl,bu),rs(Gl,Yl.subarray(32)),Dl(Kl,Gl),Qo(Bl,Kl),!us(Yl,Bl)}Mn.verify=Zl;function Pl(Ml){let Fl=[$o(),$o(),$o(),$o()];if(Ul(Fl,Ml))throw new Error("Ed25519: invalid public key");let Yl=$o(),Bl=$o(),Kl=Fl[1];Il(Yl,jo,Kl),Ol(Bl,jo,Kl),Nl(Bl,Bl),Tl(Yl,Yl,Bl);let Gl=new Uint8Array(32);return yl(Gl,Yl),Gl}Mn.convertPublicKeyToX25519=Pl;function Hl(Ml){const Fl=(0,io.hash)(Ml.subarray(0,32));Fl[0]&=248,Fl[31]&=127,Fl[31]|=64;const Yl=new Uint8Array(Fl.subarray(0,32));return(0,fo.wipe)(Fl),Yl}Mn.convertSecretKeyToX25519=Hl})(ed25519$1);const JWT_IRIDIUM_ALG="EdDSA",JWT_IRIDIUM_TYP="JWT",JWT_DELIMITER=".",JWT_ENCODING="base64url",JSON_ENCODING="utf8",DATA_ENCODING="utf8",DID_DELIMITER=":",DID_PREFIX="did",DID_METHOD="key",MULTICODEC_ED25519_ENCODING="base58btc",MULTICODEC_ED25519_BASE="z",MULTICODEC_ED25519_HEADER="K36",KEY_PAIR_SEED_LENGTH=32;function decodeJSON(Mn){return safeJsonParse(toString$b(fromString(Mn,JWT_ENCODING),JSON_ENCODING))}function encodeJSON(Mn){return toString$b(fromString(safeJsonStringify(Mn),JSON_ENCODING),JWT_ENCODING)}function encodeIss(Mn){const Fn=fromString(MULTICODEC_ED25519_HEADER,MULTICODEC_ED25519_ENCODING),io=MULTICODEC_ED25519_BASE+toString$b(concat([Fn,Mn]),MULTICODEC_ED25519_ENCODING);return[DID_PREFIX,DID_METHOD,io].join(DID_DELIMITER)}function encodeSig(Mn){return toString$b(Mn,JWT_ENCODING)}function decodeSig(Mn){return fromString(Mn,JWT_ENCODING)}function encodeData(Mn){return fromString([encodeJSON(Mn.header),encodeJSON(Mn.payload)].join(JWT_DELIMITER),DATA_ENCODING)}function encodeJWT(Mn){return[encodeJSON(Mn.header),encodeJSON(Mn.payload),encodeSig(Mn.signature)].join(JWT_DELIMITER)}function decodeJWT(Mn){const Fn=Mn.split(JWT_DELIMITER),io=decodeJSON(Fn[0]),fo=decodeJSON(Fn[1]),$o=decodeSig(Fn[2]),mo=fromString(Fn.slice(0,2).join(JWT_DELIMITER),DATA_ENCODING);return{header:io,payload:fo,signature:$o,data:mo}}function generateKeyPair(Mn=random$1.randomBytes(KEY_PAIR_SEED_LENGTH)){return ed25519$1.generateKeyPairFromSeed(Mn)}async function signJWT(Mn,Fn,io,fo,$o=cjs$4.fromMiliseconds(Date.now())){const mo={alg:JWT_IRIDIUM_ALG,typ:JWT_IRIDIUM_TYP},Ao=encodeIss(fo.publicKey),jo=$o+io,Lo={iss:Ao,sub:Mn,aud:Fn,iat:$o,exp:jo},Ho=encodeData({header:mo,payload:Lo}),zo=ed25519$1.sign(fo.secretKey,Ho);return encodeJWT({header:mo,payload:Lo,signature:zo})}const C$4={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}};var define_process_env_default$3={};const Rr$2=":";function An$1(Mn){const[Fn,io]=Mn.split(Rr$2);return{namespace:Fn,reference:io}}function Wo(Mn,Fn=[]){const io=[];return Object.keys(Mn).forEach(fo=>{if(Fn.length&&!Fn.includes(fo))return;const $o=Mn[fo];io.push(...$o.accounts)}),io}function Or$1(Mn,Fn){return Mn.includes(":")?[Mn]:Fn.chains||[]}var Zo=Object.defineProperty,En$1=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,es$1=Object.prototype.propertyIsEnumerable,Sn$1=(Mn,Fn,io)=>Fn in Mn?Zo(Mn,Fn,{enumerable:!0,configurable:!0,writable:!0,value:io}):Mn[Fn]=io,In$1=(Mn,Fn)=>{for(var io in Fn||(Fn={}))ts.call(Fn,io)&&Sn$1(Mn,io,Fn[io]);if(En$1)for(var io of En$1(Fn))es$1.call(Fn,io)&&Sn$1(Mn,io,Fn[io]);return Mn};const Nn="ReactNative",qt$1={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},Bn="js";function bi$2(){return typeof process$1$7<"u"&&typeof process$1$7.versions<"u"&&typeof process$1$7.versions.node<"u"}function rr$1(){return!getDocument_1()&&!!getNavigator_1()&&navigator.product===Nn}function gr$1(){return!bi$2()&&!!getNavigator_1()&&!!getDocument_1()}function We$1(){return rr$1()?qt$1.reactNative:bi$2()?qt$1.node:gr$1()?qt$1.browser:qt$1.unknown}function ns(){var Mn;try{return rr$1()&&typeof global$o<"u"&&typeof(global$o==null?void 0:global$o.Application)<"u"?(Mn=global$o.Application)==null?void 0:Mn.applicationId:void 0}catch{return}}function Cn$1(Mn,Fn){let io=queryString.parse(Mn);return io=In$1(In$1({},io),Fn),Mn=queryString.stringify(io),Mn}function fs$1(){return getWindowMetadata_1()||{name:"",description:"",url:"",icons:[""]}}function Rn$1(){if(We$1()===qt$1.reactNative&&typeof global$o<"u"&&typeof(global$o==null?void 0:global$o.Platform)<"u"){const{OS:io,Version:fo}=global$o.Platform;return[io,fo].join("-")}const Mn=detect();if(Mn===null)return"unknown";const Fn=Mn.os?Mn.os.replace(" ","").toLowerCase():"unknown";return Mn.type==="browser"?[Fn,Mn.name,Mn.version].join("-"):[Fn,Mn.version].join("-")}function On$1(){var Mn;const Fn=We$1();return Fn===qt$1.browser?[Fn,((Mn=getLocation_1())==null?void 0:Mn.host)||"unknown"].join(":"):Fn}function Pn$1(Mn,Fn,io){const fo=Rn$1(),$o=On$1();return[[Mn,Fn].join("-"),[Bn,io].join("-"),fo,$o].join("/")}function ss({protocol:Mn,version:Fn,relayUrl:io,sdkVersion:fo,auth:$o,projectId:mo,useOnCloseEvent:Ao,bundleId:jo}){const Lo=io.split("?"),Ho=Pn$1(Mn,Fn,fo),zo={auth:$o,ua:Ho,projectId:mo,useOnCloseEvent:Ao||void 0,origin:jo||void 0},Go=Cn$1(Lo[1]||"",zo);return Lo[0]+"?"+Go}function _e$2(Mn,Fn){return Mn.filter(io=>Fn.includes(io)).length===Mn.length}function cs(Mn){return Object.fromEntries(Mn.entries())}function ls(Mn){return new Map(Object.entries(Mn))}function gs(Mn=cjs$4.FIVE_MINUTES,Fn){const io=cjs$4.toMiliseconds(Mn||cjs$4.FIVE_MINUTES);let fo,$o,mo;return{resolve:Ao=>{mo&&fo&&(clearTimeout(mo),fo(Ao))},reject:Ao=>{mo&&$o&&(clearTimeout(mo),$o(Ao))},done:()=>new Promise((Ao,jo)=>{mo=setTimeout(()=>{jo(new Error(Fn))},io),fo=Ao,$o=jo})}}function ms$1(Mn,Fn,io){return new Promise(async(fo,$o)=>{const mo=setTimeout(()=>$o(new Error(io)),Fn);try{const Ao=await Mn;fo(Ao)}catch(Ao){$o(Ao)}clearTimeout(mo)})}function yi$2(Mn,Fn){if(typeof Fn=="string"&&Fn.startsWith(`${Mn}:`))return Fn;if(Mn.toLowerCase()==="topic"){if(typeof Fn!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${Fn}`}else if(Mn.toLowerCase()==="id"){if(typeof Fn!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${Fn}`}throw new Error(`Unknown expirer target type: ${Mn}`)}function As$1(Mn){return yi$2("topic",Mn)}function bs$1(Mn){return yi$2("id",Mn)}function ys$1(Mn){const[Fn,io]=Mn.split(":"),fo={id:void 0,topic:void 0};if(Fn==="topic"&&typeof io=="string")fo.topic=io;else if(Fn==="id"&&Number.isInteger(Number(io)))fo.id=Number(io);else throw new Error(`Invalid target, expected id:number or topic:string, got ${Fn}:${io}`);return fo}function ws$1(Mn,Fn){return cjs$4.fromMiliseconds(Date.now()+cjs$4.toMiliseconds(Mn))}function xs$1(Mn){return Date.now()>=cjs$4.toMiliseconds(Mn)}function Ms$1(Mn,Fn){return`${Mn}${Fn?`:${Fn}`:""}`}function me$2(Mn=[],Fn=[]){return[...new Set([...Mn,...Fn])]}async function Es$2({id:Mn,topic:Fn,wcDeepLink:io}){var fo;try{if(!io)return;const $o=typeof io=="string"?JSON.parse(io):io,mo=$o==null?void 0:$o.href;if(typeof mo!="string")return;const Ao=Un$1(mo,Mn,Fn),jo=We$1();if(jo===qt$1.browser){if(!((fo=getDocument_1())!=null&&fo.hasFocus())){console.warn("Document does not have focus, skipping deeplink.");return}Ao.startsWith("https://")||Ao.startsWith("http://")?window.open(Ao,"_blank","noreferrer noopener"):window.open(Ao,kn$1()?"_blank":"_self","noreferrer noopener")}else jo===qt$1.reactNative&&typeof(global$o==null?void 0:global$o.Linking)<"u"&&await global$o.Linking.openURL(Ao)}catch($o){console.error($o)}}function Un$1(Mn,Fn,io){const fo=`requestId=${Fn}&sessionTopic=${io}`;Mn.endsWith("/")&&(Mn=Mn.slice(0,-1));let $o=`${Mn}`;if(Mn.startsWith("https://t.me")){const mo=Mn.includes("?")?"&startapp=":"?startapp=";$o=`${$o}${mo}${qn$1(fo,!0)}`}else $o=`${$o}/wc?${fo}`;return $o}async function Ss$2(Mn,Fn){let io="";try{if(gr$1()&&(io=localStorage.getItem(Fn),io))return io;io=await Mn.getItem(Fn)}catch(fo){console.error(fo)}return io}function Is$3(Mn,Fn){if(!Mn.includes(Fn))return null;const io=Mn.split(/([&,?,=])/),fo=io.indexOf(Fn);return io[fo+2]}function Ns$2(){return typeof crypto<"u"&&crypto!=null&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,Mn=>{const Fn=Math.random()*16|0;return(Mn==="x"?Fn:Fn&3|8).toString(16)})}function _s$2(){return typeof process$1$7<"u"&&define_process_env_default$3.IS_VITEST==="true"}function kn$1(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)}function qn$1(Mn,Fn=!1){const io=Buffer$D.from(Mn).toString("base64");return Fn?io.replace(/[=]/g,""):io}function xi$2(Mn){return Buffer$D.from(Mn,"base64").toString("utf-8")}var Kn$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$o<"u"?global$o:typeof self<"u"?self:{};function Bs$1(Mn){var Fn=Mn.default;if(typeof Fn=="function"){var io=function(){return Fn.apply(this,arguments)};io.prototype=Fn.prototype}else io={};return Object.defineProperty(io,"__esModule",{value:!0}),Object.keys(Mn).forEach(function(fo){var $o=Object.getOwnPropertyDescriptor(Mn,fo);Object.defineProperty(io,fo,$o.get?$o:{enumerable:!0,get:function(){return Mn[fo]}})}),io}var Hn$1={exports:{}};/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/(function(Mn){(function(){var Fn="input is invalid type",io="finalize already called",fo=typeof window=="object",$o=fo?window:{};$o.JS_SHA3_NO_WINDOW&&(fo=!1);var mo=!fo&&typeof self=="object",Ao=!$o.JS_SHA3_NO_NODE_JS&&typeof process$1$7=="object"&&process$1$7.versions&&process$1$7.versions.node;Ao?$o=Kn$1:mo&&($o=self);var jo=!$o.JS_SHA3_NO_COMMON_JS&&!0&&Mn.exports,Lo=!$o.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ho="0123456789abcdef".split(""),zo=[31,7936,2031616,520093696],Go=[4,1024,262144,67108864],Vo=[1,256,65536,16777216],Yo=[6,1536,393216,100663296],Xo=[0,8,16,24],is=[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],yl=[224,256,384,512],us=[128,256],hs=["hex","buffer","arrayBuffer","array","digest"],_l={128:168,256:136};($o.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(Pl){return Object.prototype.toString.call(Pl)==="[object Array]"}),Lo&&($o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(Pl){return typeof Pl=="object"&&Pl.buffer&&Pl.buffer.constructor===ArrayBuffer});for(var xl=function(Pl,Hl,Ml){return function(Fl){return new Al(Pl,Hl,Pl).update(Fl)[Ml]()}},Il=function(Pl,Hl,Ml){return function(Fl,Yl){return new Al(Pl,Hl,Yl).update(Fl)[Ml]()}},Ol=function(Pl,Hl,Ml){return function(Fl,Yl,Bl,Kl){return Jo["cshake"+Pl].update(Fl,Yl,Bl,Kl)[Ml]()}},Tl=function(Pl,Hl,Ml){return function(Fl,Yl,Bl,Kl){return Jo["kmac"+Pl].update(Fl,Yl,Bl,Kl)[Ml]()}},Cl=function(Pl,Hl,Ml,Fl){for(var Yl=0;Yl<hs.length;++Yl){var Bl=hs[Yl];Pl[Bl]=Hl(Ml,Fl,Bl)}return Pl},Nl=function(Pl,Hl){var Ml=xl(Pl,Hl,"hex");return Ml.create=function(){return new Al(Pl,Hl,Pl)},Ml.update=function(Fl){return Ml.create().update(Fl)},Cl(Ml,xl,Pl,Hl)},Wl=function(Pl,Hl){var Ml=Il(Pl,Hl,"hex");return Ml.create=function(Fl){return new Al(Pl,Hl,Fl)},Ml.update=function(Fl,Yl){return Ml.create(Yl).update(Fl)},Cl(Ml,Il,Pl,Hl)},Dl=function(Pl,Hl){var Ml=_l[Pl],Fl=Ol(Pl,Hl,"hex");return Fl.create=function(Yl,Bl,Kl){return!Bl&&!Kl?Jo["shake"+Pl].create(Yl):new Al(Pl,Hl,Yl).bytepad([Bl,Kl],Ml)},Fl.update=function(Yl,Bl,Kl,Gl){return Fl.create(Bl,Kl,Gl).update(Yl)},Cl(Fl,Ol,Pl,Hl)},Rl=function(Pl,Hl){var Ml=_l[Pl],Fl=Tl(Pl,Hl,"hex");return Fl.create=function(Yl,Bl,Kl){return new Ul(Pl,Hl,Bl).bytepad(["KMAC",Kl],Ml).bytepad([Yl],Ml)},Fl.update=function(Yl,Bl,Kl,Gl){return Fl.create(Yl,Kl,Gl).update(Bl)},Cl(Fl,Tl,Pl,Hl)},Qo=[{name:"keccak",padding:Vo,bits:yl,createMethod:Nl},{name:"sha3",padding:Yo,bits:yl,createMethod:Nl},{name:"shake",padding:zo,bits:us,createMethod:Wl},{name:"cshake",padding:Go,bits:us,createMethod:Dl},{name:"kmac",padding:Go,bits:us,createMethod:Rl}],Jo={},rs=[],ps=0;ps<Qo.length;++ps)for(var _c=Qo[ps],$l=_c.bits,El=0;El<$l.length;++El){var ds=_c.name+"_"+$l[El];if(rs.push(ds),Jo[ds]=_c.createMethod($l[El],_c.padding),_c.name!=="sha3"){var os=_c.name+$l[El];rs.push(os),Jo[os]=Jo[ds]}}function Al(Pl,Hl,Ml){this.blocks=[],this.s=[],this.padding=Hl,this.outputBits=Ml,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(Pl<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Ml>>5,this.extraBytes=(Ml&31)>>3;for(var Fl=0;Fl<50;++Fl)this.s[Fl]=0}Al.prototype.update=function(Pl){if(this.finalized)throw new Error(io);var Hl,Ml=typeof Pl;if(Ml!=="string"){if(Ml==="object"){if(Pl===null)throw new Error(Fn);if(Lo&&Pl.constructor===ArrayBuffer)Pl=new Uint8Array(Pl);else if(!Array.isArray(Pl)&&(!Lo||!ArrayBuffer.isView(Pl)))throw new Error(Fn)}else throw new Error(Fn);Hl=!0}for(var Fl=this.blocks,Yl=this.byteCount,Bl=Pl.length,Kl=this.blockCount,Gl=0,fu=this.s,bu,rp;Gl<Bl;){if(this.reset)for(this.reset=!1,Fl[0]=this.block,bu=1;bu<Kl+1;++bu)Fl[bu]=0;if(Hl)for(bu=this.start;Gl<Bl&&bu<Yl;++Gl)Fl[bu>>2]|=Pl[Gl]<<Xo[bu++&3];else for(bu=this.start;Gl<Bl&&bu<Yl;++Gl)rp=Pl.charCodeAt(Gl),rp<128?Fl[bu>>2]|=rp<<Xo[bu++&3]:rp<2048?(Fl[bu>>2]|=(192|rp>>6)<<Xo[bu++&3],Fl[bu>>2]|=(128|rp&63)<<Xo[bu++&3]):rp<55296||rp>=57344?(Fl[bu>>2]|=(224|rp>>12)<<Xo[bu++&3],Fl[bu>>2]|=(128|rp>>6&63)<<Xo[bu++&3],Fl[bu>>2]|=(128|rp&63)<<Xo[bu++&3]):(rp=65536+((rp&1023)<<10|Pl.charCodeAt(++Gl)&1023),Fl[bu>>2]|=(240|rp>>18)<<Xo[bu++&3],Fl[bu>>2]|=(128|rp>>12&63)<<Xo[bu++&3],Fl[bu>>2]|=(128|rp>>6&63)<<Xo[bu++&3],Fl[bu>>2]|=(128|rp&63)<<Xo[bu++&3]);if(this.lastByteIndex=bu,bu>=Yl){for(this.start=bu-Yl,this.block=Fl[Kl],bu=0;bu<Kl;++bu)fu[bu]^=Fl[bu];Zl(fu),this.reset=!0}else this.start=bu}return this},Al.prototype.encode=function(Pl,Hl){var Ml=Pl&255,Fl=1,Yl=[Ml];for(Pl=Pl>>8,Ml=Pl&255;Ml>0;)Yl.unshift(Ml),Pl=Pl>>8,Ml=Pl&255,++Fl;return Hl?Yl.push(Fl):Yl.unshift(Fl),this.update(Yl),Yl.length},Al.prototype.encodeString=function(Pl){var Hl,Ml=typeof Pl;if(Ml!=="string"){if(Ml==="object"){if(Pl===null)throw new Error(Fn);if(Lo&&Pl.constructor===ArrayBuffer)Pl=new Uint8Array(Pl);else if(!Array.isArray(Pl)&&(!Lo||!ArrayBuffer.isView(Pl)))throw new Error(Fn)}else throw new Error(Fn);Hl=!0}var Fl=0,Yl=Pl.length;if(Hl)Fl=Yl;else for(var Bl=0;Bl<Pl.length;++Bl){var Kl=Pl.charCodeAt(Bl);Kl<128?Fl+=1:Kl<2048?Fl+=2:Kl<55296||Kl>=57344?Fl+=3:(Kl=65536+((Kl&1023)<<10|Pl.charCodeAt(++Bl)&1023),Fl+=4)}return Fl+=this.encode(Fl*8),this.update(Pl),Fl},Al.prototype.bytepad=function(Pl,Hl){for(var Ml=this.encode(Hl),Fl=0;Fl<Pl.length;++Fl)Ml+=this.encodeString(Pl[Fl]);var Yl=Hl-Ml%Hl,Bl=[];return Bl.length=Yl,this.update(Bl),this},Al.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Pl=this.blocks,Hl=this.lastByteIndex,Ml=this.blockCount,Fl=this.s;if(Pl[Hl>>2]|=this.padding[Hl&3],this.lastByteIndex===this.byteCount)for(Pl[0]=Pl[Ml],Hl=1;Hl<Ml+1;++Hl)Pl[Hl]=0;for(Pl[Ml-1]|=2147483648,Hl=0;Hl<Ml;++Hl)Fl[Hl]^=Pl[Hl];Zl(Fl)}},Al.prototype.toString=Al.prototype.hex=function(){this.finalize();for(var Pl=this.blockCount,Hl=this.s,Ml=this.outputBlocks,Fl=this.extraBytes,Yl=0,Bl=0,Kl="",Gl;Bl<Ml;){for(Yl=0;Yl<Pl&&Bl<Ml;++Yl,++Bl)Gl=Hl[Yl],Kl+=Ho[Gl>>4&15]+Ho[Gl&15]+Ho[Gl>>12&15]+Ho[Gl>>8&15]+Ho[Gl>>20&15]+Ho[Gl>>16&15]+Ho[Gl>>28&15]+Ho[Gl>>24&15];Bl%Pl===0&&(Zl(Hl),Yl=0)}return Fl&&(Gl=Hl[Yl],Kl+=Ho[Gl>>4&15]+Ho[Gl&15],Fl>1&&(Kl+=Ho[Gl>>12&15]+Ho[Gl>>8&15]),Fl>2&&(Kl+=Ho[Gl>>20&15]+Ho[Gl>>16&15])),Kl},Al.prototype.arrayBuffer=function(){this.finalize();var Pl=this.blockCount,Hl=this.s,Ml=this.outputBlocks,Fl=this.extraBytes,Yl=0,Bl=0,Kl=this.outputBits>>3,Gl;Fl?Gl=new ArrayBuffer(Ml+1<<2):Gl=new ArrayBuffer(Kl);for(var fu=new Uint32Array(Gl);Bl<Ml;){for(Yl=0;Yl<Pl&&Bl<Ml;++Yl,++Bl)fu[Bl]=Hl[Yl];Bl%Pl===0&&Zl(Hl)}return Fl&&(fu[Yl]=Hl[Yl],Gl=Gl.slice(0,Kl)),Gl},Al.prototype.buffer=Al.prototype.arrayBuffer,Al.prototype.digest=Al.prototype.array=function(){this.finalize();for(var Pl=this.blockCount,Hl=this.s,Ml=this.outputBlocks,Fl=this.extraBytes,Yl=0,Bl=0,Kl=[],Gl,fu;Bl<Ml;){for(Yl=0;Yl<Pl&&Bl<Ml;++Yl,++Bl)Gl=Bl<<2,fu=Hl[Yl],Kl[Gl]=fu&255,Kl[Gl+1]=fu>>8&255,Kl[Gl+2]=fu>>16&255,Kl[Gl+3]=fu>>24&255;Bl%Pl===0&&Zl(Hl)}return Fl&&(Gl=Bl<<2,fu=Hl[Yl],Kl[Gl]=fu&255,Fl>1&&(Kl[Gl+1]=fu>>8&255),Fl>2&&(Kl[Gl+2]=fu>>16&255)),Kl};function Ul(Pl,Hl,Ml){Al.call(this,Pl,Hl,Ml)}Ul.prototype=new Al,Ul.prototype.finalize=function(){return this.encode(this.outputBits,!0),Al.prototype.finalize.call(this)};var Zl=function(Pl){var Hl,Ml,Fl,Yl,Bl,Kl,Gl,fu,bu,rp,tp,op,vp,ip,up,$p,gp,yp,_p,mp,wp,Sp,bp,Ap,Xl,Vl,Jl,wu,ep,sp,dp,xp,Op,Lp,Mp,Pp,a1,Up,Dp,Jp,Kp,Bp,Zp,Hp,Gp,Qp,Vp,Wp,Xp,zp,jp,r1,qp,e1,s1,t1,Yp,f1,R1,O1,M1,N1,E1;for(Fl=0;Fl<48;Fl+=2)Yl=Pl[0]^Pl[10]^Pl[20]^Pl[30]^Pl[40],Bl=Pl[1]^Pl[11]^Pl[21]^Pl[31]^Pl[41],Kl=Pl[2]^Pl[12]^Pl[22]^Pl[32]^Pl[42],Gl=Pl[3]^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l[29]=Zp^~Mp&a1,Pl[38]=r1^~Hp&Qp,Pl[39]=qp^~Gp&Vp,Pl[48]=N1^~e1&t1,Pl[49]=E1^~s1&Yp,Pl[0]^=is[Fl],Pl[1]^=is[Fl+1]};if(jo)Mn.exports=Jo;else for(ps=0;ps<rs.length;++ps)$o[rs[ps]]=Jo[rs[ps]]})()})(Hn$1);var Cs$1=Hn$1.exports;const Rs$2="logger/5.7.0";let Ln$1=!1,zn$1=!1;const Tr$2={debug:1,default:2,info:2,warning:3,error:4,off:5};let jn$1=Tr$2.default,Mi$3=null;function Os$1(){try{const Mn=[];if(["NFD","NFC","NFKD","NFKC"].forEach(Fn=>{try{if("test".normalize(Fn)!=="test")throw new Error("bad normalize")}catch{Mn.push(Fn)}}),Mn.length)throw new Error("missing "+Mn.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(Mn){return Mn.message}return null}const Qn=Os$1();var Ei$2;(function(Mn){Mn.DEBUG="DEBUG",Mn.INFO="INFO",Mn.WARNING="WARNING",Mn.ERROR="ERROR",Mn.OFF="OFF"})(Ei$2||(Ei$2={}));var re$5;(function(Mn){Mn.UNKNOWN_ERROR="UNKNOWN_ERROR",Mn.NOT_IMPLEMENTED="NOT_IMPLEMENTED",Mn.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",Mn.NETWORK_ERROR="NETWORK_ERROR",Mn.SERVER_ERROR="SERVER_ERROR",Mn.TIMEOUT="TIMEOUT",Mn.BUFFER_OVERRUN="BUFFER_OVERRUN",Mn.NUMERIC_FAULT="NUMERIC_FAULT",Mn.MISSING_NEW="MISSING_NEW",Mn.INVALID_ARGUMENT="INVALID_ARGUMENT",Mn.MISSING_ARGUMENT="MISSING_ARGUMENT",Mn.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",Mn.CALL_EXCEPTION="CALL_EXCEPTION",Mn.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",Mn.NONCE_EXPIRED="NONCE_EXPIRED",Mn.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",Mn.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",Mn.TRANSACTION_REPLACED="TRANSACTION_REPLACED",Mn.ACTION_REJECTED="ACTION_REJECTED"})(re$5||(re$5={}));const Jn="0123456789abcdef";let z$6=class h${constructor(Fn){Object.defineProperty(this,"version",{enumerable:!0,value:Fn,writable:!1})}_log(Fn,io){const fo=Fn.toLowerCase();Tr$2[fo]==null&&this.throwArgumentError("invalid log level name","logLevel",Fn),!(jn$1>Tr$2[fo])&&console.log.apply(console,io)}debug(...Fn){this._log(h$.levels.DEBUG,Fn)}info(...Fn){this._log(h$.levels.INFO,Fn)}warn(...Fn){this._log(h$.levels.WARNING,Fn)}makeError(Fn,io,fo){if(zn$1)return this.makeError("censored error",io,{});io||(io=h$.errors.UNKNOWN_ERROR),fo||(fo={});const $o=[];Object.keys(fo).forEach(Lo=>{const Ho=fo[Lo];try{if(Ho instanceof Uint8Array){let zo="";for(let Go=0;Go<Ho.length;Go++)zo+=Jn[Ho[Go]>>4],zo+=Jn[Ho[Go]&15];$o.push(Lo+"=Uint8Array(0x"+zo+")")}else $o.push(Lo+"="+JSON.stringify(Ho))}catch{$o.push(Lo+"="+JSON.stringify(fo[Lo].toString()))}}),$o.push(`code=${io}`),$o.push(`version=${this.version}`);const mo=Fn;let Ao="";switch(io){case re$5.NUMERIC_FAULT:{Ao="NUMERIC_FAULT";const Lo=Fn;switch(Lo){case"overflow":case"underflow":case"division-by-zero":Ao+="-"+Lo;break;case"negative-power":case"negative-width":Ao+="-unsupported";break;case"unbound-bitwise-result":Ao+="-unbound-result";break}break}case re$5.CALL_EXCEPTION:case re$5.INSUFFICIENT_FUNDS:case re$5.MISSING_NEW:case re$5.NONCE_EXPIRED:case re$5.REPLACEMENT_UNDERPRICED:case re$5.TRANSACTION_REPLACED:case re$5.UNPREDICTABLE_GAS_LIMIT:Ao=io;break}Ao&&(Fn+=" [ See: https://links.ethers.org/v5-errors-"+Ao+" ]"),$o.length&&(Fn+=" ("+$o.join(", ")+")");const jo=new Error(Fn);return jo.reason=mo,jo.code=io,Object.keys(fo).forEach(function(Lo){jo[Lo]=fo[Lo]}),jo}throwError(Fn,io,fo){throw this.makeError(Fn,io,fo)}throwArgumentError(Fn,io,fo){return this.throwError(Fn,h$.errors.INVALID_ARGUMENT,{argument:io,value:fo})}assert(Fn,io,fo,$o){Fn||this.throwError(io,fo,$o)}assertArgument(Fn,io,fo,$o){Fn||this.throwArgumentError(io,fo,$o)}checkNormalize(Fn){Qn&&this.throwError("platform missing String.prototype.normalize",h$.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Qn})}checkSafeUint53(Fn,io){typeof Fn=="number"&&(io==null&&(io="value not safe"),(Fn<0||Fn>=9007199254740991)&&this.throwError(io,h$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:Fn}),Fn%1&&this.throwError(io,h$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:Fn}))}checkArgumentCount(Fn,io,fo){fo?fo=": "+fo:fo="",Fn<io&&this.throwError("missing argument"+fo,h$.errors.MISSING_ARGUMENT,{count:Fn,expectedCount:io}),Fn>io&&this.throwError("too many arguments"+fo,h$.errors.UNEXPECTED_ARGUMENT,{count:Fn,expectedCount:io})}checkNew(Fn,io){(Fn===Object||Fn==null)&&this.throwError("missing new",h$.errors.MISSING_NEW,{name:io.name})}checkAbstract(Fn,io){Fn===io?this.throwError("cannot instantiate abstract class "+JSON.stringify(io.name)+" directly; use a sub-class",h$.errors.UNSUPPORTED_OPERATION,{name:Fn.name,operation:"new"}):(Fn===Object||Fn==null)&&this.throwError("missing new",h$.errors.MISSING_NEW,{name:io.name})}static globalLogger(){return Mi$3||(Mi$3=new h$(Rs$2)),Mi$3}static setCensorship(Fn,io){if(!Fn&&io&&this.globalLogger().throwError("cannot permanently disable censorship",h$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Ln$1){if(!Fn)return;this.globalLogger().throwError("error censorship permanent",h$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}zn$1=!!Fn,Ln$1=!!io}static setLogLevel(Fn){const io=Tr$2[Fn.toLowerCase()];if(io==null){h$.globalLogger().warn("invalid log level - "+Fn);return}jn$1=io}static from(Fn){return new h$(Fn)}};z$6.errors=re$5,z$6.levels=Ei$2;const Ps$2="bytes/5.7.0",Tt$3=new z$6(Ps$2);function Gn$1(Mn){return!!Mn.toHexString}function ir$2(Mn){return Mn.slice||(Mn.slice=function(){const Fn=Array.prototype.slice.call(arguments);return ir$2(new Uint8Array(Array.prototype.slice.apply(Mn,Fn)))}),Mn}function Ts$2(Mn){return Jt$2(Mn)&&!(Mn.length%2)||nr$2(Mn)}function Yn$1(Mn){return typeof Mn=="number"&&Mn==Mn&&Mn%1===0}function nr$2(Mn){if(Mn==null)return!1;if(Mn.constructor===Uint8Array)return!0;if(typeof Mn=="string"||!Yn$1(Mn.length)||Mn.length<0)return!1;for(let Fn=0;Fn<Mn.length;Fn++){const io=Mn[Fn];if(!Yn$1(io)||io<0||io>=256)return!1}return!0}function Ot$2(Mn,Fn){if(Fn||(Fn={}),typeof Mn=="number"){Tt$3.checkSafeUint53(Mn,"invalid arrayify value");const io=[];for(;Mn;)io.unshift(Mn&255),Mn=parseInt(String(Mn/256));return io.length===0&&io.push(0),ir$2(new Uint8Array(io))}if(Fn.allowMissingPrefix&&typeof Mn=="string"&&Mn.substring(0,2)!=="0x"&&(Mn="0x"+Mn),Gn$1(Mn)&&(Mn=Mn.toHexString()),Jt$2(Mn)){let io=Mn.substring(2);io.length%2&&(Fn.hexPad==="left"?io="0"+io:Fn.hexPad==="right"?io+="0":Tt$3.throwArgumentError("hex data is odd-length","value",Mn));const fo=[];for(let $o=0;$o<io.length;$o+=2)fo.push(parseInt(io.substring($o,$o+2),16));return ir$2(new Uint8Array(fo))}return nr$2(Mn)?ir$2(new Uint8Array(Mn)):Tt$3.throwArgumentError("invalid arrayify value","value",Mn)}function Ds$1(Mn){const Fn=Mn.map($o=>Ot$2($o)),io=Fn.reduce(($o,mo)=>$o+mo.length,0),fo=new Uint8Array(io);return Fn.reduce(($o,mo)=>(fo.set(mo,$o),$o+mo.length),0),ir$2(fo)}function Fs$2(Mn,Fn){Mn=Ot$2(Mn),Mn.length>Fn&&Tt$3.throwArgumentError("value out of range","value",arguments[0]);const io=new Uint8Array(Fn);return io.set(Mn,Fn-Mn.length),ir$2(io)}function Jt$2(Mn,Fn){return!(typeof Mn!="string"||!Mn.match(/^0x[0-9A-Fa-f]*$/)||Fn&&Mn.length!==2+2*Fn)}const Si$1="0123456789abcdef";function Kt$2(Mn,Fn){if(Fn||(Fn={}),typeof Mn=="number"){Tt$3.checkSafeUint53(Mn,"invalid hexlify value");let io="";for(;Mn;)io=Si$1[Mn&15]+io,Mn=Math.floor(Mn/16);return io.length?(io.length%2&&(io="0"+io),"0x"+io):"0x00"}if(typeof Mn=="bigint")return Mn=Mn.toString(16),Mn.length%2?"0x0"+Mn:"0x"+Mn;if(Fn.allowMissingPrefix&&typeof Mn=="string"&&Mn.substring(0,2)!=="0x"&&(Mn="0x"+Mn),Gn$1(Mn))return Mn.toHexString();if(Jt$2(Mn))return Mn.length%2&&(Fn.hexPad==="left"?Mn="0x0"+Mn.substring(2):Fn.hexPad==="right"?Mn+="0":Tt$3.throwArgumentError("hex data is odd-length","value",Mn)),Mn.toLowerCase();if(nr$2(Mn)){let io="0x";for(let fo=0;fo<Mn.length;fo++){let $o=Mn[fo];io+=Si$1[($o&240)>>4]+Si$1[$o&15]}return io}return Tt$3.throwArgumentError("invalid hexlify value","value",Mn)}function Us$1(Mn){if(typeof Mn!="string")Mn=Kt$2(Mn);else if(!Jt$2(Mn)||Mn.length%2)return null;return(Mn.length-2)/2}function Vn$1(Mn,Fn,io){return typeof Mn!="string"?Mn=Kt$2(Mn):(!Jt$2(Mn)||Mn.length%2)&&Tt$3.throwArgumentError("invalid hexData","value",Mn),Fn=2+2*Fn,io!=null?"0x"+Mn.substring(Fn,2+2*io):"0x"+Mn.substring(Fn)}function oe$4(Mn,Fn){for(typeof Mn!="string"?Mn=Kt$2(Mn):Jt$2(Mn)||Tt$3.throwArgumentError("invalid hex string","value",Mn),Mn.length>2*Fn+2&&Tt$3.throwArgumentError("value out of range","value",arguments[1]);Mn.length<2*Fn+2;)Mn="0x0"+Mn.substring(2);return Mn}function Wn$1(Mn){const Fn={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ts$2(Mn)){let io=Ot$2(Mn);io.length===64?(Fn.v=27+(io[32]>>7),io[32]&=127,Fn.r=Kt$2(io.slice(0,32)),Fn.s=Kt$2(io.slice(32,64))):io.length===65?(Fn.r=Kt$2(io.slice(0,32)),Fn.s=Kt$2(io.slice(32,64)),Fn.v=io[64]):Tt$3.throwArgumentError("invalid signature string","signature",Mn),Fn.v<27&&(Fn.v===0||Fn.v===1?Fn.v+=27:Tt$3.throwArgumentError("signature invalid v byte","signature",Mn)),Fn.recoveryParam=1-Fn.v%2,Fn.recoveryParam&&(io[32]|=128),Fn._vs=Kt$2(io.slice(32,64))}else{if(Fn.r=Mn.r,Fn.s=Mn.s,Fn.v=Mn.v,Fn.recoveryParam=Mn.recoveryParam,Fn._vs=Mn._vs,Fn._vs!=null){const $o=Fs$2(Ot$2(Fn._vs),32);Fn._vs=Kt$2($o);const mo=$o[0]>=128?1:0;Fn.recoveryParam==null?Fn.recoveryParam=mo:Fn.recoveryParam!==mo&&Tt$3.throwArgumentError("signature recoveryParam mismatch _vs","signature",Mn),$o[0]&=127;const Ao=Kt$2($o);Fn.s==null?Fn.s=Ao:Fn.s!==Ao&&Tt$3.throwArgumentError("signature v mismatch _vs","signature",Mn)}if(Fn.recoveryParam==null)Fn.v==null?Tt$3.throwArgumentError("signature missing v and recoveryParam","signature",Mn):Fn.v===0||Fn.v===1?Fn.recoveryParam=Fn.v:Fn.recoveryParam=1-Fn.v%2;else if(Fn.v==null)Fn.v=27+Fn.recoveryParam;else{const $o=Fn.v===0||Fn.v===1?Fn.v:1-Fn.v%2;Fn.recoveryParam!==$o&&Tt$3.throwArgumentError("signature recoveryParam mismatch v","signature",Mn)}Fn.r==null||!Jt$2(Fn.r)?Tt$3.throwArgumentError("signature missing or invalid r","signature",Mn):Fn.r=oe$4(Fn.r,32),Fn.s==null||!Jt$2(Fn.s)?Tt$3.throwArgumentError("signature missing or invalid s","signature",Mn):Fn.s=oe$4(Fn.s,32);const io=Ot$2(Fn.s);io[0]>=128&&Tt$3.throwArgumentError("signature s out of range","signature",Mn),Fn.recoveryParam&&(io[0]|=128);const fo=Kt$2(io);Fn._vs&&(Jt$2(Fn._vs)||Tt$3.throwArgumentError("signature invalid _vs","signature",Mn),Fn._vs=oe$4(Fn._vs,32)),Fn._vs==null?Fn._vs=fo:Fn._vs!==fo&&Tt$3.throwArgumentError("signature _vs mismatch v and s","signature",Mn)}return Fn.yParityAndS=Fn._vs,Fn.compact=Fn.r+Fn.yParityAndS.substring(2),Fn}function Ii$2(Mn){return"0x"+Cs$1.keccak_256(Ot$2(Mn))}var Xn$1={exports:{}},ks$2={},qs$2=Object.freeze({__proto__:null,default:ks$2}),Ks$1=Bs$1(qs$2);(function(Mn){(function(Fn,io){function fo(Qo,Jo){if(!Qo)throw new Error(Jo||"Assertion failed")}function $o(Qo,Jo){Qo.super_=Jo;var rs=function(){};rs.prototype=Jo.prototype,Qo.prototype=new rs,Qo.prototype.constructor=Qo}function mo(Qo,Jo,rs){if(mo.isBN(Qo))return Qo;this.negative=0,this.words=null,this.length=0,this.red=null,Qo!==null&&((Jo==="le"||Jo==="be")&&(rs=Jo,Jo=10),this._init(Qo||0,Jo||10,rs||"be"))}typeof Fn=="object"?Fn.exports=mo:io.BN=mo,mo.BN=mo,mo.wordSize=26;var Ao;try{typeof window<"u"&&typeof window.Buffer<"u"?Ao=window.Buffer:Ao=Ks$1.Buffer}catch{}mo.isBN=function(Qo){return Qo instanceof mo?!0:Qo!==null&&typeof Qo=="object"&&Qo.constructor.wordSize===mo.wordSize&&Array.isArray(Qo.words)},mo.max=function(Qo,Jo){return Qo.cmp(Jo)>0?Qo:Jo},mo.min=function(Qo,Jo){return Qo.cmp(Jo)<0?Qo:Jo},mo.prototype._init=function(Qo,Jo,rs){if(typeof Qo=="number")return this._initNumber(Qo,Jo,rs);if(typeof Qo=="object")return this._initArray(Qo,Jo,rs);Jo==="hex"&&(Jo=16),fo(Jo===(Jo|0)&&Jo>=2&&Jo<=36),Qo=Qo.toString().replace(/\s+/g,"");var ps=0;Qo[0]==="-"&&(ps++,this.negative=1),ps<Qo.length&&(Jo===16?this._parseHex(Qo,ps,rs):(this._parseBase(Qo,Jo,ps),rs==="le"&&this._initArray(this.toArray(),Jo,rs)))},mo.prototype._initNumber=function(Qo,Jo,rs){Qo<0&&(this.negative=1,Qo=-Qo),Qo<67108864?(this.words=[Qo&67108863],this.length=1):Qo<4503599627370496?(this.words=[Qo&67108863,Qo/67108864&67108863],this.length=2):(fo(Qo<9007199254740992),this.words=[Qo&67108863,Qo/67108864&67108863,1],this.length=3),rs==="le"&&this._initArray(this.toArray(),Jo,rs)},mo.prototype._initArray=function(Qo,Jo,rs){if(fo(typeof Qo.length=="number"),Qo.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Qo.length/3),this.words=new Array(this.length);for(var ps=0;ps<this.length;ps++)this.words[ps]=0;var _c,$l,El=0;if(rs==="be")for(ps=Qo.length-1,_c=0;ps>=0;ps-=3)$l=Qo[ps]|Qo[ps-1]<<8|Qo[ps-2]<<16,this.words[_c]|=$l<<El&67108863,this.words[_c+1]=$l>>>26-El&67108863,El+=24,El>=26&&(El-=26,_c++);else if(rs==="le")for(ps=0,_c=0;ps<Qo.length;ps+=3)$l=Qo[ps]|Qo[ps+1]<<8|Qo[ps+2]<<16,this.words[_c]|=$l<<El&67108863,this.words[_c+1]=$l>>>26-El&67108863,El+=24,El>=26&&(El-=26,_c++);return this._strip()};function jo(Qo,Jo){var rs=Qo.charCodeAt(Jo);if(rs>=48&&rs<=57)return rs-48;if(rs>=65&&rs<=70)return rs-55;if(rs>=97&&rs<=102)return rs-87;fo(!1,"Invalid character in "+Qo)}function Lo(Qo,Jo,rs){var ps=jo(Qo,rs);return rs-1>=Jo&&(ps|=jo(Qo,rs-1)<<4),ps}mo.prototype._parseHex=function(Qo,Jo,rs){this.length=Math.ceil((Qo.length-Jo)/6),this.words=new Array(this.length);for(var ps=0;ps<this.length;ps++)this.words[ps]=0;var _c=0,$l=0,El;if(rs==="be")for(ps=Qo.length-1;ps>=Jo;ps-=2)El=Lo(Qo,Jo,ps)<<_c,this.words[$l]|=El&67108863,_c>=18?(_c-=18,$l+=1,this.words[$l]|=El>>>26):_c+=8;else{var ds=Qo.length-Jo;for(ps=ds%2===0?Jo+1:Jo;ps<Qo.length;ps+=2)El=Lo(Qo,Jo,ps)<<_c,this.words[$l]|=El&67108863,_c>=18?(_c-=18,$l+=1,this.words[$l]|=El>>>26):_c+=8}this._strip()};function Ho(Qo,Jo,rs,ps){for(var _c=0,$l=0,El=Math.min(Qo.length,rs),ds=Jo;ds<El;ds++){var os=Qo.charCodeAt(ds)-48;_c*=ps,os>=49?$l=os-49+10:os>=17?$l=os-17+10:$l=os,fo(os>=0&&$l<ps,"Invalid character"),_c+=$l}return _c}mo.prototype._parseBase=function(Qo,Jo,rs){this.words=[0],this.length=1;for(var ps=0,_c=1;_c<=67108863;_c*=Jo)ps++;ps--,_c=_c/Jo|0;for(var $l=Qo.length-rs,El=$l%ps,ds=Math.min($l,$l-El)+rs,os=0,Al=rs;Al<ds;Al+=ps)os=Ho(Qo,Al,Al+ps,Jo),this.imuln(_c),this.words[0]+os<67108864?this.words[0]+=os:this._iaddn(os);if(El!==0){var Ul=1;for(os=Ho(Qo,Al,Qo.length,Jo),Al=0;Al<El;Al++)Ul*=Jo;this.imuln(Ul),this.words[0]+os<67108864?this.words[0]+=os:this._iaddn(os)}this._strip()},mo.prototype.copy=function(Qo){Qo.words=new Array(this.length);for(var Jo=0;Jo<this.length;Jo++)Qo.words[Jo]=this.words[Jo];Qo.length=this.length,Qo.negative=this.negative,Qo.red=this.red};function zo(Qo,Jo){Qo.words=Jo.words,Qo.length=Jo.length,Qo.negative=Jo.negative,Qo.red=Jo.red}if(mo.prototype._move=function(Qo){zo(Qo,this)},mo.prototype.clone=function(){var Qo=new mo(null);return this.copy(Qo),Qo},mo.prototype._expand=function(Qo){for(;this.length<Qo;)this.words[this.length++]=0;return this},mo.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},mo.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{mo.prototype[Symbol.for("nodejs.util.inspect.custom")]=Go}catch{mo.prototype.inspect=Go}else mo.prototype.inspect=Go;function Go(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var Vo=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Yo=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Xo=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];mo.prototype.toString=function(Qo,Jo){Qo=Qo||10,Jo=Jo|0||1;var rs;if(Qo===16||Qo==="hex"){rs="";for(var ps=0,_c=0,$l=0;$l<this.length;$l++){var El=this.words[$l],ds=((El<<ps|_c)&16777215).toString(16);_c=El>>>24-ps&16777215,ps+=2,ps>=26&&(ps-=26,$l--),_c!==0||$l!==this.length-1?rs=Vo[6-ds.length]+ds+rs:rs=ds+rs}for(_c!==0&&(rs=_c.toString(16)+rs);rs.length%Jo!==0;)rs="0"+rs;return this.negative!==0&&(rs="-"+rs),rs}if(Qo===(Qo|0)&&Qo>=2&&Qo<=36){var os=Yo[Qo],Al=Xo[Qo];rs="";var Ul=this.clone();for(Ul.negative=0;!Ul.isZero();){var Zl=Ul.modrn(Al).toString(Qo);Ul=Ul.idivn(Al),Ul.isZero()?rs=Zl+rs:rs=Vo[os-Zl.length]+Zl+rs}for(this.isZero()&&(rs="0"+rs);rs.length%Jo!==0;)rs="0"+rs;return this.negative!==0&&(rs="-"+rs),rs}fo(!1,"Base should be between 2 and 36")},mo.prototype.toNumber=function(){var Qo=this.words[0];return this.length===2?Qo+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Qo+=4503599627370496+this.words[1]*67108864:this.length>2&&fo(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Qo:Qo},mo.prototype.toJSON=function(){return this.toString(16,2)},Ao&&(mo.prototype.toBuffer=function(Qo,Jo){return this.toArrayLike(Ao,Qo,Jo)}),mo.prototype.toArray=function(Qo,Jo){return this.toArrayLike(Array,Qo,Jo)};var is=function(Qo,Jo){return Qo.allocUnsafe?Qo.allocUnsafe(Jo):new Qo(Jo)};mo.prototype.toArrayLike=function(Qo,Jo,rs){this._strip();var ps=this.byteLength(),_c=rs||Math.max(1,ps);fo(ps<=_c,"byte array longer than desired length"),fo(_c>0,"Requested array length <= 0");var $l=is(Qo,_c),El=Jo==="le"?"LE":"BE";return this["_toArrayLike"+El]($l,ps),$l},mo.prototype._toArrayLikeLE=function(Qo,Jo){for(var rs=0,ps=0,_c=0,$l=0;_c<this.length;_c++){var El=this.words[_c]<<$l|ps;Qo[rs++]=El&255,rs<Qo.length&&(Qo[rs++]=El>>8&255),rs<Qo.length&&(Qo[rs++]=El>>16&255),$l===6?(rs<Qo.length&&(Qo[rs++]=El>>24&255),ps=0,$l=0):(ps=El>>>24,$l+=2)}if(rs<Qo.length)for(Qo[rs++]=ps;rs<Qo.length;)Qo[rs++]=0},mo.prototype._toArrayLikeBE=function(Qo,Jo){for(var rs=Qo.length-1,ps=0,_c=0,$l=0;_c<this.length;_c++){var El=this.words[_c]<<$l|ps;Qo[rs--]=El&255,rs>=0&&(Qo[rs--]=El>>8&255),rs>=0&&(Qo[rs--]=El>>16&255),$l===6?(rs>=0&&(Qo[rs--]=El>>24&255),ps=0,$l=0):(ps=El>>>24,$l+=2)}if(rs>=0)for(Qo[rs--]=ps;rs>=0;)Qo[rs--]=0},Math.clz32?mo.prototype._countBits=function(Qo){return 32-Math.clz32(Qo)}:mo.prototype._countBits=function(Qo){var Jo=Qo,rs=0;return Jo>=4096&&(rs+=13,Jo>>>=13),Jo>=64&&(rs+=7,Jo>>>=7),Jo>=8&&(rs+=4,Jo>>>=4),Jo>=2&&(rs+=2,Jo>>>=2),rs+Jo},mo.prototype._zeroBits=function(Qo){if(Qo===0)return 26;var Jo=Qo,rs=0;return Jo&8191||(rs+=13,Jo>>>=13),Jo&127||(rs+=7,Jo>>>=7),Jo&15||(rs+=4,Jo>>>=4),Jo&3||(rs+=2,Jo>>>=2),Jo&1||rs++,rs},mo.prototype.bitLength=function(){var Qo=this.words[this.length-1],Jo=this._countBits(Qo);return(this.length-1)*26+Jo};function yl(Qo){for(var Jo=new Array(Qo.bitLength()),rs=0;rs<Jo.length;rs++){var ps=rs/26|0,_c=rs%26;Jo[rs]=Qo.words[ps]>>>_c&1}return Jo}mo.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Qo=0,Jo=0;Jo<this.length;Jo++){var rs=this._zeroBits(this.words[Jo]);if(Qo+=rs,rs!==26)break}return Qo},mo.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},mo.prototype.toTwos=function(Qo){return this.negative!==0?this.abs().inotn(Qo).iaddn(1):this.clone()},mo.prototype.fromTwos=function(Qo){return this.testn(Qo-1)?this.notn(Qo).iaddn(1).ineg():this.clone()},mo.prototype.isNeg=function(){return this.negative!==0},mo.prototype.neg=function(){return this.clone().ineg()},mo.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},mo.prototype.iuor=function(Qo){for(;this.length<Qo.length;)this.words[this.length++]=0;for(var Jo=0;Jo<Qo.length;Jo++)this.words[Jo]=this.words[Jo]|Qo.words[Jo];return this._strip()},mo.prototype.ior=function(Qo){return fo((this.negative|Qo.negative)===0),this.iuor(Qo)},mo.prototype.or=function(Qo){return this.length>Qo.length?this.clone().ior(Qo):Qo.clone().ior(this)},mo.prototype.uor=function(Qo){return this.length>Qo.length?this.clone().iuor(Qo):Qo.clone().iuor(this)},mo.prototype.iuand=function(Qo){var Jo;this.length>Qo.length?Jo=Qo:Jo=this;for(var rs=0;rs<Jo.length;rs++)this.words[rs]=this.words[rs]&Qo.words[rs];return this.length=Jo.length,this._strip()},mo.prototype.iand=function(Qo){return fo((this.negative|Qo.negative)===0),this.iuand(Qo)},mo.prototype.and=function(Qo){return this.length>Qo.length?this.clone().iand(Qo):Qo.clone().iand(this)},mo.prototype.uand=function(Qo){return this.length>Qo.length?this.clone().iuand(Qo):Qo.clone().iuand(this)},mo.prototype.iuxor=function(Qo){var Jo,rs;this.length>Qo.length?(Jo=this,rs=Qo):(Jo=Qo,rs=this);for(var ps=0;ps<rs.length;ps++)this.words[ps]=Jo.words[ps]^rs.words[ps];if(this!==Jo)for(;ps<Jo.length;ps++)this.words[ps]=Jo.words[ps];return this.length=Jo.length,this._strip()},mo.prototype.ixor=function(Qo){return fo((this.negative|Qo.negative)===0),this.iuxor(Qo)},mo.prototype.xor=function(Qo){return this.length>Qo.length?this.clone().ixor(Qo):Qo.clone().ixor(this)},mo.prototype.uxor=function(Qo){return this.length>Qo.length?this.clone().iuxor(Qo):Qo.clone().iuxor(this)},mo.prototype.inotn=function(Qo){fo(typeof Qo=="number"&&Qo>=0);var Jo=Math.ceil(Qo/26)|0,rs=Qo%26;this._expand(Jo),rs>0&&Jo--;for(var ps=0;ps<Jo;ps++)this.words[ps]=~this.words[ps]&67108863;return rs>0&&(this.words[ps]=~this.words[ps]&67108863>>26-rs),this._strip()},mo.prototype.notn=function(Qo){return this.clone().inotn(Qo)},mo.prototype.setn=function(Qo,Jo){fo(typeof Qo=="number"&&Qo>=0);var rs=Qo/26|0,ps=Qo%26;return this._expand(rs+1),Jo?this.words[rs]=this.words[rs]|1<<ps:this.words[rs]=this.words[rs]&~(1<<ps),this._strip()},mo.prototype.iadd=function(Qo){var Jo;if(this.negative!==0&&Qo.negative===0)return this.negative=0,Jo=this.isub(Qo),this.negative^=1,this._normSign();if(this.negative===0&&Qo.negative!==0)return Qo.negative=0,Jo=this.isub(Qo),Qo.negative=1,Jo._normSign();var rs,ps;this.length>Qo.length?(rs=this,ps=Qo):(rs=Qo,ps=this);for(var _c=0,$l=0;$l<ps.length;$l++)Jo=(rs.words[$l]|0)+(ps.words[$l]|0)+_c,this.words[$l]=Jo&67108863,_c=Jo>>>26;for(;_c!==0&&$l<rs.length;$l++)Jo=(rs.words[$l]|0)+_c,this.words[$l]=Jo&67108863,_c=Jo>>>26;if(this.length=rs.length,_c!==0)this.words[this.length]=_c,this.length++;else if(rs!==this)for(;$l<rs.length;$l++)this.words[$l]=rs.words[$l];return this},mo.prototype.add=function(Qo){var Jo;return Qo.negative!==0&&this.negative===0?(Qo.negative=0,Jo=this.sub(Qo),Qo.negative^=1,Jo):Qo.negative===0&&this.negative!==0?(this.negative=0,Jo=Qo.sub(this),this.negative=1,Jo):this.length>Qo.length?this.clone().iadd(Qo):Qo.clone().iadd(this)},mo.prototype.isub=function(Qo){if(Qo.negative!==0){Qo.negative=0;var Jo=this.iadd(Qo);return Qo.negative=1,Jo._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Qo),this.negative=1,this._normSign();var rs=this.cmp(Qo);if(rs===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ps,_c;rs>0?(ps=this,_c=Qo):(ps=Qo,_c=this);for(var $l=0,El=0;El<_c.length;El++)Jo=(ps.words[El]|0)-(_c.words[El]|0)+$l,$l=Jo>>26,this.words[El]=Jo&67108863;for(;$l!==0&&El<ps.length;El++)Jo=(ps.words[El]|0)+$l,$l=Jo>>26,this.words[El]=Jo&67108863;if($l===0&&El<ps.length&&ps!==this)for(;El<ps.length;El++)this.words[El]=ps.words[El];return this.length=Math.max(this.length,El),ps!==this&&(this.negative=1),this._strip()},mo.prototype.sub=function(Qo){return this.clone().isub(Qo)};function us(Qo,Jo,rs){rs.negative=Jo.negative^Qo.negative;var ps=Qo.length+Jo.length|0;rs.length=ps,ps=ps-1|0;var _c=Qo.words[0]|0,$l=Jo.words[0]|0,El=_c*$l,ds=El&67108863,os=El/67108864|0;rs.words[0]=ds;for(var Al=1;Al<ps;Al++){for(var Ul=os>>>26,Zl=os&67108863,Pl=Math.min(Al,Jo.length-1),Hl=Math.max(0,Al-Qo.length+1);Hl<=Pl;Hl++){var Ml=Al-Hl|0;_c=Qo.words[Ml]|0,$l=Jo.words[Hl]|0,El=_c*$l+Zl,Ul+=El/67108864|0,Zl=El&67108863}rs.words[Al]=Zl|0,os=Ul|0}return os!==0?rs.words[Al]=os|0:rs.length--,rs._strip()}var hs=function(Qo,Jo,rs){var ps=Qo.words,_c=Jo.words,$l=rs.words,El=0,ds,os,Al,Ul=ps[0]|0,Zl=Ul&8191,Pl=Ul>>>13,Hl=ps[1]|0,Ml=Hl&8191,Fl=Hl>>>13,Yl=ps[2]|0,Bl=Yl&8191,Kl=Yl>>>13,Gl=ps[3]|0,fu=Gl&8191,bu=Gl>>>13,rp=ps[4]|0,tp=rp&8191,op=rp>>>13,vp=ps[5]|0,ip=vp&8191,up=vp>>>13,$p=ps[6]|0,gp=$p&8191,yp=$p>>>13,_p=ps[7]|0,mp=_p&8191,wp=_p>>>13,Sp=ps[8]|0,bp=Sp&8191,Ap=Sp>>>13,Xl=ps[9]|0,Vl=Xl&8191,Jl=Xl>>>13,wu=_c[0]|0,ep=wu&8191,sp=wu>>>13,dp=_c[1]|0,xp=dp&8191,Op=dp>>>13,Lp=_c[2]|0,Mp=Lp&8191,Pp=Lp>>>13,a1=_c[3]|0,Up=a1&8191,Dp=a1>>>13,Jp=_c[4]|0,Kp=Jp&8191,Bp=Jp>>>13,Zp=_c[5]|0,Hp=Zp&8191,Gp=Zp>>>13,Qp=_c[6]|0,Vp=Qp&8191,Wp=Qp>>>13,Xp=_c[7]|0,zp=Xp&8191,jp=Xp>>>13,r1=_c[8]|0,qp=r1&8191,e1=r1>>>13,s1=_c[9]|0,t1=s1&8191,Yp=s1>>>13;rs.negative=Qo.negative^Jo.negative,rs.length=19,ds=Math.imul(Zl,ep),os=Math.imul(Zl,sp),os=os+Math.imul(Pl,ep)|0,Al=Math.imul(Pl,sp);var f1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(f1>>>26)|0,f1&=67108863,ds=Math.imul(Ml,ep),os=Math.imul(Ml,sp),os=os+Math.imul(Fl,ep)|0,Al=Math.imul(Fl,sp),ds=ds+Math.imul(Zl,xp)|0,os=os+Math.imul(Zl,Op)|0,os=os+Math.imul(Pl,xp)|0,Al=Al+Math.imul(Pl,Op)|0;var R1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(R1>>>26)|0,R1&=67108863,ds=Math.imul(Bl,ep),os=Math.imul(Bl,sp),os=os+Math.imul(Kl,ep)|0,Al=Math.imul(Kl,sp),ds=ds+Math.imul(Ml,xp)|0,os=os+Math.imul(Ml,Op)|0,os=os+Math.imul(Fl,xp)|0,Al=Al+Math.imul(Fl,Op)|0,ds=ds+Math.imul(Zl,Mp)|0,os=os+Math.imul(Zl,Pp)|0,os=os+Math.imul(Pl,Mp)|0,Al=Al+Math.imul(Pl,Pp)|0;var O1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(O1>>>26)|0,O1&=67108863,ds=Math.imul(fu,ep),os=Math.imul(fu,sp),os=os+Math.imul(bu,ep)|0,Al=Math.imul(bu,sp),ds=ds+Math.imul(Bl,xp)|0,os=os+Math.imul(Bl,Op)|0,os=os+Math.imul(Kl,xp)|0,Al=Al+Math.imul(Kl,Op)|0,ds=ds+Math.imul(Ml,Mp)|0,os=os+Math.imul(Ml,Pp)|0,os=os+Math.imul(Fl,Mp)|0,Al=Al+Math.imul(Fl,Pp)|0,ds=ds+Math.imul(Zl,Up)|0,os=os+Math.imul(Zl,Dp)|0,os=os+Math.imul(Pl,Up)|0,Al=Al+Math.imul(Pl,Dp)|0;var M1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(M1>>>26)|0,M1&=67108863,ds=Math.imul(tp,ep),os=Math.imul(tp,sp),os=os+Math.imul(op,ep)|0,Al=Math.imul(op,sp),ds=ds+Math.imul(fu,xp)|0,os=os+Math.imul(fu,Op)|0,os=os+Math.imul(bu,xp)|0,Al=Al+Math.imul(bu,Op)|0,ds=ds+Math.imul(Bl,Mp)|0,os=os+Math.imul(Bl,Pp)|0,os=os+Math.imul(Kl,Mp)|0,Al=Al+Math.imul(Kl,Pp)|0,ds=ds+Math.imul(Ml,Up)|0,os=os+Math.imul(Ml,Dp)|0,os=os+Math.imul(Fl,Up)|0,Al=Al+Math.imul(Fl,Dp)|0,ds=ds+Math.imul(Zl,Kp)|0,os=os+Math.imul(Zl,Bp)|0,os=os+Math.imul(Pl,Kp)|0,Al=Al+Math.imul(Pl,Bp)|0;var N1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(N1>>>26)|0,N1&=67108863,ds=Math.imul(ip,ep),os=Math.imul(ip,sp),os=os+Math.imul(up,ep)|0,Al=Math.imul(up,sp),ds=ds+Math.imul(tp,xp)|0,os=os+Math.imul(tp,Op)|0,os=os+Math.imul(op,xp)|0,Al=Al+Math.imul(op,Op)|0,ds=ds+Math.imul(fu,Mp)|0,os=os+Math.imul(fu,Pp)|0,os=os+Math.imul(bu,Mp)|0,Al=Al+Math.imul(bu,Pp)|0,ds=ds+Math.imul(Bl,Up)|0,os=os+Math.imul(Bl,Dp)|0,os=os+Math.imul(Kl,Up)|0,Al=Al+Math.imul(Kl,Dp)|0,ds=ds+Math.imul(Ml,Kp)|0,os=os+Math.imul(Ml,Bp)|0,os=os+Math.imul(Fl,Kp)|0,Al=Al+Math.imul(Fl,Bp)|0,ds=ds+Math.imul(Zl,Hp)|0,os=os+Math.imul(Zl,Gp)|0,os=os+Math.imul(Pl,Hp)|0,Al=Al+Math.imul(Pl,Gp)|0;var E1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(E1>>>26)|0,E1&=67108863,ds=Math.imul(gp,ep),os=Math.imul(gp,sp),os=os+Math.imul(yp,ep)|0,Al=Math.imul(yp,sp),ds=ds+Math.imul(ip,xp)|0,os=os+Math.imul(ip,Op)|0,os=os+Math.imul(up,xp)|0,Al=Al+Math.imul(up,Op)|0,ds=ds+Math.imul(tp,Mp)|0,os=os+Math.imul(tp,Pp)|0,os=os+Math.imul(op,Mp)|0,Al=Al+Math.imul(op,Pp)|0,ds=ds+Math.imul(fu,Up)|0,os=os+Math.imul(fu,Dp)|0,os=os+Math.imul(bu,Up)|0,Al=Al+Math.imul(bu,Dp)|0,ds=ds+Math.imul(Bl,Kp)|0,os=os+Math.imul(Bl,Bp)|0,os=os+Math.imul(Kl,Kp)|0,Al=Al+Math.imul(Kl,Bp)|0,ds=ds+Math.imul(Ml,Hp)|0,os=os+Math.imul(Ml,Gp)|0,os=os+Math.imul(Fl,Hp)|0,Al=Al+Math.imul(Fl,Gp)|0,ds=ds+Math.imul(Zl,Vp)|0,os=os+Math.imul(Zl,Wp)|0,os=os+Math.imul(Pl,Vp)|0,Al=Al+Math.imul(Pl,Wp)|0;var q1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(q1>>>26)|0,q1&=67108863,ds=Math.imul(mp,ep),os=Math.imul(mp,sp),os=os+Math.imul(wp,ep)|0,Al=Math.imul(wp,sp),ds=ds+Math.imul(gp,xp)|0,os=os+Math.imul(gp,Op)|0,os=os+Math.imul(yp,xp)|0,Al=Al+Math.imul(yp,Op)|0,ds=ds+Math.imul(ip,Mp)|0,os=os+Math.imul(ip,Pp)|0,os=os+Math.imul(up,Mp)|0,Al=Al+Math.imul(up,Pp)|0,ds=ds+Math.imul(tp,Up)|0,os=os+Math.imul(tp,Dp)|0,os=os+Math.imul(op,Up)|0,Al=Al+Math.imul(op,Dp)|0,ds=ds+Math.imul(fu,Kp)|0,os=os+Math.imul(fu,Bp)|0,os=os+Math.imul(bu,Kp)|0,Al=Al+Math.imul(bu,Bp)|0,ds=ds+Math.imul(Bl,Hp)|0,os=os+Math.imul(Bl,Gp)|0,os=os+Math.imul(Kl,Hp)|0,Al=Al+Math.imul(Kl,Gp)|0,ds=ds+Math.imul(Ml,Vp)|0,os=os+Math.imul(Ml,Wp)|0,os=os+Math.imul(Fl,Vp)|0,Al=Al+Math.imul(Fl,Wp)|0,ds=ds+Math.imul(Zl,zp)|0,os=os+Math.imul(Zl,jp)|0,os=os+Math.imul(Pl,zp)|0,Al=Al+Math.imul(Pl,jp)|0;var i$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(i$>>>26)|0,i$&=67108863,ds=Math.imul(bp,ep),os=Math.imul(bp,sp),os=os+Math.imul(Ap,ep)|0,Al=Math.imul(Ap,sp),ds=ds+Math.imul(mp,xp)|0,os=os+Math.imul(mp,Op)|0,os=os+Math.imul(wp,xp)|0,Al=Al+Math.imul(wp,Op)|0,ds=ds+Math.imul(gp,Mp)|0,os=os+Math.imul(gp,Pp)|0,os=os+Math.imul(yp,Mp)|0,Al=Al+Math.imul(yp,Pp)|0,ds=ds+Math.imul(ip,Up)|0,os=os+Math.imul(ip,Dp)|0,os=os+Math.imul(up,Up)|0,Al=Al+Math.imul(up,Dp)|0,ds=ds+Math.imul(tp,Kp)|0,os=os+Math.imul(tp,Bp)|0,os=os+Math.imul(op,Kp)|0,Al=Al+Math.imul(op,Bp)|0,ds=ds+Math.imul(fu,Hp)|0,os=os+Math.imul(fu,Gp)|0,os=os+Math.imul(bu,Hp)|0,Al=Al+Math.imul(bu,Gp)|0,ds=ds+Math.imul(Bl,Vp)|0,os=os+Math.imul(Bl,Wp)|0,os=os+Math.imul(Kl,Vp)|0,Al=Al+Math.imul(Kl,Wp)|0,ds=ds+Math.imul(Ml,zp)|0,os=os+Math.imul(Ml,jp)|0,os=os+Math.imul(Fl,zp)|0,Al=Al+Math.imul(Fl,jp)|0,ds=ds+Math.imul(Zl,qp)|0,os=os+Math.imul(Zl,e1)|0,os=os+Math.imul(Pl,qp)|0,Al=Al+Math.imul(Pl,e1)|0;var Y1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,ds=Math.imul(Vl,ep),os=Math.imul(Vl,sp),os=os+Math.imul(Jl,ep)|0,Al=Math.imul(Jl,sp),ds=ds+Math.imul(bp,xp)|0,os=os+Math.imul(bp,Op)|0,os=os+Math.imul(Ap,xp)|0,Al=Al+Math.imul(Ap,Op)|0,ds=ds+Math.imul(mp,Mp)|0,os=os+Math.imul(mp,Pp)|0,os=os+Math.imul(wp,Mp)|0,Al=Al+Math.imul(wp,Pp)|0,ds=ds+Math.imul(gp,Up)|0,os=os+Math.imul(gp,Dp)|0,os=os+Math.imul(yp,Up)|0,Al=Al+Math.imul(yp,Dp)|0,ds=ds+Math.imul(ip,Kp)|0,os=os+Math.imul(ip,Bp)|0,os=os+Math.imul(up,Kp)|0,Al=Al+Math.imul(up,Bp)|0,ds=ds+Math.imul(tp,Hp)|0,os=os+Math.imul(tp,Gp)|0,os=os+Math.imul(op,Hp)|0,Al=Al+Math.imul(op,Gp)|0,ds=ds+Math.imul(fu,Vp)|0,os=os+Math.imul(fu,Wp)|0,os=os+Math.imul(bu,Vp)|0,Al=Al+Math.imul(bu,Wp)|0,ds=ds+Math.imul(Bl,zp)|0,os=os+Math.imul(Bl,jp)|0,os=os+Math.imul(Kl,zp)|0,Al=Al+Math.imul(Kl,jp)|0,ds=ds+Math.imul(Ml,qp)|0,os=os+Math.imul(Ml,e1)|0,os=os+Math.imul(Fl,qp)|0,Al=Al+Math.imul(Fl,e1)|0,ds=ds+Math.imul(Zl,t1)|0,os=os+Math.imul(Zl,Yp)|0,os=os+Math.imul(Pl,t1)|0,Al=Al+Math.imul(Pl,Yp)|0;var a$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(a$>>>26)|0,a$&=67108863,ds=Math.imul(Vl,xp),os=Math.imul(Vl,Op),os=os+Math.imul(Jl,xp)|0,Al=Math.imul(Jl,Op),ds=ds+Math.imul(bp,Mp)|0,os=os+Math.imul(bp,Pp)|0,os=os+Math.imul(Ap,Mp)|0,Al=Al+Math.imul(Ap,Pp)|0,ds=ds+Math.imul(mp,Up)|0,os=os+Math.imul(mp,Dp)|0,os=os+Math.imul(wp,Up)|0,Al=Al+Math.imul(wp,Dp)|0,ds=ds+Math.imul(gp,Kp)|0,os=os+Math.imul(gp,Bp)|0,os=os+Math.imul(yp,Kp)|0,Al=Al+Math.imul(yp,Bp)|0,ds=ds+Math.imul(ip,Hp)|0,os=os+Math.imul(ip,Gp)|0,os=os+Math.imul(up,Hp)|0,Al=Al+Math.imul(up,Gp)|0,ds=ds+Math.imul(tp,Vp)|0,os=os+Math.imul(tp,Wp)|0,os=os+Math.imul(op,Vp)|0,Al=Al+Math.imul(op,Wp)|0,ds=ds+Math.imul(fu,zp)|0,os=os+Math.imul(fu,jp)|0,os=os+Math.imul(bu,zp)|0,Al=Al+Math.imul(bu,jp)|0,ds=ds+Math.imul(Bl,qp)|0,os=os+Math.imul(Bl,e1)|0,os=os+Math.imul(Kl,qp)|0,Al=Al+Math.imul(Kl,e1)|0,ds=ds+Math.imul(Ml,t1)|0,os=os+Math.imul(Ml,Yp)|0,os=os+Math.imul(Fl,t1)|0,Al=Al+Math.imul(Fl,Yp)|0;var s$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(s$>>>26)|0,s$&=67108863,ds=Math.imul(Vl,Mp),os=Math.imul(Vl,Pp),os=os+Math.imul(Jl,Mp)|0,Al=Math.imul(Jl,Pp),ds=ds+Math.imul(bp,Up)|0,os=os+Math.imul(bp,Dp)|0,os=os+Math.imul(Ap,Up)|0,Al=Al+Math.imul(Ap,Dp)|0,ds=ds+Math.imul(mp,Kp)|0,os=os+Math.imul(mp,Bp)|0,os=os+Math.imul(wp,Kp)|0,Al=Al+Math.imul(wp,Bp)|0,ds=ds+Math.imul(gp,Hp)|0,os=os+Math.imul(gp,Gp)|0,os=os+Math.imul(yp,Hp)|0,Al=Al+Math.imul(yp,Gp)|0,ds=ds+Math.imul(ip,Vp)|0,os=os+Math.imul(ip,Wp)|0,os=os+Math.imul(up,Vp)|0,Al=Al+Math.imul(up,Wp)|0,ds=ds+Math.imul(tp,zp)|0,os=os+Math.imul(tp,jp)|0,os=os+Math.imul(op,zp)|0,Al=Al+Math.imul(op,jp)|0,ds=ds+Math.imul(fu,qp)|0,os=os+Math.imul(fu,e1)|0,os=os+Math.imul(bu,qp)|0,Al=Al+Math.imul(bu,e1)|0,ds=ds+Math.imul(Bl,t1)|0,os=os+Math.imul(Bl,Yp)|0,os=os+Math.imul(Kl,t1)|0,Al=Al+Math.imul(Kl,Yp)|0;var Z1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(Z1>>>26)|0,Z1&=67108863,ds=Math.imul(Vl,Up),os=Math.imul(Vl,Dp),os=os+Math.imul(Jl,Up)|0,Al=Math.imul(Jl,Dp),ds=ds+Math.imul(bp,Kp)|0,os=os+Math.imul(bp,Bp)|0,os=os+Math.imul(Ap,Kp)|0,Al=Al+Math.imul(Ap,Bp)|0,ds=ds+Math.imul(mp,Hp)|0,os=os+Math.imul(mp,Gp)|0,os=os+Math.imul(wp,Hp)|0,Al=Al+Math.imul(wp,Gp)|0,ds=ds+Math.imul(gp,Vp)|0,os=os+Math.imul(gp,Wp)|0,os=os+Math.imul(yp,Vp)|0,Al=Al+Math.imul(yp,Wp)|0,ds=ds+Math.imul(ip,zp)|0,os=os+Math.imul(ip,jp)|0,os=os+Math.imul(up,zp)|0,Al=Al+Math.imul(up,jp)|0,ds=ds+Math.imul(tp,qp)|0,os=os+Math.imul(tp,e1)|0,os=os+Math.imul(op,qp)|0,Al=Al+Math.imul(op,e1)|0,ds=ds+Math.imul(fu,t1)|0,os=os+Math.imul(fu,Yp)|0,os=os+Math.imul(bu,t1)|0,Al=Al+Math.imul(bu,Yp)|0;var t$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(t$>>>26)|0,t$&=67108863,ds=Math.imul(Vl,Kp),os=Math.imul(Vl,Bp),os=os+Math.imul(Jl,Kp)|0,Al=Math.imul(Jl,Bp),ds=ds+Math.imul(bp,Hp)|0,os=os+Math.imul(bp,Gp)|0,os=os+Math.imul(Ap,Hp)|0,Al=Al+Math.imul(Ap,Gp)|0,ds=ds+Math.imul(mp,Vp)|0,os=os+Math.imul(mp,Wp)|0,os=os+Math.imul(wp,Vp)|0,Al=Al+Math.imul(wp,Wp)|0,ds=ds+Math.imul(gp,zp)|0,os=os+Math.imul(gp,jp)|0,os=os+Math.imul(yp,zp)|0,Al=Al+Math.imul(yp,jp)|0,ds=ds+Math.imul(ip,qp)|0,os=os+Math.imul(ip,e1)|0,os=os+Math.imul(up,qp)|0,Al=Al+Math.imul(up,e1)|0,ds=ds+Math.imul(tp,t1)|0,os=os+Math.imul(tp,Yp)|0,os=os+Math.imul(op,t1)|0,Al=Al+Math.imul(op,Yp)|0;var r$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(r$>>>26)|0,r$&=67108863,ds=Math.imul(Vl,Hp),os=Math.imul(Vl,Gp),os=os+Math.imul(Jl,Hp)|0,Al=Math.imul(Jl,Gp),ds=ds+Math.imul(bp,Vp)|0,os=os+Math.imul(bp,Wp)|0,os=os+Math.imul(Ap,Vp)|0,Al=Al+Math.imul(Ap,Wp)|0,ds=ds+Math.imul(mp,zp)|0,os=os+Math.imul(mp,jp)|0,os=os+Math.imul(wp,zp)|0,Al=Al+Math.imul(wp,jp)|0,ds=ds+Math.imul(gp,qp)|0,os=os+Math.imul(gp,e1)|0,os=os+Math.imul(yp,qp)|0,Al=Al+Math.imul(yp,e1)|0,ds=ds+Math.imul(ip,t1)|0,os=os+Math.imul(ip,Yp)|0,os=os+Math.imul(up,t1)|0,Al=Al+Math.imul(up,Yp)|0;var D1=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(D1>>>26)|0,D1&=67108863,ds=Math.imul(Vl,Vp),os=Math.imul(Vl,Wp),os=os+Math.imul(Jl,Vp)|0,Al=Math.imul(Jl,Wp),ds=ds+Math.imul(bp,zp)|0,os=os+Math.imul(bp,jp)|0,os=os+Math.imul(Ap,zp)|0,Al=Al+Math.imul(Ap,jp)|0,ds=ds+Math.imul(mp,qp)|0,os=os+Math.imul(mp,e1)|0,os=os+Math.imul(wp,qp)|0,Al=Al+Math.imul(wp,e1)|0,ds=ds+Math.imul(gp,t1)|0,os=os+Math.imul(gp,Yp)|0,os=os+Math.imul(yp,t1)|0,Al=Al+Math.imul(yp,Yp)|0;var c$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(c$>>>26)|0,c$&=67108863,ds=Math.imul(Vl,zp),os=Math.imul(Vl,jp),os=os+Math.imul(Jl,zp)|0,Al=Math.imul(Jl,jp),ds=ds+Math.imul(bp,qp)|0,os=os+Math.imul(bp,e1)|0,os=os+Math.imul(Ap,qp)|0,Al=Al+Math.imul(Ap,e1)|0,ds=ds+Math.imul(mp,t1)|0,os=os+Math.imul(mp,Yp)|0,os=os+Math.imul(wp,t1)|0,Al=Al+Math.imul(wp,Yp)|0;var l$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(l$>>>26)|0,l$&=67108863,ds=Math.imul(Vl,qp),os=Math.imul(Vl,e1),os=os+Math.imul(Jl,qp)|0,Al=Math.imul(Jl,e1),ds=ds+Math.imul(bp,t1)|0,os=os+Math.imul(bp,Yp)|0,os=os+Math.imul(Ap,t1)|0,Al=Al+Math.imul(Ap,Yp)|0;var u$=(El+ds|0)+((os&8191)<<13)|0;El=(Al+(os>>>13)|0)+(u$>>>26)|0,u$&=67108863,ds=Math.imul(Vl,t1),os=Math.imul(Vl,Yp),os=os+Math.imul(Jl,t1)|0,Al=Math.imul(Jl,Yp);var E$=(El+ds|0)+((os&8191)<<13)|0;return El=(Al+(os>>>13)|0)+(E$>>>26)|0,E$&=67108863,$l[0]=f1,$l[1]=R1,$l[2]=O1,$l[3]=M1,$l[4]=N1,$l[5]=E1,$l[6]=q1,$l[7]=i$,$l[8]=Y1,$l[9]=a$,$l[10]=s$,$l[11]=Z1,$l[12]=t$,$l[13]=r$,$l[14]=D1,$l[15]=c$,$l[16]=l$,$l[17]=u$,$l[18]=E$,El!==0&&($l[19]=El,rs.length++),rs};Math.imul||(hs=us);function _l(Qo,Jo,rs){rs.negative=Jo.negative^Qo.negative,rs.length=Qo.length+Jo.length;for(var ps=0,_c=0,$l=0;$l<rs.length-1;$l++){var El=_c;_c=0;for(var ds=ps&67108863,os=Math.min($l,Jo.length-1),Al=Math.max(0,$l-Qo.length+1);Al<=os;Al++){var Ul=$l-Al,Zl=Qo.words[Ul]|0,Pl=Jo.words[Al]|0,Hl=Zl*Pl,Ml=Hl&67108863;El=El+(Hl/67108864|0)|0,Ml=Ml+ds|0,ds=Ml&67108863,El=El+(Ml>>>26)|0,_c+=El>>>26,El&=67108863}rs.words[$l]=ds,ps=El,El=_c}return ps!==0?rs.words[$l]=ps:rs.length--,rs._strip()}function xl(Qo,Jo,rs){return _l(Qo,Jo,rs)}mo.prototype.mulTo=function(Qo,Jo){var rs,ps=this.length+Qo.length;return this.length===10&&Qo.length===10?rs=hs(this,Qo,Jo):ps<63?rs=us(this,Qo,Jo):ps<1024?rs=_l(this,Qo,Jo):rs=xl(this,Qo,Jo),rs},mo.prototype.mul=function(Qo){var Jo=new mo(null);return Jo.words=new Array(this.length+Qo.length),this.mulTo(Qo,Jo)},mo.prototype.mulf=function(Qo){var Jo=new mo(null);return Jo.words=new Array(this.length+Qo.length),xl(this,Qo,Jo)},mo.prototype.imul=function(Qo){return this.clone().mulTo(Qo,this)},mo.prototype.imuln=function(Qo){var Jo=Qo<0;Jo&&(Qo=-Qo),fo(typeof Qo=="number"),fo(Qo<67108864);for(var rs=0,ps=0;ps<this.length;ps++){var _c=(this.words[ps]|0)*Qo,$l=(_c&67108863)+(rs&67108863);rs>>=26,rs+=_c/67108864|0,rs+=$l>>>26,this.words[ps]=$l&67108863}return rs!==0&&(this.words[ps]=rs,this.length++),Jo?this.ineg():this},mo.prototype.muln=function(Qo){return this.clone().imuln(Qo)},mo.prototype.sqr=function(){return this.mul(this)},mo.prototype.isqr=function(){return this.imul(this.clone())},mo.prototype.pow=function(Qo){var Jo=yl(Qo);if(Jo.length===0)return new mo(1);for(var rs=this,ps=0;ps<Jo.length&&Jo[ps]===0;ps++,rs=rs.sqr());if(++ps<Jo.length)for(var _c=rs.sqr();ps<Jo.length;ps++,_c=_c.sqr())Jo[ps]!==0&&(rs=rs.mul(_c));return rs},mo.prototype.iushln=function(Qo){fo(typeof Qo=="number"&&Qo>=0);var Jo=Qo%26,rs=(Qo-Jo)/26,ps=67108863>>>26-Jo<<26-Jo,_c;if(Jo!==0){var $l=0;for(_c=0;_c<this.length;_c++){var El=this.words[_c]&ps,ds=(this.words[_c]|0)-El<<Jo;this.words[_c]=ds|$l,$l=El>>>26-Jo}$l&&(this.words[_c]=$l,this.length++)}if(rs!==0){for(_c=this.length-1;_c>=0;_c--)this.words[_c+rs]=this.words[_c];for(_c=0;_c<rs;_c++)this.words[_c]=0;this.length+=rs}return this._strip()},mo.prototype.ishln=function(Qo){return fo(this.negative===0),this.iushln(Qo)},mo.prototype.iushrn=function(Qo,Jo,rs){fo(typeof Qo=="number"&&Qo>=0);var ps;Jo?ps=(Jo-Jo%26)/26:ps=0;var _c=Qo%26,$l=Math.min((Qo-_c)/26,this.length),El=67108863^67108863>>>_c<<_c,ds=rs;if(ps-=$l,ps=Math.max(0,ps),ds){for(var os=0;os<$l;os++)ds.words[os]=this.words[os];ds.length=$l}if($l!==0)if(this.length>$l)for(this.length-=$l,os=0;os<this.length;os++)this.words[os]=this.words[os+$l];else this.words[0]=0,this.length=1;var Al=0;for(os=this.length-1;os>=0&&(Al!==0||os>=ps);os--){var Ul=this.words[os]|0;this.words[os]=Al<<26-_c|Ul>>>_c,Al=Ul&El}return ds&&Al!==0&&(ds.words[ds.length++]=Al),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},mo.prototype.ishrn=function(Qo,Jo,rs){return fo(this.negative===0),this.iushrn(Qo,Jo,rs)},mo.prototype.shln=function(Qo){return this.clone().ishln(Qo)},mo.prototype.ushln=function(Qo){return this.clone().iushln(Qo)},mo.prototype.shrn=function(Qo){return this.clone().ishrn(Qo)},mo.prototype.ushrn=function(Qo){return this.clone().iushrn(Qo)},mo.prototype.testn=function(Qo){fo(typeof Qo=="number"&&Qo>=0);var Jo=Qo%26,rs=(Qo-Jo)/26,ps=1<<Jo;if(this.length<=rs)return!1;var _c=this.words[rs];return!!(_c&ps)},mo.prototype.imaskn=function(Qo){fo(typeof Qo=="number"&&Qo>=0);var Jo=Qo%26,rs=(Qo-Jo)/26;if(fo(this.negative===0,"imaskn works only with positive numbers"),this.length<=rs)return this;if(Jo!==0&&rs++,this.length=Math.min(rs,this.length),Jo!==0){var ps=67108863^67108863>>>Jo<<Jo;this.words[this.length-1]&=ps}return this._strip()},mo.prototype.maskn=function(Qo){return this.clone().imaskn(Qo)},mo.prototype.iaddn=function(Qo){return fo(typeof Qo=="number"),fo(Qo<67108864),Qo<0?this.isubn(-Qo):this.negative!==0?this.length===1&&(this.words[0]|0)<=Qo?(this.words[0]=Qo-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Qo),this.negative=1,this):this._iaddn(Qo)},mo.prototype._iaddn=function(Qo){this.words[0]+=Qo;for(var Jo=0;Jo<this.length&&this.words[Jo]>=67108864;Jo++)this.words[Jo]-=67108864,Jo===this.length-1?this.words[Jo+1]=1:this.words[Jo+1]++;return this.length=Math.max(this.length,Jo+1),this},mo.prototype.isubn=function(Qo){if(fo(typeof Qo=="number"),fo(Qo<67108864),Qo<0)return this.iaddn(-Qo);if(this.negative!==0)return this.negative=0,this.iaddn(Qo),this.negative=1,this;if(this.words[0]-=Qo,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Jo=0;Jo<this.length&&this.words[Jo]<0;Jo++)this.words[Jo]+=67108864,this.words[Jo+1]-=1;return this._strip()},mo.prototype.addn=function(Qo){return this.clone().iaddn(Qo)},mo.prototype.subn=function(Qo){return this.clone().isubn(Qo)},mo.prototype.iabs=function(){return this.negative=0,this},mo.prototype.abs=function(){return this.clone().iabs()},mo.prototype._ishlnsubmul=function(Qo,Jo,rs){var ps=Qo.length+rs,_c;this._expand(ps);var $l,El=0;for(_c=0;_c<Qo.length;_c++){$l=(this.words[_c+rs]|0)+El;var ds=(Qo.words[_c]|0)*Jo;$l-=ds&67108863,El=($l>>26)-(ds/67108864|0),this.words[_c+rs]=$l&67108863}for(;_c<this.length-rs;_c++)$l=(this.words[_c+rs]|0)+El,El=$l>>26,this.words[_c+rs]=$l&67108863;if(El===0)return this._strip();for(fo(El===-1),El=0,_c=0;_c<this.length;_c++)$l=-(this.words[_c]|0)+El,El=$l>>26,this.words[_c]=$l&67108863;return this.negative=1,this._strip()},mo.prototype._wordDiv=function(Qo,Jo){var rs=this.length-Qo.length,ps=this.clone(),_c=Qo,$l=_c.words[_c.length-1]|0,El=this._countBits($l);rs=26-El,rs!==0&&(_c=_c.ushln(rs),ps.iushln(rs),$l=_c.words[_c.length-1]|0);var ds=ps.length-_c.length,os;if(Jo!=="mod"){os=new mo(null),os.length=ds+1,os.words=new Array(os.length);for(var Al=0;Al<os.length;Al++)os.words[Al]=0}var Ul=ps.clone()._ishlnsubmul(_c,1,ds);Ul.negative===0&&(ps=Ul,os&&(os.words[ds]=1));for(var Zl=ds-1;Zl>=0;Zl--){var Pl=(ps.words[_c.length+Zl]|0)*67108864+(ps.words[_c.length+Zl-1]|0);for(Pl=Math.min(Pl/$l|0,67108863),ps._ishlnsubmul(_c,Pl,Zl);ps.negative!==0;)Pl--,ps.negative=0,ps._ishlnsubmul(_c,1,Zl),ps.isZero()||(ps.negative^=1);os&&(os.words[Zl]=Pl)}return os&&os._strip(),ps._strip(),Jo!=="div"&&rs!==0&&ps.iushrn(rs),{div:os||null,mod:ps}},mo.prototype.divmod=function(Qo,Jo,rs){if(fo(!Qo.isZero()),this.isZero())return{div:new mo(0),mod:new mo(0)};var ps,_c,$l;return this.negative!==0&&Qo.negative===0?($l=this.neg().divmod(Qo,Jo),Jo!=="mod"&&(ps=$l.div.neg()),Jo!=="div"&&(_c=$l.mod.neg(),rs&&_c.negative!==0&&_c.iadd(Qo)),{div:ps,mod:_c}):this.negative===0&&Qo.negative!==0?($l=this.divmod(Qo.neg(),Jo),Jo!=="mod"&&(ps=$l.div.neg()),{div:ps,mod:$l.mod}):this.negative&Qo.negative?($l=this.neg().divmod(Qo.neg(),Jo),Jo!=="div"&&(_c=$l.mod.neg(),rs&&_c.negative!==0&&_c.isub(Qo)),{div:$l.div,mod:_c}):Qo.length>this.length||this.cmp(Qo)<0?{div:new mo(0),mod:this}:Qo.length===1?Jo==="div"?{div:this.divn(Qo.words[0]),mod:null}:Jo==="mod"?{div:null,mod:new mo(this.modrn(Qo.words[0]))}:{div:this.divn(Qo.words[0]),mod:new mo(this.modrn(Qo.words[0]))}:this._wordDiv(Qo,Jo)},mo.prototype.div=function(Qo){return this.divmod(Qo,"div",!1).div},mo.prototype.mod=function(Qo){return this.divmod(Qo,"mod",!1).mod},mo.prototype.umod=function(Qo){return this.divmod(Qo,"mod",!0).mod},mo.prototype.divRound=function(Qo){var Jo=this.divmod(Qo);if(Jo.mod.isZero())return Jo.div;var rs=Jo.div.negative!==0?Jo.mod.isub(Qo):Jo.mod,ps=Qo.ushrn(1),_c=Qo.andln(1),$l=rs.cmp(ps);return $l<0||_c===1&&$l===0?Jo.div:Jo.div.negative!==0?Jo.div.isubn(1):Jo.div.iaddn(1)},mo.prototype.modrn=function(Qo){var Jo=Qo<0;Jo&&(Qo=-Qo),fo(Qo<=67108863);for(var rs=(1<<26)%Qo,ps=0,_c=this.length-1;_c>=0;_c--)ps=(rs*ps+(this.words[_c]|0))%Qo;return Jo?-ps:ps},mo.prototype.modn=function(Qo){return this.modrn(Qo)},mo.prototype.idivn=function(Qo){var Jo=Qo<0;Jo&&(Qo=-Qo),fo(Qo<=67108863);for(var rs=0,ps=this.length-1;ps>=0;ps--){var _c=(this.words[ps]|0)+rs*67108864;this.words[ps]=_c/Qo|0,rs=_c%Qo}return this._strip(),Jo?this.ineg():this},mo.prototype.divn=function(Qo){return this.clone().idivn(Qo)},mo.prototype.egcd=function(Qo){fo(Qo.negative===0),fo(!Qo.isZero());var Jo=this,rs=Qo.clone();Jo.negative!==0?Jo=Jo.umod(Qo):Jo=Jo.clone();for(var ps=new mo(1),_c=new mo(0),$l=new mo(0),El=new mo(1),ds=0;Jo.isEven()&&rs.isEven();)Jo.iushrn(1),rs.iushrn(1),++ds;for(var os=rs.clone(),Al=Jo.clone();!Jo.isZero();){for(var Ul=0,Zl=1;!(Jo.words[0]&Zl)&&Ul<26;++Ul,Zl<<=1);if(Ul>0)for(Jo.iushrn(Ul);Ul-- >0;)(ps.isOdd()||_c.isOdd())&&(ps.iadd(os),_c.isub(Al)),ps.iushrn(1),_c.iushrn(1);for(var Pl=0,Hl=1;!(rs.words[0]&Hl)&&Pl<26;++Pl,Hl<<=1);if(Pl>0)for(rs.iushrn(Pl);Pl-- >0;)($l.isOdd()||El.isOdd())&&($l.iadd(os),El.isub(Al)),$l.iushrn(1),El.iushrn(1);Jo.cmp(rs)>=0?(Jo.isub(rs),ps.isub($l),_c.isub(El)):(rs.isub(Jo),$l.isub(ps),El.isub(_c))}return{a:$l,b:El,gcd:rs.iushln(ds)}},mo.prototype._invmp=function(Qo){fo(Qo.negative===0),fo(!Qo.isZero());var Jo=this,rs=Qo.clone();Jo.negative!==0?Jo=Jo.umod(Qo):Jo=Jo.clone();for(var ps=new mo(1),_c=new mo(0),$l=rs.clone();Jo.cmpn(1)>0&&rs.cmpn(1)>0;){for(var El=0,ds=1;!(Jo.words[0]&ds)&&El<26;++El,ds<<=1);if(El>0)for(Jo.iushrn(El);El-- >0;)ps.isOdd()&&ps.iadd($l),ps.iushrn(1);for(var os=0,Al=1;!(rs.words[0]&Al)&&os<26;++os,Al<<=1);if(os>0)for(rs.iushrn(os);os-- >0;)_c.isOdd()&&_c.iadd($l),_c.iushrn(1);Jo.cmp(rs)>=0?(Jo.isub(rs),ps.isub(_c)):(rs.isub(Jo),_c.isub(ps))}var Ul;return Jo.cmpn(1)===0?Ul=ps:Ul=_c,Ul.cmpn(0)<0&&Ul.iadd(Qo),Ul},mo.prototype.gcd=function(Qo){if(this.isZero())return Qo.abs();if(Qo.isZero())return this.abs();var Jo=this.clone(),rs=Qo.clone();Jo.negative=0,rs.negative=0;for(var ps=0;Jo.isEven()&&rs.isEven();ps++)Jo.iushrn(1),rs.iushrn(1);do{for(;Jo.isEven();)Jo.iushrn(1);for(;rs.isEven();)rs.iushrn(1);var _c=Jo.cmp(rs);if(_c<0){var $l=Jo;Jo=rs,rs=$l}else if(_c===0||rs.cmpn(1)===0)break;Jo.isub(rs)}while(!0);return rs.iushln(ps)},mo.prototype.invm=function(Qo){return this.egcd(Qo).a.umod(Qo)},mo.prototype.isEven=function(){return(this.words[0]&1)===0},mo.prototype.isOdd=function(){return(this.words[0]&1)===1},mo.prototype.andln=function(Qo){return this.words[0]&Qo},mo.prototype.bincn=function(Qo){fo(typeof Qo=="number");var Jo=Qo%26,rs=(Qo-Jo)/26,ps=1<<Jo;if(this.length<=rs)return this._expand(rs+1),this.words[rs]|=ps,this;for(var _c=ps,$l=rs;_c!==0&&$l<this.length;$l++){var El=this.words[$l]|0;El+=_c,_c=El>>>26,El&=67108863,this.words[$l]=El}return _c!==0&&(this.words[$l]=_c,this.length++),this},mo.prototype.isZero=function(){return this.length===1&&this.words[0]===0},mo.prototype.cmpn=function(Qo){var Jo=Qo<0;if(this.negative!==0&&!Jo)return-1;if(this.negative===0&&Jo)return 1;this._strip();var rs;if(this.length>1)rs=1;else{Jo&&(Qo=-Qo),fo(Qo<=67108863,"Number is too big");var ps=this.words[0]|0;rs=ps===Qo?0:ps<Qo?-1:1}return this.negative!==0?-rs|0:rs},mo.prototype.cmp=function(Qo){if(this.negative!==0&&Qo.negative===0)return-1;if(this.negative===0&&Qo.negative!==0)return 1;var Jo=this.ucmp(Qo);return this.negative!==0?-Jo|0:Jo},mo.prototype.ucmp=function(Qo){if(this.length>Qo.length)return 1;if(this.length<Qo.length)return-1;for(var Jo=0,rs=this.length-1;rs>=0;rs--){var ps=this.words[rs]|0,_c=Qo.words[rs]|0;if(ps!==_c){ps<_c?Jo=-1:ps>_c&&(Jo=1);break}}return Jo},mo.prototype.gtn=function(Qo){return this.cmpn(Qo)===1},mo.prototype.gt=function(Qo){return this.cmp(Qo)===1},mo.prototype.gten=function(Qo){return this.cmpn(Qo)>=0},mo.prototype.gte=function(Qo){return this.cmp(Qo)>=0},mo.prototype.ltn=function(Qo){return this.cmpn(Qo)===-1},mo.prototype.lt=function(Qo){return this.cmp(Qo)===-1},mo.prototype.lten=function(Qo){return this.cmpn(Qo)<=0},mo.prototype.lte=function(Qo){return this.cmp(Qo)<=0},mo.prototype.eqn=function(Qo){return this.cmpn(Qo)===0},mo.prototype.eq=function(Qo){return this.cmp(Qo)===0},mo.red=function(Qo){return new Dl(Qo)},mo.prototype.toRed=function(Qo){return fo(!this.red,"Already a number in reduction context"),fo(this.negative===0,"red works only with positives"),Qo.convertTo(this)._forceRed(Qo)},mo.prototype.fromRed=function(){return fo(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},mo.prototype._forceRed=function(Qo){return this.red=Qo,this},mo.prototype.forceRed=function(Qo){return fo(!this.red,"Already a number in reduction context"),this._forceRed(Qo)},mo.prototype.redAdd=function(Qo){return fo(this.red,"redAdd works only with red numbers"),this.red.add(this,Qo)},mo.prototype.redIAdd=function(Qo){return fo(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Qo)},mo.prototype.redSub=function(Qo){return fo(this.red,"redSub works only with red numbers"),this.red.sub(this,Qo)},mo.prototype.redISub=function(Qo){return fo(this.red,"redISub works only with red numbers"),this.red.isub(this,Qo)},mo.prototype.redShl=function(Qo){return fo(this.red,"redShl works only with red numbers"),this.red.shl(this,Qo)},mo.prototype.redMul=function(Qo){return fo(this.red,"redMul works only with red numbers"),this.red._verify2(this,Qo),this.red.mul(this,Qo)},mo.prototype.redIMul=function(Qo){return fo(this.red,"redMul works only with red numbers"),this.red._verify2(this,Qo),this.red.imul(this,Qo)},mo.prototype.redSqr=function(){return fo(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},mo.prototype.redISqr=function(){return fo(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},mo.prototype.redSqrt=function(){return fo(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},mo.prototype.redInvm=function(){return fo(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},mo.prototype.redNeg=function(){return fo(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},mo.prototype.redPow=function(Qo){return fo(this.red&&!Qo.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Qo)};var Il={k256:null,p224:null,p192:null,p25519:null};function Ol(Qo,Jo){this.name=Qo,this.p=new mo(Jo,16),this.n=this.p.bitLength(),this.k=new mo(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ol.prototype._tmp=function(){var Qo=new mo(null);return Qo.words=new Array(Math.ceil(this.n/13)),Qo},Ol.prototype.ireduce=function(Qo){var Jo=Qo,rs;do this.split(Jo,this.tmp),Jo=this.imulK(Jo),Jo=Jo.iadd(this.tmp),rs=Jo.bitLength();while(rs>this.n);var ps=rs<this.n?-1:Jo.ucmp(this.p);return ps===0?(Jo.words[0]=0,Jo.length=1):ps>0?Jo.isub(this.p):Jo.strip!==void 0?Jo.strip():Jo._strip(),Jo},Ol.prototype.split=function(Qo,Jo){Qo.iushrn(this.n,0,Jo)},Ol.prototype.imulK=function(Qo){return Qo.imul(this.k)};function Tl(){Ol.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$o(Tl,Ol),Tl.prototype.split=function(Qo,Jo){for(var rs=4194303,ps=Math.min(Qo.length,9),_c=0;_c<ps;_c++)Jo.words[_c]=Qo.words[_c];if(Jo.length=ps,Qo.length<=9){Qo.words[0]=0,Qo.length=1;return}var $l=Qo.words[9];for(Jo.words[Jo.length++]=$l&rs,_c=10;_c<Qo.length;_c++){var El=Qo.words[_c]|0;Qo.words[_c-10]=(El&rs)<<4|$l>>>22,$l=El}$l>>>=22,Qo.words[_c-10]=$l,$l===0&&Qo.length>10?Qo.length-=10:Qo.length-=9},Tl.prototype.imulK=function(Qo){Qo.words[Qo.length]=0,Qo.words[Qo.length+1]=0,Qo.length+=2;for(var Jo=0,rs=0;rs<Qo.length;rs++){var ps=Qo.words[rs]|0;Jo+=ps*977,Qo.words[rs]=Jo&67108863,Jo=ps*64+(Jo/67108864|0)}return Qo.words[Qo.length-1]===0&&(Qo.length--,Qo.words[Qo.length-1]===0&&Qo.length--),Qo};function Cl(){Ol.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$o(Cl,Ol);function Nl(){Ol.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$o(Nl,Ol);function Wl(){Ol.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$o(Wl,Ol),Wl.prototype.imulK=function(Qo){for(var Jo=0,rs=0;rs<Qo.length;rs++){var ps=(Qo.words[rs]|0)*19+Jo,_c=ps&67108863;ps>>>=26,Qo.words[rs]=_c,Jo=ps}return Jo!==0&&(Qo.words[Qo.length++]=Jo),Qo},mo._prime=function(Qo){if(Il[Qo])return Il[Qo];var Jo;if(Qo==="k256")Jo=new Tl;else if(Qo==="p224")Jo=new Cl;else if(Qo==="p192")Jo=new Nl;else if(Qo==="p25519")Jo=new Wl;else throw new Error("Unknown prime "+Qo);return Il[Qo]=Jo,Jo};function Dl(Qo){if(typeof Qo=="string"){var Jo=mo._prime(Qo);this.m=Jo.p,this.prime=Jo}else fo(Qo.gtn(1),"modulus must be greater than 1"),this.m=Qo,this.prime=null}Dl.prototype._verify1=function(Qo){fo(Qo.negative===0,"red works only with positives"),fo(Qo.red,"red works only with red numbers")},Dl.prototype._verify2=function(Qo,Jo){fo((Qo.negative|Jo.negative)===0,"red works only with positives"),fo(Qo.red&&Qo.red===Jo.red,"red works only with red numbers")},Dl.prototype.imod=function(Qo){return this.prime?this.prime.ireduce(Qo)._forceRed(this):(zo(Qo,Qo.umod(this.m)._forceRed(this)),Qo)},Dl.prototype.neg=function(Qo){return Qo.isZero()?Qo.clone():this.m.sub(Qo)._forceRed(this)},Dl.prototype.add=function(Qo,Jo){this._verify2(Qo,Jo);var rs=Qo.add(Jo);return rs.cmp(this.m)>=0&&rs.isub(this.m),rs._forceRed(this)},Dl.prototype.iadd=function(Qo,Jo){this._verify2(Qo,Jo);var rs=Qo.iadd(Jo);return rs.cmp(this.m)>=0&&rs.isub(this.m),rs},Dl.prototype.sub=function(Qo,Jo){this._verify2(Qo,Jo);var rs=Qo.sub(Jo);return rs.cmpn(0)<0&&rs.iadd(this.m),rs._forceRed(this)},Dl.prototype.isub=function(Qo,Jo){this._verify2(Qo,Jo);var rs=Qo.isub(Jo);return rs.cmpn(0)<0&&rs.iadd(this.m),rs},Dl.prototype.shl=function(Qo,Jo){return this._verify1(Qo),this.imod(Qo.ushln(Jo))},Dl.prototype.imul=function(Qo,Jo){return this._verify2(Qo,Jo),this.imod(Qo.imul(Jo))},Dl.prototype.mul=function(Qo,Jo){return this._verify2(Qo,Jo),this.imod(Qo.mul(Jo))},Dl.prototype.isqr=function(Qo){return this.imul(Qo,Qo.clone())},Dl.prototype.sqr=function(Qo){return this.mul(Qo,Qo)},Dl.prototype.sqrt=function(Qo){if(Qo.isZero())return Qo.clone();var Jo=this.m.andln(3);if(fo(Jo%2===1),Jo===3){var rs=this.m.add(new mo(1)).iushrn(2);return this.pow(Qo,rs)}for(var ps=this.m.subn(1),_c=0;!ps.isZero()&&ps.andln(1)===0;)_c++,ps.iushrn(1);fo(!ps.isZero());var $l=new mo(1).toRed(this),El=$l.redNeg(),ds=this.m.subn(1).iushrn(1),os=this.m.bitLength();for(os=new mo(2*os*os).toRed(this);this.pow(os,ds).cmp(El)!==0;)os.redIAdd(El);for(var Al=this.pow(os,ps),Ul=this.pow(Qo,ps.addn(1).iushrn(1)),Zl=this.pow(Qo,ps),Pl=_c;Zl.cmp($l)!==0;){for(var Hl=Zl,Ml=0;Hl.cmp($l)!==0;Ml++)Hl=Hl.redSqr();fo(Ml<Pl);var Fl=this.pow(Al,new mo(1).iushln(Pl-Ml-1));Ul=Ul.redMul(Fl),Al=Fl.redSqr(),Zl=Zl.redMul(Al),Pl=Ml}return Ul},Dl.prototype.invm=function(Qo){var Jo=Qo._invmp(this.m);return Jo.negative!==0?(Jo.negative=0,this.imod(Jo).redNeg()):this.imod(Jo)},Dl.prototype.pow=function(Qo,Jo){if(Jo.isZero())return new mo(1).toRed(this);if(Jo.cmpn(1)===0)return Qo.clone();var rs=4,ps=new Array(1<<rs);ps[0]=new mo(1).toRed(this),ps[1]=Qo;for(var _c=2;_c<ps.length;_c++)ps[_c]=this.mul(ps[_c-1],Qo);var $l=ps[0],El=0,ds=0,os=Jo.bitLength()%26;for(os===0&&(os=26),_c=Jo.length-1;_c>=0;_c--){for(var Al=Jo.words[_c],Ul=os-1;Ul>=0;Ul--){var Zl=Al>>Ul&1;if($l!==ps[0]&&($l=this.sqr($l)),Zl===0&&El===0){ds=0;continue}El<<=1,El|=Zl,ds++,!(ds!==rs&&(_c!==0||Ul!==0))&&($l=this.mul($l,ps[El]),ds=0,El=0)}os=26}return $l},Dl.prototype.convertTo=function(Qo){var Jo=Qo.umod(this.m);return Jo===Qo?Jo.clone():Jo},Dl.prototype.convertFrom=function(Qo){var Jo=Qo.clone();return Jo.red=null,Jo},mo.mont=function(Qo){return new Rl(Qo)};function Rl(Qo){Dl.call(this,Qo),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new mo(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$o(Rl,Dl),Rl.prototype.convertTo=function(Qo){return this.imod(Qo.ushln(this.shift))},Rl.prototype.convertFrom=function(Qo){var Jo=this.imod(Qo.mul(this.rinv));return Jo.red=null,Jo},Rl.prototype.imul=function(Qo,Jo){if(Qo.isZero()||Jo.isZero())return Qo.words[0]=0,Qo.length=1,Qo;var rs=Qo.imul(Jo),ps=rs.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_c=rs.isub(ps).iushrn(this.shift),$l=_c;return _c.cmp(this.m)>=0?$l=_c.isub(this.m):_c.cmpn(0)<0&&($l=_c.iadd(this.m)),$l._forceRed(this)},Rl.prototype.mul=function(Qo,Jo){if(Qo.isZero()||Jo.isZero())return new mo(0)._forceRed(this);var rs=Qo.mul(Jo),ps=rs.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_c=rs.isub(ps).iushrn(this.shift),$l=_c;return _c.cmp(this.m)>=0?$l=_c.isub(this.m):_c.cmpn(0)<0&&($l=_c.iadd(this.m)),$l._forceRed(this)},Rl.prototype.invm=function(Qo){var Jo=this.imod(Qo._invmp(this.m).mul(this.r2));return Jo._forceRed(this)}})(Mn,Kn$1)})(Xn$1);var K$4=Xn$1.exports;const $n$1="bignumber/5.7.0";var Dr$2=K$4.BN;const Ae$3=new z$6($n$1),Ni$2={},Zn$1=9007199254740991;function Hs$1(Mn){return Mn!=null&&(V$3.isBigNumber(Mn)||typeof Mn=="number"&&Mn%1===0||typeof Mn=="string"&&!!Mn.match(/^-?[0-9]+$/)||Jt$2(Mn)||typeof Mn=="bigint"||nr$2(Mn))}let tf$2=!1,V$3=class em{constructor(Fn,io){Fn!==Ni$2&&Ae$3.throwError("cannot call constructor directly; use BigNumber.from",z$6.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=io,this._isBigNumber=!0,Object.freeze(this)}fromTwos(Fn){return zt$2(j$8(this).fromTwos(Fn))}toTwos(Fn){return zt$2(j$8(this).toTwos(Fn))}abs(){return this._hex[0]==="-"?em.from(this._hex.substring(1)):this}add(Fn){return zt$2(j$8(this).add(j$8(Fn)))}sub(Fn){return zt$2(j$8(this).sub(j$8(Fn)))}div(Fn){return em.from(Fn).isZero()&&$t$2("division-by-zero","div"),zt$2(j$8(this).div(j$8(Fn)))}mul(Fn){return zt$2(j$8(this).mul(j$8(Fn)))}mod(Fn){const io=j$8(Fn);return io.isNeg()&&$t$2("division-by-zero","mod"),zt$2(j$8(this).umod(io))}pow(Fn){const io=j$8(Fn);return io.isNeg()&&$t$2("negative-power","pow"),zt$2(j$8(this).pow(io))}and(Fn){const io=j$8(Fn);return(this.isNegative()||io.isNeg())&&$t$2("unbound-bitwise-result","and"),zt$2(j$8(this).and(io))}or(Fn){const io=j$8(Fn);return(this.isNegative()||io.isNeg())&&$t$2("unbound-bitwise-result","or"),zt$2(j$8(this).or(io))}xor(Fn){const io=j$8(Fn);return(this.isNegative()||io.isNeg())&&$t$2("unbound-bitwise-result","xor"),zt$2(j$8(this).xor(io))}mask(Fn){return(this.isNegative()||Fn<0)&&$t$2("negative-width","mask"),zt$2(j$8(this).maskn(Fn))}shl(Fn){return(this.isNegative()||Fn<0)&&$t$2("negative-width","shl"),zt$2(j$8(this).shln(Fn))}shr(Fn){return(this.isNegative()||Fn<0)&&$t$2("negative-width","shr"),zt$2(j$8(this).shrn(Fn))}eq(Fn){return j$8(this).eq(j$8(Fn))}lt(Fn){return j$8(this).lt(j$8(Fn))}lte(Fn){return j$8(this).lte(j$8(Fn))}gt(Fn){return j$8(this).gt(j$8(Fn))}gte(Fn){return j$8(this).gte(j$8(Fn))}isNegative(){return this._hex[0]==="-"}isZero(){return j$8(this).isZero()}toNumber(){try{return j$8(this).toNumber()}catch{$t$2("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Ae$3.throwError("this platform does not support BigInt",z$6.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?tf$2||(tf$2=!0,Ae$3.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Ae$3.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",z$6.errors.UNEXPECTED_ARGUMENT,{}):Ae$3.throwError("BigNumber.toString does not accept parameters",z$6.errors.UNEXPECTED_ARGUMENT,{})),j$8(this).toString(10)}toHexString(){return this._hex}toJSON(Fn){return{type:"BigNumber",hex:this.toHexString()}}static from(Fn){if(Fn instanceof em)return Fn;if(typeof Fn=="string")return Fn.match(/^-?0x[0-9a-f]+$/i)?new em(Ni$2,mr$2(Fn)):Fn.match(/^-?[0-9]+$/)?new em(Ni$2,mr$2(new Dr$2(Fn))):Ae$3.throwArgumentError("invalid BigNumber string","value",Fn);if(typeof Fn=="number")return Fn%1&&$t$2("underflow","BigNumber.from",Fn),(Fn>=Zn$1||Fn<=-Zn$1)&&$t$2("overflow","BigNumber.from",Fn),em.from(String(Fn));const io=Fn;if(typeof io=="bigint")return em.from(io.toString());if(nr$2(io))return em.from(Kt$2(io));if(io)if(io.toHexString){const fo=io.toHexString();if(typeof fo=="string")return em.from(fo)}else{let fo=io._hex;if(fo==null&&io.type==="BigNumber"&&(fo=io.hex),typeof fo=="string"&&(Jt$2(fo)||fo[0]==="-"&&Jt$2(fo.substring(1))))return em.from(fo)}return Ae$3.throwArgumentError("invalid BigNumber value","value",Fn)}static isBigNumber(Fn){return!!(Fn&&Fn._isBigNumber)}};function mr$2(Mn){if(typeof Mn!="string")return mr$2(Mn.toString(16));if(Mn[0]==="-")return Mn=Mn.substring(1),Mn[0]==="-"&&Ae$3.throwArgumentError("invalid hex","value",Mn),Mn=mr$2(Mn),Mn==="0x00"?Mn:"-"+Mn;if(Mn.substring(0,2)!=="0x"&&(Mn="0x"+Mn),Mn==="0x")return"0x00";for(Mn.length%2&&(Mn="0x0"+Mn.substring(2));Mn.length>4&&Mn.substring(0,4)==="0x00";)Mn="0x"+Mn.substring(4);return Mn}function zt$2(Mn){return V$3.from(mr$2(Mn))}function j$8(Mn){const Fn=V$3.from(Mn).toHexString();return Fn[0]==="-"?new Dr$2("-"+Fn.substring(3),16):new Dr$2(Fn.substring(2),16)}function $t$2(Mn,Fn,io){const fo={fault:Mn,operation:Fn};return io!=null&&(fo.value=io),Ae$3.throwError(Mn,z$6.errors.NUMERIC_FAULT,fo)}function Ls$2(Mn){return new Dr$2(Mn,36).toString(16)}const Ht$2=new z$6($n$1),Ar$2={},ef$1=V$3.from(0),rf$1=V$3.from(-1);function nf$2(Mn,Fn,io,fo){const $o={fault:Fn,operation:io};return fo!==void 0&&($o.value=fo),Ht$2.throwError(Mn,z$6.errors.NUMERIC_FAULT,$o)}let br$2="0";for(;br$2.length<256;)br$2+=br$2;function _i$1(Mn){if(typeof Mn!="number")try{Mn=V$3.from(Mn).toNumber()}catch{}return typeof Mn=="number"&&Mn>=0&&Mn<=256&&!(Mn%1)?"1"+br$2.substring(0,Mn):Ht$2.throwArgumentError("invalid decimal size","decimals",Mn)}function Bi$2(Mn,Fn){Fn==null&&(Fn=0);const io=_i$1(Fn);Mn=V$3.from(Mn);const fo=Mn.lt(ef$1);fo&&(Mn=Mn.mul(rf$1));let $o=Mn.mod(io).toString();for(;$o.length<io.length-1;)$o="0"+$o;$o=$o.match(/^([0-9]*[1-9]|0)(0*)/)[1];const mo=Mn.div(io).toString();return io.length===1?Mn=mo:Mn=mo+"."+$o,fo&&(Mn="-"+Mn),Mn}function be$4(Mn,Fn){Fn==null&&(Fn=0);const io=_i$1(Fn);(typeof Mn!="string"||!Mn.match(/^-?[0-9.]+$/))&&Ht$2.throwArgumentError("invalid decimal value","value",Mn);const fo=Mn.substring(0,1)==="-";fo&&(Mn=Mn.substring(1)),Mn==="."&&Ht$2.throwArgumentError("missing value","value",Mn);const $o=Mn.split(".");$o.length>2&&Ht$2.throwArgumentError("too many decimal points","value",Mn);let mo=$o[0],Ao=$o[1];for(mo||(mo="0"),Ao||(Ao="0");Ao[Ao.length-1]==="0";)Ao=Ao.substring(0,Ao.length-1);for(Ao.length>io.length-1&&nf$2("fractional component exceeds decimals","underflow","parseFixed"),Ao===""&&(Ao="0");Ao.length<io.length-1;)Ao+="0";const jo=V$3.from(mo),Lo=V$3.from(Ao);let Ho=jo.mul(io).add(Lo);return fo&&(Ho=Ho.mul(rf$1)),Ho}let vr$2=class K2{constructor(Fn,io,fo,$o){Fn!==Ar$2&&Ht$2.throwError("cannot use FixedFormat constructor; use FixedFormat.from",z$6.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=io,this.width=fo,this.decimals=$o,this.name=(io?"":"u")+"fixed"+String(fo)+"x"+String($o),this._multiplier=_i$1($o),Object.freeze(this)}static from(Fn){if(Fn instanceof K2)return Fn;typeof Fn=="number"&&(Fn=`fixed128x${Fn}`);let io=!0,fo=128,$o=18;if(typeof Fn=="string"){if(Fn!=="fixed")if(Fn==="ufixed")io=!1;else{const mo=Fn.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);mo||Ht$2.throwArgumentError("invalid fixed format","format",Fn),io=mo[1]!=="u",fo=parseInt(mo[2]),$o=parseInt(mo[3])}}else if(Fn){const mo=(Ao,jo,Lo)=>Fn[Ao]==null?Lo:(typeof Fn[Ao]!==jo&&Ht$2.throwArgumentError("invalid fixed format ("+Ao+" not "+jo+")","format."+Ao,Fn[Ao]),Fn[Ao]);io=mo("signed","boolean",io),fo=mo("width","number",fo),$o=mo("decimals","number",$o)}return fo%8&&Ht$2.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",fo),$o>80&&Ht$2.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",$o),new K2(Ar$2,io,fo,$o)}},Ut$2=class C${constructor(Fn,io,fo,$o){Fn!==Ar$2&&Ht$2.throwError("cannot use FixedNumber constructor; use FixedNumber.from",z$6.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=$o,this._hex=io,this._value=fo,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(Fn){this.format.name!==Fn.format.name&&Ht$2.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",Fn)}addUnsafe(Fn){this._checkFormat(Fn);const io=be$4(this._value,this.format.decimals),fo=be$4(Fn._value,Fn.format.decimals);return C$.fromValue(io.add(fo),this.format.decimals,this.format)}subUnsafe(Fn){this._checkFormat(Fn);const io=be$4(this._value,this.format.decimals),fo=be$4(Fn._value,Fn.format.decimals);return C$.fromValue(io.sub(fo),this.format.decimals,this.format)}mulUnsafe(Fn){this._checkFormat(Fn);const io=be$4(this._value,this.format.decimals),fo=be$4(Fn._value,Fn.format.decimals);return C$.fromValue(io.mul(fo).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(Fn){this._checkFormat(Fn);const io=be$4(this._value,this.format.decimals),fo=be$4(Fn._value,Fn.format.decimals);return C$.fromValue(io.mul(this.format._multiplier).div(fo),this.format.decimals,this.format)}floor(){const Fn=this.toString().split(".");Fn.length===1&&Fn.push("0");let io=C$.from(Fn[0],this.format);const fo=!Fn[1].match(/^(0*)$/);return this.isNegative()&&fo&&(io=io.subUnsafe(ff$1.toFormat(io.format))),io}ceiling(){const Fn=this.toString().split(".");Fn.length===1&&Fn.push("0");let io=C$.from(Fn[0],this.format);const fo=!Fn[1].match(/^(0*)$/);return!this.isNegative()&&fo&&(io=io.addUnsafe(ff$1.toFormat(io.format))),io}round(Fn){Fn==null&&(Fn=0);const io=this.toString().split(".");if(io.length===1&&io.push("0"),(Fn<0||Fn>80||Fn%1)&&Ht$2.throwArgumentError("invalid decimal count","decimals",Fn),io[1].length<=Fn)return this;const fo=C$.from("1"+br$2.substring(0,Fn),this.format),$o=zs$2.toFormat(this.format);return this.mulUnsafe(fo).addUnsafe($o).floor().divUnsafe(fo)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(Fn){if(Fn==null)return this._hex;Fn%8&&Ht$2.throwArgumentError("invalid byte width","width",Fn);const io=V$3.from(this._hex).fromTwos(this.format.width).toTwos(Fn).toHexString();return oe$4(io,Fn/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(Fn){return C$.fromString(this._value,Fn)}static fromValue(Fn,io,fo){return fo==null&&io!=null&&!Hs$1(io)&&(fo=io,io=null),io==null&&(io=0),fo==null&&(fo="fixed"),C$.fromString(Bi$2(Fn,io),vr$2.from(fo))}static fromString(Fn,io){io==null&&(io="fixed");const fo=vr$2.from(io),$o=be$4(Fn,fo.decimals);!fo.signed&&$o.lt(ef$1)&&nf$2("unsigned value cannot be negative","overflow","value",Fn);let mo=null;fo.signed?mo=$o.toTwos(fo.width).toHexString():(mo=$o.toHexString(),mo=oe$4(mo,fo.width/8));const Ao=Bi$2($o,fo.decimals);return new C$(Ar$2,mo,Ao,fo)}static fromBytes(Fn,io){io==null&&(io="fixed");const fo=vr$2.from(io);if(Ot$2(Fn).length>fo.width/8)throw new Error("overflow");let $o=V$3.from(Fn);fo.signed&&($o=$o.fromTwos(fo.width));const mo=$o.toTwos((fo.signed?0:1)+fo.width).toHexString(),Ao=Bi$2($o,fo.decimals);return new C$(Ar$2,mo,Ao,fo)}static from(Fn,io){if(typeof Fn=="string")return C$.fromString(Fn,io);if(nr$2(Fn))return C$.fromBytes(Fn,io);try{return C$.fromValue(Fn,0,io)}catch(fo){if(fo.code!==z$6.errors.INVALID_ARGUMENT)throw fo}return Ht$2.throwArgumentError("invalid FixedNumber value","value",Fn)}static isFixedNumber(Fn){return!!(Fn&&Fn._isFixedNumber)}};const ff$1=Ut$2.from(1),zs$2=Ut$2.from("0.5"),js$2="strings/5.7.0",of$2=new z$6(js$2);var Fr$2;(function(Mn){Mn.current="",Mn.NFC="NFC",Mn.NFD="NFD",Mn.NFKC="NFKC",Mn.NFKD="NFKD"})(Fr$2||(Fr$2={}));var fr$2;(function(Mn){Mn.UNEXPECTED_CONTINUE="unexpected continuation byte",Mn.BAD_PREFIX="bad codepoint prefix",Mn.OVERRUN="string overrun",Mn.MISSING_CONTINUE="missing continuation byte",Mn.OUT_OF_RANGE="out of UTF-8 range",Mn.UTF16_SURROGATE="UTF-16 surrogate",Mn.OVERLONG="overlong representation"})(fr$2||(fr$2={}));function Ci$2(Mn,Fn=Fr$2.current){Fn!=Fr$2.current&&(of$2.checkNormalize(),Mn=Mn.normalize(Fn));let io=[];for(let fo=0;fo<Mn.length;fo++){const $o=Mn.charCodeAt(fo);if($o<128)io.push($o);else if($o<2048)io.push($o>>6|192),io.push($o&63|128);else if(($o&64512)==55296){fo++;const mo=Mn.charCodeAt(fo);if(fo>=Mn.length||(mo&64512)!==56320)throw new Error("invalid utf-8 string");const Ao=65536+(($o&1023)<<10)+(mo&1023);io.push(Ao>>18|240),io.push(Ao>>12&63|128),io.push(Ao>>6&63|128),io.push(Ao&63|128)}else io.push($o>>12|224),io.push($o>>6&63|128),io.push($o&63|128)}return Ot$2(io)}function Gs$2(Mn){if(Mn.length%4!==0)throw new Error("bad data");let Fn=[];for(let io=0;io<Mn.length;io+=4)Fn.push(parseInt(Mn.substring(io,io+4),16));return Fn}function Ri$1(Mn,Fn){Fn||(Fn=function($o){return[parseInt($o,16)]});let io=0,fo={};return Mn.split(",").forEach($o=>{let mo=$o.split(":");io+=parseInt(mo[0],16),fo[io]=Fn(mo[1])}),fo}function af$2(Mn){let Fn=0;return Mn.split(",").map(io=>{let fo=io.split("-");fo.length===1?fo[1]="0":fo[1]===""&&(fo[1]="1");let $o=Fn+parseInt(fo[0],16);return Fn=parseInt(fo[1],16),{l:$o,h:Fn}})}af$2("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(Mn=>parseInt(Mn,16)),Ri$1("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Ri$1("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Ri$1("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",Gs$2),af$2("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function Ys$2(Mn){Mn=atob(Mn);const Fn=[];for(let io=0;io<Mn.length;io++)Fn.push(Mn.charCodeAt(io));return Ot$2(Fn)}function hf$1(Mn,Fn){Fn==null&&(Fn=1);const io=[],fo=io.forEach,$o=function(mo,Ao){fo.call(mo,function(jo){Ao>0&&Array.isArray(jo)?$o(jo,Ao-1):io.push(jo)})};return $o(Mn,Fn),io}function Vs$2(Mn){const Fn={};for(let io=0;io<Mn.length;io++){const fo=Mn[io];Fn[fo[0]]=fo[1]}return Fn}function Ws$2(Mn){let Fn=0;function io(){return Mn[Fn++]<<8|Mn[Fn++]}let fo=io(),$o=1,mo=[0,1];for(let Il=1;Il<fo;Il++)mo.push($o+=io());let Ao=io(),jo=Fn;Fn+=Ao;let Lo=0,Ho=0;function zo(){return Lo==0&&(Ho=Ho<<8|Mn[Fn++],Lo=8),Ho>>--Lo&1}const Go=31,Vo=Math.pow(2,Go),Yo=Vo>>>1,Xo=Yo>>1,is=Vo-1;let yl=0;for(let Il=0;Il<Go;Il++)yl=yl<<1|zo();let us=[],hs=0,_l=Vo;for(;;){let Il=Math.floor(((yl-hs+1)*$o-1)/_l),Ol=0,Tl=fo;for(;Tl-Ol>1;){let Wl=Ol+Tl>>>1;Il<mo[Wl]?Tl=Wl:Ol=Wl}if(Ol==0)break;us.push(Ol);let Cl=hs+Math.floor(_l*mo[Ol]/$o),Nl=hs+Math.floor(_l*mo[Ol+1]/$o)-1;for(;!((Cl^Nl)&Yo);)yl=yl<<1&is|zo(),Cl=Cl<<1&is,Nl=Nl<<1&is|1;for(;Cl&~Nl&Xo;)yl=yl&Yo|yl<<1&is>>>1|zo(),Cl=Cl<<1^Yo,Nl=(Nl^Yo)<<1|Yo|1;hs=Cl,_l=1+Nl-Cl}let xl=fo-4;return us.map(Il=>{switch(Il-xl){case 3:return xl+65792+(Mn[jo++]<<16|Mn[jo++]<<8|Mn[jo++]);case 2:return xl+256+(Mn[jo++]<<8|Mn[jo++]);case 1:return xl+Mn[jo++];default:return Il-1}})}function Xs$2(Mn){let Fn=0;return()=>Mn[Fn++]}function $s$2(Mn){return Xs$2(Ws$2(Mn))}function Zs$2(Mn){return Mn&1?~Mn>>1:Mn>>1}function t0$1(Mn,Fn){let io=Array(Mn);for(let fo=0;fo<Mn;fo++)io[fo]=1+Fn();return io}function cf$1(Mn,Fn){let io=Array(Mn);for(let fo=0,$o=-1;fo<Mn;fo++)io[fo]=$o+=1+Fn();return io}function e0$1(Mn,Fn){let io=Array(Mn);for(let fo=0,$o=0;fo<Mn;fo++)io[fo]=$o+=Zs$2(Fn());return io}function Ur$2(Mn,Fn){let io=cf$1(Mn(),Mn),fo=Mn(),$o=cf$1(fo,Mn),mo=t0$1(fo,Mn);for(let Ao=0;Ao<fo;Ao++)for(let jo=0;jo<mo[Ao];jo++)io.push($o[Ao]+jo);return Fn?io.map(Ao=>Fn[Ao]):io}function r0$1(Mn){let Fn=[];for(;;){let io=Mn();if(io==0)break;Fn.push(n0(io,Mn))}for(;;){let io=Mn()-1;if(io<0)break;Fn.push(f0(io,Mn))}return Vs$2(hf$1(Fn))}function i0$1(Mn){let Fn=[];for(;;){let io=Mn();if(io==0)break;Fn.push(io)}return Fn}function lf$2(Mn,Fn,io){let fo=Array(Mn).fill(void 0).map(()=>[]);for(let $o=0;$o<Fn;$o++)e0$1(Mn,io).forEach((mo,Ao)=>fo[Ao].push(mo));return fo}function n0(Mn,Fn){let io=1+Fn(),fo=Fn(),$o=i0$1(Fn),mo=lf$2($o.length,1+Mn,Fn);return hf$1(mo.map((Ao,jo)=>{const Lo=Ao[0],Ho=Ao.slice(1);return Array($o[jo]).fill(void 0).map((zo,Go)=>{let Vo=Go*fo;return[Lo+Go*io,Ho.map(Yo=>Yo+Vo)]})}))}function f0(Mn,Fn){let io=1+Fn();return lf$2(io,1+Mn,Fn).map(fo=>[fo[0],fo.slice(1)])}function o0(Mn){let Fn=Ur$2(Mn).sort((fo,$o)=>fo-$o);return io();function io(){let fo=[];for(;;){let Ho=Ur$2(Mn,Fn);if(Ho.length==0)break;fo.push({set:new Set(Ho),node:io()})}fo.sort((Ho,zo)=>zo.set.size-Ho.set.size);let $o=Mn(),mo=$o%3;$o=$o/3|0;let Ao=!!($o&1);$o>>=1;let jo=$o==1,Lo=$o==2;return{branches:fo,valid:mo,fe0f:Ao,save:jo,check:Lo}}}function s0(){return $s$2(Ys$2("AEQF2AO2DE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XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const kr$2=s0();new Set(Ur$2(kr$2)),new Set(Ur$2(kr$2)),r0$1(kr$2),o0(kr$2);const a0=new Uint8Array(32);a0.fill(0);const u0=`Ethereum Signed Message:
`;function df$2(Mn){return typeof Mn=="string"&&(Mn=Ci$2(Mn)),Ii$2(Ds$1([Ci$2(u0),Ci$2(String(Mn.length)),Mn]))}const c0="address/5.7.0",yr$1=new z$6(c0);function pf$2(Mn){Jt$2(Mn,20)||yr$1.throwArgumentError("invalid address","address",Mn),Mn=Mn.toLowerCase();const Fn=Mn.substring(2).split(""),io=new Uint8Array(40);for(let $o=0;$o<40;$o++)io[$o]=Fn[$o].charCodeAt(0);const fo=Ot$2(Ii$2(io));for(let $o=0;$o<40;$o+=2)fo[$o>>1]>>4>=8&&(Fn[$o]=Fn[$o].toUpperCase()),(fo[$o>>1]&15)>=8&&(Fn[$o+1]=Fn[$o+1].toUpperCase());return"0x"+Fn.join("")}const l0$1=9007199254740991;function d0$1(Mn){return Math.log10?Math.log10(Mn):Math.log(Mn)/Math.LN10}const Oi$2={};for(let Mn=0;Mn<10;Mn++)Oi$2[String(Mn)]=String(Mn);for(let Mn=0;Mn<26;Mn++)Oi$2[String.fromCharCode(65+Mn)]=String(10+Mn);const vf$2=Math.floor(d0$1(l0$1));function p0$1(Mn){Mn=Mn.toUpperCase(),Mn=Mn.substring(4)+Mn.substring(0,2)+"00";let Fn=Mn.split("").map(fo=>Oi$2[fo]).join("");for(;Fn.length>=vf$2;){let fo=Fn.substring(0,vf$2);Fn=parseInt(fo,10)%97+Fn.substring(fo.length)}let io=String(98-parseInt(Fn,10)%97);for(;io.length<2;)io="0"+io;return io}function v0$1(Mn){let Fn=null;if(typeof Mn!="string"&&yr$1.throwArgumentError("invalid address","address",Mn),Mn.match(/^(0x)?[0-9a-fA-F]{40}$/))Mn.substring(0,2)!=="0x"&&(Mn="0x"+Mn),Fn=pf$2(Mn),Mn.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&Fn!==Mn&&yr$1.throwArgumentError("bad address checksum","address",Mn);else if(Mn.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(Mn.substring(2,4)!==p0$1(Mn)&&yr$1.throwArgumentError("bad icap checksum","address",Mn),Fn=Ls$2(Mn.substring(4));Fn.length<40;)Fn="0"+Fn;Fn=pf$2("0x"+Fn)}else yr$1.throwArgumentError("invalid address","address",Mn);return Fn}function wr$1(Mn,Fn,io){Object.defineProperty(Mn,Fn,{enumerable:!0,value:io,writable:!1})}const m0$1=new Uint8Array(32);m0$1.fill(0),V$3.from(-1);const A0$1=V$3.from(0),b0$1=V$3.from(1);V$3.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),oe$4(b0$1.toHexString(),32),oe$4(A0$1.toHexString(),32);var se$2={},Q$5={},xr$2=gf$2;function gf$2(Mn,Fn){if(!Mn)throw new Error(Fn||"Assertion failed")}gf$2.equal=function(Mn,Fn,io){if(Mn!=Fn)throw new Error(io||"Assertion failed: "+Mn+" != "+Fn)};var Pi$2={exports:{}};typeof Object.create=="function"?Pi$2.exports=function(Mn,Fn){Fn&&(Mn.super_=Fn,Mn.prototype=Object.create(Fn.prototype,{constructor:{value:Mn,enumerable:!1,writable:!0,configurable:!0}}))}:Pi$2.exports=function(Mn,Fn){if(Fn){Mn.super_=Fn;var io=function(){};io.prototype=Fn.prototype,Mn.prototype=new io,Mn.prototype.constructor=Mn}};var y0$1=xr$2,w0$1=Pi$2.exports;Q$5.inherits=w0$1;function x0$1(Mn,Fn){return(Mn.charCodeAt(Fn)&64512)!==55296||Fn<0||Fn+1>=Mn.length?!1:(Mn.charCodeAt(Fn+1)&64512)===56320}function M0$1(Mn,Fn){if(Array.isArray(Mn))return Mn.slice();if(!Mn)return[];var io=[];if(typeof Mn=="string")if(Fn){if(Fn==="hex")for(Mn=Mn.replace(/[^a-z0-9]+/ig,""),Mn.length%2!==0&&(Mn="0"+Mn),$o=0;$o<Mn.length;$o+=2)io.push(parseInt(Mn[$o]+Mn[$o+1],16))}else for(var fo=0,$o=0;$o<Mn.length;$o++){var mo=Mn.charCodeAt($o);mo<128?io[fo++]=mo:mo<2048?(io[fo++]=mo>>6|192,io[fo++]=mo&63|128):x0$1(Mn,$o)?(mo=65536+((mo&1023)<<10)+(Mn.charCodeAt(++$o)&1023),io[fo++]=mo>>18|240,io[fo++]=mo>>12&63|128,io[fo++]=mo>>6&63|128,io[fo++]=mo&63|128):(io[fo++]=mo>>12|224,io[fo++]=mo>>6&63|128,io[fo++]=mo&63|128)}else for($o=0;$o<Mn.length;$o++)io[$o]=Mn[$o]|0;return io}Q$5.toArray=M0$1;function E0$1(Mn){for(var Fn="",io=0;io<Mn.length;io++)Fn+=Af$2(Mn[io].toString(16));return Fn}Q$5.toHex=E0$1;function mf$2(Mn){var Fn=Mn>>>24|Mn>>>8&65280|Mn<<8&16711680|(Mn&255)<<24;return Fn>>>0}Q$5.htonl=mf$2;function S0$2(Mn,Fn){for(var io="",fo=0;fo<Mn.length;fo++){var $o=Mn[fo];Fn==="little"&&($o=mf$2($o)),io+=bf$2($o.toString(16))}return io}Q$5.toHex32=S0$2;function Af$2(Mn){return Mn.length===1?"0"+Mn:Mn}Q$5.zero2=Af$2;function bf$2(Mn){return Mn.length===7?"0"+Mn:Mn.length===6?"00"+Mn:Mn.length===5?"000"+Mn:Mn.length===4?"0000"+Mn:Mn.length===3?"00000"+Mn:Mn.length===2?"000000"+Mn:Mn.length===1?"0000000"+Mn:Mn}Q$5.zero8=bf$2;function I0$1(Mn,Fn,io,fo){var $o=io-Fn;y0$1($o%4===0);for(var mo=new Array($o/4),Ao=0,jo=Fn;Ao<mo.length;Ao++,jo+=4){var Lo;fo==="big"?Lo=Mn[jo]<<24|Mn[jo+1]<<16|Mn[jo+2]<<8|Mn[jo+3]:Lo=Mn[jo+3]<<24|Mn[jo+2]<<16|Mn[jo+1]<<8|Mn[jo],mo[Ao]=Lo>>>0}return mo}Q$5.join32=I0$1;function N0$1(Mn,Fn){for(var io=new Array(Mn.length*4),fo=0,$o=0;fo<Mn.length;fo++,$o+=4){var mo=Mn[fo];Fn==="big"?(io[$o]=mo>>>24,io[$o+1]=mo>>>16&255,io[$o+2]=mo>>>8&255,io[$o+3]=mo&255):(io[$o+3]=mo>>>24,io[$o+2]=mo>>>16&255,io[$o+1]=mo>>>8&255,io[$o]=mo&255)}return io}Q$5.split32=N0$1;function _0$1(Mn,Fn){return Mn>>>Fn|Mn<<32-Fn}Q$5.rotr32=_0$1;function B0$1(Mn,Fn){return Mn<<Fn|Mn>>>32-Fn}Q$5.rotl32=B0$1;function C0$1(Mn,Fn){return Mn+Fn>>>0}Q$5.sum32=C0$1;function R0$1(Mn,Fn,io){return Mn+Fn+io>>>0}Q$5.sum32_3=R0$1;function O0$1(Mn,Fn,io,fo){return Mn+Fn+io+fo>>>0}Q$5.sum32_4=O0$1;function P0$1(Mn,Fn,io,fo,$o){return Mn+Fn+io+fo+$o>>>0}Q$5.sum32_5=P0$1;function T0$2(Mn,Fn,io,fo){var $o=Mn[Fn],mo=Mn[Fn+1],Ao=fo+mo>>>0,jo=(Ao<fo?1:0)+io+$o;Mn[Fn]=jo>>>0,Mn[Fn+1]=Ao}Q$5.sum64=T0$2;function D0$1(Mn,Fn,io,fo){var $o=Fn+fo>>>0,mo=($o<Fn?1:0)+Mn+io;return mo>>>0}Q$5.sum64_hi=D0$1;function F0$1(Mn,Fn,io,fo){var $o=Fn+fo;return $o>>>0}Q$5.sum64_lo=F0$1;function U0$1(Mn,Fn,io,fo,$o,mo,Ao,jo){var Lo=0,Ho=Fn;Ho=Ho+fo>>>0,Lo+=Ho<Fn?1:0,Ho=Ho+mo>>>0,Lo+=Ho<mo?1:0,Ho=Ho+jo>>>0,Lo+=Ho<jo?1:0;var zo=Mn+io+$o+Ao+Lo;return zo>>>0}Q$5.sum64_4_hi=U0$1;function k0$1(Mn,Fn,io,fo,$o,mo,Ao,jo){var Lo=Fn+fo+mo+jo;return Lo>>>0}Q$5.sum64_4_lo=k0$1;function q0$1(Mn,Fn,io,fo,$o,mo,Ao,jo,Lo,Ho){var zo=0,Go=Fn;Go=Go+fo>>>0,zo+=Go<Fn?1:0,Go=Go+mo>>>0,zo+=Go<mo?1:0,Go=Go+jo>>>0,zo+=Go<jo?1:0,Go=Go+Ho>>>0,zo+=Go<Ho?1:0;var Vo=Mn+io+$o+Ao+Lo+zo;return Vo>>>0}Q$5.sum64_5_hi=q0$1;function K0$1(Mn,Fn,io,fo,$o,mo,Ao,jo,Lo,Ho){var zo=Fn+fo+mo+jo+Ho;return zo>>>0}Q$5.sum64_5_lo=K0$1;function H0$1(Mn,Fn,io){var fo=Fn<<32-io|Mn>>>io;return fo>>>0}Q$5.rotr64_hi=H0$1;function L0$2(Mn,Fn,io){var fo=Mn<<32-io|Fn>>>io;return fo>>>0}Q$5.rotr64_lo=L0$2;function z0$1(Mn,Fn,io){return Mn>>>io}Q$5.shr64_hi=z0$1;function j0$1(Mn,Fn,io){var fo=Mn<<32-io|Fn>>>io;return fo>>>0}Q$5.shr64_lo=j0$1;var or$2={},yf$2=Q$5,Q0$1=xr$2;function qr$2(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}or$2.BlockHash=qr$2,qr$2.prototype.update=function(Mn,Fn){if(Mn=yf$2.toArray(Mn,Fn),this.pending?this.pending=this.pending.concat(Mn):this.pending=Mn,this.pendingTotal+=Mn.length,this.pending.length>=this._delta8){Mn=this.pending;var io=Mn.length%this._delta8;this.pending=Mn.slice(Mn.length-io,Mn.length),this.pending.length===0&&(this.pending=null),Mn=yf$2.join32(Mn,0,Mn.length-io,this.endian);for(var fo=0;fo<Mn.length;fo+=this._delta32)this._update(Mn,fo,fo+this._delta32)}return this},qr$2.prototype.digest=function(Mn){return this.update(this._pad()),Q0$1(this.pending===null),this._digest(Mn)},qr$2.prototype._pad=function(){var Mn=this.pendingTotal,Fn=this._delta8,io=Fn-(Mn+this.padLength)%Fn,fo=new Array(io+this.padLength);fo[0]=128;for(var $o=1;$o<io;$o++)fo[$o]=0;if(Mn<<=3,this.endian==="big"){for(var mo=8;mo<this.padLength;mo++)fo[$o++]=0;fo[$o++]=0,fo[$o++]=0,fo[$o++]=0,fo[$o++]=0,fo[$o++]=Mn>>>24&255,fo[$o++]=Mn>>>16&255,fo[$o++]=Mn>>>8&255,fo[$o++]=Mn&255}else for(fo[$o++]=Mn&255,fo[$o++]=Mn>>>8&255,fo[$o++]=Mn>>>16&255,fo[$o++]=Mn>>>24&255,fo[$o++]=0,fo[$o++]=0,fo[$o++]=0,fo[$o++]=0,mo=8;mo<this.padLength;mo++)fo[$o++]=0;return fo};var sr$3={},ae$4={},J0$1=Q$5,ue$2=J0$1.rotr32;function G0$1(Mn,Fn,io,fo){if(Mn===0)return wf$2(Fn,io,fo);if(Mn===1||Mn===3)return Mf$2(Fn,io,fo);if(Mn===2)return xf$2(Fn,io,fo)}ae$4.ft_1=G0$1;function wf$2(Mn,Fn,io){return Mn&Fn^~Mn&io}ae$4.ch32=wf$2;function xf$2(Mn,Fn,io){return Mn&Fn^Mn&io^Fn&io}ae$4.maj32=xf$2;function Mf$2(Mn,Fn,io){return Mn^Fn^io}ae$4.p32=Mf$2;function Y0$1(Mn){return ue$2(Mn,2)^ue$2(Mn,13)^ue$2(Mn,22)}ae$4.s0_256=Y0$1;function V0$2(Mn){return ue$2(Mn,6)^ue$2(Mn,11)^ue$2(Mn,25)}ae$4.s1_256=V0$2;function W0$1(Mn){return ue$2(Mn,7)^ue$2(Mn,18)^Mn>>>3}ae$4.g0_256=W0$1;function X0$1(Mn){return ue$2(Mn,17)^ue$2(Mn,19)^Mn>>>10}ae$4.g1_256=X0$1;var ar$3=Q$5,$0$1=or$2,Z0$1=ae$4,Ti$2=ar$3.rotl32,Mr$2=ar$3.sum32,ta$2=ar$3.sum32_5,ea$2=Z0$1.ft_1,Ef$2=$0$1.BlockHash,ra$2=[1518500249,1859775393,2400959708,3395469782];function he$2(){if(!(this instanceof he$2))return new he$2;Ef$2.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ar$3.inherits(he$2,Ef$2);var ia$2=he$2;he$2.blockSize=512,he$2.outSize=160,he$2.hmacStrength=80,he$2.padLength=64,he$2.prototype._update=function(Mn,Fn){for(var io=this.W,fo=0;fo<16;fo++)io[fo]=Mn[Fn+fo];for(;fo<io.length;fo++)io[fo]=Ti$2(io[fo-3]^io[fo-8]^io[fo-14]^io[fo-16],1);var $o=this.h[0],mo=this.h[1],Ao=this.h[2],jo=this.h[3],Lo=this.h[4];for(fo=0;fo<io.length;fo++){var Ho=~~(fo/20),zo=ta$2(Ti$2($o,5),ea$2(Ho,mo,Ao,jo),Lo,io[fo],ra$2[Ho]);Lo=jo,jo=Ao,Ao=Ti$2(mo,30),mo=$o,$o=zo}this.h[0]=Mr$2(this.h[0],$o),this.h[1]=Mr$2(this.h[1],mo),this.h[2]=Mr$2(this.h[2],Ao),this.h[3]=Mr$2(this.h[3],jo),this.h[4]=Mr$2(this.h[4],Lo)},he$2.prototype._digest=function(Mn){return Mn==="hex"?ar$3.toHex32(this.h,"big"):ar$3.split32(this.h,"big")};var ur$2=Q$5,na$1=or$2,hr$3=ae$4,fa$2=xr$2,ie$2=ur$2.sum32,oa$2=ur$2.sum32_4,sa$2=ur$2.sum32_5,aa$2=hr$3.ch32,ua$2=hr$3.maj32,ha$2=hr$3.s0_256,ca$2=hr$3.s1_256,la$2=hr$3.g0_256,da$2=hr$3.g1_256,Sf$2=na$1.BlockHash,pa$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ce$3(){if(!(this instanceof ce$3))return new ce$3;Sf$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=pa$2,this.W=new Array(64)}ur$2.inherits(ce$3,Sf$2);var If$2=ce$3;ce$3.blockSize=512,ce$3.outSize=256,ce$3.hmacStrength=192,ce$3.padLength=64,ce$3.prototype._update=function(Mn,Fn){for(var io=this.W,fo=0;fo<16;fo++)io[fo]=Mn[Fn+fo];for(;fo<io.length;fo++)io[fo]=oa$2(da$2(io[fo-2]),io[fo-7],la$2(io[fo-15]),io[fo-16]);var $o=this.h[0],mo=this.h[1],Ao=this.h[2],jo=this.h[3],Lo=this.h[4],Ho=this.h[5],zo=this.h[6],Go=this.h[7];for(fa$2(this.k.length===io.length),fo=0;fo<io.length;fo++){var Vo=sa$2(Go,ca$2(Lo),aa$2(Lo,Ho,zo),this.k[fo],io[fo]),Yo=ie$2(ha$2($o),ua$2($o,mo,Ao));Go=zo,zo=Ho,Ho=Lo,Lo=ie$2(jo,Vo),jo=Ao,Ao=mo,mo=$o,$o=ie$2(Vo,Yo)}this.h[0]=ie$2(this.h[0],$o),this.h[1]=ie$2(this.h[1],mo),this.h[2]=ie$2(this.h[2],Ao),this.h[3]=ie$2(this.h[3],jo),this.h[4]=ie$2(this.h[4],Lo),this.h[5]=ie$2(this.h[5],Ho),this.h[6]=ie$2(this.h[6],zo),this.h[7]=ie$2(this.h[7],Go)},ce$3.prototype._digest=function(Mn){return Mn==="hex"?ur$2.toHex32(this.h,"big"):ur$2.split32(this.h,"big")};var Di$3=Q$5,Nf$2=If$2;function ye$3(){if(!(this instanceof ye$3))return new ye$3;Nf$2.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Di$3.inherits(ye$3,Nf$2);var va$2=ye$3;ye$3.blockSize=512,ye$3.outSize=224,ye$3.hmacStrength=192,ye$3.padLength=64,ye$3.prototype._digest=function(Mn){return Mn==="hex"?Di$3.toHex32(this.h.slice(0,7),"big"):Di$3.split32(this.h.slice(0,7),"big")};var jt$2=Q$5,ga$1=or$2,ma$2=xr$2,le$2=jt$2.rotr64_hi,de$2=jt$2.rotr64_lo,_f$1=jt$2.shr64_hi,Bf$2=jt$2.shr64_lo,Be$2=jt$2.sum64,Fi$3=jt$2.sum64_hi,Ui$2=jt$2.sum64_lo,Aa$2=jt$2.sum64_4_hi,ba$2=jt$2.sum64_4_lo,ya$3=jt$2.sum64_5_hi,wa$2=jt$2.sum64_5_lo,Cf$2=ga$1.BlockHash,xa$1=[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 ne$3(){if(!(this instanceof ne$3))return new ne$3;Cf$2.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=xa$1,this.W=new Array(160)}jt$2.inherits(ne$3,Cf$2);var Rf$2=ne$3;ne$3.blockSize=1024,ne$3.outSize=512,ne$3.hmacStrength=192,ne$3.padLength=128,ne$3.prototype._prepareBlock=function(Mn,Fn){for(var io=this.W,fo=0;fo<32;fo++)io[fo]=Mn[Fn+fo];for(;fo<io.length;fo+=2){var $o=Pa$2(io[fo-4],io[fo-3]),mo=Ta$3(io[fo-4],io[fo-3]),Ao=io[fo-14],jo=io[fo-13],Lo=Ra$3(io[fo-30],io[fo-29]),Ho=Oa$3(io[fo-30],io[fo-29]),zo=io[fo-32],Go=io[fo-31];io[fo]=Aa$2($o,mo,Ao,jo,Lo,Ho,zo,Go),io[fo+1]=ba$2($o,mo,Ao,jo,Lo,Ho,zo,Go)}},ne$3.prototype._update=function(Mn,Fn){this._prepareBlock(Mn,Fn);var io=this.W,fo=this.h[0],$o=this.h[1],mo=this.h[2],Ao=this.h[3],jo=this.h[4],Lo=this.h[5],Ho=this.h[6],zo=this.h[7],Go=this.h[8],Vo=this.h[9],Yo=this.h[10],Xo=this.h[11],is=this.h[12],yl=this.h[13],us=this.h[14],hs=this.h[15];ma$2(this.k.length===io.length);for(var _l=0;_l<io.length;_l+=2){var xl=us,Il=hs,Ol=Ba$2(Go,Vo),Tl=Ca$2(Go,Vo),Cl=Ma$2(Go,Vo,Yo,Xo,is),Nl=Ea$2(Go,Vo,Yo,Xo,is,yl),Wl=this.k[_l],Dl=this.k[_l+1],Rl=io[_l],Qo=io[_l+1],Jo=ya$3(xl,Il,Ol,Tl,Cl,Nl,Wl,Dl,Rl,Qo),rs=wa$2(xl,Il,Ol,Tl,Cl,Nl,Wl,Dl,Rl,Qo);xl=Na$3(fo,$o),Il=_a$3(fo,$o),Ol=Sa$3(fo,$o,mo,Ao,jo),Tl=Ia$2(fo,$o,mo,Ao,jo,Lo);var ps=Fi$3(xl,Il,Ol,Tl),_c=Ui$2(xl,Il,Ol,Tl);us=is,hs=yl,is=Yo,yl=Xo,Yo=Go,Xo=Vo,Go=Fi$3(Ho,zo,Jo,rs),Vo=Ui$2(zo,zo,Jo,rs),Ho=jo,zo=Lo,jo=mo,Lo=Ao,mo=fo,Ao=$o,fo=Fi$3(Jo,rs,ps,_c),$o=Ui$2(Jo,rs,ps,_c)}Be$2(this.h,0,fo,$o),Be$2(this.h,2,mo,Ao),Be$2(this.h,4,jo,Lo),Be$2(this.h,6,Ho,zo),Be$2(this.h,8,Go,Vo),Be$2(this.h,10,Yo,Xo),Be$2(this.h,12,is,yl),Be$2(this.h,14,us,hs)},ne$3.prototype._digest=function(Mn){return Mn==="hex"?jt$2.toHex32(this.h,"big"):jt$2.split32(this.h,"big")};function Ma$2(Mn,Fn,io,fo,$o){var mo=Mn&io^~Mn&$o;return mo<0&&(mo+=4294967296),mo}function Ea$2(Mn,Fn,io,fo,$o,mo){var Ao=Fn&fo^~Fn&mo;return Ao<0&&(Ao+=4294967296),Ao}function Sa$3(Mn,Fn,io,fo,$o){var mo=Mn&io^Mn&$o^io&$o;return mo<0&&(mo+=4294967296),mo}function Ia$2(Mn,Fn,io,fo,$o,mo){var Ao=Fn&fo^Fn&mo^fo&mo;return Ao<0&&(Ao+=4294967296),Ao}function Na$3(Mn,Fn){var io=le$2(Mn,Fn,28),fo=le$2(Fn,Mn,2),$o=le$2(Fn,Mn,7),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function _a$3(Mn,Fn){var io=de$2(Mn,Fn,28),fo=de$2(Fn,Mn,2),$o=de$2(Fn,Mn,7),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function Ba$2(Mn,Fn){var io=le$2(Mn,Fn,14),fo=le$2(Mn,Fn,18),$o=le$2(Fn,Mn,9),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function Ca$2(Mn,Fn){var io=de$2(Mn,Fn,14),fo=de$2(Mn,Fn,18),$o=de$2(Fn,Mn,9),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function Ra$3(Mn,Fn){var io=le$2(Mn,Fn,1),fo=le$2(Mn,Fn,8),$o=_f$1(Mn,Fn,7),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function Oa$3(Mn,Fn){var io=de$2(Mn,Fn,1),fo=de$2(Mn,Fn,8),$o=Bf$2(Mn,Fn,7),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function Pa$2(Mn,Fn){var io=le$2(Mn,Fn,19),fo=le$2(Fn,Mn,29),$o=_f$1(Mn,Fn,6),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}function Ta$3(Mn,Fn){var io=de$2(Mn,Fn,19),fo=de$2(Fn,Mn,29),$o=Bf$2(Mn,Fn,6),mo=io^fo^$o;return mo<0&&(mo+=4294967296),mo}var ki$2=Q$5,Of$2=Rf$2;function we$4(){if(!(this instanceof we$4))return new we$4;Of$2.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ki$2.inherits(we$4,Of$2);var Da$3=we$4;we$4.blockSize=1024,we$4.outSize=384,we$4.hmacStrength=192,we$4.padLength=128,we$4.prototype._digest=function(Mn){return Mn==="hex"?ki$2.toHex32(this.h.slice(0,12),"big"):ki$2.split32(this.h.slice(0,12),"big")},sr$3.sha1=ia$2,sr$3.sha224=va$2,sr$3.sha256=If$2,sr$3.sha384=Da$3,sr$3.sha512=Rf$2;var Pf$2={},Xe$3=Q$5,Fa$3=or$2,Kr$2=Xe$3.rotl32,Tf$2=Xe$3.sum32,Er$2=Xe$3.sum32_3,Df$2=Xe$3.sum32_4,Ff$2=Fa$3.BlockHash;function pe$2(){if(!(this instanceof pe$2))return new pe$2;Ff$2.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Xe$3.inherits(pe$2,Ff$2),Pf$2.ripemd160=pe$2,pe$2.blockSize=512,pe$2.outSize=160,pe$2.hmacStrength=192,pe$2.padLength=64,pe$2.prototype._update=function(Mn,Fn){for(var io=this.h[0],fo=this.h[1],$o=this.h[2],mo=this.h[3],Ao=this.h[4],jo=io,Lo=fo,Ho=$o,zo=mo,Go=Ao,Vo=0;Vo<80;Vo++){var Yo=Tf$2(Kr$2(Df$2(io,Uf$2(Vo,fo,$o,mo),Mn[qa$3[Vo]+Fn],Ua$3(Vo)),Ha$3[Vo]),Ao);io=Ao,Ao=mo,mo=Kr$2($o,10),$o=fo,fo=Yo,Yo=Tf$2(Kr$2(Df$2(jo,Uf$2(79-Vo,Lo,Ho,zo),Mn[Ka$2[Vo]+Fn],ka$2(Vo)),La$3[Vo]),Go),jo=Go,Go=zo,zo=Kr$2(Ho,10),Ho=Lo,Lo=Yo}Yo=Er$2(this.h[1],$o,zo),this.h[1]=Er$2(this.h[2],mo,Go),this.h[2]=Er$2(this.h[3],Ao,jo),this.h[3]=Er$2(this.h[4],io,Lo),this.h[4]=Er$2(this.h[0],fo,Ho),this.h[0]=Yo},pe$2.prototype._digest=function(Mn){return Mn==="hex"?Xe$3.toHex32(this.h,"little"):Xe$3.split32(this.h,"little")};function Uf$2(Mn,Fn,io,fo){return Mn<=15?Fn^io^fo:Mn<=31?Fn&io|~Fn&fo:Mn<=47?(Fn|~io)^fo:Mn<=63?Fn&fo|io&~fo:Fn^(io|~fo)}function Ua$3(Mn){return Mn<=15?0:Mn<=31?1518500249:Mn<=47?1859775393:Mn<=63?2400959708:2840853838}function ka$2(Mn){return Mn<=15?1352829926:Mn<=31?1548603684:Mn<=47?1836072691:Mn<=63?2053994217:0}var qa$3=[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],Ka$2=[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],Ha$3=[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],La$3=[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],za$2=Q$5,ja$2=xr$2;function cr$2(Mn,Fn,io){if(!(this instanceof cr$2))return new cr$2(Mn,Fn,io);this.Hash=Mn,this.blockSize=Mn.blockSize/8,this.outSize=Mn.outSize/8,this.inner=null,this.outer=null,this._init(za$2.toArray(Fn,io))}var Qa$2=cr$2;cr$2.prototype._init=function(Mn){Mn.length>this.blockSize&&(Mn=new this.Hash().update(Mn).digest()),ja$2(Mn.length<=this.blockSize);for(var Fn=Mn.length;Fn<this.blockSize;Fn++)Mn.push(0);for(Fn=0;Fn<Mn.length;Fn++)Mn[Fn]^=54;for(this.inner=new this.Hash().update(Mn),Fn=0;Fn<Mn.length;Fn++)Mn[Fn]^=106;this.outer=new this.Hash().update(Mn)},cr$2.prototype.update=function(Mn,Fn){return this.inner.update(Mn,Fn),this},cr$2.prototype.digest=function(Mn){return this.outer.update(this.inner.digest()),this.outer.digest(Mn)},function(Mn){var Fn=Mn;Fn.utils=Q$5,Fn.common=or$2,Fn.sha=sr$3,Fn.ripemd=Pf$2,Fn.hmac=Qa$2,Fn.sha1=Fn.sha.sha1,Fn.sha256=Fn.sha.sha256,Fn.sha224=Fn.sha.sha224,Fn.sha384=Fn.sha.sha384,Fn.sha512=Fn.sha.sha512,Fn.ripemd160=Fn.ripemd.ripemd160}(se$2);function lr$3(Mn,Fn,io){return io={path:Fn,exports:{},require:function(fo,$o){return Ja$2(fo,$o??io.path)}},Mn(io,io.exports),io.exports}function Ja$2(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var qi$3=kf$1;function kf$1(Mn,Fn){if(!Mn)throw new Error(Fn||"Assertion failed")}kf$1.equal=function(Mn,Fn,io){if(Mn!=Fn)throw new Error(io||"Assertion failed: "+Mn+" != "+Fn)};var fe$3=lr$3(function(Mn,Fn){var io=Fn;function fo(Ao,jo){if(Array.isArray(Ao))return Ao.slice();if(!Ao)return[];var Lo=[];if(typeof Ao!="string"){for(var Ho=0;Ho<Ao.length;Ho++)Lo[Ho]=Ao[Ho]|0;return Lo}if(jo==="hex"){Ao=Ao.replace(/[^a-z0-9]+/ig,""),Ao.length%2!==0&&(Ao="0"+Ao);for(var Ho=0;Ho<Ao.length;Ho+=2)Lo.push(parseInt(Ao[Ho]+Ao[Ho+1],16))}else for(var Ho=0;Ho<Ao.length;Ho++){var zo=Ao.charCodeAt(Ho),Go=zo>>8,Vo=zo&255;Go?Lo.push(Go,Vo):Lo.push(Vo)}return Lo}io.toArray=fo;function $o(Ao){return Ao.length===1?"0"+Ao:Ao}io.zero2=$o;function mo(Ao){for(var jo="",Lo=0;Lo<Ao.length;Lo++)jo+=$o(Ao[Lo].toString(16));return jo}io.toHex=mo,io.encode=function(Ao,jo){return jo==="hex"?mo(Ao):Ao}}),Gt$2=lr$3(function(Mn,Fn){var io=Fn;io.assert=qi$3,io.toArray=fe$3.toArray,io.zero2=fe$3.zero2,io.toHex=fe$3.toHex,io.encode=fe$3.encode;function fo(Lo,Ho,zo){var Go=new Array(Math.max(Lo.bitLength(),zo)+1);Go.fill(0);for(var Vo=1<<Ho+1,Yo=Lo.clone(),Xo=0;Xo<Go.length;Xo++){var is,yl=Yo.andln(Vo-1);Yo.isOdd()?(yl>(Vo>>1)-1?is=(Vo>>1)-yl:is=yl,Yo.isubn(is)):is=0,Go[Xo]=is,Yo.iushrn(1)}return Go}io.getNAF=fo;function $o(Lo,Ho){var zo=[[],[]];Lo=Lo.clone(),Ho=Ho.clone();for(var Go=0,Vo=0,Yo;Lo.cmpn(-Go)>0||Ho.cmpn(-Vo)>0;){var Xo=Lo.andln(3)+Go&3,is=Ho.andln(3)+Vo&3;Xo===3&&(Xo=-1),is===3&&(is=-1);var yl;Xo&1?(Yo=Lo.andln(7)+Go&7,(Yo===3||Yo===5)&&is===2?yl=-Xo:yl=Xo):yl=0,zo[0].push(yl);var us;is&1?(Yo=Ho.andln(7)+Vo&7,(Yo===3||Yo===5)&&Xo===2?us=-is:us=is):us=0,zo[1].push(us),2*Go===yl+1&&(Go=1-Go),2*Vo===us+1&&(Vo=1-Vo),Lo.iushrn(1),Ho.iushrn(1)}return zo}io.getJSF=$o;function mo(Lo,Ho,zo){var Go="_"+Ho;Lo.prototype[Ho]=function(){return this[Go]!==void 0?this[Go]:this[Go]=zo.call(this)}}io.cachedProperty=mo;function Ao(Lo){return typeof Lo=="string"?io.toArray(Lo,"hex"):Lo}io.parseBytes=Ao;function jo(Lo){return new K$4(Lo,"hex","le")}io.intFromLE=jo}),Hr$2=Gt$2.getNAF,Ga$2=Gt$2.getJSF,Lr$2=Gt$2.assert;function Ce$4(Mn,Fn){this.type=Mn,this.p=new K$4(Fn.p,16),this.red=Fn.prime?K$4.red(Fn.prime):K$4.mont(this.p),this.zero=new K$4(0).toRed(this.red),this.one=new K$4(1).toRed(this.red),this.two=new K$4(2).toRed(this.red),this.n=Fn.n&&new K$4(Fn.n,16),this.g=Fn.g&&this.pointFromJSON(Fn.g,Fn.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var io=this.n&&this.p.div(this.n);!io||io.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var $e$1=Ce$4;Ce$4.prototype.point=function(){throw new Error("Not implemented")},Ce$4.prototype.validate=function(){throw new Error("Not implemented")},Ce$4.prototype._fixedNafMul=function(Mn,Fn){Lr$2(Mn.precomputed);var io=Mn._getDoubles(),fo=Hr$2(Fn,1,this._bitLength),$o=(1<<io.step+1)-(io.step%2===0?2:1);$o/=3;var mo=[],Ao,jo;for(Ao=0;Ao<fo.length;Ao+=io.step){jo=0;for(var Lo=Ao+io.step-1;Lo>=Ao;Lo--)jo=(jo<<1)+fo[Lo];mo.push(jo)}for(var Ho=this.jpoint(null,null,null),zo=this.jpoint(null,null,null),Go=$o;Go>0;Go--){for(Ao=0;Ao<mo.length;Ao++)jo=mo[Ao],jo===Go?zo=zo.mixedAdd(io.points[Ao]):jo===-Go&&(zo=zo.mixedAdd(io.points[Ao].neg()));Ho=Ho.add(zo)}return Ho.toP()},Ce$4.prototype._wnafMul=function(Mn,Fn){var io=4,fo=Mn._getNAFPoints(io);io=fo.wnd;for(var $o=fo.points,mo=Hr$2(Fn,io,this._bitLength),Ao=this.jpoint(null,null,null),jo=mo.length-1;jo>=0;jo--){for(var Lo=0;jo>=0&&mo[jo]===0;jo--)Lo++;if(jo>=0&&Lo++,Ao=Ao.dblp(Lo),jo<0)break;var Ho=mo[jo];Lr$2(Ho!==0),Mn.type==="affine"?Ho>0?Ao=Ao.mixedAdd($o[Ho-1>>1]):Ao=Ao.mixedAdd($o[-Ho-1>>1].neg()):Ho>0?Ao=Ao.add($o[Ho-1>>1]):Ao=Ao.add($o[-Ho-1>>1].neg())}return Mn.type==="affine"?Ao.toP():Ao},Ce$4.prototype._wnafMulAdd=function(Mn,Fn,io,fo,$o){var mo=this._wnafT1,Ao=this._wnafT2,jo=this._wnafT3,Lo=0,Ho,zo,Go;for(Ho=0;Ho<fo;Ho++){Go=Fn[Ho];var Vo=Go._getNAFPoints(Mn);mo[Ho]=Vo.wnd,Ao[Ho]=Vo.points}for(Ho=fo-1;Ho>=1;Ho-=2){var Yo=Ho-1,Xo=Ho;if(mo[Yo]!==1||mo[Xo]!==1){jo[Yo]=Hr$2(io[Yo],mo[Yo],this._bitLength),jo[Xo]=Hr$2(io[Xo],mo[Xo],this._bitLength),Lo=Math.max(jo[Yo].length,Lo),Lo=Math.max(jo[Xo].length,Lo);continue}var is=[Fn[Yo],null,null,Fn[Xo]];Fn[Yo].y.cmp(Fn[Xo].y)===0?(is[1]=Fn[Yo].add(Fn[Xo]),is[2]=Fn[Yo].toJ().mixedAdd(Fn[Xo].neg())):Fn[Yo].y.cmp(Fn[Xo].y.redNeg())===0?(is[1]=Fn[Yo].toJ().mixedAdd(Fn[Xo]),is[2]=Fn[Yo].add(Fn[Xo].neg())):(is[1]=Fn[Yo].toJ().mixedAdd(Fn[Xo]),is[2]=Fn[Yo].toJ().mixedAdd(Fn[Xo].neg()));var yl=[-3,-1,-5,-7,0,7,5,1,3],us=Ga$2(io[Yo],io[Xo]);for(Lo=Math.max(us[0].length,Lo),jo[Yo]=new Array(Lo),jo[Xo]=new Array(Lo),zo=0;zo<Lo;zo++){var hs=us[0][zo]|0,_l=us[1][zo]|0;jo[Yo][zo]=yl[(hs+1)*3+(_l+1)],jo[Xo][zo]=0,Ao[Yo]=is}}var xl=this.jpoint(null,null,null),Il=this._wnafT4;for(Ho=Lo;Ho>=0;Ho--){for(var Ol=0;Ho>=0;){var Tl=!0;for(zo=0;zo<fo;zo++)Il[zo]=jo[zo][Ho]|0,Il[zo]!==0&&(Tl=!1);if(!Tl)break;Ol++,Ho--}if(Ho>=0&&Ol++,xl=xl.dblp(Ol),Ho<0)break;for(zo=0;zo<fo;zo++){var Cl=Il[zo];Cl!==0&&(Cl>0?Go=Ao[zo][Cl-1>>1]:Cl<0&&(Go=Ao[zo][-Cl-1>>1].neg()),Go.type==="affine"?xl=xl.mixedAdd(Go):xl=xl.add(Go))}}for(Ho=0;Ho<fo;Ho++)Ao[Ho]=null;return $o?xl:xl.toP()};function Zt$2(Mn,Fn){this.curve=Mn,this.type=Fn,this.precomputed=null}Ce$4.BasePoint=Zt$2,Zt$2.prototype.eq=function(){throw new Error("Not implemented")},Zt$2.prototype.validate=function(){return this.curve.validate(this)},Ce$4.prototype.decodePoint=function(Mn,Fn){Mn=Gt$2.toArray(Mn,Fn);var io=this.p.byteLength();if((Mn[0]===4||Mn[0]===6||Mn[0]===7)&&Mn.length-1===2*io){Mn[0]===6?Lr$2(Mn[Mn.length-1]%2===0):Mn[0]===7&&Lr$2(Mn[Mn.length-1]%2===1);var fo=this.point(Mn.slice(1,1+io),Mn.slice(1+io,1+2*io));return fo}else if((Mn[0]===2||Mn[0]===3)&&Mn.length-1===io)return this.pointFromX(Mn.slice(1,1+io),Mn[0]===3);throw new Error("Unknown point format")},Zt$2.prototype.encodeCompressed=function(Mn){return this.encode(Mn,!0)},Zt$2.prototype._encode=function(Mn){var Fn=this.curve.p.byteLength(),io=this.getX().toArray("be",Fn);return Mn?[this.getY().isEven()?2:3].concat(io):[4].concat(io,this.getY().toArray("be",Fn))},Zt$2.prototype.encode=function(Mn,Fn){return Gt$2.encode(this._encode(Fn),Mn)},Zt$2.prototype.precompute=function(Mn){if(this.precomputed)return this;var Fn={doubles:null,naf:null,beta:null};return Fn.naf=this._getNAFPoints(8),Fn.doubles=this._getDoubles(4,Mn),Fn.beta=this._getBeta(),this.precomputed=Fn,this},Zt$2.prototype._hasDoubles=function(Mn){if(!this.precomputed)return!1;var Fn=this.precomputed.doubles;return Fn?Fn.points.length>=Math.ceil((Mn.bitLength()+1)/Fn.step):!1},Zt$2.prototype._getDoubles=function(Mn,Fn){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var io=[this],fo=this,$o=0;$o<Fn;$o+=Mn){for(var mo=0;mo<Mn;mo++)fo=fo.dbl();io.push(fo)}return{step:Mn,points:io}},Zt$2.prototype._getNAFPoints=function(Mn){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var Fn=[this],io=(1<<Mn)-1,fo=io===1?null:this.dbl(),$o=1;$o<io;$o++)Fn[$o]=Fn[$o-1].add(fo);return{wnd:Mn,points:Fn}},Zt$2.prototype._getBeta=function(){return null},Zt$2.prototype.dblp=function(Mn){for(var Fn=this,io=0;io<Mn;io++)Fn=Fn.dbl();return Fn};var Ki$2=lr$3(function(Mn){typeof Object.create=="function"?Mn.exports=function(Fn,io){io&&(Fn.super_=io,Fn.prototype=Object.create(io.prototype,{constructor:{value:Fn,enumerable:!1,writable:!0,configurable:!0}}))}:Mn.exports=function(Fn,io){if(io){Fn.super_=io;var fo=function(){};fo.prototype=io.prototype,Fn.prototype=new fo,Fn.prototype.constructor=Fn}}}),Ya$2=Gt$2.assert;function te$3(Mn){$e$1.call(this,"short",Mn),this.a=new K$4(Mn.a,16).toRed(this.red),this.b=new K$4(Mn.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(Mn),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Ki$2(te$3,$e$1);var Va$2=te$3;te$3.prototype._getEndomorphism=function(Mn){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var Fn,io;if(Mn.beta)Fn=new K$4(Mn.beta,16).toRed(this.red);else{var fo=this._getEndoRoots(this.p);Fn=fo[0].cmp(fo[1])<0?fo[0]:fo[1],Fn=Fn.toRed(this.red)}if(Mn.lambda)io=new K$4(Mn.lambda,16);else{var $o=this._getEndoRoots(this.n);this.g.mul($o[0]).x.cmp(this.g.x.redMul(Fn))===0?io=$o[0]:(io=$o[1],Ya$2(this.g.mul(io).x.cmp(this.g.x.redMul(Fn))===0))}var mo;return Mn.basis?mo=Mn.basis.map(function(Ao){return{a:new K$4(Ao.a,16),b:new K$4(Ao.b,16)}}):mo=this._getEndoBasis(io),{beta:Fn,lambda:io,basis:mo}}},te$3.prototype._getEndoRoots=function(Mn){var Fn=Mn===this.p?this.red:K$4.mont(Mn),io=new K$4(2).toRed(Fn).redInvm(),fo=io.redNeg(),$o=new K$4(3).toRed(Fn).redNeg().redSqrt().redMul(io),mo=fo.redAdd($o).fromRed(),Ao=fo.redSub($o).fromRed();return[mo,Ao]},te$3.prototype._getEndoBasis=function(Mn){for(var Fn=this.n.ushrn(Math.floor(this.n.bitLength()/2)),io=Mn,fo=this.n.clone(),$o=new K$4(1),mo=new K$4(0),Ao=new K$4(0),jo=new K$4(1),Lo,Ho,zo,Go,Vo,Yo,Xo,is=0,yl,us;io.cmpn(0)!==0;){var hs=fo.div(io);yl=fo.sub(hs.mul(io)),us=Ao.sub(hs.mul($o));var _l=jo.sub(hs.mul(mo));if(!zo&&yl.cmp(Fn)<0)Lo=Xo.neg(),Ho=$o,zo=yl.neg(),Go=us;else if(zo&&++is===2)break;Xo=yl,fo=io,io=yl,Ao=$o,$o=us,jo=mo,mo=_l}Vo=yl.neg(),Yo=us;var xl=zo.sqr().add(Go.sqr()),Il=Vo.sqr().add(Yo.sqr());return Il.cmp(xl)>=0&&(Vo=Lo,Yo=Ho),zo.negative&&(zo=zo.neg(),Go=Go.neg()),Vo.negative&&(Vo=Vo.neg(),Yo=Yo.neg()),[{a:zo,b:Go},{a:Vo,b:Yo}]},te$3.prototype._endoSplit=function(Mn){var Fn=this.endo.basis,io=Fn[0],fo=Fn[1],$o=fo.b.mul(Mn).divRound(this.n),mo=io.b.neg().mul(Mn).divRound(this.n),Ao=$o.mul(io.a),jo=mo.mul(fo.a),Lo=$o.mul(io.b),Ho=mo.mul(fo.b),zo=Mn.sub(Ao).sub(jo),Go=Lo.add(Ho).neg();return{k1:zo,k2:Go}},te$3.prototype.pointFromX=function(Mn,Fn){Mn=new K$4(Mn,16),Mn.red||(Mn=Mn.toRed(this.red));var io=Mn.redSqr().redMul(Mn).redIAdd(Mn.redMul(this.a)).redIAdd(this.b),fo=io.redSqrt();if(fo.redSqr().redSub(io).cmp(this.zero)!==0)throw new Error("invalid point");var $o=fo.fromRed().isOdd();return(Fn&&!$o||!Fn&&$o)&&(fo=fo.redNeg()),this.point(Mn,fo)},te$3.prototype.validate=function(Mn){if(Mn.inf)return!0;var Fn=Mn.x,io=Mn.y,fo=this.a.redMul(Fn),$o=Fn.redSqr().redMul(Fn).redIAdd(fo).redIAdd(this.b);return io.redSqr().redISub($o).cmpn(0)===0},te$3.prototype._endoWnafMulAdd=function(Mn,Fn,io){for(var fo=this._endoWnafT1,$o=this._endoWnafT2,mo=0;mo<Mn.length;mo++){var Ao=this._endoSplit(Fn[mo]),jo=Mn[mo],Lo=jo._getBeta();Ao.k1.negative&&(Ao.k1.ineg(),jo=jo.neg(!0)),Ao.k2.negative&&(Ao.k2.ineg(),Lo=Lo.neg(!0)),fo[mo*2]=jo,fo[mo*2+1]=Lo,$o[mo*2]=Ao.k1,$o[mo*2+1]=Ao.k2}for(var Ho=this._wnafMulAdd(1,fo,$o,mo*2,io),zo=0;zo<mo*2;zo++)fo[zo]=null,$o[zo]=null;return Ho};function Dt$2(Mn,Fn,io,fo){$e$1.BasePoint.call(this,Mn,"affine"),Fn===null&&io===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new K$4(Fn,16),this.y=new K$4(io,16),fo&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Ki$2(Dt$2,$e$1.BasePoint),te$3.prototype.point=function(Mn,Fn,io){return new Dt$2(this,Mn,Fn,io)},te$3.prototype.pointFromJSON=function(Mn,Fn){return Dt$2.fromJSON(this,Mn,Fn)},Dt$2.prototype._getBeta=function(){if(this.curve.endo){var Mn=this.precomputed;if(Mn&&Mn.beta)return Mn.beta;var Fn=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(Mn){var io=this.curve,fo=function($o){return io.point($o.x.redMul(io.endo.beta),$o.y)};Mn.beta=Fn,Fn.precomputed={beta:null,naf:Mn.naf&&{wnd:Mn.naf.wnd,points:Mn.naf.points.map(fo)},doubles:Mn.doubles&&{step:Mn.doubles.step,points:Mn.doubles.points.map(fo)}}}return Fn}},Dt$2.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Dt$2.fromJSON=function(Mn,Fn,io){typeof Fn=="string"&&(Fn=JSON.parse(Fn));var fo=Mn.point(Fn[0],Fn[1],io);if(!Fn[2])return fo;function $o(Ao){return Mn.point(Ao[0],Ao[1],io)}var mo=Fn[2];return fo.precomputed={beta:null,doubles:mo.doubles&&{step:mo.doubles.step,points:[fo].concat(mo.doubles.points.map($o))},naf:mo.naf&&{wnd:mo.naf.wnd,points:[fo].concat(mo.naf.points.map($o))}},fo},Dt$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Dt$2.prototype.isInfinity=function(){return this.inf},Dt$2.prototype.add=function(Mn){if(this.inf)return Mn;if(Mn.inf)return this;if(this.eq(Mn))return this.dbl();if(this.neg().eq(Mn))return this.curve.point(null,null);if(this.x.cmp(Mn.x)===0)return this.curve.point(null,null);var Fn=this.y.redSub(Mn.y);Fn.cmpn(0)!==0&&(Fn=Fn.redMul(this.x.redSub(Mn.x).redInvm()));var io=Fn.redSqr().redISub(this.x).redISub(Mn.x),fo=Fn.redMul(this.x.redSub(io)).redISub(this.y);return this.curve.point(io,fo)},Dt$2.prototype.dbl=function(){if(this.inf)return this;var Mn=this.y.redAdd(this.y);if(Mn.cmpn(0)===0)return this.curve.point(null,null);var Fn=this.curve.a,io=this.x.redSqr(),fo=Mn.redInvm(),$o=io.redAdd(io).redIAdd(io).redIAdd(Fn).redMul(fo),mo=$o.redSqr().redISub(this.x.redAdd(this.x)),Ao=$o.redMul(this.x.redSub(mo)).redISub(this.y);return this.curve.point(mo,Ao)},Dt$2.prototype.getX=function(){return this.x.fromRed()},Dt$2.prototype.getY=function(){return this.y.fromRed()},Dt$2.prototype.mul=function(Mn){return Mn=new K$4(Mn,16),this.isInfinity()?this:this._hasDoubles(Mn)?this.curve._fixedNafMul(this,Mn):this.curve.endo?this.curve._endoWnafMulAdd([this],[Mn]):this.curve._wnafMul(this,Mn)},Dt$2.prototype.mulAdd=function(Mn,Fn,io){var fo=[this,Fn],$o=[Mn,io];return this.curve.endo?this.curve._endoWnafMulAdd(fo,$o):this.curve._wnafMulAdd(1,fo,$o,2)},Dt$2.prototype.jmulAdd=function(Mn,Fn,io){var fo=[this,Fn],$o=[Mn,io];return this.curve.endo?this.curve._endoWnafMulAdd(fo,$o,!0):this.curve._wnafMulAdd(1,fo,$o,2,!0)},Dt$2.prototype.eq=function(Mn){return this===Mn||this.inf===Mn.inf&&(this.inf||this.x.cmp(Mn.x)===0&&this.y.cmp(Mn.y)===0)},Dt$2.prototype.neg=function(Mn){if(this.inf)return this;var Fn=this.curve.point(this.x,this.y.redNeg());if(Mn&&this.precomputed){var io=this.precomputed,fo=function($o){return $o.neg()};Fn.precomputed={naf:io.naf&&{wnd:io.naf.wnd,points:io.naf.points.map(fo)},doubles:io.doubles&&{step:io.doubles.step,points:io.doubles.points.map(fo)}}}return Fn},Dt$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var Mn=this.curve.jpoint(this.x,this.y,this.curve.one);return Mn};function Ft$2(Mn,Fn,io,fo){$e$1.BasePoint.call(this,Mn,"jacobian"),Fn===null&&io===null&&fo===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new K$4(0)):(this.x=new K$4(Fn,16),this.y=new K$4(io,16),this.z=new K$4(fo,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Ki$2(Ft$2,$e$1.BasePoint),te$3.prototype.jpoint=function(Mn,Fn,io){return new Ft$2(this,Mn,Fn,io)},Ft$2.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var Mn=this.z.redInvm(),Fn=Mn.redSqr(),io=this.x.redMul(Fn),fo=this.y.redMul(Fn).redMul(Mn);return this.curve.point(io,fo)},Ft$2.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ft$2.prototype.add=function(Mn){if(this.isInfinity())return Mn;if(Mn.isInfinity())return this;var Fn=Mn.z.redSqr(),io=this.z.redSqr(),fo=this.x.redMul(Fn),$o=Mn.x.redMul(io),mo=this.y.redMul(Fn.redMul(Mn.z)),Ao=Mn.y.redMul(io.redMul(this.z)),jo=fo.redSub($o),Lo=mo.redSub(Ao);if(jo.cmpn(0)===0)return Lo.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Ho=jo.redSqr(),zo=Ho.redMul(jo),Go=fo.redMul(Ho),Vo=Lo.redSqr().redIAdd(zo).redISub(Go).redISub(Go),Yo=Lo.redMul(Go.redISub(Vo)).redISub(mo.redMul(zo)),Xo=this.z.redMul(Mn.z).redMul(jo);return this.curve.jpoint(Vo,Yo,Xo)},Ft$2.prototype.mixedAdd=function(Mn){if(this.isInfinity())return Mn.toJ();if(Mn.isInfinity())return this;var Fn=this.z.redSqr(),io=this.x,fo=Mn.x.redMul(Fn),$o=this.y,mo=Mn.y.redMul(Fn).redMul(this.z),Ao=io.redSub(fo),jo=$o.redSub(mo);if(Ao.cmpn(0)===0)return jo.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Lo=Ao.redSqr(),Ho=Lo.redMul(Ao),zo=io.redMul(Lo),Go=jo.redSqr().redIAdd(Ho).redISub(zo).redISub(zo),Vo=jo.redMul(zo.redISub(Go)).redISub($o.redMul(Ho)),Yo=this.z.redMul(Ao);return this.curve.jpoint(Go,Vo,Yo)},Ft$2.prototype.dblp=function(Mn){if(Mn===0)return this;if(this.isInfinity())return this;if(!Mn)return this.dbl();var Fn;if(this.curve.zeroA||this.curve.threeA){var io=this;for(Fn=0;Fn<Mn;Fn++)io=io.dbl();return io}var fo=this.curve.a,$o=this.curve.tinv,mo=this.x,Ao=this.y,jo=this.z,Lo=jo.redSqr().redSqr(),Ho=Ao.redAdd(Ao);for(Fn=0;Fn<Mn;Fn++){var zo=mo.redSqr(),Go=Ho.redSqr(),Vo=Go.redSqr(),Yo=zo.redAdd(zo).redIAdd(zo).redIAdd(fo.redMul(Lo)),Xo=mo.redMul(Go),is=Yo.redSqr().redISub(Xo.redAdd(Xo)),yl=Xo.redISub(is),us=Yo.redMul(yl);us=us.redIAdd(us).redISub(Vo);var hs=Ho.redMul(jo);Fn+1<Mn&&(Lo=Lo.redMul(Vo)),mo=is,jo=hs,Ho=us}return this.curve.jpoint(mo,Ho.redMul($o),jo)},Ft$2.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Ft$2.prototype._zeroDbl=function(){var Mn,Fn,io;if(this.zOne){var fo=this.x.redSqr(),$o=this.y.redSqr(),mo=$o.redSqr(),Ao=this.x.redAdd($o).redSqr().redISub(fo).redISub(mo);Ao=Ao.redIAdd(Ao);var jo=fo.redAdd(fo).redIAdd(fo),Lo=jo.redSqr().redISub(Ao).redISub(Ao),Ho=mo.redIAdd(mo);Ho=Ho.redIAdd(Ho),Ho=Ho.redIAdd(Ho),Mn=Lo,Fn=jo.redMul(Ao.redISub(Lo)).redISub(Ho),io=this.y.redAdd(this.y)}else{var zo=this.x.redSqr(),Go=this.y.redSqr(),Vo=Go.redSqr(),Yo=this.x.redAdd(Go).redSqr().redISub(zo).redISub(Vo);Yo=Yo.redIAdd(Yo);var Xo=zo.redAdd(zo).redIAdd(zo),is=Xo.redSqr(),yl=Vo.redIAdd(Vo);yl=yl.redIAdd(yl),yl=yl.redIAdd(yl),Mn=is.redISub(Yo).redISub(Yo),Fn=Xo.redMul(Yo.redISub(Mn)).redISub(yl),io=this.y.redMul(this.z),io=io.redIAdd(io)}return this.curve.jpoint(Mn,Fn,io)},Ft$2.prototype._threeDbl=function(){var Mn,Fn,io;if(this.zOne){var fo=this.x.redSqr(),$o=this.y.redSqr(),mo=$o.redSqr(),Ao=this.x.redAdd($o).redSqr().redISub(fo).redISub(mo);Ao=Ao.redIAdd(Ao);var jo=fo.redAdd(fo).redIAdd(fo).redIAdd(this.curve.a),Lo=jo.redSqr().redISub(Ao).redISub(Ao);Mn=Lo;var Ho=mo.redIAdd(mo);Ho=Ho.redIAdd(Ho),Ho=Ho.redIAdd(Ho),Fn=jo.redMul(Ao.redISub(Lo)).redISub(Ho),io=this.y.redAdd(this.y)}else{var zo=this.z.redSqr(),Go=this.y.redSqr(),Vo=this.x.redMul(Go),Yo=this.x.redSub(zo).redMul(this.x.redAdd(zo));Yo=Yo.redAdd(Yo).redIAdd(Yo);var Xo=Vo.redIAdd(Vo);Xo=Xo.redIAdd(Xo);var is=Xo.redAdd(Xo);Mn=Yo.redSqr().redISub(is),io=this.y.redAdd(this.z).redSqr().redISub(Go).redISub(zo);var yl=Go.redSqr();yl=yl.redIAdd(yl),yl=yl.redIAdd(yl),yl=yl.redIAdd(yl),Fn=Yo.redMul(Xo.redISub(Mn)).redISub(yl)}return this.curve.jpoint(Mn,Fn,io)},Ft$2.prototype._dbl=function(){var Mn=this.curve.a,Fn=this.x,io=this.y,fo=this.z,$o=fo.redSqr().redSqr(),mo=Fn.redSqr(),Ao=io.redSqr(),jo=mo.redAdd(mo).redIAdd(mo).redIAdd(Mn.redMul($o)),Lo=Fn.redAdd(Fn);Lo=Lo.redIAdd(Lo);var Ho=Lo.redMul(Ao),zo=jo.redSqr().redISub(Ho.redAdd(Ho)),Go=Ho.redISub(zo),Vo=Ao.redSqr();Vo=Vo.redIAdd(Vo),Vo=Vo.redIAdd(Vo),Vo=Vo.redIAdd(Vo);var Yo=jo.redMul(Go).redISub(Vo),Xo=io.redAdd(io).redMul(fo);return this.curve.jpoint(zo,Yo,Xo)},Ft$2.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var Mn=this.x.redSqr(),Fn=this.y.redSqr(),io=this.z.redSqr(),fo=Fn.redSqr(),$o=Mn.redAdd(Mn).redIAdd(Mn),mo=$o.redSqr(),Ao=this.x.redAdd(Fn).redSqr().redISub(Mn).redISub(fo);Ao=Ao.redIAdd(Ao),Ao=Ao.redAdd(Ao).redIAdd(Ao),Ao=Ao.redISub(mo);var jo=Ao.redSqr(),Lo=fo.redIAdd(fo);Lo=Lo.redIAdd(Lo),Lo=Lo.redIAdd(Lo),Lo=Lo.redIAdd(Lo);var Ho=$o.redIAdd(Ao).redSqr().redISub(mo).redISub(jo).redISub(Lo),zo=Fn.redMul(Ho);zo=zo.redIAdd(zo),zo=zo.redIAdd(zo);var Go=this.x.redMul(jo).redISub(zo);Go=Go.redIAdd(Go),Go=Go.redIAdd(Go);var Vo=this.y.redMul(Ho.redMul(Lo.redISub(Ho)).redISub(Ao.redMul(jo)));Vo=Vo.redIAdd(Vo),Vo=Vo.redIAdd(Vo),Vo=Vo.redIAdd(Vo);var Yo=this.z.redAdd(Ao).redSqr().redISub(io).redISub(jo);return this.curve.jpoint(Go,Vo,Yo)},Ft$2.prototype.mul=function(Mn,Fn){return Mn=new K$4(Mn,Fn),this.curve._wnafMul(this,Mn)},Ft$2.prototype.eq=function(Mn){if(Mn.type==="affine")return this.eq(Mn.toJ());if(this===Mn)return!0;var Fn=this.z.redSqr(),io=Mn.z.redSqr();if(this.x.redMul(io).redISub(Mn.x.redMul(Fn)).cmpn(0)!==0)return!1;var fo=Fn.redMul(this.z),$o=io.redMul(Mn.z);return this.y.redMul($o).redISub(Mn.y.redMul(fo)).cmpn(0)===0},Ft$2.prototype.eqXToP=function(Mn){var Fn=this.z.redSqr(),io=Mn.toRed(this.curve.red).redMul(Fn);if(this.x.cmp(io)===0)return!0;for(var fo=Mn.clone(),$o=this.curve.redN.redMul(Fn);;){if(fo.iadd(this.curve.n),fo.cmp(this.curve.p)>=0)return!1;if(io.redIAdd($o),this.x.cmp(io)===0)return!0}},Ft$2.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Ft$2.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var zr$2=lr$3(function(Mn,Fn){var io=Fn;io.base=$e$1,io.short=Va$2,io.mont=null,io.edwards=null}),jr$2=lr$3(function(Mn,Fn){var io=Fn,fo=Gt$2.assert;function $o(jo){jo.type==="short"?this.curve=new zr$2.short(jo):jo.type==="edwards"?this.curve=new zr$2.edwards(jo):this.curve=new zr$2.mont(jo),this.g=this.curve.g,this.n=this.curve.n,this.hash=jo.hash,fo(this.g.validate(),"Invalid curve"),fo(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}io.PresetCurve=$o;function mo(jo,Lo){Object.defineProperty(io,jo,{configurable:!0,enumerable:!0,get:function(){var Ho=new $o(Lo);return Object.defineProperty(io,jo,{configurable:!0,enumerable:!0,value:Ho}),Ho}})}mo("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:se$2.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),mo("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:se$2.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),mo("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:se$2.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),mo("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:se$2.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),mo("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:se$2.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),mo("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:se$2.sha256,gRed:!1,g:["9"]}),mo("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:se$2.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var Ao;try{Ao=null.crash()}catch{Ao=void 0}mo("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:se$2.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",Ao]})});function Re$2(Mn){if(!(this instanceof Re$2))return new Re$2(Mn);this.hash=Mn.hash,this.predResist=!!Mn.predResist,this.outLen=this.hash.outSize,this.minEntropy=Mn.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var Fn=fe$3.toArray(Mn.entropy,Mn.entropyEnc||"hex"),io=fe$3.toArray(Mn.nonce,Mn.nonceEnc||"hex"),fo=fe$3.toArray(Mn.pers,Mn.persEnc||"hex");qi$3(Fn.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Fn,io,fo)}var qf$2=Re$2;Re$2.prototype._init=function(Mn,Fn,io){var fo=Mn.concat(Fn).concat(io);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var $o=0;$o<this.V.length;$o++)this.K[$o]=0,this.V[$o]=1;this._update(fo),this._reseed=1,this.reseedInterval=281474976710656},Re$2.prototype._hmac=function(){return new se$2.hmac(this.hash,this.K)},Re$2.prototype._update=function(Mn){var Fn=this._hmac().update(this.V).update([0]);Mn&&(Fn=Fn.update(Mn)),this.K=Fn.digest(),this.V=this._hmac().update(this.V).digest(),Mn&&(this.K=this._hmac().update(this.V).update([1]).update(Mn).digest(),this.V=this._hmac().update(this.V).digest())},Re$2.prototype.reseed=function(Mn,Fn,io,fo){typeof Fn!="string"&&(fo=io,io=Fn,Fn=null),Mn=fe$3.toArray(Mn,Fn),io=fe$3.toArray(io,fo),qi$3(Mn.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(Mn.concat(io||[])),this._reseed=1},Re$2.prototype.generate=function(Mn,Fn,io,fo){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof Fn!="string"&&(fo=io,io=Fn,Fn=null),io&&(io=fe$3.toArray(io,fo||"hex"),this._update(io));for(var $o=[];$o.length<Mn;)this.V=this._hmac().update(this.V).digest(),$o=$o.concat(this.V);var mo=$o.slice(0,Mn);return this._update(io),this._reseed++,fe$3.encode(mo,Fn)};var Hi$2=Gt$2.assert;function kt$2(Mn,Fn){this.ec=Mn,this.priv=null,this.pub=null,Fn.priv&&this._importPrivate(Fn.priv,Fn.privEnc),Fn.pub&&this._importPublic(Fn.pub,Fn.pubEnc)}var Li$2=kt$2;kt$2.fromPublic=function(Mn,Fn,io){return Fn instanceof kt$2?Fn:new kt$2(Mn,{pub:Fn,pubEnc:io})},kt$2.fromPrivate=function(Mn,Fn,io){return Fn instanceof kt$2?Fn:new kt$2(Mn,{priv:Fn,privEnc:io})},kt$2.prototype.validate=function(){var Mn=this.getPublic();return Mn.isInfinity()?{result:!1,reason:"Invalid public key"}:Mn.validate()?Mn.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},kt$2.prototype.getPublic=function(Mn,Fn){return typeof Mn=="string"&&(Fn=Mn,Mn=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),Fn?this.pub.encode(Fn,Mn):this.pub},kt$2.prototype.getPrivate=function(Mn){return Mn==="hex"?this.priv.toString(16,2):this.priv},kt$2.prototype._importPrivate=function(Mn,Fn){this.priv=new K$4(Mn,Fn||16),this.priv=this.priv.umod(this.ec.curve.n)},kt$2.prototype._importPublic=function(Mn,Fn){if(Mn.x||Mn.y){this.ec.curve.type==="mont"?Hi$2(Mn.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Hi$2(Mn.x&&Mn.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(Mn.x,Mn.y);return}this.pub=this.ec.curve.decodePoint(Mn,Fn)},kt$2.prototype.derive=function(Mn){return Mn.validate()||Hi$2(Mn.validate(),"public point not validated"),Mn.mul(this.priv).getX()},kt$2.prototype.sign=function(Mn,Fn,io){return this.ec.sign(Mn,this,Fn,io)},kt$2.prototype.verify=function(Mn,Fn){return this.ec.verify(Mn,Fn,this)},kt$2.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Wa$2=Gt$2.assert;function Qr$2(Mn,Fn){if(Mn instanceof Qr$2)return Mn;this._importDER(Mn,Fn)||(Wa$2(Mn.r&&Mn.s,"Signature without r or s"),this.r=new K$4(Mn.r,16),this.s=new K$4(Mn.s,16),Mn.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=Mn.recoveryParam)}var Jr$2=Qr$2;function Xa$1(){this.place=0}function zi$2(Mn,Fn){var io=Mn[Fn.place++];if(!(io&128))return io;var fo=io&15;if(fo===0||fo>4)return!1;for(var $o=0,mo=0,Ao=Fn.place;mo<fo;mo++,Ao++)$o<<=8,$o|=Mn[Ao],$o>>>=0;return $o<=127?!1:(Fn.place=Ao,$o)}function Kf$1(Mn){for(var Fn=0,io=Mn.length-1;!Mn[Fn]&&!(Mn[Fn+1]&128)&&Fn<io;)Fn++;return Fn===0?Mn:Mn.slice(Fn)}Qr$2.prototype._importDER=function(Mn,Fn){Mn=Gt$2.toArray(Mn,Fn);var io=new Xa$1;if(Mn[io.place++]!==48)return!1;var fo=zi$2(Mn,io);if(fo===!1||fo+io.place!==Mn.length||Mn[io.place++]!==2)return!1;var $o=zi$2(Mn,io);if($o===!1)return!1;var mo=Mn.slice(io.place,$o+io.place);if(io.place+=$o,Mn[io.place++]!==2)return!1;var Ao=zi$2(Mn,io);if(Ao===!1||Mn.length!==Ao+io.place)return!1;var jo=Mn.slice(io.place,Ao+io.place);if(mo[0]===0)if(mo[1]&128)mo=mo.slice(1);else return!1;if(jo[0]===0)if(jo[1]&128)jo=jo.slice(1);else return!1;return this.r=new K$4(mo),this.s=new K$4(jo),this.recoveryParam=null,!0};function ji$1(Mn,Fn){if(Fn<128){Mn.push(Fn);return}var io=1+(Math.log(Fn)/Math.LN2>>>3);for(Mn.push(io|128);--io;)Mn.push(Fn>>>(io<<3)&255);Mn.push(Fn)}Qr$2.prototype.toDER=function(Mn){var Fn=this.r.toArray(),io=this.s.toArray();for(Fn[0]&128&&(Fn=[0].concat(Fn)),io[0]&128&&(io=[0].concat(io)),Fn=Kf$1(Fn),io=Kf$1(io);!io[0]&&!(io[1]&128);)io=io.slice(1);var fo=[2];ji$1(fo,Fn.length),fo=fo.concat(Fn),fo.push(2),ji$1(fo,io.length);var $o=fo.concat(io),mo=[48];return ji$1(mo,$o.length),mo=mo.concat($o),Gt$2.encode(mo,Mn)};var $a$1=function(){throw new Error("unsupported")},Hf$1=Gt$2.assert;function ee$3(Mn){if(!(this instanceof ee$3))return new ee$3(Mn);typeof Mn=="string"&&(Hf$1(Object.prototype.hasOwnProperty.call(jr$2,Mn),"Unknown curve "+Mn),Mn=jr$2[Mn]),Mn instanceof jr$2.PresetCurve&&(Mn={curve:Mn}),this.curve=Mn.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=Mn.curve.g,this.g.precompute(Mn.curve.n.bitLength()+1),this.hash=Mn.hash||Mn.curve.hash}var Za$1=ee$3;ee$3.prototype.keyPair=function(Mn){return new Li$2(this,Mn)},ee$3.prototype.keyFromPrivate=function(Mn,Fn){return Li$2.fromPrivate(this,Mn,Fn)},ee$3.prototype.keyFromPublic=function(Mn,Fn){return Li$2.fromPublic(this,Mn,Fn)},ee$3.prototype.genKeyPair=function(Mn){Mn||(Mn={});for(var Fn=new qf$2({hash:this.hash,pers:Mn.pers,persEnc:Mn.persEnc||"utf8",entropy:Mn.entropy||$a$1(this.hash.hmacStrength),entropyEnc:Mn.entropy&&Mn.entropyEnc||"utf8",nonce:this.n.toArray()}),io=this.n.byteLength(),fo=this.n.sub(new K$4(2));;){var $o=new K$4(Fn.generate(io));if(!($o.cmp(fo)>0))return $o.iaddn(1),this.keyFromPrivate($o)}},ee$3.prototype._truncateToN=function(Mn,Fn){var io=Mn.byteLength()*8-this.n.bitLength();return io>0&&(Mn=Mn.ushrn(io)),!Fn&&Mn.cmp(this.n)>=0?Mn.sub(this.n):Mn},ee$3.prototype.sign=function(Mn,Fn,io,fo){typeof io=="object"&&(fo=io,io=null),fo||(fo={}),Fn=this.keyFromPrivate(Fn,io),Mn=this._truncateToN(new K$4(Mn,16));for(var $o=this.n.byteLength(),mo=Fn.getPrivate().toArray("be",$o),Ao=Mn.toArray("be",$o),jo=new qf$2({hash:this.hash,entropy:mo,nonce:Ao,pers:fo.pers,persEnc:fo.persEnc||"utf8"}),Lo=this.n.sub(new K$4(1)),Ho=0;;Ho++){var zo=fo.k?fo.k(Ho):new K$4(jo.generate(this.n.byteLength()));if(zo=this._truncateToN(zo,!0),!(zo.cmpn(1)<=0||zo.cmp(Lo)>=0)){var Go=this.g.mul(zo);if(!Go.isInfinity()){var Vo=Go.getX(),Yo=Vo.umod(this.n);if(Yo.cmpn(0)!==0){var Xo=zo.invm(this.n).mul(Yo.mul(Fn.getPrivate()).iadd(Mn));if(Xo=Xo.umod(this.n),Xo.cmpn(0)!==0){var is=(Go.getY().isOdd()?1:0)|(Vo.cmp(Yo)!==0?2:0);return fo.canonical&&Xo.cmp(this.nh)>0&&(Xo=this.n.sub(Xo),is^=1),new Jr$2({r:Yo,s:Xo,recoveryParam:is})}}}}}},ee$3.prototype.verify=function(Mn,Fn,io,fo){Mn=this._truncateToN(new K$4(Mn,16)),io=this.keyFromPublic(io,fo),Fn=new Jr$2(Fn,"hex");var $o=Fn.r,mo=Fn.s;if($o.cmpn(1)<0||$o.cmp(this.n)>=0||mo.cmpn(1)<0||mo.cmp(this.n)>=0)return!1;var Ao=mo.invm(this.n),jo=Ao.mul(Mn).umod(this.n),Lo=Ao.mul($o).umod(this.n),Ho;return this.curve._maxwellTrick?(Ho=this.g.jmulAdd(jo,io.getPublic(),Lo),Ho.isInfinity()?!1:Ho.eqXToP($o)):(Ho=this.g.mulAdd(jo,io.getPublic(),Lo),Ho.isInfinity()?!1:Ho.getX().umod(this.n).cmp($o)===0)},ee$3.prototype.recoverPubKey=function(Mn,Fn,io,fo){Hf$1((3&io)===io,"The recovery param is more than two bits"),Fn=new Jr$2(Fn,fo);var $o=this.n,mo=new K$4(Mn),Ao=Fn.r,jo=Fn.s,Lo=io&1,Ho=io>>1;if(Ao.cmp(this.curve.p.umod(this.curve.n))>=0&&Ho)throw new Error("Unable to find sencond key candinate");Ho?Ao=this.curve.pointFromX(Ao.add(this.curve.n),Lo):Ao=this.curve.pointFromX(Ao,Lo);var zo=Fn.r.invm($o),Go=$o.sub(mo).mul(zo).umod($o),Vo=jo.mul(zo).umod($o);return this.g.mulAdd(Go,Ao,Vo)},ee$3.prototype.getKeyRecoveryParam=function(Mn,Fn,io,fo){if(Fn=new Jr$2(Fn,fo),Fn.recoveryParam!==null)return Fn.recoveryParam;for(var $o=0;$o<4;$o++){var mo;try{mo=this.recoverPubKey(Mn,Fn,$o)}catch{continue}if(mo.eq(io))return $o}throw new Error("Unable to find valid recovery factor")};var tu=lr$3(function(Mn,Fn){var io=Fn;io.version="6.5.4",io.utils=Gt$2,io.rand=function(){throw new Error("unsupported")},io.curve=zr$2,io.curves=jr$2,io.ec=Za$1,io.eddsa=null}),eu=tu.ec;const ru="signing-key/5.7.0",Qi$1=new z$6(ru);let Ji$1=null;function ve$2(){return Ji$1||(Ji$1=new eu("secp256k1")),Ji$1}class iu{constructor(Fn){wr$1(this,"curve","secp256k1"),wr$1(this,"privateKey",Kt$2(Fn)),Us$1(this.privateKey)!==32&&Qi$1.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const io=ve$2().keyFromPrivate(Ot$2(this.privateKey));wr$1(this,"publicKey","0x"+io.getPublic(!1,"hex")),wr$1(this,"compressedPublicKey","0x"+io.getPublic(!0,"hex")),wr$1(this,"_isSigningKey",!0)}_addPoint(Fn){const io=ve$2().keyFromPublic(Ot$2(this.publicKey)),fo=ve$2().keyFromPublic(Ot$2(Fn));return"0x"+io.pub.add(fo.pub).encodeCompressed("hex")}signDigest(Fn){const io=ve$2().keyFromPrivate(Ot$2(this.privateKey)),fo=Ot$2(Fn);fo.length!==32&&Qi$1.throwArgumentError("bad digest length","digest",Fn);const $o=io.sign(fo,{canonical:!0});return Wn$1({recoveryParam:$o.recoveryParam,r:oe$4("0x"+$o.r.toString(16),32),s:oe$4("0x"+$o.s.toString(16),32)})}computeSharedSecret(Fn){const io=ve$2().keyFromPrivate(Ot$2(this.privateKey)),fo=ve$2().keyFromPublic(Ot$2(Lf$1(Fn)));return oe$4("0x"+io.derive(fo.getPublic()).toString(16),32)}static isSigningKey(Fn){return!!(Fn&&Fn._isSigningKey)}}function nu(Mn,Fn){const io=Wn$1(Fn),fo={r:Ot$2(io.r),s:Ot$2(io.s)};return"0x"+ve$2().recoverPubKey(Ot$2(Mn),fo,io.recoveryParam).encode("hex",!1)}function Lf$1(Mn,Fn){const io=Ot$2(Mn);return io.length===32?new iu(io).publicKey:io.length===33?"0x"+ve$2().keyFromPublic(io).getPublic(!1,"hex"):io.length===65?Kt$2(io):Qi$1.throwArgumentError("invalid public or private key","key","[REDACTED]")}var zf$1;(function(Mn){Mn[Mn.legacy=0]="legacy",Mn[Mn.eip2930=1]="eip2930",Mn[Mn.eip1559=2]="eip1559"})(zf$1||(zf$1={}));function ou(Mn){const Fn=Lf$1(Mn);return v0$1(Vn$1(Ii$2(Vn$1(Fn,1)),12))}function su(Mn,Fn){return ou(nu(Ot$2(Mn),Fn))}const au="https://rpc.walletconnect.org/v1";async function jf$1(Mn,Fn,io,fo,$o,mo){switch(io.t){case"eip191":return Qf$1(Mn,Fn,io.s);case"eip1271":return await Jf$1(Mn,Fn,io.s,fo,$o,mo);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${io.t}`)}}function Qf$1(Mn,Fn,io){return su(df$2(Fn),io).toLowerCase()===Mn.toLowerCase()}async function Jf$1(Mn,Fn,io,fo,$o,mo){try{const Ao="0x1626ba7e",jo="0000000000000000000000000000000000000000000000000000000000000040",Lo="0000000000000000000000000000000000000000000000000000000000000041",Ho=io.substring(2),zo=df$2(Fn).substring(2),Go=Ao+zo+jo+Lo+Ho,Vo=await fetch(`${mo||au}/?chainId=${fo}&projectId=${$o}`,{method:"POST",body:JSON.stringify({id:uu(),jsonrpc:"2.0",method:"eth_call",params:[{to:Mn,data:Go},"latest"]})}),{result:Yo}=await Vo.json();return Yo?Yo.slice(0,Ao.length).toLowerCase()===Ao.toLowerCase():!1}catch(Ao){return console.error("isValidEip1271Signature: ",Ao),!1}}function uu(){return Date.now()+Math.floor(Math.random()*1e3)}var hu$1=Object.defineProperty,cu=Object.defineProperties,lu=Object.getOwnPropertyDescriptors,Gf$1=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,pu=Object.prototype.propertyIsEnumerable,Yf$1=(Mn,Fn,io)=>Fn in Mn?hu$1(Mn,Fn,{enumerable:!0,configurable:!0,writable:!0,value:io}):Mn[Fn]=io,Gi$2=(Mn,Fn)=>{for(var io in Fn||(Fn={}))du.call(Fn,io)&&Yf$1(Mn,io,Fn[io]);if(Gf$1)for(var io of Gf$1(Fn))pu.call(Fn,io)&&Yf$1(Mn,io,Fn[io]);return Mn},Vf$1=(Mn,Fn)=>cu(Mn,lu(Fn));const vu="did:pkh:",Gr$2=Mn=>Mn==null?void 0:Mn.split(":"),Yi$2=Mn=>{const Fn=Mn&&Gr$2(Mn);if(Fn)return Mn.includes(vu)?Fn[3]:Fn[1]},gu=Mn=>{const Fn=Mn&&Gr$2(Mn);if(Fn)return Fn[2]+":"+Fn[3]},Vi$1=Mn=>{const Fn=Mn&&Gr$2(Mn);if(Fn)return Fn.pop()};async function mu(Mn){const{cacao:Fn,projectId:io}=Mn,{s:fo,p:$o}=Fn,mo=Wf$1($o,$o.iss),Ao=Vi$1($o.iss);return await jf$1(Ao,mo,fo,Yi$2($o.iss),io)}const Wf$1=(Mn,Fn)=>{const io=`${Mn.domain} wants you to sign in with your Ethereum account:`,fo=Vi$1(Fn);if(!Mn.aud&&!Mn.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let $o=Mn.statement||void 0;const mo=`URI: ${Mn.aud||Mn.uri}`,Ao=`Version: ${Mn.version}`,jo=`Chain ID: ${Yi$2(Fn)}`,Lo=`Nonce: ${Mn.nonce}`,Ho=`Issued At: ${Mn.iat}`,zo=Mn.exp?`Expiration Time: ${Mn.exp}`:void 0,Go=Mn.nbf?`Not Before: ${Mn.nbf}`:void 0,Vo=Mn.requestId?`Request ID: ${Mn.requestId}`:void 0,Yo=Mn.resources?`Resources:${Mn.resources.map(is=>`
- ${is}`).join("")}`:void 0,Xo=Vr$1(Mn.resources);if(Xo){const is=Oe$1(Xo);$o=$i$1($o,is)}return[io,fo,"",$o,"",mo,Ao,jo,Lo,Ho,zo,Go,Vo,Yo].filter(is=>is!=null).join(`
`)};function to(Mn){return Buffer$D.from(JSON.stringify(Mn)).toString("base64")}function eo(Mn){return JSON.parse(Buffer$D.from(Mn,"base64").toString("utf-8"))}function ge$1(Mn){if(!Mn)throw new Error("No recap provided, value is undefined");if(!Mn.att)throw new Error("No `att` property found");const Fn=Object.keys(Mn.att);if(!(Fn!=null&&Fn.length))throw new Error("No resources found in `att` property");Fn.forEach(io=>{const fo=Mn.att[io];if(Array.isArray(fo))throw new Error(`Resource must be an object: ${io}`);if(typeof fo!="object")throw new Error(`Resource must be an object: ${io}`);if(!Object.keys(fo).length)throw new Error(`Resource object is empty: ${io}`);Object.keys(fo).forEach($o=>{const mo=fo[$o];if(!Array.isArray(mo))throw new Error(`Ability limits ${$o} must be an array of objects, found: ${mo}`);if(!mo.length)throw new Error(`Value of ${$o} is empty array, must be an array with objects`);mo.forEach(Ao=>{if(typeof Ao!="object")throw new Error(`Ability limits (${$o}) must be an array of objects, found: ${Ao}`)})})})}function ro(Mn,Fn,io,fo={}){return io==null||io.sort(($o,mo)=>$o.localeCompare(mo)),{att:{[Mn]:Wi$2(Fn,io,fo)}}}function Wi$2(Mn,Fn,io={}){Fn=Fn==null?void 0:Fn.sort(($o,mo)=>$o.localeCompare(mo));const fo=Fn.map($o=>({[`${Mn}/${$o}`]:[io]}));return Object.assign({},...fo)}function Yr$1(Mn){return ge$1(Mn),`urn:recap:${to(Mn).replace(/=/g,"")}`}function Oe$1(Mn){const Fn=eo(Mn.replace("urn:recap:",""));return ge$1(Fn),Fn}function xu(Mn,Fn,io){const fo=ro(Mn,Fn,io);return Yr$1(fo)}function Xi$1(Mn){return Mn&&Mn.includes("urn:recap:")}function Mu(Mn,Fn){const io=Oe$1(Mn),fo=Oe$1(Fn),$o=no(io,fo);return Yr$1($o)}function no(Mn,Fn){ge$1(Mn),ge$1(Fn);const io=Object.keys(Mn.att).concat(Object.keys(Fn.att)).sort(($o,mo)=>$o.localeCompare(mo)),fo={att:{}};return io.forEach($o=>{var mo,Ao;Object.keys(((mo=Mn.att)==null?void 0:mo[$o])||{}).concat(Object.keys(((Ao=Fn.att)==null?void 0:Ao[$o])||{})).sort((jo,Lo)=>jo.localeCompare(Lo)).forEach(jo=>{var Lo,Ho;fo.att[$o]=Vf$1(Gi$2({},fo.att[$o]),{[jo]:((Lo=Mn.att[$o])==null?void 0:Lo[jo])||((Ho=Fn.att[$o])==null?void 0:Ho[jo])})})}),fo}function $i$1(Mn="",Fn){ge$1(Fn);const io="I further authorize the stated URI to perform the following actions on my behalf: ";if(Mn.includes(io))return Mn;const fo=[];let $o=0;Object.keys(Fn.att).forEach(jo=>{const Lo=Object.keys(Fn.att[jo]).map(Go=>({ability:Go.split("/")[0],action:Go.split("/")[1]}));Lo.sort((Go,Vo)=>Go.action.localeCompare(Vo.action));const Ho={};Lo.forEach(Go=>{Ho[Go.ability]||(Ho[Go.ability]=[]),Ho[Go.ability].push(Go.action)});const zo=Object.keys(Ho).map(Go=>($o++,`(${$o}) '${Go}': '${Ho[Go].join("', '")}' for '${jo}'.`));fo.push(zo.join(", ").replace(".,","."))});const mo=fo.join(" "),Ao=`${io}${mo}`;return`${Mn?Mn+" ":""}${Ao}`}function Eu(Mn){var Fn;const io=Oe$1(Mn);ge$1(io);const fo=(Fn=io.att)==null?void 0:Fn.eip155;return fo?Object.keys(fo).map($o=>$o.split("/")[1]):[]}function Su(Mn){const Fn=Oe$1(Mn);ge$1(Fn);const io=[];return Object.values(Fn.att).forEach(fo=>{Object.values(fo).forEach($o=>{var mo;(mo=$o==null?void 0:$o[0])!=null&&mo.chains&&io.push($o[0].chains)})}),[...new Set(io.flat())]}function Vr$1(Mn){if(!Mn)return;const Fn=Mn==null?void 0:Mn[Mn.length-1];return Xi$1(Fn)?Fn:void 0}const Zi$1="base10",Lt$2="base16",tn$1="base64pad",Iu="base64url",dr$2="utf8",en$2=0,pr$2=1,Sr$1=2,Nu=0,oo=1,Ir$1=12,rn$1=32;function _u(){const Mn=x25519.generateKeyPair();return{privateKey:toString$b(Mn.secretKey,Lt$2),publicKey:toString$b(Mn.publicKey,Lt$2)}}function Bu(){const Mn=random$1.randomBytes(rn$1);return toString$b(Mn,Lt$2)}function Cu(Mn,Fn){const io=x25519.sharedKey(fromString(Mn,Lt$2),fromString(Fn,Lt$2),!0),fo=new HKDF_1(sha256$3.SHA256,io).expand(rn$1);return toString$b(fo,Lt$2)}function Ru(Mn){const Fn=sha256$3.hash(fromString(Mn,Lt$2));return toString$b(Fn,Lt$2)}function Ou(Mn){const Fn=sha256$3.hash(fromString(Mn,dr$2));return toString$b(Fn,Lt$2)}function nn$1(Mn){return fromString(`${Mn}`,Zi$1)}function Ze$3(Mn){return Number(toString$b(Mn,Zi$1))}function Pu(Mn){const Fn=nn$1(typeof Mn.type<"u"?Mn.type:en$2);if(Ze$3(Fn)===pr$2&&typeof Mn.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const io=typeof Mn.senderPublicKey<"u"?fromString(Mn.senderPublicKey,Lt$2):void 0,fo=typeof Mn.iv<"u"?fromString(Mn.iv,Lt$2):random$1.randomBytes(Ir$1),$o=new chacha20poly1305.ChaCha20Poly1305(fromString(Mn.symKey,Lt$2)).seal(fo,fromString(Mn.message,dr$2));return fn$1({type:Fn,sealed:$o,iv:fo,senderPublicKey:io,encoding:Mn.encoding})}function Tu(Mn,Fn){const io=nn$1(Sr$1),fo=random$1.randomBytes(Ir$1),$o=fromString(Mn,dr$2);return fn$1({type:io,sealed:$o,iv:fo,encoding:Fn})}function Du(Mn){const Fn=new chacha20poly1305.ChaCha20Poly1305(fromString(Mn.symKey,Lt$2)),{sealed:io,iv:fo}=Wr$1({encoded:Mn.encoded,encoding:Mn==null?void 0:Mn.encoding}),$o=Fn.open(fo,io);if($o===null)throw new Error("Failed to decrypt");return toString$b($o,dr$2)}function Fu(Mn,Fn){const{sealed:io}=Wr$1({encoded:Mn,encoding:Fn});return toString$b(io,dr$2)}function fn$1(Mn){const{encoding:Fn=tn$1}=Mn;if(Ze$3(Mn.type)===Sr$1)return toString$b(concat([Mn.type,Mn.sealed]),Fn);if(Ze$3(Mn.type)===pr$2){if(typeof Mn.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return toString$b(concat([Mn.type,Mn.senderPublicKey,Mn.iv,Mn.sealed]),Fn)}return toString$b(concat([Mn.type,Mn.iv,Mn.sealed]),Fn)}function Wr$1(Mn){const{encoded:Fn,encoding:io=tn$1}=Mn,fo=fromString(Fn,io),$o=fo.slice(Nu,oo),mo=oo;if(Ze$3($o)===pr$2){const Ho=mo+rn$1,zo=Ho+Ir$1,Go=fo.slice(mo,Ho),Vo=fo.slice(Ho,zo),Yo=fo.slice(zo);return{type:$o,sealed:Yo,iv:Vo,senderPublicKey:Go}}if(Ze$3($o)===Sr$1){const Ho=fo.slice(mo),zo=random$1.randomBytes(Ir$1);return{type:$o,sealed:Ho,iv:zo}}const Ao=mo+Ir$1,jo=fo.slice(mo,Ao),Lo=fo.slice(Ao);return{type:$o,sealed:Lo,iv:jo}}function Uu(Mn,Fn){const io=Wr$1({encoded:Mn,encoding:Fn==null?void 0:Fn.encoding});return so({type:Ze$3(io.type),senderPublicKey:typeof io.senderPublicKey<"u"?toString$b(io.senderPublicKey,Lt$2):void 0,receiverPublicKey:Fn==null?void 0:Fn.receiverPublicKey})}function so(Mn){const Fn=(Mn==null?void 0:Mn.type)||en$2;if(Fn===pr$2){if(typeof(Mn==null?void 0:Mn.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(Mn==null?void 0:Mn.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:Fn,senderPublicKey:Mn==null?void 0:Mn.senderPublicKey,receiverPublicKey:Mn==null?void 0:Mn.receiverPublicKey}}function ku(Mn){return Mn.type===pr$2&&typeof Mn.senderPublicKey=="string"&&typeof Mn.receiverPublicKey=="string"}function qu(Mn){return Mn.type===Sr$1}function ao(Mn){return new ellipticExports.ec("p256").keyFromPublic({x:Buffer$D.from(Mn.x,"base64").toString("hex"),y:Buffer$D.from(Mn.y,"base64").toString("hex")},"hex")}function Ku(Mn){let Fn=Mn.replace(/-/g,"+").replace(/_/g,"/");const io=Fn.length%4;return io>0&&(Fn+="=".repeat(4-io)),Fn}function Hu(Mn){return Buffer$D.from(Ku(Mn),"base64")}function Lu(Mn,Fn){const[io,fo,$o]=Mn.split("."),mo=Hu($o);if(mo.length!==64)throw new Error("Invalid signature length");const Ao=mo.slice(0,32).toString("hex"),jo=mo.slice(32,64).toString("hex"),Lo=`${io}.${fo}`,Ho=new sha256$3.SHA256().update(Buffer$D.from(Lo)).digest(),zo=ao(Fn),Go=Buffer$D.from(Ho).toString("hex");if(!zo.verify(Go,{r:Ao,s:jo}))throw new Error("Invalid signature");return decodeJWT(Mn).payload}const uo="irn";function zu(Mn){return(Mn==null?void 0:Mn.relay)||{protocol:uo}}function ju(Mn){const Fn=C$4[Mn];if(typeof Fn>"u")throw new Error(`Relay Protocol not supported: ${Mn}`);return Fn}var Qu=Object.defineProperty,Ju=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable,co=(Mn,Fn,io)=>Fn in Mn?Qu(Mn,Fn,{enumerable:!0,configurable:!0,writable:!0,value:io}):Mn[Fn]=io,lo=(Mn,Fn)=>{for(var io in Fn||(Fn={}))Yu.call(Fn,io)&&co(Mn,io,Fn[io]);if(ho)for(var io of ho(Fn))Vu.call(Fn,io)&&co(Mn,io,Fn[io]);return Mn},Wu=(Mn,Fn)=>Ju(Mn,Gu(Fn));function po(Mn,Fn="-"){const io={},fo="relay"+Fn;return Object.keys(Mn).forEach($o=>{if($o.startsWith(fo)){const mo=$o.replace(fo,""),Ao=Mn[$o];io[mo]=Ao}}),io}function Xu(Mn){if(!Mn.includes("wc:")){const Lo=xi$2(Mn);Lo!=null&&Lo.includes("wc:")&&(Mn=Lo)}Mn=Mn.includes("wc://")?Mn.replace("wc://",""):Mn,Mn=Mn.includes("wc:")?Mn.replace("wc:",""):Mn;const Fn=Mn.indexOf(":"),io=Mn.indexOf("?")!==-1?Mn.indexOf("?"):void 0,fo=Mn.substring(0,Fn),$o=Mn.substring(Fn+1,io).split("@"),mo=typeof io<"u"?Mn.substring(io):"",Ao=queryString.parse(mo),jo=typeof Ao.methods=="string"?Ao.methods.split(","):void 0;return{protocol:fo,topic:vo($o[0]),version:parseInt($o[1],10),symKey:Ao.symKey,relay:po(Ao),methods:jo,expiryTimestamp:Ao.expiryTimestamp?parseInt(Ao.expiryTimestamp,10):void 0}}function vo(Mn){return Mn.startsWith("//")?Mn.substring(2):Mn}function go(Mn,Fn="-"){const io="relay",fo={};return Object.keys(Mn).forEach($o=>{const mo=io+Fn+$o;Mn[$o]&&(fo[mo]=Mn[$o])}),fo}function $u(Mn){return`${Mn.protocol}:${Mn.topic}@${Mn.version}?`+queryString.stringify(lo(Wu(lo({symKey:Mn.symKey},go(Mn.relay)),{expiryTimestamp:Mn.expiryTimestamp}),Mn.methods?{methods:Mn.methods.join(",")}:{}))}function Zu(Mn,Fn,io){return`${Mn}?wc_ev=${io}&topic=${Fn}`}function tr$1(Mn){const Fn=[];return Mn.forEach(io=>{const[fo,$o]=io.split(":");Fn.push(`${fo}:${$o}`)}),Fn}function bo(Mn){const Fn=[];return Object.values(Mn).forEach(io=>{Fn.push(...tr$1(io.accounts))}),Fn}function yo(Mn,Fn){const io=[];return Object.values(Mn).forEach(fo=>{tr$1(fo.accounts).includes(Fn)&&io.push(...fo.methods)}),io}function wo(Mn,Fn){const io=[];return Object.values(Mn).forEach(fo=>{tr$1(fo.accounts).includes(Fn)&&io.push(...fo.events)}),io}function on$1(Mn){return Mn.includes(":")}function xo(Mn){return on$1(Mn)?Mn.split(":")[0]:Mn}function Mo(Mn){const Fn={};return Mn==null||Mn.forEach(io=>{const[fo,$o]=io.split(":");Fn[fo]||(Fn[fo]={accounts:[],chains:[],events:[]}),Fn[fo].accounts.push(io),Fn[fo].chains.push(`${fo}:${$o}`)}),Fn}function uh$1(Mn,Fn){Fn=Fn.map(fo=>fo.replace("did:pkh:",""));const io=Mo(Fn);for(const[fo,$o]of Object.entries(io))$o.methods?$o.methods=me$2($o.methods,Mn):$o.methods=Mn,$o.events=["chainChanged","accountsChanged"];return io}const Eo={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},So={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function xe$2(Mn,Fn){const{message:io,code:fo}=So[Mn];return{message:Fn?`${io} ${Fn}`:io,code:fo}}function er$1(Mn,Fn){const{message:io,code:fo}=Eo[Mn];return{message:Fn?`${io} ${Fn}`:io,code:fo}}function Nr$1(Mn,Fn){return!!Array.isArray(Mn)}function Xr$1(Mn){return Object.getPrototypeOf(Mn)===Object.prototype&&Object.keys(Mn).length}function Pe$1(Mn){return typeof Mn>"u"}function Yt$1(Mn,Fn){return Fn&&Pe$1(Mn)?!0:typeof Mn=="string"&&!!Mn.trim().length}function $r$1(Mn,Fn){return typeof Mn=="number"&&!isNaN(Mn)}function hh$1(Mn,Fn){const{requiredNamespaces:io}=Fn,fo=Object.keys(Mn.namespaces),$o=Object.keys(io);let mo=!0;return _e$2($o,fo)?(fo.forEach(Ao=>{const{accounts:jo,methods:Lo,events:Ho}=Mn.namespaces[Ao],zo=tr$1(jo),Go=io[Ao];(!_e$2(Or$1(Ao,Go),zo)||!_e$2(Go.methods,Lo)||!_e$2(Go.events,Ho))&&(mo=!1)}),mo):!1}function _r$1(Mn){return Yt$1(Mn,!1)&&Mn.includes(":")?Mn.split(":").length===2:!1}function Io(Mn){if(Yt$1(Mn,!1)&&Mn.includes(":")){const Fn=Mn.split(":");if(Fn.length===3){const io=Fn[0]+":"+Fn[1];return!!Fn[2]&&_r$1(io)}}return!1}function ch$1(Mn){function Fn(io){try{return typeof new URL(io)<"u"}catch{return!1}}try{if(Yt$1(Mn,!1)){if(Fn(Mn))return!0;const io=xi$2(Mn);return Fn(io)}}catch{}return!1}function lh$1(Mn){var Fn;return(Fn=Mn==null?void 0:Mn.proposer)==null?void 0:Fn.publicKey}function dh$1(Mn){return Mn==null?void 0:Mn.topic}function ph$1(Mn,Fn){let io=null;return Yt$1(Mn==null?void 0:Mn.publicKey,!1)||(io=xe$2("MISSING_OR_INVALID",`${Fn} controller public key should be a string`)),io}function an$1(Mn){let Fn=!0;return Nr$1(Mn)?Mn.length&&(Fn=Mn.every(io=>Yt$1(io,!1))):Fn=!1,Fn}function No(Mn,Fn,io){let fo=null;return Nr$1(Fn)&&Fn.length?Fn.forEach($o=>{fo||_r$1($o)||(fo=er$1("UNSUPPORTED_CHAINS",`${io}, chain ${$o} should be a string and conform to "namespace:chainId" format`))}):_r$1(Mn)||(fo=er$1("UNSUPPORTED_CHAINS",`${io}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),fo}function _o(Mn,Fn,io){let fo=null;return Object.entries(Mn).forEach(([$o,mo])=>{if(fo)return;const Ao=No($o,Or$1($o,mo),`${Fn} ${io}`);Ao&&(fo=Ao)}),fo}function Bo(Mn,Fn){let io=null;return Nr$1(Mn)?Mn.forEach(fo=>{io||Io(fo)||(io=er$1("UNSUPPORTED_ACCOUNTS",`${Fn}, account ${fo} should be a string and conform to "namespace:chainId:address" format`))}):io=er$1("UNSUPPORTED_ACCOUNTS",`${Fn}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),io}function Co(Mn,Fn){let io=null;return Object.values(Mn).forEach(fo=>{if(io)return;const $o=Bo(fo==null?void 0:fo.accounts,`${Fn} namespace`);$o&&(io=$o)}),io}function Ro(Mn,Fn){let io=null;return an$1(Mn==null?void 0:Mn.methods)?an$1(Mn==null?void 0:Mn.events)||(io=er$1("UNSUPPORTED_EVENTS",`${Fn}, events should be an array of strings or empty array for no events`)):io=er$1("UNSUPPORTED_METHODS",`${Fn}, methods should be an array of strings or empty array for no methods`),io}function un$1(Mn,Fn){let io=null;return Object.values(Mn).forEach(fo=>{if(io)return;const $o=Ro(fo,`${Fn}, namespace`);$o&&(io=$o)}),io}function vh$2(Mn,Fn,io){let fo=null;if(Mn&&Xr$1(Mn)){const $o=un$1(Mn,Fn);$o&&(fo=$o);const mo=_o(Mn,Fn,io);mo&&(fo=mo)}else fo=xe$2("MISSING_OR_INVALID",`${Fn}, ${io} should be an object with data`);return fo}function Oo(Mn,Fn){let io=null;if(Mn&&Xr$1(Mn)){const fo=un$1(Mn,Fn);fo&&(io=fo);const $o=Co(Mn,Fn);$o&&(io=$o)}else io=xe$2("MISSING_OR_INVALID",`${Fn}, namespaces should be an object with data`);return io}function Po(Mn){return Yt$1(Mn.protocol,!0)}function gh$1(Mn,Fn){let io=!1;return Mn?Mn&&Nr$1(Mn)&&Mn.length&&Mn.forEach(fo=>{io=Po(fo)}):io=!0,io}function mh$1(Mn){return typeof Mn=="number"}function Ah$1(Mn){return typeof Mn<"u"&&typeof Mn!==null}function bh$1(Mn){return!(!Mn||typeof Mn!="object"||!Mn.code||!$r$1(Mn.code)||!Mn.message||!Yt$1(Mn.message,!1))}function yh$1(Mn){return!(Pe$1(Mn)||!Yt$1(Mn.method,!1))}function wh$1(Mn){return!(Pe$1(Mn)||Pe$1(Mn.result)&&Pe$1(Mn.error)||!$r$1(Mn.id)||!Yt$1(Mn.jsonrpc,!1))}function xh$1(Mn){return!(Pe$1(Mn)||!Yt$1(Mn.name,!1))}function Mh$1(Mn,Fn){return!(!_r$1(Fn)||!bo(Mn).includes(Fn))}function Eh$1(Mn,Fn,io){return Yt$1(io,!1)?yo(Mn,Fn).includes(io):!1}function Sh$1(Mn,Fn,io){return Yt$1(io,!1)?wo(Mn,Fn).includes(io):!1}function To(Mn,Fn,io){let fo=null;const $o=Ih$1(Mn),mo=Nh$1(Fn),Ao=Object.keys($o),jo=Object.keys(mo),Lo=Do(Object.keys(Mn)),Ho=Do(Object.keys(Fn)),zo=Lo.filter(Go=>!Ho.includes(Go));return zo.length&&(fo=xe$2("NON_CONFORMING_NAMESPACES",`${io} namespaces keys don't satisfy requiredNamespaces.
Required: ${zo.toString()}
Received: ${Object.keys(Fn).toString()}`)),_e$2(Ao,jo)||(fo=xe$2("NON_CONFORMING_NAMESPACES",`${io} namespaces chains don't satisfy required namespaces.
Required: ${Ao.toString()}
Approved: ${jo.toString()}`)),Object.keys(Fn).forEach(Go=>{if(!Go.includes(":")||fo)return;const Vo=tr$1(Fn[Go].accounts);Vo.includes(Go)||(fo=xe$2("NON_CONFORMING_NAMESPACES",`${io} namespaces accounts don't satisfy namespace accounts for ${Go}
Required: ${Go}
Approved: ${Vo.toString()}`))}),Ao.forEach(Go=>{fo||(_e$2($o[Go].methods,mo[Go].methods)?_e$2($o[Go].events,mo[Go].events)||(fo=xe$2("NON_CONFORMING_NAMESPACES",`${io} namespaces events don't satisfy namespace events for ${Go}`)):fo=xe$2("NON_CONFORMING_NAMESPACES",`${io} namespaces methods don't satisfy namespace methods for ${Go}`))}),fo}function Ih$1(Mn){const Fn={};return Object.keys(Mn).forEach(io=>{var fo;io.includes(":")?Fn[io]=Mn[io]:(fo=Mn[io].chains)==null||fo.forEach($o=>{Fn[$o]={methods:Mn[io].methods,events:Mn[io].events}})}),Fn}function Do(Mn){return[...new Set(Mn.map(Fn=>Fn.includes(":")?Fn.split(":")[0]:Fn))]}function Nh$1(Mn){const Fn={};return Object.keys(Mn).forEach(io=>{if(io.includes(":"))Fn[io]=Mn[io];else{const fo=tr$1(Mn[io].accounts);fo==null||fo.forEach($o=>{Fn[$o]={accounts:Mn[io].accounts.filter(mo=>mo.includes(`${$o}:`)),methods:Mn[io].methods,events:Mn[io].events}})}}),Fn}function _h(Mn,Fn){return $r$1(Mn)&&Mn<=Fn.max&&Mn>=Fn.min}function Bh$1(){const Mn=We$1();return new Promise(Fn=>{switch(Mn){case qt$1.browser:Fn(Fo());break;case qt$1.reactNative:Fn(Uo());break;case qt$1.node:Fn(ko$1());break;default:Fn(!0)}})}function Fo(){return gr$1()&&(navigator==null?void 0:navigator.onLine)}async function Uo(){if(rr$1()&&typeof global$o<"u"&&global$o!=null&&global$o.NetInfo){const Mn=await(global$o==null?void 0:global$o.NetInfo.fetch());return Mn==null?void 0:Mn.isConnected}return!0}function ko$1(){return!0}function Ch$1(Mn){switch(We$1()){case qt$1.browser:qo(Mn);break;case qt$1.reactNative:Ko(Mn);break}}function qo(Mn){!rr$1()&&gr$1()&&(window.addEventListener("online",()=>Mn(!0)),window.addEventListener("offline",()=>Mn(!1)))}function Ko(Mn){rr$1()&&typeof global$o<"u"&&global$o!=null&&global$o.NetInfo&&(global$o==null||global$o.NetInfo.addEventListener(Fn=>Mn(Fn==null?void 0:Fn.isConnected)))}const hn$1={};let Rh$1=class{static get(Fn){return hn$1[Fn]}static set(Fn,io){hn$1[Fn]=io}static delete(Fn){delete hn$1[Fn]}};class IEvents{}let n$4=class extends IEvents{constructor(Fn){super()}};const s=cjs$4.FIVE_SECONDS,r$2={pulse:"heartbeat_pulse"};let i$1=class u_ extends n$4{constructor(Fn){super(Fn),this.events=new eventsExports.EventEmitter,this.interval=s,this.interval=(Fn==null?void 0:Fn.interval)||s}static async init(Fn){const io=new u_(Fn);return await io.init(),io}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(Fn,io){this.events.on(Fn,io)}once(Fn,io){this.events.once(Fn,io)}off(Fn,io){this.events.off(Fn,io)}removeListener(Fn,io){this.events.removeListener(Fn,io)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),cjs$4.toMiliseconds(this.interval))}pulse(){this.events.emit(r$2.pulse)}};const suspectProtoRx=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,suspectConstructorRx=/"(?: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)"\s*:/,JsonSigRx=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function jsonParseTransform(Mn,Fn){if(Mn==="__proto__"||Mn==="constructor"&&Fn&&typeof Fn=="object"&&"prototype"in Fn){warnKeyDropped(Mn);return}return Fn}function warnKeyDropped(Mn){console.warn(`[destr] Dropping "${Mn}" key to prevent prototype pollution.`)}function destr(Mn,Fn={}){if(typeof Mn!="string")return Mn;const io=Mn.trim();if(Mn[0]==='"'&&Mn.endsWith('"')&&!Mn.includes("\\"))return io.slice(1,-1);if(io.length<=9){const fo=io.toLowerCase();if(fo==="true")return!0;if(fo==="false")return!1;if(fo==="undefined")return;if(fo==="null")return null;if(fo==="nan")return Number.NaN;if(fo==="infinity")return Number.POSITIVE_INFINITY;if(fo==="-infinity")return Number.NEGATIVE_INFINITY}if(!JsonSigRx.test(Mn)){if(Fn.strict)throw new SyntaxError("[destr] Invalid JSON");return Mn}try{if(suspectProtoRx.test(Mn)||suspectConstructorRx.test(Mn)){if(Fn.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(Mn,jsonParseTransform)}return JSON.parse(Mn)}catch(fo){if(Fn.strict)throw fo;return Mn}}function wrapToPromise(Mn){return!Mn||typeof Mn.then!="function"?Promise.resolve(Mn):Mn}function asyncCall(Mn,...Fn){try{return wrapToPromise(Mn(...Fn))}catch(io){return Promise.reject(io)}}function isPrimitive(Mn){const Fn=typeof Mn;return Mn===null||Fn!=="object"&&Fn!=="function"}function isPureObject(Mn){const Fn=Object.getPrototypeOf(Mn);return!Fn||Fn.isPrototypeOf(Object)}function stringify$2(Mn){if(isPrimitive(Mn))return String(Mn);if(isPureObject(Mn)||Array.isArray(Mn))return JSON.stringify(Mn);if(typeof Mn.toJSON=="function")return stringify$2(Mn.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function checkBufferSupport(){if(typeof Buffer$D>"u")throw new TypeError("[unstorage] Buffer is not supported!")}const BASE64_PREFIX="base64:";function serializeRaw(Mn){if(typeof Mn=="string")return Mn;checkBufferSupport();const Fn=Buffer$D.from(Mn).toString("base64");return BASE64_PREFIX+Fn}function deserializeRaw(Mn){return typeof Mn!="string"||!Mn.startsWith(BASE64_PREFIX)?Mn:(checkBufferSupport(),Buffer$D.from(Mn.slice(BASE64_PREFIX.length),"base64"))}function normalizeKey(Mn){return Mn?Mn.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function joinKeys(...Mn){return normalizeKey(Mn.join(":"))}function normalizeBaseKey(Mn){return Mn=normalizeKey(Mn),Mn?Mn+":":""}function defineDriver(Mn){return Mn}const DRIVER_NAME="memory",memory=()=>{const Mn=new Map;return{name:DRIVER_NAME,getInstance:()=>Mn,hasItem(Fn){return Mn.has(Fn)},getItem(Fn){return Mn.get(Fn)??null},getItemRaw(Fn){return Mn.get(Fn)??null},setItem(Fn,io){Mn.set(Fn,io)},setItemRaw(Fn,io){Mn.set(Fn,io)},removeItem(Fn){Mn.delete(Fn)},getKeys(){return[...Mn.keys()]},clear(){Mn.clear()},dispose(){Mn.clear()}}};function createStorage(Mn={}){const Fn={mounts:{"":Mn.driver||memory()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},io=Ho=>{for(const zo of Fn.mountpoints)if(Ho.startsWith(zo))return{base:zo,relativeKey:Ho.slice(zo.length),driver:Fn.mounts[zo]};return{base:"",relativeKey:Ho,driver:Fn.mounts[""]}},fo=(Ho,zo)=>Fn.mountpoints.filter(Go=>Go.startsWith(Ho)||zo&&Ho.startsWith(Go)).map(Go=>({relativeBase:Ho.length>Go.length?Ho.slice(Go.length):void 0,mountpoint:Go,driver:Fn.mounts[Go]})),$o=(Ho,zo)=>{if(Fn.watching){zo=normalizeKey(zo);for(const Go of Fn.watchListeners)Go(Ho,zo)}},mo=async()=>{if(!Fn.watching){Fn.watching=!0;for(const Ho in Fn.mounts)Fn.unwatch[Ho]=await watch(Fn.mounts[Ho],$o,Ho)}},Ao=async()=>{if(Fn.watching){for(const Ho in Fn.unwatch)await Fn.unwatch[Ho]();Fn.unwatch={},Fn.watching=!1}},jo=(Ho,zo,Go)=>{const Vo=new Map,Yo=Xo=>{let is=Vo.get(Xo.base);return is||(is={driver:Xo.driver,base:Xo.base,items:[]},Vo.set(Xo.base,is)),is};for(const Xo of Ho){const is=typeof Xo=="string",yl=normalizeKey(is?Xo:Xo.key),us=is?void 0:Xo.value,hs=is||!Xo.options?zo:{...zo,...Xo.options},_l=io(yl);Yo(_l).items.push({key:yl,value:us,relativeKey:_l.relativeKey,options:hs})}return Promise.all([...Vo.values()].map(Xo=>Go(Xo))).then(Xo=>Xo.flat())},Lo={hasItem(Ho,zo={}){Ho=normalizeKey(Ho);const{relativeKey:Go,driver:Vo}=io(Ho);return asyncCall(Vo.hasItem,Go,zo)},getItem(Ho,zo={}){Ho=normalizeKey(Ho);const{relativeKey:Go,driver:Vo}=io(Ho);return asyncCall(Vo.getItem,Go,zo).then(Yo=>destr(Yo))},getItems(Ho,zo){return jo(Ho,zo,Go=>Go.driver.getItems?asyncCall(Go.driver.getItems,Go.items.map(Vo=>({key:Vo.relativeKey,options:Vo.options})),zo).then(Vo=>Vo.map(Yo=>({key:joinKeys(Go.base,Yo.key),value:destr(Yo.value)}))):Promise.all(Go.items.map(Vo=>asyncCall(Go.driver.getItem,Vo.relativeKey,Vo.options).then(Yo=>({key:Vo.key,value:destr(Yo)})))))},getItemRaw(Ho,zo={}){Ho=normalizeKey(Ho);const{relativeKey:Go,driver:Vo}=io(Ho);return Vo.getItemRaw?asyncCall(Vo.getItemRaw,Go,zo):asyncCall(Vo.getItem,Go,zo).then(Yo=>deserializeRaw(Yo))},async setItem(Ho,zo,Go={}){if(zo===void 0)return Lo.removeItem(Ho);Ho=normalizeKey(Ho);const{relativeKey:Vo,driver:Yo}=io(Ho);Yo.setItem&&(await asyncCall(Yo.setItem,Vo,stringify$2(zo),Go),Yo.watch||$o("update",Ho))},async setItems(Ho,zo){await jo(Ho,zo,async Go=>{if(Go.driver.setItems)return asyncCall(Go.driver.setItems,Go.items.map(Vo=>({key:Vo.relativeKey,value:stringify$2(Vo.value),options:Vo.options})),zo);Go.driver.setItem&&await Promise.all(Go.items.map(Vo=>asyncCall(Go.driver.setItem,Vo.relativeKey,stringify$2(Vo.value),Vo.options)))})},async setItemRaw(Ho,zo,Go={}){if(zo===void 0)return Lo.removeItem(Ho,Go);Ho=normalizeKey(Ho);const{relativeKey:Vo,driver:Yo}=io(Ho);if(Yo.setItemRaw)await asyncCall(Yo.setItemRaw,Vo,zo,Go);else if(Yo.setItem)await asyncCall(Yo.setItem,Vo,serializeRaw(zo),Go);else return;Yo.watch||$o("update",Ho)},async removeItem(Ho,zo={}){typeof zo=="boolean"&&(zo={removeMeta:zo}),Ho=normalizeKey(Ho);const{relativeKey:Go,driver:Vo}=io(Ho);Vo.removeItem&&(await asyncCall(Vo.removeItem,Go,zo),(zo.removeMeta||zo.removeMata)&&await asyncCall(Vo.removeItem,Go+"$",zo),Vo.watch||$o("remove",Ho))},async getMeta(Ho,zo={}){typeof zo=="boolean"&&(zo={nativeOnly:zo}),Ho=normalizeKey(Ho);const{relativeKey:Go,driver:Vo}=io(Ho),Yo=Object.create(null);if(Vo.getMeta&&Object.assign(Yo,await asyncCall(Vo.getMeta,Go,zo)),!zo.nativeOnly){const Xo=await asyncCall(Vo.getItem,Go+"$",zo).then(is=>destr(is));Xo&&typeof Xo=="object"&&(typeof Xo.atime=="string"&&(Xo.atime=new Date(Xo.atime)),typeof Xo.mtime=="string"&&(Xo.mtime=new Date(Xo.mtime)),Object.assign(Yo,Xo))}return Yo},setMeta(Ho,zo,Go={}){return this.setItem(Ho+"$",zo,Go)},removeMeta(Ho,zo={}){return this.removeItem(Ho+"$",zo)},async getKeys(Ho,zo={}){Ho=normalizeBaseKey(Ho);const Go=fo(Ho,!0);let Vo=[];const Yo=[];for(const Xo of Go){const is=await asyncCall(Xo.driver.getKeys,Xo.relativeBase,zo);for(const yl of is){const us=Xo.mountpoint+normalizeKey(yl);Vo.some(hs=>us.startsWith(hs))||Yo.push(us)}Vo=[Xo.mountpoint,...Vo.filter(yl=>!yl.startsWith(Xo.mountpoint))]}return Ho?Yo.filter(Xo=>Xo.startsWith(Ho)&&Xo[Xo.length-1]!=="$"):Yo.filter(Xo=>Xo[Xo.length-1]!=="$")},async clear(Ho,zo={}){Ho=normalizeBaseKey(Ho),await Promise.all(fo(Ho,!1).map(async Go=>{if(Go.driver.clear)return asyncCall(Go.driver.clear,Go.relativeBase,zo);if(Go.driver.removeItem){const Vo=await Go.driver.getKeys(Go.relativeBase||"",zo);return Promise.all(Vo.map(Yo=>Go.driver.removeItem(Yo,zo)))}}))},async dispose(){await Promise.all(Object.values(Fn.mounts).map(Ho=>dispose(Ho)))},async watch(Ho){return await mo(),Fn.watchListeners.push(Ho),async()=>{Fn.watchListeners=Fn.watchListeners.filter(zo=>zo!==Ho),Fn.watchListeners.{"ActionError":{"index":0,"kind":{"FunctionCallError":{"CompilationError":{"CodeDoesNotExist":{"account_id":"web4.nearbuilders.testnet"}}}}}}
1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"29QAypbpdknZ9TiDwJGoa7NSGBUrPiGjr36RcN6YgTyK","sender_account_id":"web4.nearbuilders.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.