Reading from NEAR testnet…
Reading from NEAR testnet…
4haraTP2H9r82oEkrxvKNYcSGkRGbMAWLZnwL6BjrEBH
web4.nearbuilders.testnet to web4.nearbuilders.testnet · failed
fs_store()
ect$u(Mn.kind)&&isObject$u(Mn.kind[jo]))$o=Mn.kind[jo],mo=Fn[jo],Ao=jo;else continue}if($o&&mo){for(const jo of Object.keys(mo.props))io[jo]=$o[jo];return walkSubtype$3($o,Fn,io,Ao)}else return io.kind=Mn,fo}function getErrorTypeFromErrorMessage$3(Mn,Fn){switch(!0){case/^account .*? does not exist while viewing$/.test(Mn):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(Mn):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(Mn):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(Mn):return"CodeDoesNotExist";case/wasm execution failed with error: CompilationError\(CodeDoesNotExist/.test(Mn):return"CodeDoesNotExist";case/wasm execution failed with error: FunctionCallError\(MethodResolveError\(MethodNotFound/.test(Mn):return"MethodNotFound";case/wasm execution failed with error: MethodResolveError\(MethodNotFound/.test(Mn):return"MethodNotFound";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(Mn):return"InvalidNonce";default:return Fn}}function isObject$u(Mn){return Object.prototype.toString.call(Mn)==="[object Object]"}function isString$5(Mn){return Object.prototype.toString.call(Mn)==="[object String]"}let ConsoleLogger$3=class{constructor(Fn){ap(this,"logLevels");ap(this,"isLevelEnabled",Fn=>this.logLevels.includes(Fn));this.logLevels=Fn}print(Fn,io,...fo){switch(Fn){case"error":case"fatal":return console.error(io,...fo);case"warn":return console.warn(io,...fo);case"log":return console.log(io,...fo);case"debug":case"verbose":return console.debug(io,...fo)}}verbose(Fn,...io){this.isLevelEnabled("verbose")&&this.print("verbose",Fn,...io)}debug(Fn,...io){this.isLevelEnabled("debug")&&this.print("debug",Fn,...io)}log(Fn,...io){this.isLevelEnabled("log")&&this.print("log",Fn,...io)}warn(Fn,...io){this.isLevelEnabled("warn")&&this.print("warn",Fn,...io)}error(Fn,...io){this.isLevelEnabled("error")&&this.print("error",Fn,...io)}fatal(Fn,...io){this.isLevelEnabled("fatal")&&this.print("fatal",Fn,...io)}};const DEFAULT_LOG_LEVELS$3=["verbose","debug","log","warn","error","fatal"],DEFAULT_LOGGER$3=new ConsoleLogger$3(DEFAULT_LOG_LEVELS$3);var Um;let Logger$4=(Um=class{static error(Fn,...io){var fo;(fo=this.instanceRef)==null||fo.error(Fn,...io)}static log(Fn,...io){var fo;(fo=this.instanceRef)==null||fo.log(Fn,...io)}static warn(Fn,...io){var fo;(fo=this.instanceRef)==null||fo.warn(Fn,...io)}static debug(Fn,...io){var fo,$o;($o=(fo=this.instanceRef)==null?void 0:fo.debug)==null||$o.call(fo,Fn,...io)}static verbose(Fn,...io){var fo,$o;($o=(fo=this.instanceRef)==null?void 0:fo.verbose)==null||$o.call(fo,Fn,...io)}static fatal(Fn,...io){var fo,$o;($o=(fo=this.instanceRef)==null?void 0:fo.fatal)==null||$o.call(fo,Fn,...io)}},ap(Um,"instanceRef",DEFAULT_LOGGER$3),ap(Um,"overrideLogger",Fn=>{Um.instanceRef=Fn}),Um);function printTxOutcomeLogsAndFailures$3({contractId:Mn,outcome:Fn}){const io=[Fn.transaction_outcome,...Fn.receipts_outcome].reduce((fo,$o)=>{const mo=typeof $o.outcome.status=="object"&&typeof $o.outcome.status.Failure=="object";return $o.outcome.logs.length||mo?fo.concat({receiptIds:$o.outcome.receipt_ids,logs:$o.outcome.logs,failure:typeof $o.outcome.status=="object"&&$o.outcome.status.Failure!==void 0?parseRpcError$3($o.outcome.status.Failure):null}):fo},[]);for(const fo of io)Logger$4.log(`Receipt${fo.receiptIds.length>1?"s":""}: ${fo.receiptIds.join(", ")}`),printTxOutcomeLogs$3({contractId:Mn,logs:fo.logs,prefix:" "}),fo.failure&&Logger$4.warn(` Failure [${Mn}]: ${fo.failure}`)}function printTxOutcomeLogs$3({contractId:Mn,logs:Fn,prefix:io=""}){for(const fo of Fn)Logger$4.log(`${io}Log [${Mn}]: ${fo}`)}function getTransactionLastResult$3(Mn){if(typeof Mn.status=="object"&&typeof Mn.status.SuccessValue=="string"){const Fn=Buffer$D.from(Mn.status.SuccessValue,"base64").toString();try{return JSON.parse(Fn)}catch{return Fn}}return null}/*!
* depd
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var browser$m=depd$1;function depd$1(Mn){if(!Mn)throw new TypeError("argument namespace is required");function Fn(io){}return Fn._file=void 0,Fn._ignored=!0,Fn._namespace=Mn,Fn._traced=!1,Fn._warned=Object.create(null),Fn.function=wrapfunction$1,Fn.property=wrapproperty$1,Fn}function wrapfunction$1(Mn,Fn){if(typeof Mn!="function")throw new TypeError("argument fn must be a function");return Mn}function wrapproperty$1(Mn,Fn,io){if(!Mn||typeof Mn!="object"&&typeof Mn!="function")throw new TypeError("argument obj must be object");var fo=Object.getOwnPropertyDescriptor(Mn,Fn);if(!fo)throw new TypeError("must call property on owner object");if(!fo.configurable)throw new TypeError("property must be configurable")}const depd$2=getDefaultExportFromCjs$1(browser$m);function sortBigIntAsc$3(Mn,Fn){return Mn<Fn?-1:Mn>Fn?1:0}function findSeatPrice$3(Mn,Fn,io,fo){return fo&&fo<49?findSeatPriceForProtocolBefore49$3(Mn,Fn):(io||(depd$2("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),io=[1,6250]),findSeatPriceForProtocolAfter49$3(Mn,Fn,io))}function findSeatPriceForProtocolBefore49$3(Mn,Fn){const io=Mn.map(jo=>BigInt(jo.stake)).sort(sortBigIntAsc$3),fo=BigInt(Fn),$o=io.reduce((jo,Lo)=>jo+Lo);if($o<fo)throw new Error("Stakes are below seats");let mo=1n,Ao=$o+1n;for(;mo!==Ao-1n;){const jo=(mo+Ao)/2n;let Lo=!1,Ho=0n;for(let zo=0;zo<io.length;++zo)if(Ho=Ho+io[zo]/jo,Ho>=fo){mo=jo,Lo=!0;break}Lo||(Ao=jo)}return mo}function findSeatPriceForProtocolAfter49$3(Mn,Fn,io){if(io.length!=2)throw Error("minimumStakeRatio should have 2 elements");const fo=Mn.map(mo=>BigInt(mo.stake)).sort(sortBigIntAsc$3),$o=fo.reduce((mo,Ao)=>mo+Ao);return Mn.length<Fn?$o*BigInt(io[0])/BigInt(io[1]):fo[0]+1n}function diffEpochValidators$3(Mn,Fn){const io=new Map;Mn.forEach($o=>io.set($o.account_id,$o));const fo=new Set(Fn.map($o=>$o.account_id));return{newValidators:Fn.filter($o=>!io.has($o.account_id)),removedValidators:Mn.filter($o=>!fo.has($o.account_id)),changedValidators:Fn.filter($o=>io.has($o.account_id)&&io.get($o.account_id).stake!=$o.stake).map($o=>({current:io.get($o.account_id),next:$o}))}}const esm$5=Object.freeze(Object.defineProperty({__proto__:null,ConsoleLogger:ConsoleLogger$3,DEFAULT_FUNCTION_CALL_GAS,ErrorMessages,Logger:Logger$4,NEAR_NOMINATION,NEAR_NOMINATION_EXP,ServerError:ServerError$3,baseDecode:baseDecode$1,baseEncode:baseEncode$1,diffEpochValidators:diffEpochValidators$3,findSeatPrice:findSeatPrice$3,formatError:formatError$3,formatNearAmount,getErrorTypeFromErrorMessage:getErrorTypeFromErrorMessage$3,getTransactionLastResult:getTransactionLastResult$3,parseNearAmount,parseResultError:parseResultError$3,parseRpcError:parseRpcError$3,printTxOutcomeLogs:printTxOutcomeLogs$3,printTxOutcomeLogsAndFailures:printTxOutcomeLogsAndFailures$3,sortBigIntAsc:sortBigIntAsc$3},Symbol.toStringTag,{value:"Module"}));var KeyType$1;(function(Mn){Mn[Mn.ED25519=0]="ED25519",Mn[Mn.SECP256K1=1]="SECP256K1"})(KeyType$1||(KeyType$1={}));const KeySize={SECRET_KEY:32,ED25519_PUBLIC_KEY:32,SECP256k1_PUBLIC_KEY:64};let KeyPairBase$3=class{};function number$3(Mn){if(!Number.isSafeInteger(Mn)||Mn<0)throw new Error(`Wrong positive integer: ${Mn}`)}function bytes$3(Mn,...Fn){if(!(Mn instanceof Uint8Array))throw new Error("Expected Uint8Array");if(Fn.length>0&&!Fn.includes(Mn.length))throw new Error(`Expected Uint8Array of length ${Fn}, not of length=${Mn.length}`)}function hash$8(Mn){if(typeof Mn!="function"||typeof Mn.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(Mn.outputLen),number$3(Mn.blockLen)}function exists$3(Mn,Fn=!0){if(Mn.destroyed)throw new Error("Hash instance has been destroyed");if(Fn&&Mn.finished)throw new Error("Hash#digest() has already been called")}function output$3(Mn,Fn){bytes$3(Mn);const io=Fn.outputLen;if(Mn.length<io)throw new Error(`digestInto() expects output buffer of length at least ${io}`)}const crypto$6=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a$2=Mn=>Mn instanceof Uint8Array,u8=Mn=>new Uint8Array(Mn.buffer,Mn.byteOffset,Mn.byteLength),u32$1=Mn=>new Uint32Array(Mn.buffer,Mn.byteOffset,Math.floor(Mn.byteLength/4)),createView$2=Mn=>new DataView(Mn.buffer,Mn.byteOffset,Mn.byteLength),rotr$2=(Mn,Fn)=>Mn<<32-Fn|Mn>>>Fn,isLE$2=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE$2)throw new Error("Non little-endian hardware is not supported");const hexes$4=Array.from({length:256},(Mn,Fn)=>Fn.toString(16).padStart(2,"0"));function bytesToHex$4(Mn){if(!u8a$2(Mn))throw new Error("Uint8Array expected");let Fn="";for(let io=0;io<Mn.length;io++)Fn+=hexes$4[Mn[io]];return Fn}function hexToBytes$4(Mn){if(typeof Mn!="string")throw new Error("hex string expected, got "+typeof Mn);const Fn=Mn.length;if(Fn%2)throw new Error("padded hex string expected, got unpadded hex of length "+Fn);const io=new Uint8Array(Fn/2);for(let fo=0;fo<io.length;fo++){const $o=fo*2,mo=Mn.slice($o,$o+2),Ao=Number.parseInt(mo,16);if(Number.isNaN(Ao)||Ao<0)throw new Error("Invalid byte sequence");io[fo]=Ao}return io}const nextTick$2=async()=>{};async function asyncLoop(Mn,Fn,io){let fo=Date.now();for(let $o=0;$o<Mn;$o++){io($o);const mo=Date.now()-fo;mo>=0&&mo<Fn||(await nextTick$2(),fo+=mo)}}function utf8ToBytes$4(Mn){if(typeof Mn!="string")throw new Error(`utf8ToBytes expected string, got ${typeof Mn}`);return new Uint8Array(new TextEncoder().encode(Mn))}function toBytes$4(Mn){if(typeof Mn=="string"&&(Mn=utf8ToBytes$4(Mn)),!u8a$2(Mn))throw new Error(`expected Uint8Array, got ${typeof Mn}`);return Mn}function concatBytes$4(...Mn){const Fn=new Uint8Array(Mn.reduce((fo,$o)=>fo+$o.length,0));let io=0;return Mn.forEach(fo=>{if(!u8a$2(fo))throw new Error("Uint8Array expected");Fn.set(fo,io),io+=fo.length}),Fn}let Hash$a=class{clone(){return this._cloneInto()}};const toStr$5={}.toString;function checkOpts(Mn,Fn){if(Fn!==void 0&&toStr$5.call(Fn)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(Mn,Fn)}function wrapConstructor$2(Mn){const Fn=fo=>Mn().update(toBytes$4(fo)).digest(),io=Mn();return Fn.outputLen=io.outputLen,Fn.blockLen=io.blockLen,Fn.create=()=>Mn(),Fn}function wrapConstructorWithOpts(Mn){const Fn=(fo,$o)=>Mn($o).update(toBytes$4(fo)).digest(),io=Mn({});return Fn.outputLen=io.outputLen,Fn.blockLen=io.blockLen,Fn.create=fo=>Mn(fo),Fn}function wrapXOFConstructorWithOpts(Mn){const Fn=(fo,$o)=>Mn($o).update(toBytes$4(fo)).digest(),io=Mn({});return Fn.outputLen=io.outputLen,Fn.blockLen=io.blockLen,Fn.create=fo=>Mn(fo),Fn}function randomBytes$4(Mn=32){if(crypto$6&&typeof crypto$6.getRandomValues=="function")return crypto$6.getRandomValues(new Uint8Array(Mn));throw new Error("crypto.getRandomValues must be defined")}const utils$O=Object.freeze(Object.defineProperty({__proto__:null,Hash:Hash$a,asyncLoop,bytesToHex:bytesToHex$4,checkOpts,concatBytes:concatBytes$4,createView:createView$2,hexToBytes:hexToBytes$4,isLE:isLE$2,nextTick:nextTick$2,randomBytes:randomBytes$4,rotr:rotr$2,toBytes:toBytes$4,u32:u32$1,u8,utf8ToBytes:utf8ToBytes$4,wrapConstructor:wrapConstructor$2,wrapConstructorWithOpts,wrapXOFConstructorWithOpts},Symbol.toStringTag,{value:"Module"}));function setBigUint64$3(Mn,Fn,io,fo){if(typeof Mn.setBigUint64=="function")return Mn.setBigUint64(Fn,io,fo);const $o=BigInt(32),mo=BigInt(4294967295),Ao=Number(io>>$o&mo),jo=Number(io&mo),Lo=fo?4:0,Ho=fo?0:4;Mn.setUint32(Fn+Lo,Ao,fo),Mn.setUint32(Fn+Ho,jo,fo)}let SHA2$2=class extends Hash$a{constructor(Fn,io,fo,$o){super(),this.blockLen=Fn,this.outputLen=io,this.padOffset=fo,this.isLE=$o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(Fn),this.view=createView$2(this.buffer)}update(Fn){exists$3(this);const{view:io,buffer:fo,blockLen:$o}=this;Fn=toBytes$4(Fn);const mo=Fn.length;for(let Ao=0;Ao<mo;){const jo=Math.min($o-this.pos,mo-Ao);if(jo===$o){const Lo=createView$2(Fn);for(;$o<=mo-Ao;Ao+=$o)this.process(Lo,Ao);continue}fo.set(Fn.subarray(Ao,Ao+jo),this.pos),this.pos+=jo,Ao+=jo,this.pos===$o&&(this.process(io,0),this.pos=0)}return this.length+=Fn.length,this.roundClean(),this}digestInto(Fn){exists$3(this),output$3(Fn,this),this.finished=!0;const{buffer:io,view:fo,blockLen:$o,isLE:mo}=this;let{pos:Ao}=this;io[Ao++]=128,this.buffer.subarray(Ao).fill(0),this.padOffset>$o-Ao&&(this.process(fo,0),Ao=0);for(let Go=Ao;Go<$o;Go++)io[Go]=0;setBigUint64$3(fo,$o-8,BigInt(this.length*8),mo),this.process(fo,0);const jo=createView$2(Fn),Lo=this.outputLen;if(Lo%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Ho=Lo/4,zo=this.get();if(Ho>zo.length)throw new Error("_sha2: outputLen bigger than state");for(let Go=0;Go<Ho;Go++)jo.setUint32(4*Go,zo[Go],mo)}digest(){const{buffer:Fn,outputLen:io}=this;this.digestInto(Fn);const fo=Fn.slice(0,io);return this.destroy(),fo}_cloneInto(Fn){Fn||(Fn=new this.constructor),Fn.set(...this.get());const{blockLen:io,buffer:fo,length:$o,finished:mo,destroyed:Ao,pos:jo}=this;return Fn.length=$o,Fn.pos=jo,Fn.finished=mo,Fn.destroyed=Ao,$o%io&&Fn.buffer.set(fo),Fn}};const U32_MASK64$1=BigInt(2**32-1),_32n$1=BigInt(32);function fromBig$1(Mn,Fn=!1){return Fn?{h:Number(Mn&U32_MASK64$1),l:Number(Mn>>_32n$1&U32_MASK64$1)}:{h:Number(Mn>>_32n$1&U32_MASK64$1)|0,l:Number(Mn&U32_MASK64$1)|0}}function split$d(Mn,Fn=!1){let io=new Uint32Array(Mn.length),fo=new Uint32Array(Mn.length);for(let $o=0;$o<Mn.length;$o++){const{h:mo,l:Ao}=fromBig$1(Mn[$o],Fn);[io[$o],fo[$o]]=[mo,Ao]}return[io,fo]}const toBig=(Mn,Fn)=>BigInt(Mn>>>0)<<_32n$1|BigInt(Fn>>>0),shrSH=(Mn,Fn,io)=>Mn>>>io,shrSL=(Mn,Fn,io)=>Mn<<32-io|Fn>>>io,rotrSH=(Mn,Fn,io)=>Mn>>>io|Fn<<32-io,rotrSL=(Mn,Fn,io)=>Mn<<32-io|Fn>>>io,rotrBH=(Mn,Fn,io)=>Mn<<64-io|Fn>>>io-32,rotrBL=(Mn,Fn,io)=>Mn>>>io-32|Fn<<64-io,rotr32H=(Mn,Fn)=>Fn,rotr32L=(Mn,Fn)=>Mn,rotlSH$1=(Mn,Fn,io)=>Mn<<io|Fn>>>32-io,rotlSL$1=(Mn,Fn,io)=>Fn<<io|Mn>>>32-io,rotlBH$1=(Mn,Fn,io)=>Fn<<io-32|Mn>>>64-io,rotlBL$1=(Mn,Fn,io)=>Mn<<io-32|Fn>>>64-io;function add(Mn,Fn,io,fo){const $o=(Fn>>>0)+(fo>>>0);return{h:Mn+io+($o/2**32|0)|0,l:$o|0}}const add3L=(Mn,Fn,io)=>(Mn>>>0)+(Fn>>>0)+(io>>>0),add3H=(Mn,Fn,io,fo)=>Fn+io+fo+(Mn/2**32|0)|0,add4L=(Mn,Fn,io,fo)=>(Mn>>>0)+(Fn>>>0)+(io>>>0)+(fo>>>0),add4H=(Mn,Fn,io,fo,$o)=>Fn+io+fo+$o+(Mn/2**32|0)|0,add5L=(Mn,Fn,io,fo,$o)=>(Mn>>>0)+(Fn>>>0)+(io>>>0)+(fo>>>0)+($o>>>0),add5H=(Mn,Fn,io,fo,$o,mo)=>Fn+io+fo+$o+mo+(Mn/2**32|0)|0,u64={fromBig:fromBig$1,split:split$d,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(Mn=>BigInt(Mn))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);let SHA512$3=class extends SHA2$2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:Fn,Al:io,Bh:fo,Bl:$o,Ch:mo,Cl:Ao,Dh:jo,Dl:Lo,Eh:Ho,El:zo,Fh:Go,Fl:Vo,Gh:Yo,Gl:Xo,Hh:is,Hl:yl}=this;return[Fn,io,fo,$o,mo,Ao,jo,Lo,Ho,zo,Go,Vo,Yo,Xo,is,yl]}set(Fn,io,fo,$o,mo,Ao,jo,Lo,Ho,zo,Go,Vo,Yo,Xo,is,yl){this.Ah=Fn|0,this.Al=io|0,this.Bh=fo|0,this.Bl=$o|0,this.Ch=mo|0,this.Cl=Ao|0,this.Dh=jo|0,this.Dl=Lo|0,this.Eh=Ho|0,this.El=zo|0,this.Fh=Go|0,this.Fl=Vo|0,this.Gh=Yo|0,this.Gl=Xo|0,this.Hh=is|0,this.Hl=yl|0}process(Fn,io){for(let _l=0;_l<16;_l++,io+=4)SHA512_W_H[_l]=Fn.getUint32(io),SHA512_W_L[_l]=Fn.getUint32(io+=4);for(let _l=16;_l<80;_l++){const xl=SHA512_W_H[_l-15]|0,Il=SHA512_W_L[_l-15]|0,Ol=u64.rotrSH(xl,Il,1)^u64.rotrSH(xl,Il,8)^u64.shrSH(xl,Il,7),Tl=u64.rotrSL(xl,Il,1)^u64.rotrSL(xl,Il,8)^u64.shrSL(xl,Il,7),Cl=SHA512_W_H[_l-2]|0,Nl=SHA512_W_L[_l-2]|0,Wl=u64.rotrSH(Cl,Nl,19)^u64.rotrBH(Cl,Nl,61)^u64.shrSH(Cl,Nl,6),Dl=u64.rotrSL(Cl,Nl,19)^u64.rotrBL(Cl,Nl,61)^u64.shrSL(Cl,Nl,6),Rl=u64.add4L(Tl,Dl,SHA512_W_L[_l-7],SHA512_W_L[_l-16]),Qo=u64.add4H(Rl,Ol,Wl,SHA512_W_H[_l-7],SHA512_W_H[_l-16]);SHA512_W_H[_l]=Qo|0,SHA512_W_L[_l]=Rl|0}let{Ah:fo,Al:$o,Bh:mo,Bl:Ao,Ch:jo,Cl:Lo,Dh:Ho,Dl:zo,Eh:Go,El:Vo,Fh:Yo,Fl:Xo,Gh:is,Gl:yl,Hh:us,Hl:hs}=this;for(let _l=0;_l<80;_l++){const xl=u64.rotrSH(Go,Vo,14)^u64.rotrSH(Go,Vo,18)^u64.rotrBH(Go,Vo,41),Il=u64.rotrSL(Go,Vo,14)^u64.rotrSL(Go,Vo,18)^u64.rotrBL(Go,Vo,41),Ol=Go&Yo^~Go&is,Tl=Vo&Xo^~Vo&yl,Cl=u64.add5L(hs,Il,Tl,SHA512_Kl[_l],SHA512_W_L[_l]),Nl=u64.add5H(Cl,us,xl,Ol,SHA512_Kh[_l],SHA512_W_H[_l]),Wl=Cl|0,Dl=u64.rotrSH(fo,$o,28)^u64.rotrBH(fo,$o,34)^u64.rotrBH(fo,$o,39),Rl=u64.rotrSL(fo,$o,28)^u64.rotrBL(fo,$o,34)^u64.rotrBL(fo,$o,39),Qo=fo&mo^fo&jo^mo&jo,Jo=$o&Ao^$o&Lo^Ao&Lo;us=is|0,hs=yl|0,is=Yo|0,yl=Xo|0,Yo=Go|0,Xo=Vo|0,{h:Go,l:Vo}=u64.add(Ho|0,zo|0,Nl|0,Wl|0),Ho=jo|0,zo=Lo|0,jo=mo|0,Lo=Ao|0,mo=fo|0,Ao=$o|0;const rs=u64.add3L(Wl,Rl,Jo);fo=u64.add3H(rs,Nl,Dl,Qo),$o=rs|0}({h:fo,l:$o}=u64.add(this.Ah|0,this.Al|0,fo|0,$o|0)),{h:mo,l:Ao}=u64.add(this.Bh|0,this.Bl|0,mo|0,Ao|0),{h:jo,l:Lo}=u64.add(this.Ch|0,this.Cl|0,jo|0,Lo|0),{h:Ho,l:zo}=u64.add(this.Dh|0,this.Dl|0,Ho|0,zo|0),{h:Go,l:Vo}=u64.add(this.Eh|0,this.El|0,Go|0,Vo|0),{h:Yo,l:Xo}=u64.add(this.Fh|0,this.Fl|0,Yo|0,Xo|0),{h:is,l:yl}=u64.add(this.Gh|0,this.Gl|0,is|0,yl|0),{h:us,l:hs}=u64.add(this.Hh|0,this.Hl|0,us|0,hs|0),this.set(fo,$o,mo,Ao,jo,Lo,Ho,zo,Go,Vo,Yo,Xo,is,yl,us,hs)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};class SHA512_224 extends SHA512$3{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class SHA512_256 extends SHA512$3{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}let SHA384$1=class extends SHA512$3{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};const sha512$3=wrapConstructor$2(()=>new SHA512$3),sha512_224=wrapConstructor$2(()=>new SHA512_224),sha512_256=wrapConstructor$2(()=>new SHA512_256),sha384$2=wrapConstructor$2(()=>new SHA384$1),sha512$4=Object.freeze(Object.defineProperty({__proto__:null,SHA512:SHA512$3,sha384:sha384$2,sha512:sha512$3,sha512_224,sha512_256},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$c=BigInt(0),_1n$c=BigInt(1),_2n$8=BigInt(2),u8a$1=Mn=>Mn instanceof Uint8Array,hexes$3=Array.from({length:256},(Mn,Fn)=>Fn.toString(16).padStart(2,"0"));function bytesToHex$3(Mn){if(!u8a$1(Mn))throw new Error("Uint8Array expected");let Fn="";for(let io=0;io<Mn.length;io++)Fn+=hexes$3[Mn[io]];return Fn}function numberToHexUnpadded$1(Mn){const Fn=Mn.toString(16);return Fn.length&1?`0${Fn}`:Fn}function hexToNumber$3(Mn){if(typeof Mn!="string")throw new Error("hex string expected, got "+typeof Mn);return BigInt(Mn===""?"0":`0x${Mn}`)}function hexToBytes$3(Mn){if(typeof Mn!="string")throw new Error("hex string expected, got "+typeof Mn);const Fn=Mn.length;if(Fn%2)throw new Error("padded hex string expected, got unpadded hex of length "+Fn);const io=new Uint8Array(Fn/2);for(let fo=0;fo<io.length;fo++){const $o=fo*2,mo=Mn.slice($o,$o+2),Ao=Number.parseInt(mo,16);if(Number.isNaN(Ao)||Ao<0)throw new Error("Invalid byte sequence");io[fo]=Ao}return io}function bytesToNumberBE$1(Mn){return hexToNumber$3(bytesToHex$3(Mn))}function bytesToNumberLE$1(Mn){if(!u8a$1(Mn))throw new Error("Uint8Array expected");return hexToNumber$3(bytesToHex$3(Uint8Array.from(Mn).reverse()))}function numberToBytesBE$1(Mn,Fn){return hexToBytes$3(Mn.toString(16).padStart(Fn*2,"0"))}function numberToBytesLE$1(Mn,Fn){return numberToBytesBE$1(Mn,Fn).reverse()}function numberToVarBytesBE$1(Mn){return hexToBytes$3(numberToHexUnpadded$1(Mn))}function ensureBytes$1(Mn,Fn,io){let fo;if(typeof Fn=="string")try{fo=hexToBytes$3(Fn)}catch(mo){throw new Error(`${Mn} must be valid hex string, got "${Fn}". Cause: ${mo}`)}else if(u8a$1(Fn))fo=Uint8Array.from(Fn);else throw new Error(`${Mn} must be hex string or Uint8Array`);const $o=fo.length;if(typeof io=="number"&&$o!==io)throw new Error(`${Mn} expected ${io} bytes, got ${$o}`);return fo}function concatBytes$3(...Mn){const Fn=new Uint8Array(Mn.reduce((fo,$o)=>fo+$o.length,0));let io=0;return Mn.forEach(fo=>{if(!u8a$1(fo))throw new Error("Uint8Array expected");Fn.set(fo,io),io+=fo.length}),Fn}function equalBytes$1(Mn,Fn){if(Mn.length!==Fn.length)return!1;for(let io=0;io<Mn.length;io++)if(Mn[io]!==Fn[io])return!1;return!0}function utf8ToBytes$3(Mn){if(typeof Mn!="string")throw new Error(`utf8ToBytes expected string, got ${typeof Mn}`);return new Uint8Array(new TextEncoder().encode(Mn))}function bitLen$1(Mn){let Fn;for(Fn=0;Mn>_0n$c;Mn>>=_1n$c,Fn+=1);return Fn}function bitGet$1(Mn,Fn){return Mn>>BigInt(Fn)&_1n$c}const bitSet$1=(Mn,Fn,io)=>Mn|(io?_1n$c:_0n$c)<<BigInt(Fn),bitMask$1=Mn=>(_2n$8<<BigInt(Mn-1))-_1n$c,u8n$1=Mn=>new Uint8Array(Mn),u8fr$1=Mn=>Uint8Array.from(Mn);function createHmacDrbg$1(Mn,Fn,io){if(typeof Mn!="number"||Mn<2)throw new Error("hashLen must be a number");if(typeof Fn!="number"||Fn<2)throw new Error("qByteLen must be a number");if(typeof io!="function")throw new Error("hmacFn must be a function");let fo=u8n$1(Mn),$o=u8n$1(Mn),mo=0;const Ao=()=>{fo.fill(1),$o.fill(0),mo=0},jo=(...Go)=>io($o,fo,...Go),Lo=(Go=u8n$1())=>{$o=jo(u8fr$1([0]),Go),fo=jo(),Go.length!==0&&($o=jo(u8fr$1([1]),Go),fo=jo())},Ho=()=>{if(mo++>=1e3)throw new Error("drbg: tried 1000 values");let Go=0;const Vo=[];for(;Go<Fn;){fo=jo();const Yo=fo.slice();Vo.push(Yo),Go+=fo.length}return concatBytes$3(...Vo)};return(Go,Vo)=>{Ao(),Lo(Go);let Yo;for(;!(Yo=Vo(Ho()));)Lo();return Ao(),Yo}}const validatorFns$1={bigint:Mn=>typeof Mn=="bigint",function:Mn=>typeof Mn=="function",boolean:Mn=>typeof Mn=="boolean",string:Mn=>typeof Mn=="string",stringOrUint8Array:Mn=>typeof Mn=="string"||Mn instanceof Uint8Array,isSafeInteger:Mn=>Number.isSafeInteger(Mn),array:Mn=>Array.isArray(Mn),field:(Mn,Fn)=>Fn.Fp.isValid(Mn),hash:Mn=>typeof Mn=="function"&&Number.isSafeInteger(Mn.outputLen)};function validateObject$1(Mn,Fn,io={}){const fo=($o,mo,Ao)=>{const jo=validatorFns$1[mo];if(typeof jo!="function")throw new Error(`Invalid validator "${mo}", expected function`);const Lo=Mn[$o];if(!(Ao&&Lo===void 0)&&!jo(Lo,Mn))throw new Error(`Invalid param ${String($o)}=${Lo} (${typeof Lo}), expected ${mo}`)};for(const[$o,mo]of Object.entries(Fn))fo($o,mo,!1);for(const[$o,mo]of Object.entries(io))fo($o,mo,!0);return Mn}const ut$3=Object.freeze(Object.defineProperty({__proto__:null,bitGet:bitGet$1,bitLen:bitLen$1,bitMask:bitMask$1,bitSet:bitSet$1,bytesToHex:bytesToHex$3,bytesToNumberBE:bytesToNumberBE$1,bytesToNumberLE:bytesToNumberLE$1,concatBytes:concatBytes$3,createHmacDrbg:createHmacDrbg$1,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$3,hexToNumber:hexToNumber$3,numberToBytesBE:numberToBytesBE$1,numberToBytesLE:numberToBytesLE$1,numberToHexUnpadded:numberToHexUnpadded$1,numberToVarBytesBE:numberToVarBytesBE$1,utf8ToBytes:utf8ToBytes$3,validateObject:validateObject$1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$b=BigInt(0),_1n$b=BigInt(1),_2n$7=BigInt(2),_3n$1=BigInt(3),_4n$1=BigInt(4),_5n$2=BigInt(5),_8n$3=BigInt(8);BigInt(9);BigInt(16);function mod$1(Mn,Fn){const io=Mn%Fn;return io>=_0n$b?io:Fn+io}function pow$5(Mn,Fn,io){if(io<=_0n$b||Fn<_0n$b)throw new Error("Expected power/modulo > 0");if(io===_1n$b)return _0n$b;let fo=_1n$b;for(;Fn>_0n$b;)Fn&_1n$b&&(fo=fo*Mn%io),Mn=Mn*Mn%io,Fn>>=_1n$b;return fo}function pow2$1(Mn,Fn,io){let fo=Mn;for(;Fn-- >_0n$b;)fo*=fo,fo%=io;return fo}function invert$1(Mn,Fn){if(Mn===_0n$b||Fn<=_0n$b)throw new Error(`invert: expected positive integers, got n=${Mn} mod=${Fn}`);let io=mod$1(Mn,Fn),fo=Fn,$o=_0n$b,mo=_1n$b;for(;io!==_0n$b;){const jo=fo/io,Lo=fo%io,Ho=$o-mo*jo;fo=io,io=Lo,$o=mo,mo=Ho}if(fo!==_1n$b)throw new Error("invert: does not exist");return mod$1($o,Fn)}function tonelliShanks$1(Mn){const Fn=(Mn-_1n$b)/_2n$7;let io,fo,$o;for(io=Mn-_1n$b,fo=0;io%_2n$7===_0n$b;io/=_2n$7,fo++);for($o=_2n$7;$o<Mn&&pow$5($o,Fn,Mn)!==Mn-_1n$b;$o++);if(fo===1){const Ao=(Mn+_1n$b)/_4n$1;return function(Lo,Ho){const zo=Lo.pow(Ho,Ao);if(!Lo.eql(Lo.sqr(zo),Ho))throw new Error("Cannot find square root");return zo}}const mo=(io+_1n$b)/_2n$7;return function(jo,Lo){if(jo.pow(Lo,Fn)===jo.neg(jo.ONE))throw new Error("Cannot find square root");let Ho=fo,zo=jo.pow(jo.mul(jo.ONE,$o),io),Go=jo.pow(Lo,mo),Vo=jo.pow(Lo,io);for(;!jo.eql(Vo,jo.ONE);){if(jo.eql(Vo,jo.ZERO))return jo.ZERO;let Yo=1;for(let is=jo.sqr(Vo);Yo<Ho&&!jo.eql(is,jo.ONE);Yo++)is=jo.sqr(is);const Xo=jo.pow(zo,_1n$b<<BigInt(Ho-Yo-1));zo=jo.sqr(Xo),Go=jo.mul(Go,Xo),Vo=jo.mul(Vo,zo),Ho=Yo}return Go}}function FpSqrt$1(Mn){if(Mn%_4n$1===_3n$1){const Fn=(Mn+_1n$b)/_4n$1;return function(fo,$o){const mo=fo.pow($o,Fn);if(!fo.eql(fo.sqr(mo),$o))throw new Error("Cannot find square root");return mo}}if(Mn%_8n$3===_5n$2){const Fn=(Mn-_5n$2)/_8n$3;return function(fo,$o){const mo=fo.mul($o,_2n$7),Ao=fo.pow(mo,Fn),jo=fo.mul($o,Ao),Lo=fo.mul(fo.mul(jo,_2n$7),Ao),Ho=fo.mul(jo,fo.sub(Lo,fo.ONE));if(!fo.eql(fo.sqr(Ho),$o))throw new Error("Cannot find square root");return Ho}}return tonelliShanks$1(Mn)}const isNegativeLE$1=(Mn,Fn)=>(mod$1(Mn,Fn)&_1n$b)===_1n$b,FIELD_FIELDS$1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField$1(Mn){const Fn={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},io=FIELD_FIELDS$1.reduce((fo,$o)=>(fo[$o]="function",fo),Fn);return validateObject$1(Mn,io)}function FpPow$1(Mn,Fn,io){if(io<_0n$b)throw new Error("Expected power > 0");if(io===_0n$b)return Mn.ONE;if(io===_1n$b)return Fn;let fo=Mn.ONE,$o=Fn;for(;io>_0n$b;)io&_1n$b&&(fo=Mn.mul(fo,$o)),$o=Mn.sqr($o),io>>=_1n$b;return fo}function FpInvertBatch$1(Mn,Fn){const io=new Array(Fn.length),fo=Fn.reduce((mo,Ao,jo)=>Mn.is0(Ao)?mo:(io[jo]=mo,Mn.mul(mo,Ao)),Mn.ONE),$o=Mn.inv(fo);return Fn.reduceRight((mo,Ao,jo)=>Mn.is0(Ao)?mo:(io[jo]=Mn.mul(mo,io[jo]),Mn.mul(mo,Ao)),$o),io}function nLength$1(Mn,Fn){const io=Fn!==void 0?Fn:Mn.toString(2).length,fo=Math.ceil(io/8);return{nBitLength:io,nByteLength:fo}}function Field$1(Mn,Fn,io=!1,fo={}){if(Mn<=_0n$b)throw new Error(`Expected Field ORDER > 0, got ${Mn}`);const{nBitLength:$o,nByteLength:mo}=nLength$1(Mn,Fn);if(mo>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Ao=FpSqrt$1(Mn),jo=Object.freeze({ORDER:Mn,BITS:$o,BYTES:mo,MASK:bitMask$1($o),ZERO:_0n$b,ONE:_1n$b,create:Lo=>mod$1(Lo,Mn),isValid:Lo=>{if(typeof Lo!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof Lo}`);return _0n$b<=Lo&&Lo<Mn},is0:Lo=>Lo===_0n$b,isOdd:Lo=>(Lo&_1n$b)===_1n$b,neg:Lo=>mod$1(-Lo,Mn),eql:(Lo,Ho)=>Lo===Ho,sqr:Lo=>mod$1(Lo*Lo,Mn),add:(Lo,Ho)=>mod$1(Lo+Ho,Mn),sub:(Lo,Ho)=>mod$1(Lo-Ho,Mn),mul:(Lo,Ho)=>mod$1(Lo*Ho,Mn),pow:(Lo,Ho)=>FpPow$1(jo,Lo,Ho),div:(Lo,Ho)=>mod$1(Lo*invert$1(Ho,Mn),Mn),sqrN:Lo=>Lo*Lo,addN:(Lo,Ho)=>Lo+Ho,subN:(Lo,Ho)=>Lo-Ho,mulN:(Lo,Ho)=>Lo*Ho,inv:Lo=>invert$1(Lo,Mn),sqrt:fo.sqrt||(Lo=>Ao(jo,Lo)),invertBatch:Lo=>FpInvertBatch$1(jo,Lo),cmov:(Lo,Ho,zo)=>zo?Ho:Lo,toBytes:Lo=>io?numberToBytesLE$1(Lo,mo):numberToBytesBE$1(Lo,mo),fromBytes:Lo=>{if(Lo.length!==mo)throw new Error(`Fp.fromBytes: expected ${mo}, got ${Lo.length}`);return io?bytesToNumberLE$1(Lo):bytesToNumberBE$1(Lo)}});return Object.freeze(jo)}function FpSqrtEven$1(Mn,Fn){if(!Mn.isOdd)throw new Error("Field doesn't have isOdd");const io=Mn.sqrt(Fn);return Mn.isOdd(io)?Mn.neg(io):io}function getFieldBytesLength$1(Mn){if(typeof Mn!="bigint")throw new Error("field order must be bigint");const Fn=Mn.toString(2).length;return Math.ceil(Fn/8)}function getMinHashLength$1(Mn){const Fn=getFieldBytesLength$1(Mn);return Fn+Math.ceil(Fn/2)}function mapHashToField$1(Mn,Fn,io=!1){const fo=Mn.length,$o=getFieldBytesLength$1(Fn),mo=getMinHashLength$1(Fn);if(fo<16||fo<mo||fo>1024)throw new Error(`expected ${mo}-1024 bytes of input, got ${fo}`);const Ao=io?bytesToNumberBE$1(Mn):bytesToNumberLE$1(Mn),jo=mod$1(Ao,Fn-_1n$b)+_1n$b;return io?numberToBytesLE$1(jo,$o):numberToBytesBE$1(jo,$o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$a=BigInt(0),_1n$a=BigInt(1);function wNAF$1(Mn,Fn){const io=($o,mo)=>{const Ao=mo.negate();return $o?Ao:mo},fo=$o=>{const mo=Math.ceil(Fn/$o)+1,Ao=2**($o-1);return{windows:mo,windowSize:Ao}};return{constTimeNegate:io,unsafeLadder($o,mo){let Ao=Mn.ZERO,jo=$o;for(;mo>_0n$a;)mo&_1n$a&&(Ao=Ao.add(jo)),jo=jo.double(),mo>>=_1n$a;return Ao},precomputeWindow($o,mo){const{windows:Ao,windowSize:jo}=fo(mo),Lo=[];let Ho=$o,zo=Ho;for(let Go=0;Go<Ao;Go++){zo=Ho,Lo.push(zo);for(let Vo=1;Vo<jo;Vo++)zo=zo.add(Ho),Lo.push(zo);Ho=zo.double()}return Lo},wNAF($o,mo,Ao){const{windows:jo,windowSize:Lo}=fo($o);let Ho=Mn.ZERO,zo=Mn.BASE;const Go=BigInt(2**$o-1),Vo=2**$o,Yo=BigInt($o);for(let Xo=0;Xo<jo;Xo++){const is=Xo*Lo;let yl=Number(Ao&Go);Ao>>=Yo,yl>Lo&&(yl-=Vo,Ao+=_1n$a);const us=is,hs=is+Math.abs(yl)-1,_l=Xo%2!==0,xl=yl<0;yl===0?zo=zo.add(io(_l,mo[us])):Ho=Ho.add(io(xl,mo[hs]))}return{p:Ho,f:zo}},wNAFCached($o,mo,Ao,jo){const Lo=$o._WINDOW_SIZE||1;let Ho=mo.get($o);return Ho||(Ho=this.precomputeWindow($o,Lo),Lo!==1&&mo.set($o,jo(Ho))),this.wNAF(Lo,Ho,Ao)}}}function validateBasic$1(Mn){return validateField$1(Mn.Fp),validateObject$1(Mn,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength$1(Mn.n,Mn.nBitLength),...Mn,p:Mn.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$9=BigInt(0),_1n$9=BigInt(1),_2n$6=BigInt(2),_8n$2=BigInt(8),VERIFY_DEFAULT$1={zip215:!0};function validateOpts$3(Mn){const Fn=validateBasic$1(Mn);return validateObject$1(Mn,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...Fn})}function twistedEdwards$1(Mn){const Fn=validateOpts$3(Mn),{Fp:io,n:fo,prehash:$o,hash:mo,randomBytes:Ao,nByteLength:jo,h:Lo}=Fn,Ho=_2n$6<<BigInt(jo*8)-_1n$9,zo=io.create,Go=Fn.uvRatio||(($l,El)=>{try{return{isValid:!0,value:io.sqrt($l*io.inv(El))}}catch{return{isValid:!1,value:_0n$9}}}),Vo=Fn.adjustScalarBytes||($l=>$l),Yo=Fn.domain||(($l,El,ds)=>{if(El.length||ds)throw new Error("Contexts/pre-hash are not supported");return $l}),Xo=$l=>typeof $l=="bigint"&&_0n$9<$l,is=($l,El)=>Xo($l)&&Xo(El)&&$l<El,yl=$l=>$l===_0n$9||is($l,Ho);function us($l,El){if(is($l,El))return $l;throw new Error(`Expected valid scalar < ${El}, got ${typeof $l} ${$l}`)}function hs($l){return $l===_0n$9?$l:us($l,fo)}const _l=new Map;function xl($l){if(!($l instanceof Il))throw new Error("ExtendedPoint expected")}class Il{constructor(El,ds,os,Al){if(this.ex=El,this.ey=ds,this.ez=os,this.et=Al,!yl(El))throw new Error("x required");if(!yl(ds))throw new Error("y required");if(!yl(os))throw new Error("z required");if(!yl(Al))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(El){if(El instanceof Il)throw new Error("extended point not allowed");const{x:ds,y:os}=El||{};if(!yl(ds)||!yl(os))throw new Error("invalid affine point");return new Il(ds,os,_1n$9,zo(ds*os))}static normalizeZ(El){const ds=io.invertBatch(El.map(os=>os.ez));return El.map((os,Al)=>os.toAffine(ds[Al])).map(Il.fromAffine)}_setWindowSize(El){this._WINDOW_SIZE=El,_l.delete(this)}assertValidity(){const{a:El,d:ds}=Fn;if(this.is0())throw new Error("bad point: ZERO");const{ex:os,ey:Al,ez:Ul,et:Zl}=this,Pl=zo(os*os),Hl=zo(Al*Al),Ml=zo(Ul*Ul),Fl=zo(Ml*Ml),Yl=zo(Pl*El),Bl=zo(Ml*zo(Yl+Hl)),Kl=zo(Fl+zo(ds*zo(Pl*Hl)));if(Bl!==Kl)throw new Error("bad point: equation left != right (1)");const Gl=zo(os*Al),fu=zo(Ul*Zl);if(Gl!==fu)throw new Error("bad point: equation left != right (2)")}equals(El){xl(El);const{ex:ds,ey:os,ez:Al}=this,{ex:Ul,ey:Zl,ez:Pl}=El,Hl=zo(ds*Pl),Ml=zo(Ul*Al),Fl=zo(os*Pl),Yl=zo(Zl*Al);return Hl===Ml&&Fl===Yl}is0(){return this.equals(Il.ZERO)}negate(){return new Il(zo(-this.ex),this.ey,this.ez,zo(-this.et))}double(){const{a:El}=Fn,{ex:ds,ey:os,ez:Al}=this,Ul=zo(ds*ds),Zl=zo(os*os),Pl=zo(_2n$6*zo(Al*Al)),Hl=zo(El*Ul),Ml=ds+os,Fl=zo(zo(Ml*Ml)-Ul-Zl),Yl=Hl+Zl,Bl=Yl-Pl,Kl=Hl-Zl,Gl=zo(Fl*Bl),fu=zo(Yl*Kl),bu=zo(Fl*Kl),rp=zo(Bl*Yl);return new Il(Gl,fu,rp,bu)}add(El){xl(El);const{a:ds,d:os}=Fn,{ex:Al,ey:Ul,ez:Zl,et:Pl}=this,{ex:Hl,ey:Ml,ez:Fl,et:Yl}=El;if(ds===BigInt(-1)){const gp=zo((Ul-Al)*(Ml+Hl)),yp=zo((Ul+Al)*(Ml-Hl)),_p=zo(yp-gp);if(_p===_0n$9)return this.double();const mp=zo(Zl*_2n$6*Yl),wp=zo(Pl*_2n$6*Fl),Sp=wp+mp,bp=yp+gp,Ap=wp-mp,Xl=zo(Sp*_p),Vl=zo(bp*Ap),Jl=zo(Sp*Ap),wu=zo(_p*bp);return new Il(Xl,Vl,wu,Jl)}const Bl=zo(Al*Hl),Kl=zo(Ul*Ml),Gl=zo(Pl*os*Yl),fu=zo(Zl*Fl),bu=zo((Al+Ul)*(Hl+Ml)-Bl-Kl),rp=fu-Gl,tp=fu+Gl,op=zo(Kl-ds*Bl),vp=zo(bu*rp),ip=zo(tp*op),up=zo(bu*op),$p=zo(rp*tp);return new Il(vp,ip,$p,up)}subtract(El){return this.add(El.negate())}wNAF(El){return Cl.wNAFCached(this,_l,El,Il.normalizeZ)}multiply(El){const{p:ds,f:os}=this.wNAF(us(El,fo));return Il.normalizeZ([ds,os])[0]}multiplyUnsafe(El){let ds=hs(El);return ds===_0n$9?Tl:this.equals(Tl)||ds===_1n$9?this:this.equals(Ol)?this.wNAF(ds).p:Cl.unsafeLadder(this,ds)}isSmallOrder(){return this.multiplyUnsafe(Lo).is0()}isTorsionFree(){return Cl.unsafeLadder(this,fo).is0()}toAffine(El){const{ex:ds,ey:os,ez:Al}=this,Ul=this.is0();El==null&&(El=Ul?_8n$2:io.inv(Al));const Zl=zo(ds*El),Pl=zo(os*El),Hl=zo(Al*El);if(Ul)return{x:_0n$9,y:_1n$9};if(Hl!==_1n$9)throw new Error("invZ was invalid");return{x:Zl,y:Pl}}clearCofactor(){const{h:El}=Fn;return El===_1n$9?this:this.multiplyUnsafe(El)}static fromHex(El,ds=!1){const{d:os,a:Al}=Fn,Ul=io.BYTES;El=ensureBytes$1("pointHex",El,Ul);const Zl=El.slice(),Pl=El[Ul-1];Zl[Ul-1]=Pl&-129;const Hl=bytesToNumberLE$1(Zl);Hl===_0n$9||(ds?us(Hl,Ho):us(Hl,io.ORDER));const Ml=zo(Hl*Hl),Fl=zo(Ml-_1n$9),Yl=zo(os*Ml-Al);let{isValid:Bl,value:Kl}=Go(Fl,Yl);if(!Bl)throw new Error("Point.fromHex: invalid y coordinate");const Gl=(Kl&_1n$9)===_1n$9,fu=(Pl&128)!==0;if(!ds&&Kl===_0n$9&&fu)throw new Error("Point.fromHex: x=0 and x_0=1");return fu!==Gl&&(Kl=zo(-Kl)),Il.fromAffine({x:Kl,y:Hl})}static fromPrivateKey(El){return Dl(El).point}toRawBytes(){const{x:El,y:ds}=this.toAffine(),os=numberToBytesLE$1(ds,io.BYTES);return os[os.length-1]|=El&_1n$9?128:0,os}toHex(){return bytesToHex$3(this.toRawBytes())}}Il.BASE=new Il(Fn.Gx,Fn.Gy,_1n$9,zo(Fn.Gx*Fn.Gy)),Il.ZERO=new Il(_0n$9,_1n$9,_1n$9,_0n$9);const{BASE:Ol,ZERO:Tl}=Il,Cl=wNAF$1(Il,jo*8);function Nl($l){return mod$1($l,fo)}function Wl($l){return Nl(bytesToNumberLE$1($l))}function Dl($l){const El=jo;$l=ensureBytes$1("private key",$l,El);const ds=ensureBytes$1("hashed private key",mo($l),2*El),os=Vo(ds.slice(0,El)),Al=ds.slice(El,2*El),Ul=Wl(os),Zl=Ol.multiply(Ul),Pl=Zl.toRawBytes();return{head:os,prefix:Al,scalar:Ul,point:Zl,pointBytes:Pl}}function Rl($l){return Dl($l).pointBytes}function Qo($l=new Uint8Array,...El){const ds=concatBytes$3(...El);return Wl(mo(Yo(ds,ensureBytes$1("context",$l),!!$o)))}function Jo($l,El,ds={}){$l=ensureBytes$1("message",$l),$o&&($l=$o($l));const{prefix:os,scalar:Al,pointBytes:Ul}=Dl(El),Zl=Qo(ds.context,os,$l),Pl=Ol.multiply(Zl).toRawBytes(),Hl=Qo(ds.context,Pl,Ul,$l),Ml=Nl(Zl+Hl*Al);hs(Ml);const Fl=concatBytes$3(Pl,numberToBytesLE$1(Ml,io.BYTES));return ensureBytes$1("result",Fl,jo*2)}const rs=VERIFY_DEFAULT$1;function ps($l,El,ds,os=rs){const{context:Al,zip215:Ul}=os,Zl=io.BYTES;$l=ensureBytes$1("signature",$l,2*Zl),El=ensureBytes$1("message",El),$o&&(El=$o(El));const Pl=bytesToNumberLE$1($l.slice(Zl,2*Zl));let Hl,Ml,Fl;try{Hl=Il.fromHex(ds,Ul),Ml=Il.fromHex($l.slice(0,Zl),Ul),Fl=Ol.multiplyUnsafe(Pl)}catch{return!1}if(!Ul&&Hl.isSmallOrder())return!1;const Yl=Qo(Al,Ml.toRawBytes(),Hl.toRawBytes(),El);return Ml.add(Hl.multiplyUnsafe(Yl)).subtract(Fl).clearCofactor().equals(Il.ZERO)}return Ol._setWindowSize(8),{CURVE:Fn,getPublicKey:Rl,sign:Jo,verify:ps,ExtendedPoint:Il,utils:{getExtendedPublicKey:Dl,randomPrivateKey:()=>Ao(io.BYTES),precompute($l=8,El=Il.BASE){return El._setWindowSize($l),El.multiply(BigInt(3)),El}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$8=BigInt(0),_1n$8=BigInt(1);function validateOpts$2(Mn){return validateObject$1(Mn,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...Mn})}function montgomery$2(Mn){const Fn=validateOpts$2(Mn),{P:io}=Fn,fo=_l=>mod$1(_l,io),$o=Fn.montgomeryBits,mo=Math.ceil($o/8),Ao=Fn.nByteLength,jo=Fn.adjustScalarBytes||(_l=>_l),Lo=Fn.powPminus2||(_l=>pow$5(_l,io-BigInt(2),io));function Ho(_l,xl,Il){const Ol=fo(_l*(xl-Il));return xl=fo(xl-Ol),Il=fo(Il+Ol),[xl,Il]}function zo(_l){if(typeof _l=="bigint"&&_0n$8<=_l&&_l<io)return _l;throw new Error("Expected valid scalar 0 < scalar < CURVE.P")}const Go=(Fn.a-BigInt(2))/BigInt(4);function Vo(_l,xl){const Il=zo(_l),Ol=zo(xl),Tl=Il;let Cl=_1n$8,Nl=_0n$8,Wl=Il,Dl=_1n$8,Rl=_0n$8,Qo;for(let rs=BigInt($o-1);rs>=_0n$8;rs--){const ps=Ol>>rs&_1n$8;Rl^=ps,Qo=Ho(Rl,Cl,Wl),Cl=Qo[0],Wl=Qo[1],Qo=Ho(Rl,Nl,Dl),Nl=Qo[0],Dl=Qo[1],Rl=ps;const _c=Cl+Nl,$l=fo(_c*_c),El=Cl-Nl,ds=fo(El*El),os=$l-ds,Al=Wl+Dl,Ul=Wl-Dl,Zl=fo(Ul*_c),Pl=fo(Al*El),Hl=Zl+Pl,Ml=Zl-Pl;Wl=fo(Hl*Hl),Dl=fo(Tl*fo(Ml*Ml)),Cl=fo($l*ds),Nl=fo(os*($l+fo(Go*os)))}Qo=Ho(Rl,Cl,Wl),Cl=Qo[0],Wl=Qo[1],Qo=Ho(Rl,Nl,Dl),Nl=Qo[0],Dl=Qo[1];const Jo=Lo(Nl);return fo(Cl*Jo)}function Yo(_l){return numberToBytesLE$1(fo(_l),mo)}function Xo(_l){const xl=ensureBytes$1("u coordinate",_l,mo);return Ao===mo&&(xl[Ao-1]&=127),bytesToNumberLE$1(xl)}function is(_l){const xl=ensureBytes$1("scalar",_l);if(xl.length!==mo&&xl.length!==Ao)throw new Error(`Expected ${mo} or ${Ao} bytes, got ${xl.length}`);return bytesToNumberLE$1(jo(xl))}function yl(_l,xl){const Il=Xo(xl),Ol=is(_l),Tl=Vo(Il,Ol);if(Tl===_0n$8)throw new Error("Invalid private or public key received");return Yo(Tl)}const us=Yo(Fn.Gu);function hs(_l){return yl(_l,us)}return{scalarMult:yl,scalarMultBase:hs,getSharedSecret:(_l,xl)=>yl(_l,xl),getPublicKey:_l=>hs(_l),utils:{randomPrivateKey:()=>Fn.randomBytes(Fn.nByteLength)},GuBytes:us}}function validateDST$1(Mn){if(Mn instanceof Uint8Array)return Mn;if(typeof Mn=="string")return utf8ToBytes$3(Mn);throw new Error("DST must be Uint8Array or string")}const os2ip$1=bytesToNumberBE$1;function i2osp$1(Mn,Fn){if(Mn<0||Mn>=1<<8*Fn)throw new Error(`bad I2OSP call: value=${Mn} length=${Fn}`);const io=Array.from({length:Fn}).fill(0);for(let fo=Fn-1;fo>=0;fo--)io[fo]=Mn&255,Mn>>>=8;return new Uint8Array(io)}function strxor$1(Mn,Fn){const io=new Uint8Array(Mn.length);for(let fo=0;fo<Mn.length;fo++)io[fo]=Mn[fo]^Fn[fo];return io}function isBytes$5(Mn){if(!(Mn instanceof Uint8Array))throw new Error("Uint8Array expected")}function isNum$1(Mn){if(!Number.isSafeInteger(Mn))throw new Error("number expected")}function expand_message_xmd$1(Mn,Fn,io,fo){isBytes$5(Mn),isBytes$5(Fn),isNum$1(io),Fn.length>255&&(Fn=fo(concatBytes$3(utf8ToBytes$3("H2C-OVERSIZE-DST-"),Fn)));const{outputLen:$o,blockLen:mo}=fo,Ao=Math.ceil(io/$o);if(Ao>255)throw new Error("Invalid xmd length");const jo=concatBytes$3(Fn,i2osp$1(Fn.length,1)),Lo=i2osp$1(0,mo),Ho=i2osp$1(io,2),zo=new Array(Ao),Go=fo(concatBytes$3(Lo,Mn,Ho,i2osp$1(0,1),jo));zo[0]=fo(concatBytes$3(Go,i2osp$1(1,1),jo));for(let Yo=1;Yo<=Ao;Yo++){const Xo=[strxor$1(Go,zo[Yo-1]),i2osp$1(Yo+1,1),jo];zo[Yo]=fo(concatBytes$3(...Xo))}return concatBytes$3(...zo).slice(0,io)}function expand_message_xof$1(Mn,Fn,io,fo,$o){if(isBytes$5(Mn),isBytes$5(Fn),isNum$1(io),Fn.length>255){const mo=Math.ceil(2*fo/8);Fn=$o.create({dkLen:mo}).update(utf8ToBytes$3("H2C-OVERSIZE-DST-")).update(Fn).digest()}if(io>65535||Fn.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return $o.create({dkLen:io}).update(Mn).update(i2osp$1(io,2)).update(Fn).update(i2osp$1(Fn.length,1)).digest()}function hash_to_field$1(Mn,Fn,io){validateObject$1(io,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:fo,k:$o,m:mo,hash:Ao,expand:jo,DST:Lo}=io;isBytes$5(Mn),isNum$1(Fn);const Ho=validateDST$1(Lo),zo=fo.toString(2).length,Go=Math.ceil((zo+$o)/8),Vo=Fn*mo*Go;let Yo;if(jo==="xmd")Yo=expand_message_xmd$1(Mn,Ho,Vo,Ao);else if(jo==="xof")Yo=expand_message_xof$1(Mn,Ho,Vo,$o,Ao);else if(jo==="_internal_pass")Yo=Mn;else throw new Error('expand must be "xmd" or "xof"');const Xo=new Array(Fn);for(let is=0;is<Fn;is++){const yl=new Array(mo);for(let us=0;us<mo;us++){const hs=Go*(us+is*mo),_l=Yo.subarray(hs,hs+Go);yl[us]=mod$1(os2ip$1(_l),fo)}Xo[is]=yl}return Xo}function createHasher$1(Mn,Fn,io){if(typeof Fn!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(fo,$o){const mo=hash_to_field$1(fo,2,{...io,DST:io.DST,...$o}),Ao=Mn.fromAffine(Fn(mo[0])),jo=Mn.fromAffine(Fn(mo[1])),Lo=Ao.add(jo).clearCofactor();return Lo.assertValidity(),Lo},encodeToCurve(fo,$o){const mo=hash_to_field$1(fo,1,{...io,DST:io.encodeDST,...$o}),Ao=Mn.fromAffine(Fn(mo[0])).clearCofactor();return Ao.assertValidity(),Ao}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ED25519_P=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),ED25519_SQRT_M1=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),_0n$7=BigInt(0),_1n$7=BigInt(1),_2n$5=BigInt(2),_5n$1=BigInt(5),_10n=BigInt(10),_20n=BigInt(20),_40n=BigInt(40),_80n=BigInt(80);function ed25519_pow_2_252_3(Mn){const Fn=ED25519_P,fo=Mn*Mn%Fn*Mn%Fn,$o=pow2$1(fo,_2n$5,Fn)*fo%Fn,mo=pow2$1($o,_1n$7,Fn)*Mn%Fn,Ao=pow2$1(mo,_5n$1,Fn)*mo%Fn,jo=pow2$1(Ao,_10n,Fn)*Ao%Fn,Lo=pow2$1(jo,_20n,Fn)*jo%Fn,Ho=pow2$1(Lo,_40n,Fn)*Lo%Fn,zo=pow2$1(Ho,_80n,Fn)*Ho%Fn,Go=pow2$1(zo,_80n,Fn)*Ho%Fn,Vo=pow2$1(Go,_10n,Fn)*Ao%Fn;return{pow_p_5_8:pow2$1(Vo,_2n$5,Fn)*Mn%Fn,b2:fo}}function adjustScalarBytes(Mn){return Mn[0]&=248,Mn[31]&=127,Mn[31]|=64,Mn}function uvRatio(Mn,Fn){const io=ED25519_P,fo=mod$1(Fn*Fn*Fn,io),$o=mod$1(fo*fo*Fn,io),mo=ed25519_pow_2_252_3(Mn*$o).pow_p_5_8;let Ao=mod$1(Mn*fo*mo,io);const jo=mod$1(Fn*Ao*Ao,io),Lo=Ao,Ho=mod$1(Ao*ED25519_SQRT_M1,io),zo=jo===Mn,Go=jo===mod$1(-Mn,io),Vo=jo===mod$1(-Mn*ED25519_SQRT_M1,io);return zo&&(Ao=Lo),(Go||Vo)&&(Ao=Ho),isNegativeLE$1(Ao,io)&&(Ao=mod$1(-Ao,io)),{isValid:zo||Go,value:Ao}}const ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],Fp=Field$1(ED25519_P,void 0,!0),ed25519Defaults={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:sha512$3,randomBytes:randomBytes$4,adjustScalarBytes,uvRatio},ed25519$2=twistedEdwards$1(ed25519Defaults);function ed25519_domain(Mn,Fn,io){if(Fn.length>255)throw new Error("Context is too big");return concatBytes$4(utf8ToBytes$4("SigEd25519 no Ed25519 collisions"),new Uint8Array([io?1:0,Fn.length]),Fn,Mn)}const ed25519ctx=twistedEdwards$1({...ed25519Defaults,domain:ed25519_domain}),ed25519ph=twistedEdwards$1({...ed25519Defaults,domain:ed25519_domain,prehash:sha512$3}),x25519$1=montgomery$2({P:ED25519_P,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:Mn=>{const Fn=ED25519_P,{pow_p_5_8:io,b2:fo}=ed25519_pow_2_252_3(Mn);return mod$1(pow2$1(io,BigInt(3),Fn)*fo,Fn)},adjustScalarBytes,randomBytes:randomBytes$4});function edwardsToMontgomeryPub(Mn){const{y:Fn}=ed25519$2.ExtendedPoint.fromHex(Mn),io=BigInt(1);return Fp.toBytes(Fp.create((io+Fn)*Fp.inv(io-Fn)))}const edwardsToMontgomery=edwardsToMontgomeryPub;function edwardsToMontgomeryPriv(Mn){const Fn=ed25519Defaults.hash(Mn.subarray(0,32));return ed25519Defaults.adjustScalarBytes(Fn).subarray(0,32)}const ELL2_C1=(Fp.ORDER+BigInt(3))/BigInt(8),ELL2_C2=Fp.pow(_2n$5,ELL2_C1),ELL2_C3=Fp.sqrt(Fp.neg(Fp.ONE)),ELL2_C4=(Fp.ORDER-BigInt(5))/BigInt(8),ELL2_J=BigInt(486662);function map_to_curve_elligator2_curve25519(Mn){let Fn=Fp.sqr(Mn);Fn=Fp.mul(Fn,_2n$5);let io=Fp.add(Fn,Fp.ONE),fo=Fp.neg(ELL2_J),$o=Fp.sqr(io),mo=Fp.mul($o,io),Ao=Fp.mul(Fn,ELL2_J);Ao=Fp.mul(Ao,fo),Ao=Fp.add(Ao,$o),Ao=Fp.mul(Ao,fo);let jo=Fp.sqr(mo);$o=Fp.sqr(jo),jo=Fp.mul(jo,mo),jo=Fp.mul(jo,Ao),$o=Fp.mul($o,jo);let Lo=Fp.pow($o,ELL2_C4);Lo=Fp.mul(Lo,jo);let Ho=Fp.mul(Lo,ELL2_C3);$o=Fp.sqr(Lo),$o=Fp.mul($o,mo);let zo=Fp.eql($o,Ao),Go=Fp.cmov(Ho,Lo,zo),Vo=Fp.mul(fo,Fn),Yo=Fp.mul(Lo,Mn);Yo=Fp.mul(Yo,ELL2_C2);let Xo=Fp.mul(Yo,ELL2_C3),is=Fp.mul(Ao,Fn);$o=Fp.sqr(Yo),$o=Fp.mul($o,mo);let yl=Fp.eql($o,is),us=Fp.cmov(Xo,Yo,yl);$o=Fp.sqr(Go),$o=Fp.mul($o,mo);let hs=Fp.eql($o,Ao),_l=Fp.cmov(Vo,fo,hs),xl=Fp.cmov(us,Go,hs),Il=Fp.isOdd(xl);return xl=Fp.cmov(xl,Fp.neg(xl),hs!==Il),{xMn:_l,xMd:io,yMn:xl,yMd:_1n$7}}const ELL2_C1_EDWARDS=FpSqrtEven$1(Fp,Fp.neg(BigInt(486664)));function map_to_curve_elligator2_edwards25519(Mn){const{xMn:Fn,xMd:io,yMn:fo,yMd:$o}=map_to_curve_elligator2_curve25519(Mn);let mo=Fp.mul(Fn,$o);mo=Fp.mul(mo,ELL2_C1_EDWARDS);let Ao=Fp.mul(io,fo),jo=Fp.sub(Fn,io),Lo=Fp.add(Fn,io),Ho=Fp.mul(Ao,Lo),zo=Fp.eql(Ho,Fp.ZERO);mo=Fp.cmov(mo,Fp.ZERO,zo),Ao=Fp.cmov(Ao,Fp.ONE,zo),jo=Fp.cmov(jo,Fp.ONE,zo),Lo=Fp.cmov(Lo,Fp.ONE,zo);const Go=Fp.invertBatch([Ao,Lo]);return{x:Fp.mul(mo,Go[0]),y:Fp.mul(jo,Go[1])}}const htf=createHasher$1(ed25519$2.ExtendedPoint,Mn=>map_to_curve_elligator2_edwards25519(Mn[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:Fp.ORDER,m:1,k:128,expand:"xmd",hash:sha512$3}),hashToCurve$1=htf.hashToCurve,encodeToCurve=htf.encodeToCurve;function assertRstPoint(Mn){if(!(Mn instanceof RistPoint))throw new Error("RistrettoPoint expected")}const SQRT_M1=ED25519_SQRT_M1,SQRT_AD_MINUS_ONE=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),INVSQRT_A_MINUS_D=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),ONE_MINUS_D_SQ=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),D_MINUS_ONE_SQ=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),invertSqrt=Mn=>uvRatio(_1n$7,Mn),MAX_255B=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),bytes255ToNumberLE=Mn=>ed25519$2.CURVE.Fp.create(bytesToNumberLE$1(Mn)&MAX_255B);function calcElligatorRistrettoMap(Mn){const{d:Fn}=ed25519$2.CURVE,io=ed25519$2.CURVE.Fp.ORDER,fo=ed25519$2.CURVE.Fp.create,$o=fo(SQRT_M1*Mn*Mn),mo=fo(($o+_1n$7)*ONE_MINUS_D_SQ);let Ao=BigInt(-1);const jo=fo((Ao-Fn*$o)*fo($o+Fn));let{isValid:Lo,value:Ho}=uvRatio(mo,jo),zo=fo(Ho*Mn);isNegativeLE$1(zo,io)||(zo=fo(-zo)),Lo||(Ho=zo),Lo||(Ao=$o);const Go=fo(Ao*($o-_1n$7)*D_MINUS_ONE_SQ-jo),Vo=Ho*Ho,Yo=fo((Ho+Ho)*jo),Xo=fo(Go*SQRT_AD_MINUS_ONE),is=fo(_1n$7-Vo),yl=fo(_1n$7+Vo);return new ed25519$2.ExtendedPoint(fo(Yo*yl),fo(is*Xo),fo(Xo*yl),fo(Yo*is))}class RistPoint{constructor(Fn){this.ep=Fn}static fromAffine(Fn){return new RistPoint(ed25519$2.ExtendedPoint.fromAffine(Fn))}static hashToCurve(Fn){Fn=ensureBytes$1("ristrettoHash",Fn,64);const io=bytes255ToNumberLE(Fn.slice(0,32)),fo=calcElligatorRistrettoMap(io),$o=bytes255ToNumberLE(Fn.slice(32,64)),mo=calcElligatorRistrettoMap($o);return new RistPoint(fo.add(mo))}static fromHex(Fn){Fn=ensureBytes$1("ristrettoHex",Fn,32);const{a:io,d:fo}=ed25519$2.CURVE,$o=ed25519$2.CURVE.Fp.ORDER,mo=ed25519$2.CURVE.Fp.create,Ao="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",jo=bytes255ToNumberLE(Fn);if(!equalBytes$1(numberToBytesLE$1(jo,32),Fn)||isNegativeLE$1(jo,$o))throw new Error(Ao);const Lo=mo(jo*jo),Ho=mo(_1n$7+io*Lo),zo=mo(_1n$7-io*Lo),Go=mo(Ho*Ho),Vo=mo(zo*zo),Yo=mo(io*fo*Go-Vo),{isValid:Xo,value:is}=invertSqrt(mo(Yo*Vo)),yl=mo(is*zo),us=mo(is*yl*Yo);let hs=mo((jo+jo)*yl);isNegativeLE$1(hs,$o)&&(hs=mo(-hs));const _l=mo(Ho*us),xl=mo(hs*_l);if(!Xo||isNegativeLE$1(xl,$o)||_l===_0n$7)throw new Error(Ao);return new RistPoint(new ed25519$2.ExtendedPoint(hs,_l,_1n$7,xl))}toRawBytes(){let{ex:Fn,ey:io,ez:fo,et:$o}=this.ep;const mo=ed25519$2.CURVE.Fp.ORDER,Ao=ed25519$2.CURVE.Fp.create,jo=Ao(Ao(fo+io)*Ao(fo-io)),Lo=Ao(Fn*io),Ho=Ao(Lo*Lo),{value:zo}=invertSqrt(Ao(jo*Ho)),Go=Ao(zo*jo),Vo=Ao(zo*Lo),Yo=Ao(Go*Vo*$o);let Xo;if(isNegativeLE$1($o*Yo,mo)){let yl=Ao(io*SQRT_M1),us=Ao(Fn*SQRT_M1);Fn=yl,io=us,Xo=Ao(Go*INVSQRT_A_MINUS_D)}else Xo=Vo;isNegativeLE$1(Fn*Yo,mo)&&(io=Ao(-io));let is=Ao((fo-io)*Xo);return isNegativeLE$1(is,mo)&&(is=Ao(-is)),numberToBytesLE$1(is,32)}toHex(){return bytesToHex$3(this.toRawBytes())}toString(){return this.toHex()}equals(Fn){assertRstPoint(Fn);const{ex:io,ey:fo}=this.ep,{ex:$o,ey:mo}=Fn.ep,Ao=ed25519$2.CURVE.Fp.create,jo=Ao(io*mo)===Ao(fo*$o),Lo=Ao(fo*mo)===Ao(io*$o);return jo||Lo}add(Fn){return assertRstPoint(Fn),new RistPoint(this.ep.add(Fn.ep))}subtract(Fn){return assertRstPoint(Fn),new RistPoint(this.ep.subtract(Fn.ep))}multiply(Fn){return new RistPoint(this.ep.multiply(Fn))}multiplyUnsafe(Fn){return new RistPoint(this.ep.multiplyUnsafe(Fn))}}const RistrettoPoint=(RistPoint.BASE||(RistPoint.BASE=new RistPoint(ed25519$2.ExtendedPoint.BASE)),RistPoint.ZERO||(RistPoint.ZERO=new RistPoint(ed25519$2.ExtendedPoint.ZERO)),RistPoint),hashToRistretto255=(Mn,Fn)=>{const io=Fn.DST,fo=typeof io=="string"?utf8ToBytes$4(io):io,$o=expand_message_xmd$1(Mn,fo,64,sha512$3);return RistPoint.hashToCurve($o)},hash_to_ristretto255=hashToRistretto255,ed25519$3=Object.freeze(Object.defineProperty({__proto__:null,ED25519_TORSION_SUBGROUP,RistrettoPoint,ed25519:ed25519$2,ed25519ctx,ed25519ph,edwardsToMontgomery,edwardsToMontgomeryPriv,edwardsToMontgomeryPub,encodeToCurve,hashToCurve:hashToCurve$1,hashToRistretto255,hash_to_ristretto255,x25519:x25519$1},Symbol.toStringTag,{value:"Module"}));function getDefaultExportFromCjs(Mn){return Mn&&Mn.__esModule&&Object.prototype.hasOwnProperty.call(Mn,"default")?Mn.default:Mn}var browser$l={exports:{}},process$a=browser$l.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(Mn){if(cachedSetTimeout===setTimeout)return setTimeout(Mn,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(Mn,0);try{return cachedSetTimeout(Mn,0)}catch{try{return cachedSetTimeout.call(null,Mn,0)}catch{return cachedSetTimeout.call(this,Mn,0)}}}function runClearTimeout(Mn){if(cachedClearTimeout===clearTimeout)return clearTimeout(Mn);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(Mn);try{return cachedClearTimeout(Mn)}catch{try{return cachedClearTimeout.call(null,Mn)}catch{return cachedClearTimeout.call(this,Mn)}}}var queue$7=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue$7=currentQueue.concat(queue$7):queueIndex=-1,queue$7.length&&drainQueue())}function drainQueue(){if(!draining){var Mn=runTimeout(cleanUpNextTick);draining=!0;for(var Fn=queue$7.length;Fn;){for(currentQueue=queue$7,queue$7=[];++queueIndex<Fn;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,Fn=queue$7.length}currentQueue=null,draining=!1,runClearTimeout(Mn)}}process$a.nextTick=function(Mn){var Fn=new Array(arguments.length-1);if(arguments.length>1)for(var io=1;io<arguments.length;io++)Fn[io-1]=arguments[io];queue$7.push(new Item(Mn,Fn)),queue$7.length===1&&!draining&&runTimeout(drainQueue)};function Item(Mn,Fn){this.fun=Mn,this.array=Fn}Item.prototype.run=function(){this.fun.apply(null,this.array)};process$a.title="browser";process$a.browser=!0;process$a.env={};process$a.argv=[];process$a.version="";process$a.versions={};function noop$3(){}process$a.on=noop$3;process$a.addListener=noop$3;process$a.once=noop$3;process$a.off=noop$3;process$a.removeListener=noop$3;process$a.removeAllListeners=noop$3;process$a.emit=noop$3;process$a.prependListener=noop$3;process$a.prependOnceListener=noop$3;process$a.listeners=function(Mn){return[]};process$a.binding=function(Mn){throw new Error("process.binding is not supported")};process$a.cwd=function(){return"/"};process$a.chdir=function(Mn){throw new Error("process.chdir is not supported")};process$a.umask=function(){return 0};var browserExports$1=browser$l.exports;const process$1$7=getDefaultExportFromCjs(browserExports$1);var browser$k={exports:{}},MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$B=safeBufferExports$1.Buffer,crypto$5=commonjsGlobal$c.crypto||commonjsGlobal$c.msCrypto;crypto$5&&crypto$5.getRandomValues?browser$k.exports=randomBytes$3:browser$k.exports=oldBrowser$1;function randomBytes$3(Mn,Fn){if(Mn>MAX_UINT32)throw new RangeError("requested too many random bytes");var io=Buffer$B.allocUnsafe(Mn);if(Mn>0)if(Mn>MAX_BYTES)for(var fo=0;fo<Mn;fo+=MAX_BYTES)crypto$5.getRandomValues(io.slice(fo,fo+MAX_BYTES));else crypto$5.getRandomValues(io);return typeof Fn=="function"?process$1$7.nextTick(function(){Fn(null,io)}):io}var browserExports=browser$k.exports;const randombytes$1=getDefaultExportFromCjs$1(browserExports),errors$d={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function assert$k(Mn,Fn){if(!Mn)throw new Error(Fn)}function isUint8Array$3(Mn,Fn,io){if(assert$k(Fn instanceof Uint8Array,`Expected ${Mn} to be an Uint8Array`),io!==void 0)if(Array.isArray(io)){const fo=io.join(", "),$o=`Expected ${Mn} to be an Uint8Array with length [${fo}]`;assert$k(io.includes(Fn.length),$o)}else{const fo=`Expected ${Mn} to be an Uint8Array with length ${io}`;assert$k(Fn.length===io,fo)}}function isCompressed(Mn){assert$k(toTypeString(Mn)==="Boolean","Expected compressed to be a Boolean")}function getAssertedOutput(Mn=io=>new Uint8Array(io),Fn){return typeof Mn=="function"&&(Mn=Mn(Fn)),isUint8Array$3("output",Mn,Fn),Mn}function toTypeString(Mn){return Object.prototype.toString.call(Mn).slice(8,-1)}var lib$n=Mn=>({contextRandomize(Fn){switch(assert$k(Fn===null||Fn instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),Fn!==null&&isUint8Array$3("seed",Fn,32),Mn.contextRandomize(Fn)){case 1:throw new Error(errors$d.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(Fn){return isUint8Array$3("private key",Fn,32),Mn.privateKeyVerify(Fn)===0},privateKeyNegate(Fn){switch(isUint8Array$3("private key",Fn,32),Mn.privateKeyNegate(Fn)){case 0:return Fn;case 1:throw new Error(errors$d.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(Fn,io){switch(isUint8Array$3("private key",Fn,32),isUint8Array$3("tweak",io,32),Mn.privateKeyTweakAdd(Fn,io)){case 0:return Fn;case 1:throw new Error(errors$d.TWEAK_ADD)}},privateKeyTweakMul(Fn,io){switch(isUint8Array$3("private key",Fn,32),isUint8Array$3("tweak",io,32),Mn.privateKeyTweakMul(Fn,io)){case 0:return Fn;case 1:throw new Error(errors$d.TWEAK_MUL)}},publicKeyVerify(Fn){return isUint8Array$3("public key",Fn,[33,65]),Mn.publicKeyVerify(Fn)===0},publicKeyCreate(Fn,io=!0,fo){switch(isUint8Array$3("private key",Fn,32),isCompressed(io),fo=getAssertedOutput(fo,io?33:65),Mn.publicKeyCreate(fo,Fn)){case 0:return fo;case 1:throw new Error(errors$d.SECKEY_INVALID);case 2:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyConvert(Fn,io=!0,fo){switch(isUint8Array$3("public key",Fn,[33,65]),isCompressed(io),fo=getAssertedOutput(fo,io?33:65),Mn.publicKeyConvert(fo,Fn)){case 0:return fo;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyNegate(Fn,io=!0,fo){switch(isUint8Array$3("public key",Fn,[33,65]),isCompressed(io),fo=getAssertedOutput(fo,io?33:65),Mn.publicKeyNegate(fo,Fn)){case 0:return fo;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE);case 3:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyCombine(Fn,io=!0,fo){assert$k(Array.isArray(Fn),"Expected public keys to be an Array"),assert$k(Fn.length>0,"Expected public keys array will have more than zero items");for(const $o of Fn)isUint8Array$3("public key",$o,[33,65]);switch(isCompressed(io),fo=getAssertedOutput(fo,io?33:65),Mn.publicKeyCombine(fo,Fn)){case 0:return fo;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.PUBKEY_COMBINE);case 3:throw new Error(errors$d.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(Fn,io,fo=!0,$o){switch(isUint8Array$3("public key",Fn,[33,65]),isUint8Array$3("tweak",io,32),isCompressed(fo),$o=getAssertedOutput($o,fo?33:65),Mn.publicKeyTweakAdd($o,Fn,io)){case 0:return $o;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.TWEAK_ADD)}},publicKeyTweakMul(Fn,io,fo=!0,$o){switch(isUint8Array$3("public key",Fn,[33,65]),isUint8Array$3("tweak",io,32),isCompressed(fo),$o=getAssertedOutput($o,fo?33:65),Mn.publicKeyTweakMul($o,Fn,io)){case 0:return $o;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.TWEAK_MUL)}},signatureNormalize(Fn){switch(isUint8Array$3("signature",Fn,64),Mn.signatureNormalize(Fn)){case 0:return Fn;case 1:throw new Error(errors$d.SIG_PARSE)}},signatureExport(Fn,io){isUint8Array$3("signature",Fn,64),io=getAssertedOutput(io,72);const fo={output:io,outputlen:72};switch(Mn.signatureExport(fo,Fn)){case 0:return io.slice(0,fo.outputlen);case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE)}},signatureImport(Fn,io){switch(isUint8Array$3("signature",Fn),io=getAssertedOutput(io,64),Mn.signatureImport(io,Fn)){case 0:return io;case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE)}},ecdsaSign(Fn,io,fo={},$o){isUint8Array$3("message",Fn,32),isUint8Array$3("private key",io,32),assert$k(toTypeString(fo)==="Object","Expected options to be an Object"),fo.data!==void 0&&isUint8Array$3("options.data",fo.data),fo.noncefn!==void 0&&assert$k(toTypeString(fo.noncefn)==="Function","Expected options.noncefn to be a Function"),$o=getAssertedOutput($o,64);const mo={signature:$o,recid:null};switch(Mn.ecdsaSign(mo,Fn,io,fo.data,fo.noncefn)){case 0:return mo;case 1:throw new Error(errors$d.SIGN);case 2:throw new Error(errors$d.IMPOSSIBLE_CASE)}},ecdsaVerify(Fn,io,fo){switch(isUint8Array$3("signature",Fn,64),isUint8Array$3("message",io,32),isUint8Array$3("public key",fo,[33,65]),Mn.ecdsaVerify(Fn,io,fo)){case 0:return!0;case 3:return!1;case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.PUBKEY_PARSE)}},ecdsaRecover(Fn,io,fo,$o=!0,mo){switch(isUint8Array$3("signature",Fn,64),assert$k(toTypeString(io)==="Number"&&io>=0&&io<=3,"Expected recovery id to be a Number within interval [0, 3]"),isUint8Array$3("message",fo,32),isCompressed($o),mo=getAssertedOutput(mo,$o?33:65),Mn.ecdsaRecover(mo,Fn,io,fo)){case 0:return mo;case 1:throw new Error(errors$d.SIG_PARSE);case 2:throw new Error(errors$d.RECOVER);case 3:throw new Error(errors$d.IMPOSSIBLE_CASE)}},ecdh(Fn,io,fo={},$o){switch(isUint8Array$3("public key",Fn,[33,65]),isUint8Array$3("private key",io,32),assert$k(toTypeString(fo)==="Object","Expected options to be an Object"),fo.data!==void 0&&isUint8Array$3("options.data",fo.data),fo.hashfn!==void 0?(assert$k(toTypeString(fo.hashfn)==="Function","Expected options.hashfn to be a Function"),fo.xbuf!==void 0&&isUint8Array$3("options.xbuf",fo.xbuf,32),fo.ybuf!==void 0&&isUint8Array$3("options.ybuf",fo.ybuf,32),isUint8Array$3("output",$o)):$o=getAssertedOutput($o,32),Mn.ecdh($o,Fn,io,fo.data,fo.hashfn,fo.xbuf,fo.ybuf)){case 0:return $o;case 1:throw new Error(errors$d.PUBKEY_PARSE);case 2:throw new Error(errors$d.ECDH)}}}),elliptic$2={};const name="elliptic",version$e="6.5.7",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <fedor@indutny.com>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$c={name,version:version$e,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$N={},bn$2={exports:{}};bn$2.exports;(function(Mn){(function(Fn,io){function fo(Dl,Rl){if(!Dl)throw new Error(Rl||"Assertion failed")}function $o(Dl,Rl){Dl.super_=Rl;var Qo=function(){};Qo.prototype=Rl.prototype,Dl.prototype=new Qo,Dl.prototype.constructor=Dl}function mo(Dl,Rl,Qo){if(mo.isBN(Dl))return Dl;this.negative=0,this.words=null,this.length=0,this.red=null,Dl!==null&&((Rl==="le"||Rl==="be")&&(Qo=Rl,Rl=10),this._init(Dl||0,Rl||10,Qo||"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=require$$1$8.Buffer}catch{}mo.isBN=function(Rl){return Rl instanceof mo?!0:Rl!==null&&typeof Rl=="object"&&Rl.constructor.wordSize===mo.wordSize&&Array.isArray(Rl.words)},mo.max=function(Rl,Qo){return Rl.cmp(Qo)>0?Rl:Qo},mo.min=function(Rl,Qo){return Rl.cmp(Qo)<0?Rl:Qo},mo.prototype._init=function(Rl,Qo,Jo){if(typeof Rl=="number")return this._initNumber(Rl,Qo,Jo);if(typeof Rl=="object")return this._initArray(Rl,Qo,Jo);Qo==="hex"&&(Qo=16),fo(Qo===(Qo|0)&&Qo>=2&&Qo<=36),Rl=Rl.toString().replace(/\s+/g,"");var rs=0;Rl[0]==="-"&&(rs++,this.negative=1),rs<Rl.length&&(Qo===16?this._parseHex(Rl,rs,Jo):(this._parseBase(Rl,Qo,rs),Jo==="le"&&this._initArray(this.toArray(),Qo,Jo)))},mo.prototype._initNumber=function(Rl,Qo,Jo){Rl<0&&(this.negative=1,Rl=-Rl),Rl<67108864?(this.words=[Rl&67108863],this.length=1):Rl<4503599627370496?(this.words=[Rl&67108863,Rl/67108864&67108863],this.length=2):(fo(Rl<9007199254740992),this.words=[Rl&67108863,Rl/67108864&67108863,1],this.length=3),Jo==="le"&&this._initArray(this.toArray(),Qo,Jo)},mo.prototype._initArray=function(Rl,Qo,Jo){if(fo(typeof Rl.length=="number"),Rl.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Rl.length/3),this.words=new Array(this.length);for(var rs=0;rs<this.length;rs++)this.words[rs]=0;var ps,_c,$l=0;if(Jo==="be")for(rs=Rl.length-1,ps=0;rs>=0;rs-=3)_c=Rl[rs]|Rl[rs-1]<<8|Rl[rs-2]<<16,this.words[ps]|=_c<<$l&67108863,this.words[ps+1]=_c>>>26-$l&67108863,$l+=24,$l>=26&&($l-=26,ps++);else if(Jo==="le")for(rs=0,ps=0;rs<Rl.length;rs+=3)_c=Rl[rs]|Rl[rs+1]<<8|Rl[rs+2]<<16,this.words[ps]|=_c<<$l&67108863,this.words[ps+1]=_c>>>26-$l&67108863,$l+=24,$l>=26&&($l-=26,ps++);return this.strip()};function jo(Dl,Rl){var Qo=Dl.charCodeAt(Rl);return Qo>=65&&Qo<=70?Qo-55:Qo>=97&&Qo<=102?Qo-87:Qo-48&15}function Lo(Dl,Rl,Qo){var Jo=jo(Dl,Qo);return Qo-1>=Rl&&(Jo|=jo(Dl,Qo-1)<<4),Jo}mo.prototype._parseHex=function(Rl,Qo,Jo){this.length=Math.ceil((Rl.length-Qo)/6),this.words=new Array(this.length);for(var rs=0;rs<this.length;rs++)this.words[rs]=0;var ps=0,_c=0,$l;if(Jo==="be")for(rs=Rl.length-1;rs>=Qo;rs-=2)$l=Lo(Rl,Qo,rs)<<ps,this.words[_c]|=$l&67108863,ps>=18?(ps-=18,_c+=1,this.words[_c]|=$l>>>26):ps+=8;else{var El=Rl.length-Qo;for(rs=El%2===0?Qo+1:Qo;rs<Rl.length;rs+=2)$l=Lo(Rl,Qo,rs)<<ps,this.words[_c]|=$l&67108863,ps>=18?(ps-=18,_c+=1,this.words[_c]|=$l>>>26):ps+=8}this.strip()};function Ho(Dl,Rl,Qo,Jo){for(var rs=0,ps=Math.min(Dl.length,Qo),_c=Rl;_c<ps;_c++){var $l=Dl.charCodeAt(_c)-48;rs*=Jo,$l>=49?rs+=$l-49+10:$l>=17?rs+=$l-17+10:rs+=$l}return rs}mo.prototype._parseBase=function(Rl,Qo,Jo){this.words=[0],this.length=1;for(var rs=0,ps=1;ps<=67108863;ps*=Qo)rs++;rs--,ps=ps/Qo|0;for(var _c=Rl.length-Jo,$l=_c%rs,El=Math.min(_c,_c-$l)+Jo,ds=0,os=Jo;os<El;os+=rs)ds=Ho(Rl,os,os+rs,Qo),this.imuln(ps),this.words[0]+ds<67108864?this.words[0]+=ds:this._iaddn(ds);if($l!==0){var Al=1;for(ds=Ho(Rl,os,Rl.length,Qo),os=0;os<$l;os++)Al*=Qo;this.imuln(Al),this.words[0]+ds<67108864?this.words[0]+=ds:this._iaddn(ds)}this.strip()},mo.prototype.copy=function(Rl){Rl.words=new Array(this.length);for(var Qo=0;Qo<this.length;Qo++)Rl.words[Qo]=this.words[Qo];Rl.length=this.length,Rl.negative=this.negative,Rl.red=this.red},mo.prototype.clone=function(){var Rl=new mo(null);return this.copy(Rl),Rl},mo.prototype._expand=function(Rl){for(;this.length<Rl;)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},mo.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var zo=["","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"],Go=[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],Vo=[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(Rl,Qo){Rl=Rl||10,Qo=Qo|0||1;var Jo;if(Rl===16||Rl==="hex"){Jo="";for(var rs=0,ps=0,_c=0;_c<this.length;_c++){var $l=this.words[_c],El=(($l<<rs|ps)&16777215).toString(16);ps=$l>>>24-rs&16777215,ps!==0||_c!==this.length-1?Jo=zo[6-El.length]+El+Jo:Jo=El+Jo,rs+=2,rs>=26&&(rs-=26,_c--)}for(ps!==0&&(Jo=ps.toString(16)+Jo);Jo.length%Qo!==0;)Jo="0"+Jo;return this.negative!==0&&(Jo="-"+Jo),Jo}if(Rl===(Rl|0)&&Rl>=2&&Rl<=36){var ds=Go[Rl],os=Vo[Rl];Jo="";var Al=this.clone();for(Al.negative=0;!Al.isZero();){var Ul=Al.modn(os).toString(Rl);Al=Al.idivn(os),Al.isZero()?Jo=Ul+Jo:Jo=zo[ds-Ul.length]+Ul+Jo}for(this.isZero()&&(Jo="0"+Jo);Jo.length%Qo!==0;)Jo="0"+Jo;return this.negative!==0&&(Jo="-"+Jo),Jo}fo(!1,"Base should be between 2 and 36")},mo.prototype.toNumber=function(){var Rl=this.words[0];return this.length===2?Rl+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Rl+=4503599627370496+this.words[1]*67108864:this.length>2&&fo(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Rl:Rl},mo.prototype.toJSON=function(){return this.toString(16)},mo.prototype.toBuffer=function(Rl,Qo){return fo(typeof Ao<"u"),this.toArrayLike(Ao,Rl,Qo)},mo.prototype.toArray=function(Rl,Qo){return this.toArrayLike(Array,Rl,Qo)},mo.prototype.toArrayLike=function(Rl,Qo,Jo){var rs=this.byteLength(),ps=Jo||Math.max(1,rs);fo(rs<=ps,"byte array longer than desired length"),fo(ps>0,"Requested array length <= 0"),this.strip();var _c=Qo==="le",$l=new Rl(ps),El,ds,os=this.clone();if(_c){for(ds=0;!os.isZero();ds++)El=os.andln(255),os.iushrn(8),$l[ds]=El;for(;ds<ps;ds++)$l[ds]=0}else{for(ds=0;ds<ps-rs;ds++)$l[ds]=0;for(ds=0;!os.isZero();ds++)El=os.andln(255),os.iushrn(8),$l[ps-ds-1]=El}return $l},Math.clz32?mo.prototype._countBits=function(Rl){return 32-Math.clz32(Rl)}:mo.prototype._countBits=function(Rl){var Qo=Rl,Jo=0;return Qo>=4096&&(Jo+=13,Qo>>>=13),Qo>=64&&(Jo+=7,Qo>>>=7),Qo>=8&&(Jo+=4,Qo>>>=4),Qo>=2&&(Jo+=2,Qo>>>=2),Jo+Qo},mo.prototype._zeroBits=function(Rl){if(Rl===0)return 26;var Qo=Rl,Jo=0;return Qo&8191||(Jo+=13,Qo>>>=13),Qo&127||(Jo+=7,Qo>>>=7),Qo&15||(Jo+=4,Qo>>>=4),Qo&3||(Jo+=2,Qo>>>=2),Qo&1||Jo++,Jo},mo.prototype.bitLength=function(){var Rl=this.words[this.length-1],Qo=this._countBits(Rl);return(this.length-1)*26+Qo};function Yo(Dl){for(var Rl=new Array(Dl.bitLength()),Qo=0;Qo<Rl.length;Qo++){var Jo=Qo/26|0,rs=Qo%26;Rl[Qo]=(Dl.words[Jo]&1<<rs)>>>rs}return Rl}mo.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Rl=0,Qo=0;Qo<this.length;Qo++){var Jo=this._zeroBits(this.words[Qo]);if(Rl+=Jo,Jo!==26)break}return Rl},mo.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},mo.prototype.toTwos=function(Rl){return this.negative!==0?this.abs().inotn(Rl).iaddn(1):this.clone()},mo.prototype.fromTwos=function(Rl){return this.testn(Rl-1)?this.notn(Rl).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(Rl){for(;this.length<Rl.length;)this.words[this.length++]=0;for(var Qo=0;Qo<Rl.length;Qo++)this.words[Qo]=this.words[Qo]|Rl.words[Qo];return this.strip()},mo.prototype.ior=function(Rl){return fo((this.negative|Rl.negative)===0),this.iuor(Rl)},mo.prototype.or=function(Rl){return this.length>Rl.length?this.clone().ior(Rl):Rl.clone().ior(this)},mo.prototype.uor=function(Rl){return this.length>Rl.length?this.clone().iuor(Rl):Rl.clone().iuor(this)},mo.prototype.iuand=function(Rl){var Qo;this.length>Rl.length?Qo=Rl:Qo=this;for(var Jo=0;Jo<Qo.length;Jo++)this.words[Jo]=this.words[Jo]&Rl.words[Jo];return this.length=Qo.length,this.strip()},mo.prototype.iand=function(Rl){return fo((this.negative|Rl.negative)===0),this.iuand(Rl)},mo.prototype.and=function(Rl){return this.length>Rl.length?this.clone().iand(Rl):Rl.clone().iand(this)},mo.prototype.uand=function(Rl){return this.length>Rl.length?this.clone().iuand(Rl):Rl.clone().iuand(this)},mo.prototype.iuxor=function(Rl){var Qo,Jo;this.length>Rl.length?(Qo=this,Jo=Rl):(Qo=Rl,Jo=this);for(var rs=0;rs<Jo.length;rs++)this.words[rs]=Qo.words[rs]^Jo.words[rs];if(this!==Qo)for(;rs<Qo.length;rs++)this.words[rs]=Qo.words[rs];return this.length=Qo.length,this.strip()},mo.prototype.ixor=function(Rl){return fo((this.negative|Rl.negative)===0),this.iuxor(Rl)},mo.prototype.xor=function(Rl){return this.length>Rl.length?this.clone().ixor(Rl):Rl.clone().ixor(this)},mo.prototype.uxor=function(Rl){return this.length>Rl.length?this.clone().iuxor(Rl):Rl.clone().iuxor(this)},mo.prototype.inotn=function(Rl){fo(typeof Rl=="number"&&Rl>=0);var Qo=Math.ceil(Rl/26)|0,Jo=Rl%26;this._expand(Qo),Jo>0&&Qo--;for(var rs=0;rs<Qo;rs++)this.words[rs]=~this.words[rs]&67108863;return Jo>0&&(this.words[rs]=~this.words[rs]&67108863>>26-Jo),this.strip()},mo.prototype.notn=function(Rl){return this.clone().inotn(Rl)},mo.prototype.setn=function(Rl,Qo){fo(typeof Rl=="number"&&Rl>=0);var Jo=Rl/26|0,rs=Rl%26;return this._expand(Jo+1),Qo?this.words[Jo]=this.words[Jo]|1<<rs:this.words[Jo]=this.words[Jo]&~(1<<rs),this.strip()},mo.prototype.iadd=function(Rl){var Qo;if(this.negative!==0&&Rl.negative===0)return this.negative=0,Qo=this.isub(Rl),this.negative^=1,this._normSign();if(this.negative===0&&Rl.negative!==0)return Rl.negative=0,Qo=this.isub(Rl),Rl.negative=1,Qo._normSign();var Jo,rs;this.length>Rl.length?(Jo=this,rs=Rl):(Jo=Rl,rs=this);for(var ps=0,_c=0;_c<rs.length;_c++)Qo=(Jo.words[_c]|0)+(rs.words[_c]|0)+ps,this.words[_c]=Qo&67108863,ps=Qo>>>26;for(;ps!==0&&_c<Jo.length;_c++)Qo=(Jo.words[_c]|0)+ps,this.words[_c]=Qo&67108863,ps=Qo>>>26;if(this.length=Jo.length,ps!==0)this.words[this.length]=ps,this.length++;else if(Jo!==this)for(;_c<Jo.length;_c++)this.words[_c]=Jo.words[_c];return this},mo.prototype.add=function(Rl){var Qo;return Rl.negative!==0&&this.negative===0?(Rl.negative=0,Qo=this.sub(Rl),Rl.negative^=1,Qo):Rl.negative===0&&this.negative!==0?(this.negative=0,Qo=Rl.sub(this),this.negative=1,Qo):this.length>Rl.length?this.clone().iadd(Rl):Rl.clone().iadd(this)},mo.prototype.isub=function(Rl){if(Rl.negative!==0){Rl.negative=0;var Qo=this.iadd(Rl);return Rl.negative=1,Qo._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Rl),this.negative=1,this._normSign();var Jo=this.cmp(Rl);if(Jo===0)return this.negative=0,this.length=1,this.words[0]=0,this;var rs,ps;Jo>0?(rs=this,ps=Rl):(rs=Rl,ps=this);for(var _c=0,$l=0;$l<ps.length;$l++)Qo=(rs.words[$l]|0)-(ps.words[$l]|0)+_c,_c=Qo>>26,this.words[$l]=Qo&67108863;for(;_c!==0&&$l<rs.length;$l++)Qo=(rs.words[$l]|0)+_c,_c=Qo>>26,this.words[$l]=Qo&67108863;if(_c===0&&$l<rs.length&&rs!==this)for(;$l<rs.length;$l++)this.words[$l]=rs.words[$l];return this.length=Math.max(this.length,$l),rs!==this&&(this.negative=1),this.strip()},mo.prototype.sub=function(Rl){return this.clone().isub(Rl)};function Xo(Dl,Rl,Qo){Qo.negative=Rl.negative^Dl.negative;var Jo=Dl.length+Rl.length|0;Qo.length=Jo,Jo=Jo-1|0;var rs=Dl.words[0]|0,ps=Rl.words[0]|0,_c=rs*ps,$l=_c&67108863,El=_c/67108864|0;Qo.words[0]=$l;for(var ds=1;ds<Jo;ds++){for(var os=El>>>26,Al=El&67108863,Ul=Math.min(ds,Rl.length-1),Zl=Math.max(0,ds-Dl.length+1);Zl<=Ul;Zl++){var Pl=ds-Zl|0;rs=Dl.words[Pl]|0,ps=Rl.words[Zl]|0,_c=rs*ps+Al,os+=_c/67108864|0,Al=_c&67108863}Qo.words[ds]=Al|0,El=os|0}return El!==0?Qo.words[ds]=El|0:Qo.length--,Qo.strip()}var is=function(Rl,Qo,Jo){var rs=Rl.words,ps=Qo.words,_c=Jo.words,$l=0,El,ds,os,Al=rs[0]|0,Ul=Al&8191,Zl=Al>>>13,Pl=rs[1]|0,Hl=Pl&8191,Ml=Pl>>>13,Fl=rs[2]|0,Yl=Fl&8191,Bl=Fl>>>13,Kl=rs[3]|0,Gl=Kl&8191,fu=Kl>>>13,bu=rs[4]|0,rp=bu&8191,tp=bu>>>13,op=rs[5]|0,vp=op&8191,ip=op>>>13,up=rs[6]|0,$p=up&8191,gp=up>>>13,yp=rs[7]|0,_p=yp&8191,mp=yp>>>13,wp=rs[8]|0,Sp=wp&8191,bp=wp>>>13,Ap=rs[9]|0,Xl=Ap&8191,Vl=Ap>>>13,Jl=ps[0]|0,wu=Jl&8191,ep=Jl>>>13,sp=ps[1]|0,dp=sp&8191,xp=sp>>>13,Op=ps[2]|0,Lp=Op&8191,Mp=Op>>>13,Pp=ps[3]|0,a1=Pp&8191,Up=Pp>>>13,Dp=ps[4]|0,Jp=Dp&8191,Kp=Dp>>>13,Bp=ps[5]|0,Zp=Bp&8191,Hp=Bp>>>13,Gp=ps[6]|0,Qp=Gp&8191,Vp=Gp>>>13,Wp=ps[7]|0,Xp=Wp&8191,zp=Wp>>>13,jp=ps[8]|0,r1=jp&8191,qp=jp>>>13,e1=ps[9]|0,s1=e1&8191,t1=e1>>>13;Jo.negative=Rl.negative^Qo.negative,Jo.length=19,El=Math.imul(Ul,wu),ds=Math.imul(Ul,ep),ds=ds+Math.imul(Zl,wu)|0,os=Math.imul(Zl,ep);var Yp=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,El=Math.imul(Hl,wu),ds=Math.imul(Hl,ep),ds=ds+Math.imul(Ml,wu)|0,os=Math.imul(Ml,ep),El=El+Math.imul(Ul,dp)|0,ds=ds+Math.imul(Ul,xp)|0,ds=ds+Math.imul(Zl,dp)|0,os=os+Math.imul(Zl,xp)|0;var f1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(f1>>>26)|0,f1&=67108863,El=Math.imul(Yl,wu),ds=Math.imul(Yl,ep),ds=ds+Math.imul(Bl,wu)|0,os=Math.imul(Bl,ep),El=El+Math.imul(Hl,dp)|0,ds=ds+Math.imul(Hl,xp)|0,ds=ds+Math.imul(Ml,dp)|0,os=os+Math.imul(Ml,xp)|0,El=El+Math.imul(Ul,Lp)|0,ds=ds+Math.imul(Ul,Mp)|0,ds=ds+Math.imul(Zl,Lp)|0,os=os+Math.imul(Zl,Mp)|0;var R1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(R1>>>26)|0,R1&=67108863,El=Math.imul(Gl,wu),ds=Math.imul(Gl,ep),ds=ds+Math.imul(fu,wu)|0,os=Math.imul(fu,ep),El=El+Math.imul(Yl,dp)|0,ds=ds+Math.imul(Yl,xp)|0,ds=ds+Math.imul(Bl,dp)|0,os=os+Math.imul(Bl,xp)|0,El=El+Math.imul(Hl,Lp)|0,ds=ds+Math.imul(Hl,Mp)|0,ds=ds+Math.imul(Ml,Lp)|0,os=os+Math.imul(Ml,Mp)|0,El=El+Math.imul(Ul,a1)|0,ds=ds+Math.imul(Ul,Up)|0,ds=ds+Math.imul(Zl,a1)|0,os=os+Math.imul(Zl,Up)|0;var O1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(O1>>>26)|0,O1&=67108863,El=Math.imul(rp,wu),ds=Math.imul(rp,ep),ds=ds+Math.imul(tp,wu)|0,os=Math.imul(tp,ep),El=El+Math.imul(Gl,dp)|0,ds=ds+Math.imul(Gl,xp)|0,ds=ds+Math.imul(fu,dp)|0,os=os+Math.imul(fu,xp)|0,El=El+Math.imul(Yl,Lp)|0,ds=ds+Math.imul(Yl,Mp)|0,ds=ds+Math.imul(Bl,Lp)|0,os=os+Math.imul(Bl,Mp)|0,El=El+Math.imul(Hl,a1)|0,ds=ds+Math.imul(Hl,Up)|0,ds=ds+Math.imul(Ml,a1)|0,os=os+Math.imul(Ml,Up)|0,El=El+Math.imul(Ul,Jp)|0,ds=ds+Math.imul(Ul,Kp)|0,ds=ds+Math.imul(Zl,Jp)|0,os=os+Math.imul(Zl,Kp)|0;var M1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(M1>>>26)|0,M1&=67108863,El=Math.imul(vp,wu),ds=Math.imul(vp,ep),ds=ds+Math.imul(ip,wu)|0,os=Math.imul(ip,ep),El=El+Math.imul(rp,dp)|0,ds=ds+Math.imul(rp,xp)|0,ds=ds+Math.imul(tp,dp)|0,os=os+Math.imul(tp,xp)|0,El=El+Math.imul(Gl,Lp)|0,ds=ds+Math.imul(Gl,Mp)|0,ds=ds+Math.imul(fu,Lp)|0,os=os+Math.imul(fu,Mp)|0,El=El+Math.imul(Yl,a1)|0,ds=ds+Math.imul(Yl,Up)|0,ds=ds+Math.imul(Bl,a1)|0,os=os+Math.imul(Bl,Up)|0,El=El+Math.imul(Hl,Jp)|0,ds=ds+Math.imul(Hl,Kp)|0,ds=ds+Math.imul(Ml,Jp)|0,os=os+Math.imul(Ml,Kp)|0,El=El+Math.imul(Ul,Zp)|0,ds=ds+Math.imul(Ul,Hp)|0,ds=ds+Math.imul(Zl,Zp)|0,os=os+Math.imul(Zl,Hp)|0;var N1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(N1>>>26)|0,N1&=67108863,El=Math.imul($p,wu),ds=Math.imul($p,ep),ds=ds+Math.imul(gp,wu)|0,os=Math.imul(gp,ep),El=El+Math.imul(vp,dp)|0,ds=ds+Math.imul(vp,xp)|0,ds=ds+Math.imul(ip,dp)|0,os=os+Math.imul(ip,xp)|0,El=El+Math.imul(rp,Lp)|0,ds=ds+Math.imul(rp,Mp)|0,ds=ds+Math.imul(tp,Lp)|0,os=os+Math.imul(tp,Mp)|0,El=El+Math.imul(Gl,a1)|0,ds=ds+Math.imul(Gl,Up)|0,ds=ds+Math.imul(fu,a1)|0,os=os+Math.imul(fu,Up)|0,El=El+Math.imul(Yl,Jp)|0,ds=ds+Math.imul(Yl,Kp)|0,ds=ds+Math.imul(Bl,Jp)|0,os=os+Math.imul(Bl,Kp)|0,El=El+Math.imul(Hl,Zp)|0,ds=ds+Math.imul(Hl,Hp)|0,ds=ds+Math.imul(Ml,Zp)|0,os=os+Math.imul(Ml,Hp)|0,El=El+Math.imul(Ul,Qp)|0,ds=ds+Math.imul(Ul,Vp)|0,ds=ds+Math.imul(Zl,Qp)|0,os=os+Math.imul(Zl,Vp)|0;var E1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(E1>>>26)|0,E1&=67108863,El=Math.imul(_p,wu),ds=Math.imul(_p,ep),ds=ds+Math.imul(mp,wu)|0,os=Math.imul(mp,ep),El=El+Math.imul($p,dp)|0,ds=ds+Math.imul($p,xp)|0,ds=ds+Math.imul(gp,dp)|0,os=os+Math.imul(gp,xp)|0,El=El+Math.imul(vp,Lp)|0,ds=ds+Math.imul(vp,Mp)|0,ds=ds+Math.imul(ip,Lp)|0,os=os+Math.imul(ip,Mp)|0,El=El+Math.imul(rp,a1)|0,ds=ds+Math.imul(rp,Up)|0,ds=ds+Math.imul(tp,a1)|0,os=os+Math.imul(tp,Up)|0,El=El+Math.imul(Gl,Jp)|0,ds=ds+Math.imul(Gl,Kp)|0,ds=ds+Math.imul(fu,Jp)|0,os=os+Math.imul(fu,Kp)|0,El=El+Math.imul(Yl,Zp)|0,ds=ds+Math.imul(Yl,Hp)|0,ds=ds+Math.imul(Bl,Zp)|0,os=os+Math.imul(Bl,Hp)|0,El=El+Math.imul(Hl,Qp)|0,ds=ds+Math.imul(Hl,Vp)|0,ds=ds+Math.imul(Ml,Qp)|0,os=os+Math.imul(Ml,Vp)|0,El=El+Math.imul(Ul,Xp)|0,ds=ds+Math.imul(Ul,zp)|0,ds=ds+Math.imul(Zl,Xp)|0,os=os+Math.imul(Zl,zp)|0;var q1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(q1>>>26)|0,q1&=67108863,El=Math.imul(Sp,wu),ds=Math.imul(Sp,ep),ds=ds+Math.imul(bp,wu)|0,os=Math.imul(bp,ep),El=El+Math.imul(_p,dp)|0,ds=ds+Math.imul(_p,xp)|0,ds=ds+Math.imul(mp,dp)|0,os=os+Math.imul(mp,xp)|0,El=El+Math.imul($p,Lp)|0,ds=ds+Math.imul($p,Mp)|0,ds=ds+Math.imul(gp,Lp)|0,os=os+Math.imul(gp,Mp)|0,El=El+Math.imul(vp,a1)|0,ds=ds+Math.imul(vp,Up)|0,ds=ds+Math.imul(ip,a1)|0,os=os+Math.imul(ip,Up)|0,El=El+Math.imul(rp,Jp)|0,ds=ds+Math.imul(rp,Kp)|0,ds=ds+Math.imul(tp,Jp)|0,os=os+Math.imul(tp,Kp)|0,El=El+Math.imul(Gl,Zp)|0,ds=ds+Math.imul(Gl,Hp)|0,ds=ds+Math.imul(fu,Zp)|0,os=os+Math.imul(fu,Hp)|0,El=El+Math.imul(Yl,Qp)|0,ds=ds+Math.imul(Yl,Vp)|0,ds=ds+Math.imul(Bl,Qp)|0,os=os+Math.imul(Bl,Vp)|0,El=El+Math.imul(Hl,Xp)|0,ds=ds+Math.imul(Hl,zp)|0,ds=ds+Math.imul(Ml,Xp)|0,os=os+Math.imul(Ml,zp)|0,El=El+Math.imul(Ul,r1)|0,ds=ds+Math.imul(Ul,qp)|0,ds=ds+Math.imul(Zl,r1)|0,os=os+Math.imul(Zl,qp)|0;var i$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(i$>>>26)|0,i$&=67108863,El=Math.imul(Xl,wu),ds=Math.imul(Xl,ep),ds=ds+Math.imul(Vl,wu)|0,os=Math.imul(Vl,ep),El=El+Math.imul(Sp,dp)|0,ds=ds+Math.imul(Sp,xp)|0,ds=ds+Math.imul(bp,dp)|0,os=os+Math.imul(bp,xp)|0,El=El+Math.imul(_p,Lp)|0,ds=ds+Math.imul(_p,Mp)|0,ds=ds+Math.imul(mp,Lp)|0,os=os+Math.imul(mp,Mp)|0,El=El+Math.imul($p,a1)|0,ds=ds+Math.imul($p,Up)|0,ds=ds+Math.imul(gp,a1)|0,os=os+Math.imul(gp,Up)|0,El=El+Math.imul(vp,Jp)|0,ds=ds+Math.imul(vp,Kp)|0,ds=ds+Math.imul(ip,Jp)|0,os=os+Math.imul(ip,Kp)|0,El=El+Math.imul(rp,Zp)|0,ds=ds+Math.imul(rp,Hp)|0,ds=ds+Math.imul(tp,Zp)|0,os=os+Math.imul(tp,Hp)|0,El=El+Math.imul(Gl,Qp)|0,ds=ds+Math.imul(Gl,Vp)|0,ds=ds+Math.imul(fu,Qp)|0,os=os+Math.imul(fu,Vp)|0,El=El+Math.imul(Yl,Xp)|0,ds=ds+Math.imul(Yl,zp)|0,ds=ds+Math.imul(Bl,Xp)|0,os=os+Math.imul(Bl,zp)|0,El=El+Math.imul(Hl,r1)|0,ds=ds+Math.imul(Hl,qp)|0,ds=ds+Math.imul(Ml,r1)|0,os=os+Math.imul(Ml,qp)|0,El=El+Math.imul(Ul,s1)|0,ds=ds+Math.imul(Ul,t1)|0,ds=ds+Math.imul(Zl,s1)|0,os=os+Math.imul(Zl,t1)|0;var Y1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,El=Math.imul(Xl,dp),ds=Math.imul(Xl,xp),ds=ds+Math.imul(Vl,dp)|0,os=Math.imul(Vl,xp),El=El+Math.imul(Sp,Lp)|0,ds=ds+Math.imul(Sp,Mp)|0,ds=ds+Math.imul(bp,Lp)|0,os=os+Math.imul(bp,Mp)|0,El=El+Math.imul(_p,a1)|0,ds=ds+Math.imul(_p,Up)|0,ds=ds+Math.imul(mp,a1)|0,os=os+Math.imul(mp,Up)|0,El=El+Math.imul($p,Jp)|0,ds=ds+Math.imul($p,Kp)|0,ds=ds+Math.imul(gp,Jp)|0,os=os+Math.imul(gp,Kp)|0,El=El+Math.imul(vp,Zp)|0,ds=ds+Math.imul(vp,Hp)|0,ds=ds+Math.imul(ip,Zp)|0,os=os+Math.imul(ip,Hp)|0,El=El+Math.imul(rp,Qp)|0,ds=ds+Math.imul(rp,Vp)|0,ds=ds+Math.imul(tp,Qp)|0,os=os+Math.imul(tp,Vp)|0,El=El+Math.imul(Gl,Xp)|0,ds=ds+Math.imul(Gl,zp)|0,ds=ds+Math.imul(fu,Xp)|0,os=os+Math.imul(fu,zp)|0,El=El+Math.imul(Yl,r1)|0,ds=ds+Math.imul(Yl,qp)|0,ds=ds+Math.imul(Bl,r1)|0,os=os+Math.imul(Bl,qp)|0,El=El+Math.imul(Hl,s1)|0,ds=ds+Math.imul(Hl,t1)|0,ds=ds+Math.imul(Ml,s1)|0,os=os+Math.imul(Ml,t1)|0;var a$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(a$>>>26)|0,a$&=67108863,El=Math.imul(Xl,Lp),ds=Math.imul(Xl,Mp),ds=ds+Math.imul(Vl,Lp)|0,os=Math.imul(Vl,Mp),El=El+Math.imul(Sp,a1)|0,ds=ds+Math.imul(Sp,Up)|0,ds=ds+Math.imul(bp,a1)|0,os=os+Math.imul(bp,Up)|0,El=El+Math.imul(_p,Jp)|0,ds=ds+Math.imul(_p,Kp)|0,ds=ds+Math.imul(mp,Jp)|0,os=os+Math.imul(mp,Kp)|0,El=El+Math.imul($p,Zp)|0,ds=ds+Math.imul($p,Hp)|0,ds=ds+Math.imul(gp,Zp)|0,os=os+Math.imul(gp,Hp)|0,El=El+Math.imul(vp,Qp)|0,ds=ds+Math.imul(vp,Vp)|0,ds=ds+Math.imul(ip,Qp)|0,os=os+Math.imul(ip,Vp)|0,El=El+Math.imul(rp,Xp)|0,ds=ds+Math.imul(rp,zp)|0,ds=ds+Math.imul(tp,Xp)|0,os=os+Math.imul(tp,zp)|0,El=El+Math.imul(Gl,r1)|0,ds=ds+Math.imul(Gl,qp)|0,ds=ds+Math.imul(fu,r1)|0,os=os+Math.imul(fu,qp)|0,El=El+Math.imul(Yl,s1)|0,ds=ds+Math.imul(Yl,t1)|0,ds=ds+Math.imul(Bl,s1)|0,os=os+Math.imul(Bl,t1)|0;var s$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(s$>>>26)|0,s$&=67108863,El=Math.imul(Xl,a1),ds=Math.imul(Xl,Up),ds=ds+Math.imul(Vl,a1)|0,os=Math.imul(Vl,Up),El=El+Math.imul(Sp,Jp)|0,ds=ds+Math.imul(Sp,Kp)|0,ds=ds+Math.imul(bp,Jp)|0,os=os+Math.imul(bp,Kp)|0,El=El+Math.imul(_p,Zp)|0,ds=ds+Math.imul(_p,Hp)|0,ds=ds+Math.imul(mp,Zp)|0,os=os+Math.imul(mp,Hp)|0,El=El+Math.imul($p,Qp)|0,ds=ds+Math.imul($p,Vp)|0,ds=ds+Math.imul(gp,Qp)|0,os=os+Math.imul(gp,Vp)|0,El=El+Math.imul(vp,Xp)|0,ds=ds+Math.imul(vp,zp)|0,ds=ds+Math.imul(ip,Xp)|0,os=os+Math.imul(ip,zp)|0,El=El+Math.imul(rp,r1)|0,ds=ds+Math.imul(rp,qp)|0,ds=ds+Math.imul(tp,r1)|0,os=os+Math.imul(tp,qp)|0,El=El+Math.imul(Gl,s1)|0,ds=ds+Math.imul(Gl,t1)|0,ds=ds+Math.imul(fu,s1)|0,os=os+Math.imul(fu,t1)|0;var Z1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(Z1>>>26)|0,Z1&=67108863,El=Math.imul(Xl,Jp),ds=Math.imul(Xl,Kp),ds=ds+Math.imul(Vl,Jp)|0,os=Math.imul(Vl,Kp),El=El+Math.imul(Sp,Zp)|0,ds=ds+Math.imul(Sp,Hp)|0,ds=ds+Math.imul(bp,Zp)|0,os=os+Math.imul(bp,Hp)|0,El=El+Math.imul(_p,Qp)|0,ds=ds+Math.imul(_p,Vp)|0,ds=ds+Math.imul(mp,Qp)|0,os=os+Math.imul(mp,Vp)|0,El=El+Math.imul($p,Xp)|0,ds=ds+Math.imul($p,zp)|0,ds=ds+Math.imul(gp,Xp)|0,os=os+Math.imul(gp,zp)|0,El=El+Math.imul(vp,r1)|0,ds=ds+Math.imul(vp,qp)|0,ds=ds+Math.imul(ip,r1)|0,os=os+Math.imul(ip,qp)|0,El=El+Math.imul(rp,s1)|0,ds=ds+Math.imul(rp,t1)|0,ds=ds+Math.imul(tp,s1)|0,os=os+Math.imul(tp,t1)|0;var t$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(t$>>>26)|0,t$&=67108863,El=Math.imul(Xl,Zp),ds=Math.imul(Xl,Hp),ds=ds+Math.imul(Vl,Zp)|0,os=Math.imul(Vl,Hp),El=El+Math.imul(Sp,Qp)|0,ds=ds+Math.imul(Sp,Vp)|0,ds=ds+Math.imul(bp,Qp)|0,os=os+Math.imul(bp,Vp)|0,El=El+Math.imul(_p,Xp)|0,ds=ds+Math.imul(_p,zp)|0,ds=ds+Math.imul(mp,Xp)|0,os=os+Math.imul(mp,zp)|0,El=El+Math.imul($p,r1)|0,ds=ds+Math.imul($p,qp)|0,ds=ds+Math.imul(gp,r1)|0,os=os+Math.imul(gp,qp)|0,El=El+Math.imul(vp,s1)|0,ds=ds+Math.imul(vp,t1)|0,ds=ds+Math.imul(ip,s1)|0,os=os+Math.imul(ip,t1)|0;var r$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(r$>>>26)|0,r$&=67108863,El=Math.imul(Xl,Qp),ds=Math.imul(Xl,Vp),ds=ds+Math.imul(Vl,Qp)|0,os=Math.imul(Vl,Vp),El=El+Math.imul(Sp,Xp)|0,ds=ds+Math.imul(Sp,zp)|0,ds=ds+Math.imul(bp,Xp)|0,os=os+Math.imul(bp,zp)|0,El=El+Math.imul(_p,r1)|0,ds=ds+Math.imul(_p,qp)|0,ds=ds+Math.imul(mp,r1)|0,os=os+Math.imul(mp,qp)|0,El=El+Math.imul($p,s1)|0,ds=ds+Math.imul($p,t1)|0,ds=ds+Math.imul(gp,s1)|0,os=os+Math.imul(gp,t1)|0;var D1=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(D1>>>26)|0,D1&=67108863,El=Math.imul(Xl,Xp),ds=Math.imul(Xl,zp),ds=ds+Math.imul(Vl,Xp)|0,os=Math.imul(Vl,zp),El=El+Math.imul(Sp,r1)|0,ds=ds+Math.imul(Sp,qp)|0,ds=ds+Math.imul(bp,r1)|0,os=os+Math.imul(bp,qp)|0,El=El+Math.imul(_p,s1)|0,ds=ds+Math.imul(_p,t1)|0,ds=ds+Math.imul(mp,s1)|0,os=os+Math.imul(mp,t1)|0;var c$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(c$>>>26)|0,c$&=67108863,El=Math.imul(Xl,r1),ds=Math.imul(Xl,qp),ds=ds+Math.imul(Vl,r1)|0,os=Math.imul(Vl,qp),El=El+Math.imul(Sp,s1)|0,ds=ds+Math.imul(Sp,t1)|0,ds=ds+Math.imul(bp,s1)|0,os=os+Math.imul(bp,t1)|0;var l$=($l+El|0)+((ds&8191)<<13)|0;$l=(os+(ds>>>13)|0)+(l$>>>26)|0,l$&=67108863,El=Math.imul(Xl,s1),ds=Math.imul(Xl,t1),ds=ds+Math.imul(Vl,s1)|0,os=Math.imul(Vl,t1);var u$=($l+El|0)+((ds&8191)<<13)|0;return $l=(os+(ds>>>13)|0)+(u$>>>26)|0,u$&=67108863,_c[0]=Yp,_c[1]=f1,_c[2]=R1,_c[3]=O1,_c[4]=M1,_c[5]=N1,_c[6]=E1,_c[7]=q1,_c[8]=i$,_c[9]=Y1,_c[10]=a$,_c[11]=s$,_c[12]=Z1,_c[13]=t$,_c[14]=r$,_c[15]=D1,_c[16]=c$,_c[17]=l$,_c[18]=u$,$l!==0&&(_c[19]=$l,Jo.length++),Jo};Math.imul||(is=Xo);function yl(Dl,Rl,Qo){Qo.negative=Rl.negative^Dl.negative,Qo.length=Dl.length+Rl.length;for(var Jo=0,rs=0,ps=0;ps<Qo.length-1;ps++){var _c=rs;rs=0;for(var $l=Jo&67108863,El=Math.min(ps,Rl.length-1),ds=Math.max(0,ps-Dl.length+1);ds<=El;ds++){var os=ps-ds,Al=Dl.words[os]|0,Ul=Rl.words[ds]|0,Zl=Al*Ul,Pl=Zl&67108863;_c=_c+(Zl/67108864|0)|0,Pl=Pl+$l|0,$l=Pl&67108863,_c=_c+(Pl>>>26)|0,rs+=_c>>>26,_c&=67108863}Qo.words[ps]=$l,Jo=_c,_c=rs}return Jo!==0?Qo.words[ps]=Jo:Qo.length--,Qo.strip()}function us(Dl,Rl,Qo){var Jo=new hs;return Jo.mulp(Dl,Rl,Qo)}mo.prototype.mulTo=function(Rl,Qo){var Jo,rs=this.length+Rl.length;return this.length===10&&Rl.length===10?Jo=is(this,Rl,Qo):rs<63?Jo=Xo(this,Rl,Qo):rs<1024?Jo=yl(this,Rl,Qo):Jo=us(this,Rl,Qo),Jo};function hs(Dl,Rl){this.x=Dl,this.y=Rl}hs.prototype.makeRBT=function(Rl){for(var Qo=new Array(Rl),Jo=mo.prototype._countBits(Rl)-1,rs=0;rs<Rl;rs++)Qo[rs]=this.revBin(rs,Jo,Rl);return Qo},hs.prototype.revBin=function(Rl,Qo,Jo){if(Rl===0||Rl===Jo-1)return Rl;for(var rs=0,ps=0;ps<Qo;ps++)rs|=(Rl&1)<<Qo-ps-1,Rl>>=1;return rs},hs.prototype.permute=function(Rl,Qo,Jo,rs,ps,_c){for(var $l=0;$l<_c;$l++)rs[$l]=Qo[Rl[$l]],ps[$l]=Jo[Rl[$l]]},hs.prototype.transform=function(Rl,Qo,Jo,rs,ps,_c){this.permute(_c,Rl,Qo,Jo,rs,ps);for(var $l=1;$l<ps;$l<<=1)for(var El=$l<<1,ds=Math.cos(2*Math.PI/El),os=Math.sin(2*Math.PI/El),Al=0;Al<ps;Al+=El)for(var Ul=ds,Zl=os,Pl=0;Pl<$l;Pl++){var Hl=Jo[Al+Pl],Ml=rs[Al+Pl],Fl=Jo[Al+Pl+$l],Yl=rs[Al+Pl+$l],Bl=Ul*Fl-Zl*Yl;Yl=Ul*Yl+Zl*Fl,Fl=Bl,Jo[Al+Pl]=Hl+Fl,rs[Al+Pl]=Ml+Yl,Jo[Al+Pl+$l]=Hl-Fl,rs[Al+Pl+$l]=Ml-Yl,Pl!==El&&(Bl=ds*Ul-os*Zl,Zl=ds*Zl+os*Ul,Ul=Bl)}},hs.prototype.guessLen13b=function(Rl,Qo){var Jo=Math.max(Qo,Rl)|1,rs=Jo&1,ps=0;for(Jo=Jo/2|0;Jo;Jo=Jo>>>1)ps++;return 1<<ps+1+rs},hs.prototype.conjugate=function(Rl,Qo,Jo){if(!(Jo<=1))for(var rs=0;rs<Jo/2;rs++){var ps=Rl[rs];Rl[rs]=Rl[Jo-rs-1],Rl[Jo-rs-1]=ps,ps=Qo[rs],Qo[rs]=-Qo[Jo-rs-1],Qo[Jo-rs-1]=-ps}},hs.prototype.normalize13b=function(Rl,Qo){for(var Jo=0,rs=0;rs<Qo/2;rs++){var ps=Math.round(Rl[2*rs+1]/Qo)*8192+Math.round(Rl[2*rs]/Qo)+Jo;Rl[rs]=ps&67108863,ps<67108864?Jo=0:Jo=ps/67108864|0}return Rl},hs.prototype.convert13b=function(Rl,Qo,Jo,rs){for(var ps=0,_c=0;_c<Qo;_c++)ps=ps+(Rl[_c]|0),Jo[2*_c]=ps&8191,ps=ps>>>13,Jo[2*_c+1]=ps&8191,ps=ps>>>13;for(_c=2*Qo;_c<rs;++_c)Jo[_c]=0;fo(ps===0),fo((ps&-8192)===0)},hs.prototype.stub=function(Rl){for(var Qo=new Array(Rl),Jo=0;Jo<Rl;Jo++)Qo[Jo]=0;return Qo},hs.prototype.mulp=function(Rl,Qo,Jo){var rs=2*this.guessLen13b(Rl.length,Qo.length),ps=this.makeRBT(rs),_c=this.stub(rs),$l=new Array(rs),El=new Array(rs),ds=new Array(rs),os=new Array(rs),Al=new Array(rs),Ul=new Array(rs),Zl=Jo.words;Zl.length=rs,this.convert13b(Rl.words,Rl.length,$l,rs),this.convert13b(Qo.words,Qo.length,os,rs),this.transform($l,_c,El,ds,rs,ps),this.transform(os,_c,Al,Ul,rs,ps);for(var Pl=0;Pl<rs;Pl++){var Hl=El[Pl]*Al[Pl]-ds[Pl]*Ul[Pl];ds[Pl]=El[Pl]*Ul[Pl]+ds[Pl]*Al[Pl],El[Pl]=Hl}return this.conjugate(El,ds,rs),this.transform(El,ds,Zl,_c,rs,ps),this.conjugate(Zl,_c,rs),this.normalize13b(Zl,rs),Jo.negative=Rl.negative^Qo.negative,Jo.length=Rl.length+Qo.length,Jo.strip()},mo.prototype.mul=function(Rl){var Qo=new mo(null);return Qo.words=new Array(this.length+Rl.length),this.mulTo(Rl,Qo)},mo.prototype.mulf=function(Rl){var Qo=new mo(null);return Qo.words=new Array(this.length+Rl.length),us(this,Rl,Qo)},mo.prototype.imul=function(Rl){return this.clone().mulTo(Rl,this)},mo.prototype.imuln=function(Rl){fo(typeof Rl=="number"),fo(Rl<67108864);for(var Qo=0,Jo=0;Jo<this.length;Jo++){var rs=(this.words[Jo]|0)*Rl,ps=(rs&67108863)+(Qo&67108863);Qo>>=26,Qo+=rs/67108864|0,Qo+=ps>>>26,this.words[Jo]=ps&67108863}return Qo!==0&&(this.words[Jo]=Qo,this.length++),this},mo.prototype.muln=function(Rl){return this.clone().imuln(Rl)},mo.prototype.sqr=function(){return this.mul(this)},mo.prototype.isqr=function(){return this.imul(this.clone())},mo.prototype.pow=function(Rl){var Qo=Yo(Rl);if(Qo.length===0)return new mo(1);for(var Jo=this,rs=0;rs<Qo.length&&Qo[rs]===0;rs++,Jo=Jo.sqr());if(++rs<Qo.length)for(var ps=Jo.sqr();rs<Qo.length;rs++,ps=ps.sqr())Qo[rs]!==0&&(Jo=Jo.mul(ps));return Jo},mo.prototype.iushln=function(Rl){fo(typeof Rl=="number"&&Rl>=0);var Qo=Rl%26,Jo=(Rl-Qo)/26,rs=67108863>>>26-Qo<<26-Qo,ps;if(Qo!==0){var _c=0;for(ps=0;ps<this.length;ps++){var $l=this.words[ps]&rs,El=(this.words[ps]|0)-$l<<Qo;this.words[ps]=El|_c,_c=$l>>>26-Qo}_c&&(this.words[ps]=_c,this.length++)}if(Jo!==0){for(ps=this.length-1;ps>=0;ps--)this.words[ps+Jo]=this.words[ps];for(ps=0;ps<Jo;ps++)this.words[ps]=0;this.length+=Jo}return this.strip()},mo.prototype.ishln=function(Rl){return fo(this.negative===0),this.iushln(Rl)},mo.prototype.iushrn=function(Rl,Qo,Jo){fo(typeof Rl=="number"&&Rl>=0);var rs;Qo?rs=(Qo-Qo%26)/26:rs=0;var ps=Rl%26,_c=Math.min((Rl-ps)/26,this.length),$l=67108863^67108863>>>ps<<ps,El=Jo;if(rs-=_c,rs=Math.max(0,rs),El){for(var ds=0;ds<_c;ds++)El.words[ds]=this.words[ds];El.length=_c}if(_c!==0)if(this.length>_c)for(this.length-=_c,ds=0;ds<this.length;ds++)this.words[ds]=this.words[ds+_c];else this.words[0]=0,this.length=1;var os=0;for(ds=this.length-1;ds>=0&&(os!==0||ds>=rs);ds--){var Al=this.words[ds]|0;this.words[ds]=os<<26-ps|Al>>>ps,os=Al&$l}return El&&os!==0&&(El.words[El.length++]=os),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},mo.prototype.ishrn=function(Rl,Qo,Jo){return fo(this.negative===0),this.iushrn(Rl,Qo,Jo)},mo.prototype.shln=function(Rl){return this.clone().ishln(Rl)},mo.prototype.ushln=function(Rl){return this.clone().iushln(Rl)},mo.prototype.shrn=function(Rl){return this.clone().ishrn(Rl)},mo.prototype.ushrn=function(Rl){return this.clone().iushrn(Rl)},mo.prototype.testn=function(Rl){fo(typeof Rl=="number"&&Rl>=0);var Qo=Rl%26,Jo=(Rl-Qo)/26,rs=1<<Qo;if(this.length<=Jo)return!1;var ps=this.words[Jo];return!!(ps&rs)},mo.prototype.imaskn=function(Rl){fo(typeof Rl=="number"&&Rl>=0);var Qo=Rl%26,Jo=(Rl-Qo)/26;if(fo(this.negative===0,"imaskn works only with positive numbers"),this.length<=Jo)return this;if(Qo!==0&&Jo++,this.length=Math.min(Jo,this.length),Qo!==0){var rs=67108863^67108863>>>Qo<<Qo;this.words[this.length-1]&=rs}return this.strip()},mo.prototype.maskn=function(Rl){return this.clone().imaskn(Rl)},mo.prototype.iaddn=function(Rl){return fo(typeof Rl=="number"),fo(Rl<67108864),Rl<0?this.isubn(-Rl):this.negative!==0?this.length===1&&(this.words[0]|0)<Rl?(this.words[0]=Rl-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Rl),this.negative=1,this):this._iaddn(Rl)},mo.prototype._iaddn=function(Rl){this.words[0]+=Rl;for(var Qo=0;Qo<this.length&&this.words[Qo]>=67108864;Qo++)this.words[Qo]-=67108864,Qo===this.length-1?this.words[Qo+1]=1:this.words[Qo+1]++;return this.length=Math.max(this.length,Qo+1),this},mo.prototype.isubn=function(Rl){if(fo(typeof Rl=="number"),fo(Rl<67108864),Rl<0)return this.iaddn(-Rl);if(this.negative!==0)return this.negative=0,this.iaddn(Rl),this.negative=1,this;if(this.words[0]-=Rl,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Qo=0;Qo<this.length&&this.words[Qo]<0;Qo++)this.words[Qo]+=67108864,this.words[Qo+1]-=1;return this.strip()},mo.prototype.addn=function(Rl){return this.clone().iaddn(Rl)},mo.prototype.subn=function(Rl){return this.clone().isubn(Rl)},mo.prototype.iabs=function(){return this.negative=0,this},mo.prototype.abs=function(){return this.clone().iabs()},mo.prototype._ishlnsubmul=function(Rl,Qo,Jo){var rs=Rl.length+Jo,ps;this._expand(rs);var _c,$l=0;for(ps=0;ps<Rl.length;ps++){_c=(this.words[ps+Jo]|0)+$l;var El=(Rl.words[ps]|0)*Qo;_c-=El&67108863,$l=(_c>>26)-(El/67108864|0),this.words[ps+Jo]=_c&67108863}for(;ps<this.length-Jo;ps++)_c=(this.words[ps+Jo]|0)+$l,$l=_c>>26,this.words[ps+Jo]=_c&67108863;if($l===0)return this.strip();for(fo($l===-1),$l=0,ps=0;ps<this.length;ps++)_c=-(this.words[ps]|0)+$l,$l=_c>>26,this.words[ps]=_c&67108863;return this.negative=1,this.strip()},mo.prototype._wordDiv=function(Rl,Qo){var Jo=this.length-Rl.length,rs=this.clone(),ps=Rl,_c=ps.words[ps.length-1]|0,$l=this._countBits(_c);Jo=26-$l,Jo!==0&&(ps=ps.ushln(Jo),rs.iushln(Jo),_c=ps.words[ps.length-1]|0);var El=rs.length-ps.length,ds;if(Qo!=="mod"){ds=new mo(null),ds.length=El+1,ds.words=new Array(ds.length);for(var os=0;os<ds.length;os++)ds.words[os]=0}var Al=rs.clone()._ishlnsubmul(ps,1,El);Al.negative===0&&(rs=Al,ds&&(ds.words[El]=1));for(var Ul=El-1;Ul>=0;Ul--){var Zl=(rs.words[ps.length+Ul]|0)*67108864+(rs.words[ps.length+Ul-1]|0);for(Zl=Math.min(Zl/_c|0,67108863),rs._ishlnsubmul(ps,Zl,Ul);rs.negative!==0;)Zl--,rs.negative=0,rs._ishlnsubmul(ps,1,Ul),rs.isZero()||(rs.negative^=1);ds&&(ds.words[Ul]=Zl)}return ds&&ds.strip(),rs.strip(),Qo!=="div"&&Jo!==0&&rs.iushrn(Jo),{div:ds||null,mod:rs}},mo.prototype.divmod=function(Rl,Qo,Jo){if(fo(!Rl.isZero()),this.isZero())return{div:new mo(0),mod:new mo(0)};var rs,ps,_c;return this.negative!==0&&Rl.negative===0?(_c=this.neg().divmod(Rl,Qo),Qo!=="mod"&&(rs=_c.div.neg()),Qo!=="div"&&(ps=_c.mod.neg(),Jo&&ps.negative!==0&&ps.iadd(Rl)),{div:rs,mod:ps}):this.negative===0&&Rl.negative!==0?(_c=this.divmod(Rl.neg(),Qo),Qo!=="mod"&&(rs=_c.div.neg()),{div:rs,mod:_c.mod}):this.negative&Rl.negative?(_c=this.neg().divmod(Rl.neg(),Qo),Qo!=="div"&&(ps=_c.mod.neg(),Jo&&ps.negative!==0&&ps.isub(Rl)),{div:_c.div,mod:ps}):Rl.length>this.length||this.cmp(Rl)<0?{div:new mo(0),mod:this}:Rl.length===1?Qo==="div"?{div:this.divn(Rl.words[0]),mod:null}:Qo==="mod"?{div:null,mod:new mo(this.modn(Rl.words[0]))}:{div:this.divn(Rl.words[0]),mod:new mo(this.modn(Rl.words[0]))}:this._wordDiv(Rl,Qo)},mo.prototype.div=function(Rl){return this.divmod(Rl,"div",!1).div},mo.prototype.mod=function(Rl){return this.divmod(Rl,"mod",!1).mod},mo.prototype.umod=function(Rl){return this.divmod(Rl,"mod",!0).mod},mo.prototype.divRound=function(Rl){var Qo=this.divmod(Rl);if(Qo.mod.isZero())return Qo.div;var Jo=Qo.div.negative!==0?Qo.mod.isub(Rl):Qo.mod,rs=Rl.ushrn(1),ps=Rl.andln(1),_c=Jo.cmp(rs);return _c<0||ps===1&&_c===0?Qo.div:Qo.div.negative!==0?Qo.div.isubn(1):Qo.div.iaddn(1)},mo.prototype.modn=function(Rl){fo(Rl<=67108863);for(var Qo=(1<<26)%Rl,Jo=0,rs=this.length-1;rs>=0;rs--)Jo=(Qo*Jo+(this.words[rs]|0))%Rl;return Jo},mo.prototype.idivn=function(Rl){fo(Rl<=67108863);for(var Qo=0,Jo=this.length-1;Jo>=0;Jo--){var rs=(this.words[Jo]|0)+Qo*67108864;this.words[Jo]=rs/Rl|0,Qo=rs%Rl}return this.strip()},mo.prototype.divn=function(Rl){return this.clone().idivn(Rl)},mo.prototype.egcd=function(Rl){fo(Rl.negative===0),fo(!Rl.isZero());var Qo=this,Jo=Rl.clone();Qo.negative!==0?Qo=Qo.umod(Rl):Qo=Qo.clone();for(var rs=new mo(1),ps=new mo(0),_c=new mo(0),$l=new mo(1),El=0;Qo.isEven()&&Jo.isEven();)Qo.iushrn(1),Jo.iushrn(1),++El;for(var ds=Jo.clone(),os=Qo.clone();!Qo.isZero();){for(var Al=0,Ul=1;!(Qo.words[0]&Ul)&&Al<26;++Al,Ul<<=1);if(Al>0)for(Qo.iushrn(Al);Al-- >0;)(rs.isOdd()||ps.isOdd())&&(rs.iadd(ds),ps.isub(os)),rs.iushrn(1),ps.iushrn(1);for(var Zl=0,Pl=1;!(Jo.words[0]&Pl)&&Zl<26;++Zl,Pl<<=1);if(Zl>0)for(Jo.iushrn(Zl);Zl-- >0;)(_c.isOdd()||$l.isOdd())&&(_c.iadd(ds),$l.isub(os)),_c.iushrn(1),$l.iushrn(1);Qo.cmp(Jo)>=0?(Qo.isub(Jo),rs.isub(_c),ps.isub($l)):(Jo.isub(Qo),_c.isub(rs),$l.isub(ps))}return{a:_c,b:$l,gcd:Jo.iushln(El)}},mo.prototype._invmp=function(Rl){fo(Rl.negative===0),fo(!Rl.isZero());var Qo=this,Jo=Rl.clone();Qo.negative!==0?Qo=Qo.umod(Rl):Qo=Qo.clone();for(var rs=new mo(1),ps=new mo(0),_c=Jo.clone();Qo.cmpn(1)>0&&Jo.cmpn(1)>0;){for(var $l=0,El=1;!(Qo.words[0]&El)&&$l<26;++$l,El<<=1);if($l>0)for(Qo.iushrn($l);$l-- >0;)rs.isOdd()&&rs.iadd(_c),rs.iushrn(1);for(var ds=0,os=1;!(Jo.words[0]&os)&&ds<26;++ds,os<<=1);if(ds>0)for(Jo.iushrn(ds);ds-- >0;)ps.isOdd()&&ps.iadd(_c),ps.iushrn(1);Qo.cmp(Jo)>=0?(Qo.isub(Jo),rs.isub(ps)):(Jo.isub(Qo),ps.isub(rs))}var Al;return Qo.cmpn(1)===0?Al=rs:Al=ps,Al.cmpn(0)<0&&Al.iadd(Rl),Al},mo.prototype.gcd=function(Rl){if(this.isZero())return Rl.abs();if(Rl.isZero())return this.abs();var Qo=this.clone(),Jo=Rl.clone();Qo.negative=0,Jo.negative=0;for(var rs=0;Qo.isEven()&&Jo.isEven();rs++)Qo.iushrn(1),Jo.iushrn(1);do{for(;Qo.isEven();)Qo.iushrn(1);for(;Jo.isEven();)Jo.iushrn(1);var ps=Qo.cmp(Jo);if(ps<0){var _c=Qo;Qo=Jo,Jo=_c}else if(ps===0||Jo.cmpn(1)===0)break;Qo.isub(Jo)}while(!0);return Jo.iushln(rs)},mo.prototype.invm=function(Rl){return this.egcd(Rl).a.umod(Rl)},mo.prototype.isEven=function(){return(this.words[0]&1)===0},mo.prototype.isOdd=function(){return(this.words[0]&1)===1},mo.prototype.andln=function(Rl){return this.words[0]&Rl},mo.prototype.bincn=function(Rl){fo(typeof Rl=="number");var Qo=Rl%26,Jo=(Rl-Qo)/26,rs=1<<Qo;if(this.length<=Jo)return this._expand(Jo+1),this.words[Jo]|=rs,this;for(var ps=rs,_c=Jo;ps!==0&&_c<this.length;_c++){var $l=this.words[_c]|0;$l+=ps,ps=$l>>>26,$l&=67108863,this.words[_c]=$l}return ps!==0&&(this.words[_c]=ps,this.length++),this},mo.prototype.isZero=function(){return this.length===1&&this.words[0]===0},mo.prototype.cmpn=function(Rl){var Qo=Rl<0;if(this.negative!==0&&!Qo)return-1;if(this.negative===0&&Qo)return 1;this.strip();var Jo;if(this.length>1)Jo=1;else{Qo&&(Rl=-Rl),fo(Rl<=67108863,"Number is too big");var rs=this.words[0]|0;Jo=rs===Rl?0:rs<Rl?-1:1}return this.negative!==0?-Jo|0:Jo},mo.prototype.cmp=function(Rl){if(this.negative!==0&&Rl.negative===0)return-1;if(this.negative===0&&Rl.negative!==0)return 1;var Qo=this.ucmp(Rl);return this.negative!==0?-Qo|0:Qo},mo.prototype.ucmp=function(Rl){if(this.length>Rl.length)return 1;if(this.length<Rl.length)return-1;for(var Qo=0,Jo=this.length-1;Jo>=0;Jo--){var rs=this.words[Jo]|0,ps=Rl.words[Jo]|0;if(rs!==ps){rs<ps?Qo=-1:rs>ps&&(Qo=1);break}}return Qo},mo.prototype.gtn=function(Rl){return this.cmpn(Rl)===1},mo.prototype.gt=function(Rl){return this.cmp(Rl)===1},mo.prototype.gten=function(Rl){return this.cmpn(Rl)>=0},mo.prototype.gte=function(Rl){return this.cmp(Rl)>=0},mo.prototype.ltn=function(Rl){return this.cmpn(Rl)===-1},mo.prototype.lt=function(Rl){return this.cmp(Rl)===-1},mo.prototype.lten=function(Rl){return this.cmpn(Rl)<=0},mo.prototype.lte=function(Rl){return this.cmp(Rl)<=0},mo.prototype.eqn=function(Rl){return this.cmpn(Rl)===0},mo.prototype.eq=function(Rl){return this.cmp(Rl)===0},mo.red=function(Rl){return new Nl(Rl)},mo.prototype.toRed=function(Rl){return fo(!this.red,"Already a number in reduction context"),fo(this.negative===0,"red works only with positives"),Rl.convertTo(this)._forceRed(Rl)},mo.prototype.fromRed=function(){return fo(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},mo.prototype._forceRed=function(Rl){return this.red=Rl,this},mo.prototype.forceRed=function(Rl){return fo(!this.red,"Already a number in reduction context"),this._forceRed(Rl)},mo.prototype.redAdd=function(Rl){return fo(this.red,"redAdd works only with red numbers"),this.red.add(this,Rl)},mo.prototype.redIAdd=function(Rl){return fo(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Rl)},mo.prototype.redSub=function(Rl){return fo(this.red,"redSub works only with red numbers"),this.red.sub(this,Rl)},mo.prototype.redISub=function(Rl){return fo(this.red,"redISub works only with red numbers"),this.red.isub(this,Rl)},mo.prototype.redShl=function(Rl){return fo(this.red,"redShl works only with red numbers"),this.red.shl(this,Rl)},mo.prototype.redMul=function(Rl){return fo(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rl),this.red.mul(this,Rl)},mo.prototype.redIMul=function(Rl){return fo(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rl),this.red.imul(this,Rl)},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(Rl){return fo(this.red&&!Rl.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Rl)};var _l={k256:null,p224:null,p192:null,p25519:null};function xl(Dl,Rl){this.name=Dl,this.p=new mo(Rl,16),this.n=this.p.bitLength(),this.k=new mo(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}xl.prototype._tmp=function(){var Rl=new mo(null);return Rl.words=new Array(Math.ceil(this.n/13)),Rl},xl.prototype.ireduce=function(Rl){var Qo=Rl,Jo;do this.split(Qo,this.tmp),Qo=this.imulK(Qo),Qo=Qo.iadd(this.tmp),Jo=Qo.bitLength();while(Jo>this.n);var rs=Jo<this.n?-1:Qo.ucmp(this.p);return rs===0?(Qo.words[0]=0,Qo.length=1):rs>0?Qo.isub(this.p):Qo.strip!==void 0?Qo.strip():Qo._strip(),Qo},xl.prototype.split=function(Rl,Qo){Rl.iushrn(this.n,0,Qo)},xl.prototype.imulK=function(Rl){return Rl.imul(this.k)};function Il(){xl.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$o(Il,xl),Il.prototype.split=function(Rl,Qo){for(var Jo=4194303,rs=Math.min(Rl.length,9),ps=0;ps<rs;ps++)Qo.words[ps]=Rl.words[ps];if(Qo.length=rs,Rl.length<=9){Rl.words[0]=0,Rl.length=1;return}var _c=Rl.words[9];for(Qo.words[Qo.length++]=_c&Jo,ps=10;ps<Rl.length;ps++){var $l=Rl.words[ps]|0;Rl.words[ps-10]=($l&Jo)<<4|_c>>>22,_c=$l}_c>>>=22,Rl.words[ps-10]=_c,_c===0&&Rl.length>10?Rl.length-=10:Rl.length-=9},Il.prototype.imulK=function(Rl){Rl.words[Rl.length]=0,Rl.words[Rl.length+1]=0,Rl.length+=2;for(var Qo=0,Jo=0;Jo<Rl.length;Jo++){var rs=Rl.words[Jo]|0;Qo+=rs*977,Rl.words[Jo]=Qo&67108863,Qo=rs*64+(Qo/67108864|0)}return Rl.words[Rl.length-1]===0&&(Rl.length--,Rl.words[Rl.length-1]===0&&Rl.length--),Rl};function Ol(){xl.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$o(Ol,xl);function Tl(){xl.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$o(Tl,xl);function Cl(){xl.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$o(Cl,xl),Cl.prototype.imulK=function(Rl){for(var Qo=0,Jo=0;Jo<Rl.length;Jo++){var rs=(Rl.words[Jo]|0)*19+Qo,ps=rs&67108863;rs>>>=26,Rl.words[Jo]=ps,Qo=rs}return Qo!==0&&(Rl.words[Rl.length++]=Qo),Rl},mo._prime=function(Rl){if(_l[Rl])return _l[Rl];var Qo;if(Rl==="k256")Qo=new Il;else if(Rl==="p224")Qo=new Ol;else if(Rl==="p192")Qo=new Tl;else if(Rl==="p25519")Qo=new Cl;else throw new Error("Unknown prime "+Rl);return _l[Rl]=Qo,Qo};function Nl(Dl){if(typeof Dl=="string"){var Rl=mo._prime(Dl);this.m=Rl.p,this.prime=Rl}else fo(Dl.gtn(1),"modulus must be greater than 1"),this.m=Dl,this.prime=null}Nl.prototype._verify1=function(Rl){fo(Rl.negative===0,"red works only with positives"),fo(Rl.red,"red works only with red numbers")},Nl.prototype._verify2=function(Rl,Qo){fo((Rl.negative|Qo.negative)===0,"red works only with positives"),fo(Rl.red&&Rl.red===Qo.red,"red works only with red numbers")},Nl.prototype.imod=function(Rl){return this.prime?this.prime.ireduce(Rl)._forceRed(this):Rl.umod(this.m)._forceRed(this)},Nl.prototype.neg=function(Rl){return Rl.isZero()?Rl.clone():this.m.sub(Rl)._forceRed(this)},Nl.prototype.add=function(Rl,Qo){this._verify2(Rl,Qo);var Jo=Rl.add(Qo);return Jo.cmp(this.m)>=0&&Jo.isub(this.m),Jo._forceRed(this)},Nl.prototype.iadd=function(Rl,Qo){this._verify2(Rl,Qo);var Jo=Rl.iadd(Qo);return Jo.cmp(this.m)>=0&&Jo.isub(this.m),Jo},Nl.prototype.sub=function(Rl,Qo){this._verify2(Rl,Qo);var Jo=Rl.sub(Qo);return Jo.cmpn(0)<0&&Jo.iadd(this.m),Jo._forceRed(this)},Nl.prototype.isub=function(Rl,Qo){this._verify2(Rl,Qo);var Jo=Rl.isub(Qo);return Jo.cmpn(0)<0&&Jo.iadd(this.m),Jo},Nl.prototype.shl=function(Rl,Qo){return this._verify1(Rl),this.imod(Rl.ushln(Qo))},Nl.prototype.imul=function(Rl,Qo){return this._verify2(Rl,Qo),this.imod(Rl.imul(Qo))},Nl.prototype.mul=function(Rl,Qo){return this._verify2(Rl,Qo),this.imod(Rl.mul(Qo))},Nl.prototype.isqr=function(Rl){return this.imul(Rl,Rl.clone())},Nl.prototype.sqr=function(Rl){return this.mul(Rl,Rl)},Nl.prototype.sqrt=function(Rl){if(Rl.isZero())return Rl.clone();var Qo=this.m.andln(3);if(fo(Qo%2===1),Qo===3){var Jo=this.m.add(new mo(1)).iushrn(2);return this.pow(Rl,Jo)}for(var rs=this.m.subn(1),ps=0;!rs.isZero()&&rs.andln(1)===0;)ps++,rs.iushrn(1);fo(!rs.isZero());var _c=new mo(1).toRed(this),$l=_c.redNeg(),El=this.m.subn(1).iushrn(1),ds=this.m.bitLength();for(ds=new mo(2*ds*ds).toRed(this);this.pow(ds,El).cmp($l)!==0;)ds.redIAdd($l);for(var os=this.pow(ds,rs),Al=this.pow(Rl,rs.addn(1).iushrn(1)),Ul=this.pow(Rl,rs),Zl=ps;Ul.cmp(_c)!==0;){for(var Pl=Ul,Hl=0;Pl.cmp(_c)!==0;Hl++)Pl=Pl.redSqr();fo(Hl<Zl);var Ml=this.pow(os,new mo(1).iushln(Zl-Hl-1));Al=Al.redMul(Ml),os=Ml.redSqr(),Ul=Ul.redMul(os),Zl=Hl}return Al},Nl.prototype.invm=function(Rl){var Qo=Rl._invmp(this.m);return Qo.negative!==0?(Qo.negative=0,this.imod(Qo).redNeg()):this.imod(Qo)},Nl.prototype.pow=function(Rl,Qo){if(Qo.isZero())return new mo(1).toRed(this);if(Qo.cmpn(1)===0)return Rl.clone();var Jo=4,rs=new Array(1<<Jo);rs[0]=new mo(1).toRed(this),rs[1]=Rl;for(var ps=2;ps<rs.length;ps++)rs[ps]=this.mul(rs[ps-1],Rl);var _c=rs[0],$l=0,El=0,ds=Qo.bitLength()%26;for(ds===0&&(ds=26),ps=Qo.length-1;ps>=0;ps--){for(var os=Qo.words[ps],Al=ds-1;Al>=0;Al--){var Ul=os>>Al&1;if(_c!==rs[0]&&(_c=this.sqr(_c)),Ul===0&&$l===0){El=0;continue}$l<<=1,$l|=Ul,El++,!(El!==Jo&&(ps!==0||Al!==0))&&(_c=this.mul(_c,rs[$l]),El=0,$l=0)}ds=26}return _c},Nl.prototype.convertTo=function(Rl){var Qo=Rl.umod(this.m);return Qo===Rl?Qo.clone():Qo},Nl.prototype.convertFrom=function(Rl){var Qo=Rl.clone();return Qo.red=null,Qo},mo.mont=function(Rl){return new Wl(Rl)};function Wl(Dl){Nl.call(this,Dl),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(Wl,Nl),Wl.prototype.convertTo=function(Rl){return this.imod(Rl.ushln(this.shift))},Wl.prototype.convertFrom=function(Rl){var Qo=this.imod(Rl.mul(this.rinv));return Qo.red=null,Qo},Wl.prototype.imul=function(Rl,Qo){if(Rl.isZero()||Qo.isZero())return Rl.words[0]=0,Rl.length=1,Rl;var Jo=Rl.imul(Qo),rs=Jo.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ps=Jo.isub(rs).iushrn(this.shift),_c=ps;return ps.cmp(this.m)>=0?_c=ps.isub(this.m):ps.cmpn(0)<0&&(_c=ps.iadd(this.m)),_c._forceRed(this)},Wl.prototype.mul=function(Rl,Qo){if(Rl.isZero()||Qo.isZero())return new mo(0)._forceRed(this);var Jo=Rl.mul(Qo),rs=Jo.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ps=Jo.isub(rs).iushrn(this.shift),_c=ps;return ps.cmp(this.m)>=0?_c=ps.isub(this.m):ps.cmpn(0)<0&&(_c=ps.iadd(this.m)),_c._forceRed(this)},Wl.prototype.invm=function(Rl){var Qo=this.imod(Rl._invmp(this.m).mul(this.r2));return Qo._forceRed(this)}})(Mn,commonjsGlobal$c)})(bn$2);var bnExports$1=bn$2.exports,minimalisticAssert=assert$j;function assert$j(Mn,Fn){if(!Mn)throw new Error(Fn||"Assertion failed")}assert$j.equal=function(Fn,io,fo){if(Fn!=io)throw new Error(fo||"Assertion failed: "+Fn+" != "+io)};var utils$M={};(function(Mn){var Fn=Mn;function io(mo,Ao){if(Array.isArray(mo))return mo.slice();if(!mo)return[];var jo=[];if(typeof mo!="string"){for(var Lo=0;Lo<mo.length;Lo++)jo[Lo]=mo[Lo]|0;return jo}if(Ao==="hex"){mo=mo.replace(/[^a-z0-9]+/ig,""),mo.length%2!==0&&(mo="0"+mo);for(var Lo=0;Lo<mo.length;Lo+=2)jo.push(parseInt(mo[Lo]+mo[Lo+1],16))}else for(var Lo=0;Lo<mo.length;Lo++){var Ho=mo.charCodeAt(Lo),zo=Ho>>8,Go=Ho&255;zo?jo.push(zo,Go):jo.push(Go)}return jo}Fn.toArray=io;function fo(mo){return mo.length===1?"0"+mo:mo}Fn.zero2=fo;function $o(mo){for(var Ao="",jo=0;jo<mo.length;jo++)Ao+=fo(mo[jo].toString(16));return Ao}Fn.toHex=$o,Fn.encode=function(Ao,jo){return jo==="hex"?$o(Ao):Ao}})(utils$M);(function(Mn){var Fn=Mn,io=bnExports$1,fo=minimalisticAssert,$o=utils$M;Fn.assert=fo,Fn.toArray=$o.toArray,Fn.zero2=$o.zero2,Fn.toHex=$o.toHex,Fn.encode=$o.encode;function mo(zo,Go,Vo){var Yo=new Array(Math.max(zo.bitLength(),Vo)+1),Xo;for(Xo=0;Xo<Yo.length;Xo+=1)Yo[Xo]=0;var is=1<<Go+1,yl=zo.clone();for(Xo=0;Xo<Yo.length;Xo++){var us,hs=yl.andln(is-1);yl.isOdd()?(hs>(is>>1)-1?us=(is>>1)-hs:us=hs,yl.isubn(us)):us=0,Yo[Xo]=us,yl.iushrn(1)}return Yo}Fn.getNAF=mo;function Ao(zo,Go){var Vo=[[],[]];zo=zo.clone(),Go=Go.clone();for(var Yo=0,Xo=0,is;zo.cmpn(-Yo)>0||Go.cmpn(-Xo)>0;){var yl=zo.andln(3)+Yo&3,us=Go.andln(3)+Xo&3;yl===3&&(yl=-1),us===3&&(us=-1);var hs;yl&1?(is=zo.andln(7)+Yo&7,(is===3||is===5)&&us===2?hs=-yl:hs=yl):hs=0,Vo[0].push(hs);var _l;us&1?(is=Go.andln(7)+Xo&7,(is===3||is===5)&&yl===2?_l=-us:_l=us):_l=0,Vo[1].push(_l),2*Yo===hs+1&&(Yo=1-Yo),2*Xo===_l+1&&(Xo=1-Xo),zo.iushrn(1),Go.iushrn(1)}return Vo}Fn.getJSF=Ao;function jo(zo,Go,Vo){var Yo="_"+Go;zo.prototype[Go]=function(){return this[Yo]!==void 0?this[Yo]:this[Yo]=Vo.call(this)}}Fn.cachedProperty=jo;function Lo(zo){return typeof zo=="string"?Fn.toArray(zo,"hex"):zo}Fn.parseBytes=Lo;function Ho(zo){return new io(zo,"hex","le")}Fn.intFromLE=Ho})(utils$N);var brorand={exports:{}},cryptoBrowserify={},inherits_browser$1={exports:{}};typeof Object.create=="function"?inherits_browser$1.exports=function(Fn,io){io&&(Fn.super_=io,Fn.prototype=Object.create(io.prototype,{constructor:{value:Fn,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser$1.exports=function(Fn,io){if(io){Fn.super_=io;var fo=function(){};fo.prototype=io.prototype,Fn.prototype=new fo,Fn.prototype.constructor=Fn}};var inherits_browserExports$1=inherits_browser$1.exports,events={exports:{}},R$5=typeof Reflect=="object"?Reflect:null,ReflectApply=R$5&&typeof R$5.apply=="function"?R$5.apply:function(Fn,io,fo){return Function.prototype.apply.call(Fn,io,fo)},ReflectOwnKeys;R$5&&typeof R$5.ownKeys=="function"?ReflectOwnKeys=R$5.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(Fn){return Object.getOwnPropertyNames(Fn).concat(Object.getOwnPropertySymbols(Fn))}:ReflectOwnKeys=function(Fn){return Object.getOwnPropertyNames(Fn)};function ProcessEmitWarning(Mn){console&&console.warn&&console.warn(Mn)}var NumberIsNaN=Number.isNaN||function(Fn){return Fn!==Fn};function EventEmitter$2(){EventEmitter$2.init.call(this)}events.exports=EventEmitter$2;events.exports.once=once;EventEmitter$2.EventEmitter=EventEmitter$2;EventEmitter$2.prototype._events=void 0;EventEmitter$2.prototype._eventsCount=0;EventEmitter$2.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(Mn){if(typeof Mn!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Mn)}Object.defineProperty(EventEmitter$2,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(Mn){if(typeof Mn!="number"||Mn<0||NumberIsNaN(Mn))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Mn+".");defaultMaxListeners=Mn}});EventEmitter$2.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter$2.prototype.setMaxListeners=function(Fn){if(typeof Fn!="number"||Fn<0||NumberIsNaN(Fn))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Fn+".");return this._maxListeners=Fn,this};function _getMaxListeners(Mn){return Mn._maxListeners===void 0?EventEmitter$2.defaultMaxListeners:Mn._maxListeners}EventEmitter$2.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter$2.prototype.emit=function(Fn){for(var io=[],fo=1;fo<arguments.length;fo++)io.push(arguments[fo]);var $o=Fn==="error",mo=this._events;if(mo!==void 0)$o=$o&&mo.error===void 0;else if(!$o)return!1;if($o){var Ao;if(io.length>0&&(Ao=io[0]),Ao instanceof Error)throw Ao;var jo=new Error("Unhandled error."+(Ao?" ("+Ao.message+")":""));throw jo.context=Ao,jo}var Lo=mo[Fn];if(Lo===void 0)return!1;if(typeof Lo=="function")ReflectApply(Lo,this,io);else for(var Ho=Lo.length,zo=arrayClone(Lo,Ho),fo=0;fo<Ho;++fo)ReflectApply(zo[fo],this,io);return!0};function _addListener(Mn,Fn,io,fo){var $o,mo,Ao;if(checkListener(io),mo=Mn._events,mo===void 0?(mo=Mn._events=Object.create(null),Mn._eventsCount=0):(mo.newListener!==void 0&&(Mn.emit("newListener",Fn,io.listener?io.listener:io),mo=Mn._events),Ao=mo[Fn]),Ao===void 0)Ao=mo[Fn]=io,++Mn._eventsCount;else if(typeof Ao=="function"?Ao=mo[Fn]=fo?[io,Ao]:[Ao,io]:fo?Ao.unshift(io):Ao.push(io),$o=_getMaxListeners(Mn),$o>0&&Ao.length>$o&&!Ao.warned){Ao.warned=!0;var jo=new Error("Possible EventEmitter memory leak detected. "+Ao.length+" "+String(Fn)+" listeners added. Use emitter.setMaxListeners() to increase limit");jo.name="MaxListenersExceededWarning",jo.emitter=Mn,jo.type=Fn,jo.count=Ao.length,ProcessEmitWarning(jo)}return Mn}EventEmitter$2.prototype.addListener=function(Fn,io){return _addListener(this,Fn,io,!1)};EventEmitter$2.prototype.on=EventEmitter$2.prototype.addListener;EventEmitter$2.prototype.prependListener=function(Fn,io){return _addListener(this,Fn,io,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(Mn,Fn,io){var fo={fired:!1,wrapFn:void 0,target:Mn,type:Fn,listener:io},$o=onceWrapper.bind(fo);return $o.listener=io,fo.wrapFn=$o,$o}EventEmitter$2.prototype.once=function(Fn,io){return checkListener(io),this.on(Fn,_onceWrap(this,Fn,io)),this};EventEmitter$2.prototype.prependOnceListener=function(Fn,io){return checkListener(io),this.prependListener(Fn,_onceWrap(this,Fn,io)),this};EventEmitter$2.prototype.removeListener=function(Fn,io){var fo,$o,mo,Ao,jo;if(checkListener(io),$o=this._events,$o===void 0)return this;if(fo=$o[Fn],fo===void 0)return this;if(fo===io||fo.listener===io)--this._eventsCount===0?this._events=Object.create(null):(delete $o[Fn],$o.removeListener&&this.emit("removeListener",Fn,fo.listener||io));else if(typeof fo!="function"){for(mo=-1,Ao=fo.length-1;Ao>=0;Ao--)if(fo[Ao]===io||fo[Ao].listener===io){jo=fo[Ao].listener,mo=Ao;break}if(mo<0)return this;mo===0?fo.shift():spliceOne(fo,mo),fo.length===1&&($o[Fn]=fo[0]),$o.removeListener!==void 0&&this.emit("removeListener",Fn,jo||io)}return this};EventEmitter$2.prototype.off=EventEmitter$2.prototype.removeListener;EventEmitter$2.prototype.removeAllListeners=function(Fn){var io,fo,$o;if(fo=this._events,fo===void 0)return this;if(fo.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):fo[Fn]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete fo[Fn]),this;if(arguments.length===0){var mo=Object.keys(fo),Ao;for($o=0;$o<mo.length;++$o)Ao=mo[$o],Ao!=="removeListener"&&this.removeAllListeners(Ao);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(io=fo[Fn],typeof io=="function")this.removeListener(Fn,io);else if(io!==void 0)for($o=io.length-1;$o>=0;$o--)this.removeListener(Fn,io[$o]);return this};function _listeners(Mn,Fn,io){var fo=Mn._events;if(fo===void 0)return[];var $o=fo[Fn];return $o===void 0?[]:typeof $o=="function"?io?[$o.listener||$o]:[$o]:io?unwrapListeners($o):arrayClone($o,$o.length)}EventEmitter$2.prototype.listeners=function(Fn){return _listeners(this,Fn,!0)};EventEmitter$2.prototype.rawListeners=function(Fn){return _listeners(this,Fn,!1)};EventEmitter$2.listenerCount=function(Mn,Fn){return typeof Mn.listenerCount=="function"?Mn.listenerCount(Fn):listenerCount.call(Mn,Fn)};EventEmitter$2.prototype.listenerCount=listenerCount;function listenerCount(Mn){var Fn=this._events;if(Fn!==void 0){var io=Fn[Mn];if(typeof io=="function")return 1;if(io!==void 0)return io.length}return 0}EventEmitter$2.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(Mn,Fn){for(var io=new Array(Fn),fo=0;fo<Fn;++fo)io[fo]=Mn[fo];return io}function spliceOne(Mn,Fn){for(;Fn+1<Mn.length;Fn++)Mn[Fn]=Mn[Fn+1];Mn.pop()}function unwrapListeners(Mn){for(var Fn=new Array(Mn.length),io=0;io<Fn.length;++io)Fn[io]=Mn[io].listener||Mn[io];return Fn}function once(Mn,Fn){return new Promise(function(io,fo){function $o(Ao){Mn.removeListener(Fn,mo),fo(Ao)}function mo(){typeof Mn.removeListener=="function"&&Mn.removeListener("error",$o),io([].slice.call(arguments))}eventTargetAgnosticAddListener(Mn,Fn,mo,{once:!0}),Fn!=="error"&&addErrorHandlerIfEventEmitter(Mn,$o,{once:!0})})}function addErrorHandlerIfEventEmitter(Mn,Fn,io){typeof Mn.on=="function"&&eventTargetAgnosticAddListener(Mn,"error",Fn,io)}function eventTargetAgnosticAddListener(Mn,Fn,io,fo){if(typeof Mn.on=="function")fo.once?Mn.once(Fn,io):Mn.on(Fn,io);else if(typeof Mn.addEventListener=="function")Mn.addEventListener(Fn,function $o(mo){fo.once&&Mn.removeEventListener(Fn,$o),io(mo)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Mn)}var eventsExports=events.exports;const EventEmitter$3=getDefaultExportFromCjs$1(eventsExports);var streamBrowser$1,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser$1=eventsExports.EventEmitter),streamBrowser$1}var util$5={},types$7={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var Fn={},io=Symbol("test"),fo=Object(io);if(typeof io=="string"||Object.prototype.toString.call(io)!=="[object Symbol]"||Object.prototype.toString.call(fo)!=="[object Symbol]")return!1;var $o=42;Fn[io]=$o;for(io in Fn)return!1;if(typeof Object.keys=="function"&&Object.keys(Fn).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(Fn).length!==0)return!1;var mo=Object.getOwnPropertySymbols(Fn);if(mo.length!==1||mo[0]!==io||!Object.prototype.propertyIsEnumerable.call(Fn,io))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var Ao=Object.getOwnPropertyDescriptor(Fn,io);if(Ao.value!==$o||Ao.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esErrors=Error,_eval=EvalError,range$1=RangeError,ref$1=ReferenceError,syntax=SyntaxError,type=TypeError,uri=URIError,origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test$9={__proto__:null,foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test$9}.foo===test$9.foo&&!(test$9 instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max$c=Math.max,funcType="[object Function]",concatty=function(Fn,io){for(var fo=[],$o=0;$o<Fn.length;$o+=1)fo[$o]=Fn[$o];for(var mo=0;mo<io.length;mo+=1)fo[mo+Fn.length]=io[mo];return fo},slicy=function(Fn,io){for(var fo=[],$o=io,mo=0;$o<Fn.length;$o+=1,mo+=1)fo[mo]=Fn[$o];return fo},joiny=function(Mn,Fn){for(var io="",fo=0;fo<Mn.length;fo+=1)io+=Mn[fo],fo+1<Mn.length&&(io+=Fn);return io},implementation$1=function(Fn){var io=this;if(typeof io!="function"||toStr$4.apply(io)!==funcType)throw new TypeError(ERROR_MESSAGE+io);for(var fo=slicy(arguments,1),$o,mo=function(){if(this instanceof $o){var zo=io.apply(this,concatty(fo,arguments));return Object(zo)===zo?zo:this}return io.apply(Fn,concatty(fo,arguments))},Ao=max$c(0,io.length-fo.length),jo=[],Lo=0;Lo<Ao;Lo++)jo[Lo]="$"+Lo;if($o=Function("binder","return function ("+joiny(jo,",")+"){ return binder.apply(this,arguments); }")(mo),io.prototype){var Ho=function(){};Ho.prototype=io.prototype,$o.prototype=new Ho,Ho.prototype=null}return $o},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,call$1=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$f=functionBind,hasown=bind$f.call(call$1,$hasOwn),undefined$1,$Error=esErrors,$EvalError=_eval,$RangeError=range$1,$ReferenceError=ref$1,$SyntaxError$1=syntax,$TypeError$3=type,$URIError=uri,$Function=Function,getEvalledConstructor=function(Mn){try{return $Function('"use strict"; return ('+Mn+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto$1=Object.getPrototypeOf||(hasProto?function(Mn){return Mn.__proto__}:null),needsEval={},TypedArray$4=typeof Uint8Array>"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray$4,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(Mn){var errorProto=getProto$1(getProto$1(Mn));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function Mn(Fn){var io;if(Fn==="%AsyncFunction%")io=getEvalledConstructor("async function () {}");else if(Fn==="%GeneratorFunction%")io=getEvalledConstructor("function* () {}");else if(Fn==="%AsyncGeneratorFunction%")io=getEvalledConstructor("async function* () {}");else if(Fn==="%AsyncGenerator%"){var fo=Mn("%AsyncGeneratorFunction%");fo&&(io=fo.prototype)}else if(Fn==="%AsyncIteratorPrototype%"){var $o=Mn("%AsyncGenerator%");$o&&getProto$1&&(io=getProto$1($o.prototype))}return INTRINSICS[Fn]=io,io},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$e=functionBind,hasOwn$2=hasown,$concat$1=bind$e.call(Function.call,Array.prototype.concat),$spliceApply=bind$e.call(Function.apply,Array.prototype.splice),$replace$1=bind$e.call(Function.call,String.prototype.replace),$strSlice=bind$e.call(Function.call,String.prototype.slice),$exec=bind$e.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(Fn){var io=$strSlice(Fn,0,1),fo=$strSlice(Fn,-1);if(io==="%"&&fo!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(fo==="%"&&io!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var $o=[];return $replace$1(Fn,rePropName,function(mo,Ao,jo,Lo){$o[$o.length]=jo?$replace$1(Lo,reEscapeChar,"$1"):Ao||mo}),$o},getBaseIntrinsic=function(Fn,io){var fo=Fn,$o;if(hasOwn$2(LEGACY_ALIASES,fo)&&($o=LEGACY_ALIASES[fo],fo="%"+$o[0]+"%"),hasOwn$2(INTRINSICS,fo)){var mo=INTRINSICS[fo];if(mo===needsEval&&(mo=doEval(fo)),typeof mo>"u"&&!io)throw new $TypeError$3("intrinsic "+Fn+" exists, but is not available. Please file an issue!");return{alias:$o,name:fo,value:mo}}throw new $SyntaxError$1("intrinsic "+Fn+" does not exist!")},getIntrinsic=function(Fn,io){if(typeof Fn!="string"||Fn.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof io!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,Fn)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var fo=stringToPath(Fn),$o=fo.length>0?fo[0]:"",mo=getBaseIntrinsic("%"+$o+"%",io),Ao=mo.name,jo=mo.value,Lo=!1,Ho=mo.alias;Ho&&($o=Ho[0],$spliceApply(fo,$concat$1([0,1],Ho)));for(var zo=1,Go=!0;zo<fo.length;zo+=1){var Vo=fo[zo],Yo=$strSlice(Vo,0,1),Xo=$strSlice(Vo,-1);if((Yo==='"'||Yo==="'"||Yo==="`"||Xo==='"'||Xo==="'"||Xo==="`")&&Yo!==Xo)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((Vo==="constructor"||!Go)&&(Lo=!0),$o+="."+Vo,Ao="%"+$o+"%",hasOwn$2(INTRINSICS,Ao))jo=INTRINSICS[Ao];else if(jo!=null){if(!(Vo in jo)){if(!io)throw new $TypeError$3("base intrinsic for "+Fn+" exists, but the property is not available.");return}if($gOPD$1&&zo+1>=fo.length){var is=$gOPD$1(jo,Vo);Go=!!is,Go&&"get"in is&&!("originalValue"in is.get)?jo=is.get:jo=jo[Vo]}else Go=hasOwn$2(jo,Vo),jo=jo[Vo];Go&&!Lo&&(INTRINSICS[Ao]=jo)}}return jo},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var Mn=getIntrinsic,Fn=Mn("%Object.defineProperty%",!0)||!1;if(Fn)try{Fn({},"a",{value:1})}catch{Fn=!1}return esDefineProperty=Fn,esDefineProperty}var GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$2=type,gopd=gopd$1,defineDataProperty=function(Fn,io,fo){if(!Fn||typeof Fn!="object"&&typeof Fn!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof io!="string"&&typeof io!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var $o=arguments.length>3?arguments[3]:null,mo=arguments.length>4?arguments[4]:null,Ao=arguments.length>5?arguments[5]:null,jo=arguments.length>6?arguments[6]:!1,Lo=!!gopd&&gopd(Fn,io);if($defineProperty$1)$defineProperty$1(Fn,io,{configurable:Ao===null&&Lo?Lo.configurable:!Ao,enumerable:$o===null&&Lo?Lo.enumerable:!$o,value:fo,writable:mo===null&&Lo?Lo.writable:!mo});else if(jo||!$o&&!mo&&!Ao)Fn[io]=fo;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError$1=type,$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(Fn,io){if(typeof Fn!="function")throw new $TypeError$1("`fn` is not a function");if(typeof io!="number"||io<0||io>4294967295||$floor$1(io)!==io)throw new $TypeError$1("`length` must be a positive 32-bit integer");var fo=arguments.length>2&&!!arguments[2],$o=!0,mo=!0;if("length"in Fn&&gOPD$1){var Ao=gOPD$1(Fn,"length");Ao&&!Ao.configurable&&($o=!1),Ao&&!Ao.writable&&(mo=!1)}return($o||mo||!fo)&&(hasDescriptors?define(Fn,"length",io,!0,!0):define(Fn,"length",io)),Fn};(function(Mn){var Fn=functionBind,io=getIntrinsic,fo=setFunctionLength,$o=type,mo=io("%Function.prototype.apply%"),Ao=io("%Function.prototype.call%"),jo=io("%Reflect.apply%",!0)||Fn.call(Ao,mo),Lo=requireEsDefineProperty(),Ho=io("%Math.max%");Mn.exports=function(Vo){if(typeof Vo!="function")throw new $o("a function is required");var Yo=jo(Fn,Ao,arguments);return fo(Yo,1+Ho(0,Vo.length-(arguments.length-1)),!0)};var zo=function(){return jo(Fn,mo,arguments)};Lo?Lo(Mn.exports,"apply",{value:zo}):Mn.exports.apply=zo})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic$1=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic$1("String.prototype.indexOf")),callBound$3=function(Fn,io){var fo=GetIntrinsic$1(Fn,!!io);return typeof fo=="function"&&$indexOf$1(Fn,".prototype.")>-1?callBind$1(fo):fo},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(Fn){return hasToStringTag$3&&Fn&&typeof Fn=="object"&&Symbol.toStringTag in Fn?!1:$toString$1(Fn)==="[object Arguments]"},isLegacyArguments=function(Fn){return isStandardArguments(Fn)?!0:Fn!==null&&typeof Fn=="object"&&typeof Fn.length=="number"&&Fn.length>=0&&$toString$1(Fn)!=="[object Array]"&&$toString$1(Fn.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(Fn){if(typeof Fn!="function")return!1;if(isFnRegex.test(fnToStr$1.call(Fn)))return!0;if(!hasToStringTag$2){var io=toStr$3.call(Fn);return io==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var fo=getGeneratorFunc();GeneratorFunction=fo?getProto(fo):!1}return getProto(Fn)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(Mn){Mn!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(Fn){try{var io=fnToStr.call(Fn);return constructorRegex.test(io)}catch{return!1}},tryFunctionObject=function(Fn){try{return isES6ClassFn(Fn)?!1:(fnToStr.call(Fn),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(Fn){if((isIE68||!Fn)&&(typeof Fn>"u"||typeof Fn=="object"))try{var io=toStr$2.call(Fn);return(io===ddaClass||io===ddaClass2||io===ddaClass3||io===objectClass)&&Fn("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(Fn){if(isDDA(Fn))return!0;if(!Fn||typeof Fn!="function"&&typeof Fn!="object")return!1;try{reflectApply(Fn,null,badArrayLike)}catch(io){if(io!==isCallableMarker)return!1}return!isES6ClassFn(Fn)&&tryFunctionObject(Fn)}:function(Fn){if(isDDA(Fn))return!0;if(!Fn||typeof Fn!="function"&&typeof Fn!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(Fn);if(isES6ClassFn(Fn))return!1;var io=toStr$2.call(Fn);return io!==fnClass&&io!==genClass&&!/^\[object HTML/.test(io)?!1:tryFunctionObject(Fn)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$d=Object.prototype.hasOwnProperty,forEachArray=function(Fn,io,fo){for(var $o=0,mo=Fn.length;$o<mo;$o++)hasOwnProperty$d.call(Fn,$o)&&(fo==null?io(Fn[$o],$o,Fn):io.call(fo,Fn[$o],$o,Fn))},forEachString=function(Fn,io,fo){for(var $o=0,mo=Fn.length;$o<mo;$o++)fo==null?io(Fn.charAt($o),$o,Fn):io.call(fo,Fn.charAt($o),$o,Fn)},forEachObject=function(Fn,io,fo){for(var $o in Fn)hasOwnProperty$d.call(Fn,$o)&&(fo==null?io(Fn[$o],$o,Fn):io.call(fo,Fn[$o],$o,Fn))},forEach$4=function(Fn,io,fo){if(!isCallable(io))throw new TypeError("iterator must be a function");var $o;arguments.length>=3&&($o=fo),toStr$1.call(Fn)==="[object Array]"?forEachArray(Fn,io,$o):typeof Fn=="string"?forEachString(Fn,io,$o):forEachObject(Fn,io,$o)},forEach_1=forEach$4,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$7=typeof globalThis>"u"?commonjsGlobal$c:globalThis,availableTypedArrays$1=function(){for(var Fn=[],io=0;io<possibleNames.length;io++)typeof g$7[possibleNames[io]]=="function"&&(Fn[Fn.length]=possibleNames[io]);return Fn},forEach$3=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound$1=callBound$3,gOPD=gopd$1,$toString=callBound$1("Object.prototype.toString"),hasToStringTag=shams(),g$6=typeof globalThis>"u"?commonjsGlobal$c:globalThis,typedArrays=availableTypedArrays(),$slice$4=callBound$1("String.prototype.slice"),getPrototypeOf$c=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(Fn,io){for(var fo=0;fo<Fn.length;fo+=1)if(Fn[fo]===io)return fo;return-1},cache$4={__proto__:null};hasToStringTag&&gOPD&&getPrototypeOf$c?forEach$3(typedArrays,function(Mn){var Fn=new g$6[Mn];if(Symbol.toStringTag in Fn){var io=getPrototypeOf$c(Fn),fo=gOPD(io,Symbol.toStringTag);if(!fo){var $o=getPrototypeOf$c(io);fo=gOPD($o,Symbol.toStringTag)}cache$4["$"+Mn]=callBind(fo.get)}}):forEach$3(typedArrays,function(Mn){var Fn=new g$6[Mn],io=Fn.slice||Fn.set;io&&(cache$4["$"+Mn]=callBind(io))});var tryTypedArrays=function(Fn){var io=!1;return forEach$3(cache$4,function(fo,$o){if(!io)try{"$"+fo(Fn)===$o&&(io=$slice$4($o,1))}catch{}}),io},trySlices=function(Fn){var io=!1;return forEach$3(cache$4,function(fo,$o){if(!io)try{fo(Fn),io=$slice$4($o,1)}catch{}}),io},whichTypedArray$1=function(Fn){if(!Fn||typeof Fn!="object")return!1;if(!hasToStringTag){var io=$slice$4($toString(Fn),8,-1);return $indexOf(typedArrays,io)>-1?io:io!=="Object"?!1:trySlices(Fn)}return gOPD?tryTypedArrays(Fn):null},whichTypedArray=whichTypedArray$1,isTypedArray$4=function(Fn){return!!whichTypedArray(Fn)};(function(Mn){var Fn=isArguments,io=isGeneratorFunction,fo=whichTypedArray$1,$o=isTypedArray$4;function mo(ip){return ip.call.bind(ip)}var Ao=typeof BigInt<"u",jo=typeof Symbol<"u",Lo=mo(Object.prototype.toString),Ho=mo(Number.prototype.valueOf),zo=mo(String.prototype.valueOf),Go=mo(Boolean.prototype.valueOf);if(Ao)var Vo=mo(BigInt.prototype.valueOf);if(jo)var Yo=mo(Symbol.prototype.valueOf);function Xo(ip,up){if(typeof ip!="object")return!1;try{return up(ip),!0}catch{return!1}}Mn.isArgumentsObject=Fn,Mn.isGeneratorFunction=io,Mn.isTypedArray=$o;function is(ip){return typeof Promise<"u"&&ip instanceof Promise||ip!==null&&typeof ip=="object"&&typeof ip.then=="function"&&typeof ip.catch=="function"}Mn.isPromise=is;function yl(ip){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ip):$o(ip)||Ul(ip)}Mn.isArrayBufferView=yl;function us(ip){return fo(ip)==="Uint8Array"}Mn.isUint8Array=us;function hs(ip){return fo(ip)==="Uint8ClampedArray"}Mn.isUint8ClampedArray=hs;function _l(ip){return fo(ip)==="Uint16Array"}Mn.isUint16Array=_l;function xl(ip){return fo(ip)==="Uint32Array"}Mn.isUint32Array=xl;function Il(ip){return fo(ip)==="Int8Array"}Mn.isInt8Array=Il;function Ol(ip){return fo(ip)==="Int16Array"}Mn.isInt16Array=Ol;function Tl(ip){return fo(ip)==="Int32Array"}Mn.isInt32Array=Tl;function Cl(ip){return fo(ip)==="Float32Array"}Mn.isFloat32Array=Cl;function Nl(ip){return fo(ip)==="Float64Array"}Mn.isFloat64Array=Nl;function Wl(ip){return fo(ip)==="BigInt64Array"}Mn.isBigInt64Array=Wl;function Dl(ip){return fo(ip)==="BigUint64Array"}Mn.isBigUint64Array=Dl;function Rl(ip){return Lo(ip)==="[object Map]"}Rl.working=typeof Map<"u"&&Rl(new Map);function Qo(ip){return typeof Map>"u"?!1:Rl.working?Rl(ip):ip instanceof Map}Mn.isMap=Qo;function Jo(ip){return Lo(ip)==="[object Set]"}Jo.working=typeof Set<"u"&&Jo(new Set);function rs(ip){return typeof Set>"u"?!1:Jo.working?Jo(ip):ip instanceof Set}Mn.isSet=rs;function ps(ip){return Lo(ip)==="[object WeakMap]"}ps.working=typeof WeakMap<"u"&&ps(new WeakMap);function _c(ip){return typeof WeakMap>"u"?!1:ps.working?ps(ip):ip instanceof WeakMap}Mn.isWeakMap=_c;function $l(ip){return Lo(ip)==="[object WeakSet]"}$l.working=typeof WeakSet<"u"&&$l(new WeakSet);function El(ip){return $l(ip)}Mn.isWeakSet=El;function ds(ip){return Lo(ip)==="[object ArrayBuffer]"}ds.working=typeof ArrayBuffer<"u"&&ds(new ArrayBuffer);function os(ip){return typeof ArrayBuffer>"u"?!1:ds.working?ds(ip):ip instanceof ArrayBuffer}Mn.isArrayBuffer=os;function Al(ip){return Lo(ip)==="[object DataView]"}Al.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Al(new DataView(new ArrayBuffer(1),0,1));function Ul(ip){return typeof DataView>"u"?!1:Al.working?Al(ip):ip instanceof DataView}Mn.isDataView=Ul;var Zl=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Pl(ip){return Lo(ip)==="[object SharedArrayBuffer]"}function Hl(ip){return typeof Zl>"u"?!1:(typeof Pl.working>"u"&&(Pl.working=Pl(new Zl)),Pl.working?Pl(ip):ip instanceof Zl)}Mn.isSharedArrayBuffer=Hl;function Ml(ip){return Lo(ip)==="[object AsyncFunction]"}Mn.isAsyncFunction=Ml;function Fl(ip){return Lo(ip)==="[object Map Iterator]"}Mn.isMapIterator=Fl;function Yl(ip){return Lo(ip)==="[object Set Iterator]"}Mn.isSetIterator=Yl;function Bl(ip){return Lo(ip)==="[object Generator]"}Mn.isGeneratorObject=Bl;function Kl(ip){return Lo(ip)==="[object WebAssembly.Module]"}Mn.isWebAssemblyCompiledModule=Kl;function Gl(ip){return Xo(ip,Ho)}Mn.isNumberObject=Gl;function fu(ip){return Xo(ip,zo)}Mn.isStringObject=fu;function bu(ip){return Xo(ip,Go)}Mn.isBooleanObject=bu;function rp(ip){return Ao&&Xo(ip,Vo)}Mn.isBigIntObject=rp;function tp(ip){return jo&&Xo(ip,Yo)}Mn.isSymbolObject=tp;function op(ip){return Gl(ip)||fu(ip)||bu(ip)||rp(ip)||tp(ip)}Mn.isBoxedPrimitive=op;function vp(ip){return typeof Uint8Array<"u"&&(os(ip)||Hl(ip))}Mn.isAnyArrayBuffer=vp,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ip){Object.defineProperty(Mn,ip,{enumerable:!1,value:function(){throw new Error(ip+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(Fn){return Fn&&typeof Fn=="object"&&typeof Fn.copy=="function"&&typeof Fn.fill=="function"&&typeof Fn.readUInt8=="function"};(function(Mn){var Fn={},io=Object.getOwnPropertyDescriptors||function(Zl){for(var Pl=Object.keys(Zl),Hl={},Ml=0;Ml<Pl.length;Ml++)Hl[Pl[Ml]]=Object.getOwnPropertyDescriptor(Zl,Pl[Ml]);return Hl},fo=/%[sdj%]/g;Mn.format=function(Ul){if(!Ol(Ul)){for(var Zl=[],Pl=0;Pl<arguments.length;Pl++)Zl.push(jo(arguments[Pl]));return Zl.join(" ")}for(var Pl=1,Hl=arguments,Ml=Hl.length,Fl=String(Ul).replace(fo,function(Bl){if(Bl==="%%")return"%";if(Pl>=Ml)return Bl;switch(Bl){case"%s":return String(Hl[Pl++]);case"%d":return Number(Hl[Pl++]);case"%j":try{return JSON.stringify(Hl[Pl++])}catch{return"[Circular]"}default:return Bl}}),Yl=Hl[Pl];Pl<Ml;Yl=Hl[++Pl])_l(Yl)||!Wl(Yl)?Fl+=" "+Yl:Fl+=" "+jo(Yl);return Fl},Mn.deprecate=function(Ul,Zl){if(typeof process$1$7<"u"&&process$1$7.noDeprecation===!0)return Ul;if(typeof process$1$7>"u")return function(){return Mn.deprecate(Ul,Zl).apply(this,arguments)};var Pl=!1;function Hl(){if(!Pl){if(process$1$7.throwDeprecation)throw new Error(Zl);process$1$7.traceDeprecation?console.trace(Zl):console.error(Zl),Pl=!0}return Ul.apply(this,arguments)}return Hl};var $o={},mo=/^$/;if(Fn.NODE_DEBUG){var Ao=Fn.NODE_DEBUG;Ao=Ao.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),mo=new RegExp("^"+Ao+"$","i")}Mn.debuglog=function(Ul){if(Ul=Ul.toUpperCase(),!$o[Ul])if(mo.test(Ul)){var Zl=process$1$7.pid;$o[Ul]=function(){var Pl=Mn.format.apply(Mn,arguments);console.error("%s %d: %s",Ul,Zl,Pl)}}else $o[Ul]=function(){};return $o[Ul]};function jo(Ul,Zl){var Pl={seen:[],stylize:Ho};return arguments.length>=3&&(Pl.depth=arguments[2]),arguments.length>=4&&(Pl.colors=arguments[3]),hs(Zl)?Pl.showHidden=Zl:Zl&&Mn._extend(Pl,Zl),Cl(Pl.showHidden)&&(Pl.showHidden=!1),Cl(Pl.depth)&&(Pl.depth=2),Cl(Pl.colors)&&(Pl.colors=!1),Cl(Pl.customInspect)&&(Pl.customInspect=!0),Pl.colors&&(Pl.stylize=Lo),Go(Pl,Ul,Pl.depth)}Mn.inspect=jo,jo.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},jo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Lo(Ul,Zl){var Pl=jo.styles[Zl];return Pl?"\x1B["+jo.colors[Pl][0]+"m"+Ul+"\x1B["+jo.colors[Pl][1]+"m":Ul}function Ho(Ul,Zl){return Ul}function zo(Ul){var Zl={};return Ul.forEach(function(Pl,Hl){Zl[Pl]=!0}),Zl}function Go(Ul,Zl,Pl){if(Ul.customInspect&&Zl&&Qo(Zl.inspect)&&Zl.inspect!==Mn.inspect&&!(Zl.constructor&&Zl.constructor.prototype===Zl)){var Hl=Zl.inspect(Pl,Ul);return Ol(Hl)||(Hl=Go(Ul,Hl,Pl)),Hl}var Ml=Vo(Ul,Zl);if(Ml)return Ml;var Fl=Object.keys(Zl),Yl=zo(Fl);if(Ul.showHidden&&(Fl=Object.getOwnPropertyNames(Zl)),Rl(Zl)&&(Fl.indexOf("message")>=0||Fl.indexOf("description")>=0))return Yo(Zl);if(Fl.length===0){if(Qo(Zl)){var Bl=Zl.name?": "+Zl.name:"";return Ul.stylize("[Function"+Bl+"]","special")}if(Nl(Zl))return Ul.stylize(RegExp.prototype.toString.call(Zl),"regexp");if(Dl(Zl))return Ul.stylize(Date.prototype.toString.call(Zl),"date");if(Rl(Zl))return Yo(Zl)}var Kl="",Gl=!1,fu=["{","}"];if(us(Zl)&&(Gl=!0,fu=["[","]"]),Qo(Zl)){var bu=Zl.name?": "+Zl.name:"";Kl=" [Function"+bu+"]"}if(Nl(Zl)&&(Kl=" "+RegExp.prototype.toString.call(Zl)),Dl(Zl)&&(Kl=" "+Date.prototype.toUTCString.call(Zl)),Rl(Zl)&&(Kl=" "+Yo(Zl)),Fl.length===0&&(!Gl||Zl.length==0))return fu[0]+Kl+fu[1];if(Pl<0)return Nl(Zl)?Ul.stylize(RegExp.prototype.toString.call(Zl),"regexp"):Ul.stylize("[Object]","special");Ul.seen.push(Zl);var rp;return Gl?rp=Xo(Ul,Zl,Pl,Yl,Fl):rp=Fl.map(function(tp){return is(Ul,Zl,Pl,Yl,tp,Gl)}),Ul.seen.pop(),yl(rp,Kl,fu)}function Vo(Ul,Zl){if(Cl(Zl))return Ul.stylize("undefined","undefined");if(Ol(Zl)){var Pl="'"+JSON.stringify(Zl).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ul.stylize(Pl,"string")}if(Il(Zl))return Ul.stylize(""+Zl,"number");if(hs(Zl))return Ul.stylize(""+Zl,"boolean");if(_l(Zl))return Ul.stylize("null","null")}function Yo(Ul){return"["+Error.prototype.toString.call(Ul)+"]"}function Xo(Ul,Zl,Pl,Hl,Ml){for(var Fl=[],Yl=0,Bl=Zl.length;Yl<Bl;++Yl)El(Zl,String(Yl))?Fl.push(is(Ul,Zl,Pl,Hl,String(Yl),!0)):Fl.push("");return Ml.forEach(function(Kl){Kl.match(/^\d+$/)||Fl.push(is(Ul,Zl,Pl,Hl,Kl,!0))}),Fl}function is(Ul,Zl,Pl,Hl,Ml,Fl){var Yl,Bl,Kl;if(Kl=Object.getOwnPropertyDescriptor(Zl,Ml)||{value:Zl[Ml]},Kl.get?Kl.set?Bl=Ul.stylize("[Getter/Setter]","special"):Bl=Ul.stylize("[Getter]","special"):Kl.set&&(Bl=Ul.stylize("[Setter]","special")),El(Hl,Ml)||(Yl="["+Ml+"]"),Bl||(Ul.seen.indexOf(Kl.value)<0?(_l(Pl)?Bl=Go(Ul,Kl.value,null):Bl=Go(Ul,Kl.value,Pl-1),Bl.indexOf(`
`)>-1&&(Fl?Bl=Bl.split(`
`).map(function(Gl){return" "+Gl}).join(`
`).slice(2):Bl=`
`+Bl.split(`
`).map(function(Gl){return" "+Gl}).join(`
`))):Bl=Ul.stylize("[Circular]","special")),Cl(Yl)){if(Fl&&Ml.match(/^\d+$/))return Bl;Yl=JSON.stringify(""+Ml),Yl.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Yl=Yl.slice(1,-1),Yl=Ul.stylize(Yl,"name")):(Yl=Yl.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Yl=Ul.stylize(Yl,"string"))}return Yl+": "+Bl}function yl(Ul,Zl,Pl){var Hl=Ul.reduce(function(Ml,Fl){return Fl.indexOf(`
`)>=0,Ml+Fl.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Hl>60?Pl[0]+(Zl===""?"":Zl+`
`)+" "+Ul.join(`,
`)+" "+Pl[1]:Pl[0]+Zl+" "+Ul.join(", ")+" "+Pl[1]}Mn.types=types$7;function us(Ul){return Array.isArray(Ul)}Mn.isArray=us;function hs(Ul){return typeof Ul=="boolean"}Mn.isBoolean=hs;function _l(Ul){return Ul===null}Mn.isNull=_l;function xl(Ul){return Ul==null}Mn.isNullOrUndefined=xl;function Il(Ul){return typeof Ul=="number"}Mn.isNumber=Il;function Ol(Ul){return typeof Ul=="string"}Mn.isString=Ol;function Tl(Ul){return typeof Ul=="symbol"}Mn.isSymbol=Tl;function Cl(Ul){return Ul===void 0}Mn.isUndefined=Cl;function Nl(Ul){return Wl(Ul)&&rs(Ul)==="[object RegExp]"}Mn.isRegExp=Nl,Mn.types.isRegExp=Nl;function Wl(Ul){return typeof Ul=="object"&&Ul!==null}Mn.isObject=Wl;function Dl(Ul){return Wl(Ul)&&rs(Ul)==="[object Date]"}Mn.isDate=Dl,Mn.types.isDate=Dl;function Rl(Ul){return Wl(Ul)&&(rs(Ul)==="[object Error]"||Ul instanceof Error)}Mn.isError=Rl,Mn.types.isNativeError=Rl;function Qo(Ul){return typeof Ul=="function"}Mn.isFunction=Qo;function Jo(Ul){return Ul===null||typeof Ul=="boolean"||typeof Ul=="number"||typeof Ul=="string"||typeof Ul=="symbol"||typeof Ul>"u"}Mn.isPrimitive=Jo,Mn.isBuffer=isBufferBrowser;function rs(Ul){return Object.prototype.toString.call(Ul)}function ps(Ul){return Ul<10?"0"+Ul.toString(10):Ul.toString(10)}var _c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $l(){var Ul=new Date,Zl=[ps(Ul.getHours()),ps(Ul.getMinutes()),ps(Ul.getSeconds())].join(":");return[Ul.getDate(),_c[Ul.getMonth()],Zl].join(" ")}Mn.log=function(){console.log("%s - %s",$l(),Mn.format.apply(Mn,arguments))},Mn.inherits=inherits_browserExports$1,Mn._extend=function(Ul,Zl){if(!Zl||!Wl(Zl))return Ul;for(var Pl=Object.keys(Zl),Hl=Pl.length;Hl--;)Ul[Pl[Hl]]=Zl[Pl[Hl]];return Ul};function El(Ul,Zl){return Object.prototype.hasOwnProperty.call(Ul,Zl)}var ds=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Mn.promisify=function(Zl){if(typeof Zl!="function")throw new TypeError('The "original" argument must be of type Function');if(ds&&Zl[ds]){var Pl=Zl[ds];if(typeof Pl!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Pl,ds,{value:Pl,enumerable:!1,writable:!1,configurable:!0}),Pl}function Pl(){for(var Hl,Ml,Fl=new Promise(function(Kl,Gl){Hl=Kl,Ml=Gl}),Yl=[],Bl=0;Bl<arguments.length;Bl++)Yl.push(arguments[Bl]);Yl.push(function(Kl,Gl){Kl?Ml(Kl):Hl(Gl)});try{Zl.apply(this,Yl)}catch(Kl){Ml(Kl)}return Fl}return Object.setPrototypeOf(Pl,Object.getPrototypeOf(Zl)),ds&&Object.defineProperty(Pl,ds,{value:Pl,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Pl,io(Zl))},Mn.promisify.custom=ds;function os(Ul,Zl){if(!Ul){var Pl=new Error("Promise was rejected with a falsy value");Pl.reason=Ul,Ul=Pl}return Zl(Ul)}function Al(Ul){if(typeof Ul!="function")throw new TypeError('The "original" argument must be of type Function');function Zl(){for(var Pl=[],Hl=0;Hl<arguments.length;Hl++)Pl.push(arguments[Hl]);var Ml=Pl.pop();if(typeof Ml!="function")throw new TypeError("The last argument must be of type Function");var Fl=this,Yl=function(){return Ml.apply(Fl,arguments)};Ul.apply(this,Pl).then(function(Bl){process$1$7.nextTick(Yl.bind(null,null,Bl))},function(Bl){process$1$7.nextTick(os.bind(null,Bl,Yl))})}return Object.setPrototypeOf(Zl,Object.getPrototypeOf(Ul)),Object.defineProperties(Zl,io(Ul)),Zl}Mn.callbackify=Al})(util$5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Mn(Xo,is){var yl=Object.keys(Xo);if(Object.getOwnPropertySymbols){var us=Object.getOwnPropertySymbols(Xo);is&&(us=us.filter(function(hs){return Object.getOwnPropertyDescriptor(Xo,hs).enumerable})),yl.push.apply(yl,us)}return yl}function Fn(Xo){for(var is=1;is<arguments.length;is++){var yl=arguments[is]!=null?arguments[is]:{};is%2?Mn(Object(yl),!0).forEach(function(us){io(Xo,us,yl[us])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Xo,Object.getOwnPropertyDescriptors(yl)):Mn(Object(yl)).forEach(function(us){Object.defineProperty(Xo,us,Object.getOwnPropertyDescriptor(yl,us))})}return Xo}function io(Xo,is,yl){return is=Ao(is),is in Xo?Object.defineProperty(Xo,is,{value:yl,enumerable:!0,configurable:!0,writable:!0}):Xo[is]=yl,Xo}function fo(Xo,is){if(!(Xo instanceof is))throw new TypeError("Cannot call a class as a function")}function $o(Xo,is){for(var yl=0;yl<is.length;yl++){var us=is[yl];us.enumerable=us.enumerable||!1,us.configurable=!0,"value"in us&&(us.writable=!0),Object.defineProperty(Xo,Ao(us.key),us)}}function mo(Xo,is,yl){return is&&$o(Xo.prototype,is),Object.defineProperty(Xo,"prototype",{writable:!1}),Xo}function Ao(Xo){var is=jo(Xo,"string");return typeof is=="symbol"?is:String(is)}function jo(Xo,is){if(typeof Xo!="object"||Xo===null)return Xo;var yl=Xo[Symbol.toPrimitive];if(yl!==void 0){var us=yl.call(Xo,is||"default");if(typeof us!="object")return us;throw new TypeError("@@toPrimitive must return a primitive value.")}return(is==="string"?String:Number)(Xo)}var Lo=require$$1$8,Ho=Lo.Buffer,zo=util$5,Go=zo.inspect,Vo=Go&&Go.custom||"inspect";function Yo(Xo,is,yl){Ho.prototype.copy.call(Xo,is,yl)}return buffer_list=function(){function Xo(){fo(this,Xo),this.head=null,this.tail=null,this.length=0}return mo(Xo,[{key:"push",value:function(yl){var us={data:yl,next:null};this.length>0?this.tail.next=us:this.head=us,this.tail=us,++this.length}},{key:"unshift",value:function(yl){var us={data:yl,next:this.head};this.length===0&&(this.tail=us),this.head=us,++this.length}},{key:"shift",value:function(){if(this.length!==0){var yl=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,yl}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(yl){if(this.length===0)return"";for(var us=this.head,hs=""+us.data;us=us.next;)hs+=yl+us.data;return hs}},{key:"concat",value:function(yl){if(this.length===0)return Ho.alloc(0);for(var us=Ho.allocUnsafe(yl>>>0),hs=this.head,_l=0;hs;)Yo(hs.data,us,_l),_l+=hs.data.length,hs=hs.next;return us}},{key:"consume",value:function(yl,us){var hs;return yl<this.head.data.length?(hs=this.head.data.slice(0,yl),this.head.data=this.head.data.slice(yl)):yl===this.head.data.length?hs=this.shift():hs=us?this._getString(yl):this._getBuffer(yl),hs}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(yl){var us=this.head,hs=1,_l=us.data;for(yl-=_l.length;us=us.next;){var xl=us.data,Il=yl>xl.length?xl.length:yl;if(Il===xl.length?_l+=xl:_l+=xl.slice(0,yl),yl-=Il,yl===0){Il===xl.length?(++hs,us.next?this.head=us.next:this.head=this.tail=null):(this.head=us,us.data=xl.slice(Il));break}++hs}return this.length-=hs,_l}},{key:"_getBuffer",value:function(yl){var us=Ho.allocUnsafe(yl),hs=this.head,_l=1;for(hs.data.copy(us),yl-=hs.data.length;hs=hs.next;){var xl=hs.data,Il=yl>xl.length?xl.length:yl;if(xl.copy(us,us.length-yl,0,Il),yl-=Il,yl===0){Il===xl.length?(++_l,hs.next?this.head=hs.next:this.head=this.tail=null):(this.head=hs,hs.data=xl.slice(Il));break}++_l}return this.length-=_l,us}},{key:Vo,value:function(yl,us){return Go(this,Fn(Fn({},us),{},{depth:0,customInspect:!1}))}}]),Xo}(),buffer_list}var destroy_1$1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1$1;hasRequiredDestroy=1;function Mn(Ao,jo){var Lo=this,Ho=this._readableState&&this._readableState.destroyed,zo=this._writableState&&this._writableState.destroyed;return Ho||zo?(jo?jo(Ao):Ao&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1$7.nextTick($o,this,Ao)):process$1$7.nextTick($o,this,Ao)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Ao||null,function(Go){!jo&&Go?Lo._writableState?Lo._writableState.errorEmitted?process$1$7.nextTick(io,Lo):(Lo._writableState.errorEmitted=!0,process$1$7.nextTick(Fn,Lo,Go)):process$1$7.nextTick(Fn,Lo,Go):jo?(process$1$7.nextTick(io,Lo),jo(Go)):process$1$7.nextTick(io,Lo)}),this)}function Fn(Ao,jo){$o(Ao,jo),io(Ao)}function io(Ao){Ao._writableState&&!Ao._writableState.emitClose||Ao._readableState&&!Ao._readableState.emitClose||Ao.emit("close")}function fo(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function $o(Ao,jo){Ao.emit("error",jo)}function mo(Ao,jo){var Lo=Ao._readableState,Ho=Ao._writableState;Lo&&Lo.autoDestroy||Ho&&Ho.autoDestroy?Ao.destroy(jo):Ao.emit("error",jo)}return destroy_1$1={destroy:Mn,undestroy:fo,errorOrDestroy:mo},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function Mn(jo,Lo){jo.prototype=Object.create(Lo.prototype),jo.prototype.constructor=jo,jo.__proto__=Lo}var Fn={};function io(jo,Lo,Ho){Ho||(Ho=Error);function zo(Vo,Yo,Xo){return typeof Lo=="string"?Lo:Lo(Vo,Yo,Xo)}var Go=function(Vo){Mn(Yo,Vo);function Yo(Xo,is,yl){return Vo.call(this,zo(Xo,is,yl))||this}return Yo}(Ho);Go.prototype.name=Ho.name,Go.prototype.code=jo,Fn[jo]=Go}function fo(jo,Lo){if(Array.isArray(jo)){var Ho=jo.length;return jo=jo.map(function(zo){return String(zo)}),Ho>2?"one of ".concat(Lo," ").concat(jo.slice(0,Ho-1).join(", "),", or ")+jo[Ho-1]:Ho===2?"one of ".concat(Lo," ").concat(jo[0]," or ").concat(jo[1]):"of ".concat(Lo," ").concat(jo[0])}else return"of ".concat(Lo," ").concat(String(jo))}function $o(jo,Lo,Ho){return jo.substr(0,Lo.length)===Lo}function mo(jo,Lo,Ho){return(Ho===void 0||Ho>jo.length)&&(Ho=jo.length),jo.substring(Ho-Lo.length,Ho)===Lo}function Ao(jo,Lo,Ho){return typeof Ho!="number"&&(Ho=0),Ho+Lo.length>jo.length?!1:jo.indexOf(Lo,Ho)!==-1}return io("ERR_INVALID_OPT_VALUE",function(jo,Lo){return'The value "'+Lo+'" is invalid for option "'+jo+'"'},TypeError),io("ERR_INVALID_ARG_TYPE",function(jo,Lo,Ho){var zo;typeof Lo=="string"&&$o(Lo,"not ")?(zo="must not be",Lo=Lo.replace(/^not /,"")):zo="must be";var Go;if(mo(jo," argument"))Go="The ".concat(jo," ").concat(zo," ").concat(fo(Lo,"type"));else{var Vo=Ao(jo,".")?"property":"argument";Go='The "'.concat(jo,'" ').concat(Vo," ").concat(zo," ").concat(fo(Lo,"type"))}return Go+=". Received type ".concat(typeof Ho),Go},TypeError),io("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),io("ERR_METHOD_NOT_IMPLEMENTED",function(jo){return"The "+jo+" method is not implemented"}),io("ERR_STREAM_PREMATURE_CLOSE","Premature close"),io("ERR_STREAM_DESTROYED",function(jo){return"Cannot call "+jo+" after a stream was destroyed"}),io("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),io("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),io("ERR_STREAM_WRITE_AFTER_END","write after end"),io("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),io("ERR_UNKNOWN_ENCODING",function(jo){return"Unknown encoding: "+jo},TypeError),io("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=Fn,errorsBrowser}var state$l,hasRequiredState;function requireState(){if(hasRequiredState)return state$l;hasRequiredState=1;var Mn=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function Fn(fo,$o,mo){return fo.highWaterMark!=null?fo.highWaterMark:$o?fo[mo]:null}function io(fo,$o,mo,Ao){var jo=Fn($o,Ao,mo);if(jo!=null){if(!(isFinite(jo)&&Math.floor(jo)===jo)||jo<0){var Lo=Ao?mo:"highWaterMark";throw new Mn(Lo,jo)}return Math.floor(jo)}return fo.objectMode?16:16*1024}return state$l={getHighWaterMark:io},state$l}var browser$j=deprecate;function deprecate(Mn,Fn){if(config$1("noDeprecation"))return Mn;var io=!1;function fo(){if(!io){if(config$1("throwDeprecation"))throw new Error(Fn);config$1("traceDeprecation")?console.trace(Fn):console.warn(Fn),io=!0}return Mn.apply(this,arguments)}return fo}function config$1(Mn){try{if(!commonjsGlobal$c.localStorage)return!1}catch{return!1}var Fn=commonjsGlobal$c.localStorage[Mn];return Fn==null?!1:String(Fn).toLowerCase()==="true"}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=Cl;function Mn(Hl){var Ml=this;this.next=null,this.entry=null,this.finish=function(){Pl(Ml,Hl)}}var Fn;Cl.WritableState=Ol;var io={deprecate:browser$j},fo=requireStreamBrowser(),$o=require$$1$8.Buffer,mo=(typeof commonjsGlobal$c<"u"?commonjsGlobal$c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ao(Hl){return $o.from(Hl)}function jo(Hl){return $o.isBuffer(Hl)||Hl instanceof mo}var Lo=requireDestroy(),Ho=requireState(),zo=Ho.getHighWaterMark,Go=requireErrorsBrowser().codes,Vo=Go.ERR_INVALID_ARG_TYPE,Yo=Go.ERR_METHOD_NOT_IMPLEMENTED,Xo=Go.ERR_MULTIPLE_CALLBACK,is=Go.ERR_STREAM_CANNOT_PIPE,yl=Go.ERR_STREAM_DESTROYED,us=Go.ERR_STREAM_NULL_VALUES,hs=Go.ERR_STREAM_WRITE_AFTER_END,_l=Go.ERR_UNKNOWN_ENCODING,xl=Lo.errorOrDestroy;inherits_browserExports$1(Cl,fo);function Il(){}function Ol(Hl,Ml,Fl){Fn=Fn||require_stream_duplex$1(),Hl=Hl||{},typeof Fl!="boolean"&&(Fl=Ml instanceof Fn),this.objectMode=!!Hl.objectMode,Fl&&(this.objectMode=this.objectMode||!!Hl.writableObjectMode),this.highWaterMark=zo(this,Hl,"writableHighWaterMark",Fl),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Yl=Hl.decodeStrings===!1;this.decodeStrings=!Yl,this.defaultEncoding=Hl.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Bl){ps(Ml,Bl)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Hl.emitClose!==!1,this.autoDestroy=!!Hl.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Mn(this)}Ol.prototype.getBuffer=function(){for(var Ml=this.bufferedRequest,Fl=[];Ml;)Fl.push(Ml),Ml=Ml.next;return Fl},function(){try{Object.defineProperty(Ol.prototype,"buffer",{get:io.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Tl;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Tl=Function.prototype[Symbol.hasInstance],Object.defineProperty(Cl,Symbol.hasInstance,{value:function(Ml){return Tl.call(this,Ml)?!0:this!==Cl?!1:Ml&&Ml._writableState instanceof Ol}})):Tl=function(Ml){return Ml instanceof this};function Cl(Hl){Fn=Fn||require_stream_duplex$1();var Ml=this instanceof Fn;if(!Ml&&!Tl.call(Cl,this))return new Cl(Hl);this._writableState=new Ol(Hl,this,Ml),this.writable=!0,Hl&&(typeof Hl.write=="function"&&(this._write=Hl.write),typeof Hl.writev=="function"&&(this._writev=Hl.writev),typeof Hl.destroy=="function"&&(this._destroy=Hl.destroy),typeof Hl.final=="function"&&(this._final=Hl.final)),fo.call(this)}Cl.prototype.pipe=function(){xl(this,new is)};function Nl(Hl,Ml){var Fl=new hs;xl(Hl,Fl),process$1$7.nextTick(Ml,Fl)}function Wl(Hl,Ml,Fl,Yl){var Bl;return Fl===null?Bl=new us:typeof Fl!="string"&&!Ml.objectMode&&(Bl=new Vo("chunk",["string","Buffer"],Fl)),Bl?(xl(Hl,Bl),process$1$7.nextTick(Yl,Bl),!1):!0}Cl.prototype.write=function(Hl,Ml,Fl){var Yl=this._writableState,Bl=!1,Kl=!Yl.objectMode&&jo(Hl);return Kl&&!$o.isBuffer(Hl)&&(Hl=Ao(Hl)),typeof Ml=="function"&&(Fl=Ml,Ml=null),Kl?Ml="buffer":Ml||(Ml=Yl.defaultEncoding),typeof Fl!="function"&&(Fl=Il),Yl.ending?Nl(this,Fl):(Kl||Wl(this,Yl,Hl,Fl))&&(Yl.pendingcb++,Bl=Rl(this,Yl,Kl,Hl,Ml,Fl)),Bl},Cl.prototype.cork=function(){this._writableState.corked++},Cl.prototype.uncork=function(){var Hl=this._writableState;Hl.corked&&(Hl.corked--,!Hl.writing&&!Hl.corked&&!Hl.bufferProcessing&&Hl.bufferedRequest&&El(this,Hl))},Cl.prototype.setDefaultEncoding=function(Ml){if(typeof Ml=="string"&&(Ml=Ml.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ml+"").toLowerCase())>-1))throw new _l(Ml);return this._writableState.defaultEncoding=Ml,this},Object.defineProperty(Cl.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Dl(Hl,Ml,Fl){return!Hl.objectMode&&Hl.decodeStrings!==!1&&typeof Ml=="string"&&(Ml=$o.from(Ml,Fl)),Ml}Object.defineProperty(Cl.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Rl(Hl,Ml,Fl,Yl,Bl,Kl){if(!Fl){var Gl=Dl(Ml,Yl,Bl);Yl!==Gl&&(Fl=!0,Bl="buffer",Yl=Gl)}var fu=Ml.objectMode?1:Yl.length;Ml.length+=fu;var bu=Ml.length<Ml.highWaterMark;if(bu||(Ml.needDrain=!0),Ml.writing||Ml.corked){var rp=Ml.lastBufferedRequest;Ml.lastBufferedRequest={chunk:Yl,encoding:Bl,isBuf:Fl,callback:Kl,next:null},rp?rp.next=Ml.lastBufferedRequest:Ml.bufferedRequest=Ml.lastBufferedRequest,Ml.bufferedRequestCount+=1}else Qo(Hl,Ml,!1,fu,Yl,Bl,Kl);return bu}function Qo(Hl,Ml,Fl,Yl,Bl,Kl,Gl){Ml.writelen=Yl,Ml.writecb=Gl,Ml.writing=!0,Ml.sync=!0,Ml.destroyed?Ml.onwrite(new yl("write")):Fl?Hl._writev(Bl,Ml.onwrite):Hl._write(Bl,Kl,Ml.onwrite),Ml.sync=!1}function Jo(Hl,Ml,Fl,Yl,Bl){--Ml.pendingcb,Fl?(process$1$7.nextTick(Bl,Yl),process$1$7.nextTick(Ul,Hl,Ml),Hl._writableState.errorEmitted=!0,xl(Hl,Yl)):(Bl(Yl),Hl._writableState.errorEmitted=!0,xl(Hl,Yl),Ul(Hl,Ml))}function rs(Hl){Hl.writing=!1,Hl.writecb=null,Hl.length-=Hl.writelen,Hl.writelen=0}function ps(Hl,Ml){var Fl=Hl._writableState,Yl=Fl.sync,Bl=Fl.writecb;if(typeof Bl!="function")throw new Xo;if(rs(Fl),Ml)Jo(Hl,Fl,Yl,Ml,Bl);else{var Kl=ds(Fl)||Hl.destroyed;!Kl&&!Fl.corked&&!Fl.bufferProcessing&&Fl.bufferedRequest&&El(Hl,Fl),Yl?process$1$7.nextTick(_c,Hl,Fl,Kl,Bl):_c(Hl,Fl,Kl,Bl)}}function _c(Hl,Ml,Fl,Yl){Fl||$l(Hl,Ml),Ml.pendingcb--,Yl(),Ul(Hl,Ml)}function $l(Hl,Ml){Ml.length===0&&Ml.needDrain&&(Ml.needDrain=!1,Hl.emit("drain"))}function El(Hl,Ml){Ml.bufferProcessing=!0;var Fl=Ml.bufferedRequest;if(Hl._writev&&Fl&&Fl.next){var Yl=Ml.bufferedRequestCount,Bl=new Array(Yl),Kl=Ml.corkedRequestsFree;Kl.entry=Fl;for(var Gl=0,fu=!0;Fl;)Bl[Gl]=Fl,Fl.isBuf||(fu=!1),Fl=Fl.next,Gl+=1;Bl.allBuffers=fu,Qo(Hl,Ml,!0,Ml.length,Bl,"",Kl.finish),Ml.pendingcb++,Ml.lastBufferedRequest=null,Kl.next?(Ml.corkedRequestsFree=Kl.next,Kl.next=null):Ml.corkedRequestsFree=new Mn(Ml),Ml.bufferedRequestCount=0}else{for(;Fl;){var bu=Fl.chunk,rp=Fl.encoding,tp=Fl.callback,op=Ml.objectMode?1:bu.length;if(Qo(Hl,Ml,!1,op,bu,rp,tp),Fl=Fl.next,Ml.bufferedRequestCount--,Ml.writing)break}Fl===null&&(Ml.lastBufferedRequest=null)}Ml.bufferedRequest=Fl,Ml.bufferProcessing=!1}Cl.prototype._write=function(Hl,Ml,Fl){Fl(new Yo("_write()"))},Cl.prototype._writev=null,Cl.prototype.end=function(Hl,Ml,Fl){var Yl=this._writableState;return typeof Hl=="function"?(Fl=Hl,Hl=null,Ml=null):typeof Ml=="function"&&(Fl=Ml,Ml=null),Hl!=null&&this.write(Hl,Ml),Yl.corked&&(Yl.corked=1,this.uncork()),Yl.ending||Zl(this,Yl,Fl),this},Object.defineProperty(Cl.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ds(Hl){return Hl.ending&&Hl.length===0&&Hl.bufferedRequest===null&&!Hl.finished&&!Hl.writing}function os(Hl,Ml){Hl._final(function(Fl){Ml.pendingcb--,Fl&&xl(Hl,Fl),Ml.prefinished=!0,Hl.emit("prefinish"),Ul(Hl,Ml)})}function Al(Hl,Ml){!Ml.prefinished&&!Ml.finalCalled&&(typeof Hl._final=="function"&&!Ml.destroyed?(Ml.pendingcb++,Ml.finalCalled=!0,process$1$7.nextTick(os,Hl,Ml)):(Ml.prefinished=!0,Hl.emit("prefinish")))}function Ul(Hl,Ml){var Fl=ds(Ml);if(Fl&&(Al(Hl,Ml),Ml.pendingcb===0&&(Ml.finished=!0,Hl.emit("finish"),Ml.autoDestroy))){var Yl=Hl._readableState;(!Yl||Yl.autoDestroy&&Yl.endEmitted)&&Hl.destroy()}return Fl}function Zl(Hl,Ml,Fl){Ml.ending=!0,Ul(Hl,Ml),Fl&&(Ml.finished?process$1$7.nextTick(Fl):Hl.once("finish",Fl)),Ml.ended=!0,Hl.writable=!1}function Pl(Hl,Ml,Fl){var Yl=Hl.entry;for(Hl.entry=null;Yl;){var Bl=Yl.callback;Ml.pendingcb--,Bl(Fl),Yl=Yl.next}Ml.corkedRequestsFree.next=Hl}return Object.defineProperty(Cl.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ml){this._writableState&&(this._writableState.destroyed=Ml)}}),Cl.prototype.destroy=Lo.destroy,Cl.prototype._undestroy=Lo.undestroy,Cl.prototype._destroy=function(Hl,Ml){Ml(Hl)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var Mn=Object.keys||function(Ho){var zo=[];for(var Go in Ho)zo.push(Go);return zo};_stream_duplex$1=Ao;var Fn=require_stream_readable$1(),io=require_stream_writable$1();inherits_browserExports$1(Ao,Fn);for(var fo=Mn(io.prototype),$o=0;$o<fo.length;$o++){var mo=fo[$o];Ao.prototype[mo]||(Ao.prototype[mo]=io.prototype[mo])}function Ao(Ho){if(!(this instanceof Ao))return new Ao(Ho);Fn.call(this,Ho),io.call(this,Ho),this.allowHalfOpen=!0,Ho&&(Ho.readable===!1&&(this.readable=!1),Ho.writable===!1&&(this.writable=!1),Ho.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",jo)))}Object.defineProperty(Ao.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Ao.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Ao.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function jo(){this._writableState.ended||process$1$7.nextTick(Lo,this)}function Lo(Ho){Ho.end()}return Object.defineProperty(Ao.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(zo){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=zo,this._writableState.destroyed=zo)}}),_stream_duplex$1}var string_decoder={},Buffer$A=safeBufferExports$1.Buffer,isEncoding=Buffer$A.isEncoding||function(Mn){switch(Mn=""+Mn,Mn&&Mn.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(Mn){if(!Mn)return"utf8";for(var Fn;;)switch(Mn){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Mn;default:if(Fn)return;Mn=(""+Mn).toLowerCase(),Fn=!0}}function normalizeEncoding(Mn){var Fn=_normalizeEncoding(Mn);if(typeof Fn!="string"&&(Buffer$A.isEncoding===isEncoding||!isEncoding(Mn)))throw new Error("Unknown encoding: "+Mn);return Fn||Mn}string_decoder.StringDecoder=StringDecoder$1;function StringDecoder$1(Mn){this.encoding=normalizeEncoding(Mn);var Fn;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,Fn=4;break;case"utf8":this.fillLast=utf8FillLast,Fn=4;break;case"base64":this.text=base64Text,this.end=base64End,Fn=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$A.allocUnsafe(Fn)}StringDecoder$1.prototype.write=function(Mn){if(Mn.length===0)return"";var Fn,io;if(this.lastNeed){if(Fn=this.fillLast(Mn),Fn===void 0)return"";io=this.lastNeed,this.lastNeed=0}else io=0;return io<Mn.length?Fn?Fn+this.text(Mn,io):this.text(Mn,io):Fn||""};StringDecoder$1.prototype.end=utf8End;StringDecoder$1.prototype.text=utf8Text;StringDecoder$1.prototype.fillLast=function(Mn){if(this.lastNeed<=Mn.length)return Mn.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Mn.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Mn.length),this.lastNeed-=Mn.length};function utf8CheckByte(Mn){return Mn<=127?0:Mn>>5===6?2:Mn>>4===14?3:Mn>>3===30?4:Mn>>6===2?-1:-2}function utf8CheckIncomplete(Mn,Fn,io){var fo=Fn.length-1;if(fo<io)return 0;var $o=utf8CheckByte(Fn[fo]);return $o>=0?($o>0&&(Mn.lastNeed=$o-1),$o):--fo<io||$o===-2?0:($o=utf8CheckByte(Fn[fo]),$o>=0?($o>0&&(Mn.lastNeed=$o-2),$o):--fo<io||$o===-2?0:($o=utf8CheckByte(Fn[fo]),$o>=0?($o>0&&($o===2?$o=0:Mn.lastNeed=$o-3),$o):0))}function utf8CheckExtraBytes(Mn,Fn,io){if((Fn[0]&192)!==128)return Mn.lastNeed=0,"�";if(Mn.lastNeed>1&&Fn.length>1){if((Fn[1]&192)!==128)return Mn.lastNeed=1,"�";if(Mn.lastNeed>2&&Fn.length>2&&(Fn[2]&192)!==128)return Mn.lastNeed=2,"�"}}function utf8FillLast(Mn){var Fn=this.lastTotal-this.lastNeed,io=utf8CheckExtraBytes(this,Mn);if(io!==void 0)return io;if(this.lastNeed<=Mn.length)return Mn.copy(this.lastChar,Fn,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Mn.copy(this.lastChar,Fn,0,Mn.length),this.lastNeed-=Mn.length}function utf8Text(Mn,Fn){var io=utf8CheckIncomplete(this,Mn,Fn);if(!this.lastNeed)return Mn.toString("utf8",Fn);this.lastTotal=io;var fo=Mn.length-(io-this.lastNeed);return Mn.copy(this.lastChar,0,fo),Mn.toString("utf8",Fn,fo)}function utf8End(Mn){var Fn=Mn&&Mn.length?this.write(Mn):"";return this.lastNeed?Fn+"�":Fn}function utf16Text(Mn,Fn){if((Mn.length-Fn)%2===0){var io=Mn.toString("utf16le",Fn);if(io){var fo=io.charCodeAt(io.length-1);if(fo>=55296&&fo<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Mn[Mn.length-2],this.lastChar[1]=Mn[Mn.length-1],io.slice(0,-1)}return io}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Mn[Mn.length-1],Mn.toString("utf16le",Fn,Mn.length-1)}function utf16End(Mn){var Fn=Mn&&Mn.length?this.write(Mn):"";if(this.lastNeed){var io=this.lastTotal-this.lastNeed;return Fn+this.lastChar.toString("utf16le",0,io)}return Fn}function base64Text(Mn,Fn){var io=(Mn.length-Fn)%3;return io===0?Mn.toString("base64",Fn):(this.lastNeed=3-io,this.lastTotal=3,io===1?this.lastChar[0]=Mn[Mn.length-1]:(this.lastChar[0]=Mn[Mn.length-2],this.lastChar[1]=Mn[Mn.length-1]),Mn.toString("base64",Fn,Mn.length-io))}function base64End(Mn){var Fn=Mn&&Mn.length?this.write(Mn):"";return this.lastNeed?Fn+this.lastChar.toString("base64",0,3-this.lastNeed):Fn}function simpleWrite(Mn){return Mn.toString(this.encoding)}function simpleEnd(Mn){return Mn&&Mn.length?this.write(Mn):""}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var Mn=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function Fn(mo){var Ao=!1;return function(){if(!Ao){Ao=!0;for(var jo=arguments.length,Lo=new Array(jo),Ho=0;Ho<jo;Ho++)Lo[Ho]=arguments[Ho];mo.apply(this,Lo)}}}function io(){}function fo(mo){return mo.setHeader&&typeof mo.abort=="function"}function $o(mo,Ao,jo){if(typeof Ao=="function")return $o(mo,null,Ao);Ao||(Ao={}),jo=Fn(jo||io);var Lo=Ao.readable||Ao.readable!==!1&&mo.readable,Ho=Ao.writable||Ao.writable!==!1&&mo.writable,zo=function(){mo.writable||Vo()},Go=mo._writableState&&mo._writableState.finished,Vo=function(){Ho=!1,Go=!0,Lo||jo.call(mo)},Yo=mo._readableState&&mo._readableState.endEmitted,Xo=function(){Lo=!1,Yo=!0,Ho||jo.call(mo)},is=function(_l){jo.call(mo,_l)},yl=function(){var _l;if(Lo&&!Yo)return(!mo._readableState||!mo._readableState.ended)&&(_l=new Mn),jo.call(mo,_l);if(Ho&&!Go)return(!mo._writableState||!mo._writableState.ended)&&(_l=new Mn),jo.call(mo,_l)},us=function(){mo.req.on("finish",Vo)};return fo(mo)?(mo.on("complete",Vo),mo.on("abort",yl),mo.req?us():mo.on("request",us)):Ho&&!mo._writableState&&(mo.on("end",zo),mo.on("close",zo)),mo.on("end",Xo),mo.on("finish",Vo),Ao.error!==!1&&mo.on("error",is),mo.on("close",yl),function(){mo.removeListener("complete",Vo),mo.removeListener("abort",yl),mo.removeListener("request",us),mo.req&&mo.req.removeListener("finish",Vo),mo.removeListener("end",zo),mo.removeListener("close",zo),mo.removeListener("finish",Vo),mo.removeListener("end",Xo),mo.removeListener("error",is),mo.removeListener("close",yl)}}return endOfStream=$o,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var Mn;function Fn(_l,xl,Il){return xl=io(xl),xl in _l?Object.defineProperty(_l,xl,{value:Il,enumerable:!0,configurable:!0,writable:!0}):_l[xl]=Il,_l}function io(_l){var xl=fo(_l,"string");return typeof xl=="symbol"?xl:String(xl)}function fo(_l,xl){if(typeof _l!="object"||_l===null)return _l;var Il=_l[Symbol.toPrimitive];if(Il!==void 0){var Ol=Il.call(_l,xl||"default");if(typeof Ol!="object")return Ol;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xl==="string"?String:Number)(_l)}var $o=requireEndOfStream(),mo=Symbol("lastResolve"),Ao=Symbol("lastReject"),jo=Symbol("error"),Lo=Symbol("ended"),Ho=Symbol("lastPromise"),zo=Symbol("handlePromise"),Go=Symbol("stream");function Vo(_l,xl){return{value:_l,done:xl}}function Yo(_l){var xl=_l[mo];if(xl!==null){var Il=_l[Go].read();Il!==null&&(_l[Ho]=null,_l[mo]=null,_l[Ao]=null,xl(Vo(Il,!1)))}}function Xo(_l){process$1$7.nextTick(Yo,_l)}function is(_l,xl){return function(Il,Ol){_l.then(function(){if(xl[Lo]){Il(Vo(void 0,!0));return}xl[zo](Il,Ol)},Ol)}}var yl=Object.getPrototypeOf(function(){}),us=Object.setPrototypeOf((Mn={get stream(){return this[Go]},next:function(){var xl=this,Il=this[jo];if(Il!==null)return Promise.reject(Il);if(this[Lo])return Promise.resolve(Vo(void 0,!0));if(this[Go].destroyed)return new Promise(function(Nl,Wl){process$1$7.nextTick(function(){xl[jo]?Wl(xl[jo]):Nl(Vo(void 0,!0))})});var Ol=this[Ho],Tl;if(Ol)Tl=new Promise(is(Ol,this));else{var Cl=this[Go].read();if(Cl!==null)return Promise.resolve(Vo(Cl,!1));Tl=new Promise(this[zo])}return this[Ho]=Tl,Tl}},Fn(Mn,Symbol.asyncIterator,function(){return this}),Fn(Mn,"return",function(){var xl=this;return new Promise(function(Il,Ol){xl[Go].destroy(null,function(Tl){if(Tl){Ol(Tl);return}Il(Vo(void 0,!0))})})}),Mn),yl),hs=function(xl){var Il,Ol=Object.create(us,(Il={},Fn(Il,Go,{value:xl,writable:!0}),Fn(Il,mo,{value:null,writable:!0}),Fn(Il,Ao,{value:null,writable:!0}),Fn(Il,jo,{value:null,writable:!0}),Fn(Il,Lo,{value:xl._readableState.endEmitted,writable:!0}),Fn(Il,zo,{value:function(Cl,Nl){var Wl=Ol[Go].read();Wl?(Ol[Ho]=null,Ol[mo]=null,Ol[Ao]=null,Cl(Vo(Wl,!1))):(Ol[mo]=Cl,Ol[Ao]=Nl)},writable:!0}),Il));return Ol[Ho]=null,$o(xl,function(Tl){if(Tl&&Tl.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Cl=Ol[Ao];Cl!==null&&(Ol[Ho]=null,Ol[mo]=null,Ol[Ao]=null,Cl(Tl)),Ol[jo]=Tl;return}var Nl=Ol[mo];Nl!==null&&(Ol[Ho]=null,Ol[mo]=null,Ol[Ao]=null,Nl(Vo(void 0,!0))),Ol[Lo]=!0}),xl.on("readable",Xo.bind(null,Ol)),Ol};return async_iterator=hs,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1,_stream_readable$1=Nl;var Mn;Nl.ReadableState=Cl,eventsExports.EventEmitter;var Fn=function(Gl,fu){return Gl.listeners(fu).length},io=requireStreamBrowser(),fo=require$$1$8.Buffer,$o=(typeof commonjsGlobal$c<"u"?commonjsGlobal$c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mo(Kl){return fo.from(Kl)}function Ao(Kl){return fo.isBuffer(Kl)||Kl instanceof $o}var jo=util$5,Lo;jo&&jo.debuglog?Lo=jo.debuglog("stream"):Lo=function(){};var Ho=requireBuffer_list(),zo=requireDestroy(),Go=requireState(),Vo=Go.getHighWaterMark,Yo=requireErrorsBrowser().codes,Xo=Yo.ERR_INVALID_ARG_TYPE,is=Yo.ERR_STREAM_PUSH_AFTER_EOF,yl=Yo.ERR_METHOD_NOT_IMPLEMENTED,us=Yo.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,hs,_l,xl;inherits_browserExports$1(Nl,io);var Il=zo.errorOrDestroy,Ol=["error","close","destroy","pause","resume"];function Tl(Kl,Gl,fu){if(typeof Kl.prependListener=="function")return Kl.prependListener(Gl,fu);!Kl._events||!Kl._events[Gl]?Kl.on(Gl,fu):Array.isArray(Kl._events[Gl])?Kl._events[Gl].unshift(fu):Kl._events[Gl]=[fu,Kl._events[Gl]]}function Cl(Kl,Gl,fu){Mn=Mn||require_stream_duplex$1(),Kl=Kl||{},typeof fu!="boolean"&&(fu=Gl instanceof Mn),this.objectMode=!!Kl.objectMode,fu&&(this.objectMode=this.objectMode||!!Kl.readableObjectMode),this.highWaterMark=Vo(this,Kl,"readableHighWaterMark",fu),this.buffer=new Ho,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Kl.emitClose!==!1,this.autoDestroy=!!Kl.autoDestroy,this.destroyed=!1,this.defaultEncoding=Kl.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Kl.encoding&&(hs||(hs=string_decoder.StringDecoder),this.decoder=new hs(Kl.encoding),this.encoding=Kl.encoding)}function Nl(Kl){if(Mn=Mn||require_stream_duplex$1(),!(this instanceof Nl))return new Nl(Kl);var Gl=this instanceof Mn;this._readableState=new Cl(Kl,this,Gl),this.readable=!0,Kl&&(typeof Kl.read=="function"&&(this._read=Kl.read),typeof Kl.destroy=="function"&&(this._destroy=Kl.destroy)),io.call(this)}Object.defineProperty(Nl.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Gl){this._readableState&&(this._readableState.destroyed=Gl)}}),Nl.prototype.destroy=zo.destroy,Nl.prototype._undestroy=zo.undestroy,Nl.prototype._destroy=function(Kl,Gl){Gl(Kl)},Nl.prototype.push=function(Kl,Gl){var fu=this._readableState,bu;return fu.objectMode?bu=!0:typeof Kl=="string"&&(Gl=Gl||fu.defaultEncoding,Gl!==fu.encoding&&(Kl=fo.from(Kl,Gl),Gl=""),bu=!0),Wl(this,Kl,Gl,!1,bu)},Nl.prototype.unshift=function(Kl){return Wl(this,Kl,null,!0,!1)};function Wl(Kl,Gl,fu,bu,rp){Lo("readableAddChunk",Gl);var tp=Kl._readableState;if(Gl===null)tp.reading=!1,ps(Kl,tp);else{var op;if(rp||(op=Rl(tp,Gl)),op)Il(Kl,op);else if(tp.objectMode||Gl&&Gl.length>0)if(typeof Gl!="string"&&!tp.objectMode&&Object.getPrototypeOf(Gl)!==fo.prototype&&(Gl=mo(Gl)),bu)tp.endEmitted?Il(Kl,new us):Dl(Kl,tp,Gl,!0);else if(tp.ended)Il(Kl,new is);else{if(tp.destroyed)return!1;tp.reading=!1,tp.decoder&&!fu?(Gl=tp.decoder.write(Gl),tp.objectMode||Gl.length!==0?Dl(Kl,tp,Gl,!1):El(Kl,tp)):Dl(Kl,tp,Gl,!1)}else bu||(tp.reading=!1,El(Kl,tp))}return!tp.ended&&(tp.length<tp.highWaterMark||tp.length===0)}function Dl(Kl,Gl,fu,bu){Gl.flowing&&Gl.length===0&&!Gl.sync?(Gl.awaitDrain=0,Kl.emit("data",fu)):(Gl.length+=Gl.objectMode?1:fu.length,bu?Gl.buffer.unshift(fu):Gl.buffer.push(fu),Gl.needReadable&&_c(Kl)),El(Kl,Gl)}function Rl(Kl,Gl){var fu;return!Ao(Gl)&&typeof Gl!="string"&&Gl!==void 0&&!Kl.objectMode&&(fu=new Xo("chunk",["string","Buffer","Uint8Array"],Gl)),fu}Nl.prototype.isPaused=function(){return this._readableState.flowing===!1},Nl.prototype.setEncoding=function(Kl){hs||(hs=string_decoder.StringDecoder);var Gl=new hs(Kl);this._readableState.decoder=Gl,this._readableState.encoding=this._readableState.decoder.encoding;for(var fu=this._readableState.buffer.head,bu="";fu!==null;)bu+=Gl.write(fu.data),fu=fu.next;return this._readableState.buffer.clear(),bu!==""&&this._readableState.buffer.push(bu),this._readableState.length=bu.length,this};var Qo=1073741824;function Jo(Kl){return Kl>=Qo?Kl=Qo:(Kl--,Kl|=Kl>>>1,Kl|=Kl>>>2,Kl|=Kl>>>4,Kl|=Kl>>>8,Kl|=Kl>>>16,Kl++),Kl}function rs(Kl,Gl){return Kl<=0||Gl.length===0&&Gl.ended?0:Gl.objectMode?1:Kl!==Kl?Gl.flowing&&Gl.length?Gl.buffer.head.data.length:Gl.length:(Kl>Gl.highWaterMark&&(Gl.highWaterMark=Jo(Kl)),Kl<=Gl.length?Kl:Gl.ended?Gl.length:(Gl.needReadable=!0,0))}Nl.prototype.read=function(Kl){Lo("read",Kl),Kl=parseInt(Kl,10);var Gl=this._readableState,fu=Kl;if(Kl!==0&&(Gl.emittedReadable=!1),Kl===0&&Gl.needReadable&&((Gl.highWaterMark!==0?Gl.length>=Gl.highWaterMark:Gl.length>0)||Gl.ended))return Lo("read: emitReadable",Gl.length,Gl.ended),Gl.length===0&&Gl.ended?Fl(this):_c(this),null;if(Kl=rs(Kl,Gl),Kl===0&&Gl.ended)return Gl.length===0&&Fl(this),null;var bu=Gl.needReadable;Lo("need readable",bu),(Gl.length===0||Gl.length-Kl<Gl.highWaterMark)&&(bu=!0,Lo("length less than watermark",bu)),Gl.ended||Gl.reading?(bu=!1,Lo("reading or ended",bu)):bu&&(Lo("do read"),Gl.reading=!0,Gl.sync=!0,Gl.length===0&&(Gl.needReadable=!0),this._read(Gl.highWaterMark),Gl.sync=!1,Gl.reading||(Kl=rs(fu,Gl)));var rp;return Kl>0?rp=Ml(Kl,Gl):rp=null,rp===null?(Gl.needReadable=Gl.length<=Gl.highWaterMark,Kl=0):(Gl.length-=Kl,Gl.awaitDrain=0),Gl.length===0&&(Gl.ended||(Gl.needReadable=!0),fu!==Kl&&Gl.ended&&Fl(this)),rp!==null&&this.emit("data",rp),rp};function ps(Kl,Gl){if(Lo("onEofChunk"),!Gl.ended){if(Gl.decoder){var fu=Gl.decoder.end();fu&&fu.length&&(Gl.buffer.push(fu),Gl.length+=Gl.objectMode?1:fu.length)}Gl.ended=!0,Gl.sync?_c(Kl):(Gl.needReadable=!1,Gl.emittedReadable||(Gl.emittedReadable=!0,$l(Kl)))}}function _c(Kl){var Gl=Kl._readableState;Lo("emitReadable",Gl.needReadable,Gl.emittedReadable),Gl.needReadable=!1,Gl.emittedReadable||(Lo("emitReadable",Gl.flowing),Gl.emittedReadable=!0,process$1$7.nextTick($l,Kl))}function $l(Kl){var Gl=Kl._readableState;Lo("emitReadable_",Gl.destroyed,Gl.length,Gl.ended),!Gl.destroyed&&(Gl.length||Gl.ended)&&(Kl.emit("readable"),Gl.emittedReadable=!1),Gl.needReadable=!Gl.flowing&&!Gl.ended&&Gl.length<=Gl.highWaterMark,Hl(Kl)}function El(Kl,Gl){Gl.readingMore||(Gl.readingMore=!0,process$1$7.nextTick(ds,Kl,Gl))}function ds(Kl,Gl){for(;!Gl.reading&&!Gl.ended&&(Gl.length<Gl.highWaterMark||Gl.flowing&&Gl.length===0);){var fu=Gl.length;if(Lo("maybeReadMore read 0"),Kl.read(0),fu===Gl.length)break}Gl.readingMore=!1}Nl.prototype._read=function(Kl){Il(this,new yl("_read()"))},Nl.prototype.pipe=function(Kl,Gl){var fu=this,bu=this._readableState;switch(bu.pipesCount){case 0:bu.pipes=Kl;break;case 1:bu.pipes=[bu.pipes,Kl];break;default:bu.pipes.push(Kl);break}bu.pipesCount+=1,Lo("pipe count=%d opts=%j",bu.pipesCount,Gl);var rp=(!Gl||Gl.end!==!1)&&Kl!==process$1$7.stdout&&Kl!==process$1$7.stderr,tp=rp?vp:wp;bu.endEmitted?process$1$7.nextTick(tp):fu.once("end",tp),Kl.on("unpipe",op);function op(Sp,bp){Lo("onunpipe"),Sp===fu&&bp&&bp.hasUnpiped===!1&&(bp.hasUnpiped=!0,$p())}function vp(){Lo("onend"),Kl.end()}var ip=os(fu);Kl.on("drain",ip);var up=!1;function $p(){Lo("cleanup"),Kl.removeListener("close",_p),Kl.removeListener("finish",mp),Kl.removeListener("drain",ip),Kl.removeListener("error",yp),Kl.removeListener("unpipe",op),fu.removeListener("end",vp),fu.removeListener("end",wp),fu.removeListener("data",gp),up=!0,bu.awaitDrain&&(!Kl._writableState||Kl._writableState.needDrain)&&ip()}fu.on("data",gp);function gp(Sp){Lo("ondata");var bp=Kl.write(Sp);Lo("dest.write",bp),bp===!1&&((bu.pipesCount===1&&bu.pipes===Kl||bu.pipesCount>1&&Bl(bu.pipes,Kl)!==-1)&&!up&&(Lo("false write response, pause",bu.awaitDrain),bu.awaitDrain++),fu.pause())}function yp(Sp){Lo("onerror",Sp),wp(),Kl.removeListener("error",yp),Fn(Kl,"error")===0&&Il(Kl,Sp)}Tl(Kl,"error",yp);function _p(){Kl.removeListener("finish",mp),wp()}Kl.once("close",_p);function mp(){Lo("onfinish"),Kl.removeListener("close",_p),wp()}Kl.once("finish",mp);function wp(){Lo("unpipe"),fu.unpipe(Kl)}return Kl.emit("pipe",fu),bu.flowing||(Lo("pipe resume"),fu.resume()),Kl};function os(Kl){return function(){var fu=Kl._readableState;Lo("pipeOnDrain",fu.awaitDrain),fu.awaitDrain&&fu.awaitDrain--,fu.awaitDrain===0&&Fn(Kl,"data")&&(fu.flowing=!0,Hl(Kl))}}Nl.prototype.unpipe=function(Kl){var Gl=this._readableState,fu={hasUnpiped:!1};if(Gl.pipesCount===0)return this;if(Gl.pipesCount===1)return Kl&&Kl!==Gl.pipes?this:(Kl||(Kl=Gl.pipes),Gl.pipes=null,Gl.pipesCount=0,Gl.flowing=!1,Kl&&Kl.emit("unpipe",this,fu),this);if(!Kl){var bu=Gl.pipes,rp=Gl.pipesCount;Gl.pipes=null,Gl.pipesCount=0,Gl.flowing=!1;for(var tp=0;tp<rp;tp++)bu[tp].emit("unpipe",this,{hasUnpiped:!1});return this}var op=Bl(Gl.pipes,Kl);return op===-1?this:(Gl.pipes.splice(op,1),Gl.pipesCount-=1,Gl.pipesCount===1&&(Gl.pipes=Gl.pipes[0]),Kl.emit("unpipe",this,fu),this)},Nl.prototype.on=function(Kl,Gl){var fu=io.prototype.on.call(this,Kl,Gl),bu=this._readableState;return Kl==="data"?(bu.readableListening=this.listenerCount("readable")>0,bu.flowing!==!1&&this.resume()):Kl==="readable"&&!bu.endEmitted&&!bu.readableListening&&(bu.readableListening=bu.needReadable=!0,bu.flowing=!1,bu.emittedReadable=!1,Lo("on readable",bu.length,bu.reading),bu.length?_c(this):bu.reading||process$1$7.nextTick(Ul,this)),fu},Nl.prototype.addListener=Nl.prototype.on,Nl.prototype.removeListener=function(Kl,Gl){var fu=io.prototype.removeListener.call(this,Kl,Gl);return Kl==="readable"&&process$1$7.nextTick(Al,this),fu},Nl.prototype.removeAllListeners=function(Kl){var Gl=io.prototype.removeAllListeners.apply(this,arguments);return(Kl==="readable"||Kl===void 0)&&process$1$7.nextTick(Al,this),Gl};function Al(Kl){var Gl=Kl._readableState;Gl.readableListening=Kl.listenerCount("readable")>0,Gl.resumeScheduled&&!Gl.paused?Gl.flowing=!0:Kl.listenerCount("data")>0&&Kl.resume()}function Ul(Kl){Lo("readable nexttick read 0"),Kl.read(0)}Nl.prototype.resume=function(){var Kl=this._readableState;return Kl.flowing||(Lo("resume"),Kl.flowing=!Kl.readableListening,Zl(this,Kl)),Kl.paused=!1,this};function Zl(Kl,Gl){Gl.resumeScheduled||(Gl.resumeScheduled=!0,process$1$7.nextTick(Pl,Kl,Gl))}function Pl(Kl,Gl){Lo("resume",Gl.reading),Gl.reading||Kl.read(0),Gl.resumeScheduled=!1,Kl.emit("resume"),Hl(Kl),Gl.flowing&&!Gl.reading&&Kl.read(0)}Nl.prototype.pause=function(){return Lo("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Lo("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Hl(Kl){var Gl=Kl._readableState;for(Lo("flow",Gl.flowing);Gl.flowing&&Kl.read()!==null;);}Nl.prototype.wrap=function(Kl){var Gl=this,fu=this._readableState,bu=!1;Kl.on("end",function(){if(Lo("wrapped end"),fu.decoder&&!fu.ended){var op=fu.decoder.end();op&&op.length&&Gl.push(op)}Gl.push(null)}),Kl.on("data",function(op){if(Lo("wrapped data"),fu.decoder&&(op=fu.decoder.write(op)),!(fu.objectMode&&op==null)&&!(!fu.objectMode&&(!op||!op.length))){var vp=Gl.push(op);vp||(bu=!0,Kl.pause())}});for(var rp in Kl)this[rp]===void 0&&typeof Kl[rp]=="function"&&(this[rp]=function(vp){return function(){return Kl[vp].apply(Kl,arguments)}}(rp));for(var tp=0;tp<Ol.length;tp++)Kl.on(Ol[tp],this.emit.bind(this,Ol[tp]));return this._read=function(op){Lo("wrapped _read",op),bu&&(bu=!1,Kl.resume())},this},typeof Symbol=="function"&&(Nl.prototype[Symbol.asyncIterator]=function(){return _l===void 0&&(_l=requireAsync_iterator()),_l(this)}),Object.defineProperty(Nl.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Nl.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Nl.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Gl){this._readableState&&(this._readableState.flowing=Gl)}}),Nl._fromList=Ml,Object.defineProperty(Nl.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ml(Kl,Gl){if(Gl.length===0)return null;var fu;return Gl.objectMode?fu=Gl.buffer.shift():!Kl||Kl>=Gl.length?(Gl.decoder?fu=Gl.buffer.join(""):Gl.buffer.length===1?fu=Gl.buffer.first():fu=Gl.buffer.concat(Gl.length),Gl.buffer.clear()):fu=Gl.buffer.consume(Kl,Gl.decoder),fu}function Fl(Kl){var Gl=Kl._readableState;Lo("endReadable",Gl.endEmitted),Gl.endEmitted||(Gl.ended=!0,process$1$7.nextTick(Yl,Gl,Kl))}function Yl(Kl,Gl){if(Lo("endReadableNT",Kl.endEmitted,Kl.length),!Kl.endEmitted&&Kl.length===0&&(Kl.endEmitted=!0,Gl.readable=!1,Gl.emit("end"),Kl.autoDestroy)){var fu=Gl._writableState;(!fu||fu.autoDestroy&&fu.finished)&&Gl.destroy()}}typeof Symbol=="function"&&(Nl.from=function(Kl,Gl){return xl===void 0&&(xl=requireFromBrowser()),xl(Nl,Kl,Gl)});function Bl(Kl,Gl){for(var fu=0,bu=Kl.length;fu<bu;fu++)if(Kl[fu]===Gl)return fu;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform$1;hasRequired_stream_transform=1,_stream_transform$1=jo;var Mn=requireErrorsBrowser().codes,Fn=Mn.ERR_METHOD_NOT_IMPLEMENTED,io=Mn.ERR_MULTIPLE_CALLBACK,fo=Mn.ERR_TRANSFORM_ALREADY_TRANSFORMING,$o=Mn.ERR_TRANSFORM_WITH_LENGTH_0,mo=require_stream_duplex$1();inherits_browserExports$1(jo,mo);function Ao(zo,Go){var Vo=this._transformState;Vo.transforming=!1;var Yo=Vo.writecb;if(Yo===null)return this.emit("error",new io);Vo.writechunk=null,Vo.writecb=null,Go!=null&&this.push(Go),Yo(zo);var Xo=this._readableState;Xo.reading=!1,(Xo.needReadable||Xo.length<Xo.highWaterMark)&&this._read(Xo.highWaterMark)}function jo(zo){if(!(this instanceof jo))return new jo(zo);mo.call(this,zo),this._transformState={afterTransform:Ao.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,zo&&(typeof zo.transform=="function"&&(this._transform=zo.transform),typeof zo.flush=="function"&&(this._flush=zo.flush)),this.on("prefinish",Lo)}function Lo(){var zo=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(Go,Vo){Ho(zo,Go,Vo)}):Ho(this,null,null)}jo.prototype.push=function(zo,Go){return this._transformState.needTransform=!1,mo.prototype.push.call(this,zo,Go)},jo.prototype._transform=function(zo,Go,Vo){Vo(new Fn("_transform()"))},jo.prototype._write=function(zo,Go,Vo){var Yo=this._transformState;if(Yo.writecb=Vo,Yo.writechunk=zo,Yo.writeencoding=Go,!Yo.transforming){var Xo=this._readableState;(Yo.needTransform||Xo.needReadable||Xo.length<Xo.highWaterMark)&&this._read(Xo.highWaterMark)}},jo.prototype._read=function(zo){var Go=this._transformState;Go.writechunk!==null&&!Go.transforming?(Go.transforming=!0,this._transform(Go.writechunk,Go.writeencoding,Go.afterTransform)):Go.needTransform=!0},jo.prototype._destroy=function(zo,Go){mo.prototype._destroy.call(this,zo,function(Vo){Go(Vo)})};function Ho(zo,Go,Vo){if(Go)return zo.emit("error",Go);if(Vo!=null&&zo.push(Vo),zo._writableState.length)throw new $o;if(zo._transformState.transforming)throw new fo;return zo.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough$1;hasRequired_stream_passthrough=1,_stream_passthrough$1=Fn;var Mn=require_stream_transform();inherits_browserExports$1(Fn,Mn);function Fn(io){if(!(this instanceof Fn))return new Fn(io);Mn.call(this,io)}return Fn.prototype._transform=function(io,fo,$o){$o(null,io)},_stream_passthrough$1}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var Mn;function Fn(Vo){var Yo=!1;return function(){Yo||(Yo=!0,Vo.apply(void 0,arguments))}}var io=requireErrorsBrowser().codes,fo=io.ERR_MISSING_ARGS,$o=io.ERR_STREAM_DESTROYED;function mo(Vo){if(Vo)throw Vo}function Ao(Vo){return Vo.setHeader&&typeof Vo.abort=="function"}function jo(Vo,Yo,Xo,is){is=Fn(is);var yl=!1;Vo.on("close",function(){yl=!0}),Mn===void 0&&(Mn=requireEndOfStream()),Mn(Vo,{readable:Yo,writable:Xo},function(hs){if(hs)return is(hs);yl=!0,is()});var us=!1;return function(hs){if(!yl&&!us){if(us=!0,Ao(Vo))return Vo.abort();if(typeof Vo.destroy=="function")return Vo.destroy();is(hs||new $o("pipe"))}}}function Lo(Vo){Vo()}function Ho(Vo,Yo){return Vo.pipe(Yo)}function zo(Vo){return!Vo.length||typeof Vo[Vo.length-1]!="function"?mo:Vo.pop()}function Go(){for(var Vo=arguments.length,Yo=new Array(Vo),Xo=0;Xo<Vo;Xo++)Yo[Xo]=arguments[Xo];var is=zo(Yo);if(Array.isArray(Yo[0])&&(Yo=Yo[0]),Yo.length<2)throw new fo("streams");var yl,us=Yo.map(function(hs,_l){var xl=_l<Yo.length-1,Il=_l>0;return jo(hs,xl,Il,function(Ol){yl||(yl=Ol),Ol&&us.forEach(Lo),!xl&&(us.forEach(Lo),is(yl))})});return Yo.reduce(Ho)}return pipeline_1=Go,pipeline_1}var streamBrowserify=Stream$1,EE=eventsExports.EventEmitter,inherits$q=inherits_browserExports$1;inherits$q(Stream$1,EE);Stream$1.Readable=require_stream_readable$1();Stream$1.Writable=require_stream_writable$1();Stream$1.Duplex=require_stream_duplex$1();Stream$1.Transform=require_stream_transform();Stream$1.PassThrough=require_stream_passthrough();Stream$1.finished=requireEndOfStream();Stream$1.pipeline=requirePipeline();Stream$1.Stream=Stream$1;function Stream$1(){EE.call(this)}Stream$1.prototype.pipe=function(Mn,Fn){var io=this;function fo(zo){Mn.writable&&Mn.write(zo)===!1&&io.pause&&io.pause()}io.on("data",fo);function $o(){io.readable&&io.resume&&io.resume()}Mn.on("drain",$o),!Mn._isStdio&&(!Fn||Fn.end!==!1)&&(io.on("end",Ao),io.on("close",jo));var mo=!1;function Ao(){mo||(mo=!0,Mn.end())}function jo(){mo||(mo=!0,typeof Mn.destroy=="function"&&Mn.destroy())}function Lo(zo){if(Ho(),EE.listenerCount(this,"error")===0)throw zo}io.on("error",Lo),Mn.on("error",Lo);function Ho(){io.removeListener("data",fo),Mn.removeListener("drain",$o),io.removeListener("end",Ao),io.removeListener("close",jo),io.removeListener("error",Lo),Mn.removeListener("error",Lo),io.removeListener("end",Ho),io.removeListener("close",Ho),Mn.removeListener("close",Ho)}return io.on("end",Ho),io.on("close",Ho),Mn.on("close",Ho),Mn.emit("pipe",io),Mn};var Buffer$z=safeBufferExports$1.Buffer,Transform$7=streamBrowserify.Transform,inherits$p=inherits_browserExports$1;function throwIfNotStringOrBuffer(Mn,Fn){if(!Buffer$z.isBuffer(Mn)&&typeof Mn!="string")throw new TypeError(Fn+" must be a string or a buffer")}function HashBase$2(Mn){Transform$7.call(this),this._block=Buffer$z.allocUnsafe(Mn),this._blockSize=Mn,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$p(HashBase$2,Transform$7);HashBase$2.prototype._transform=function(Mn,Fn,io){var fo=null;try{this.update(Mn,Fn)}catch($o){fo=$o}io(fo)};HashBase$2.prototype._flush=function(Mn){var Fn=null;try{this.push(this.digest())}catch(io){Fn=io}Mn(Fn)};HashBase$2.prototype.update=function(Mn,Fn){if(throwIfNotStringOrBuffer(Mn,"Data"),this._finalized)throw new Error("Digest already called");Buffer$z.isBuffer(Mn)||(Mn=Buffer$z.from(Mn,Fn));for(var io=this._block,fo=0;this._blockOffset+Mn.length-fo>=this._blockSize;){for(var $o=this._blockOffset;$o<this._blockSize;)io[$o++]=Mn[fo++];this._update(),this._blockOffset=0}for(;fo<Mn.length;)io[this._blockOffset++]=Mn[fo++];for(var mo=0,Ao=Mn.length*8;Ao>0;++mo)this._length[mo]+=Ao,Ao=this._length[mo]/4294967296|0,Ao>0&&(this._length[mo]-=4294967296*Ao);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(Mn){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Fn=this._digest();Mn!==void 0&&(Fn=Fn.toString(Mn)),this._block.fill(0),this._blockOffset=0;for(var io=0;io<4;++io)this._length[io]=0;return Fn};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$o=inherits_browserExports$1,HashBase$1=hashBase,Buffer$y=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$o(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var Mn=ARRAY16$1,Fn=0;Fn<16;++Fn)Mn[Fn]=this._block.readInt32LE(Fn*4);var io=this._a,fo=this._b,$o=this._c,mo=this._d;io=fnF(io,fo,$o,mo,Mn[0],3614090360,7),mo=fnF(mo,io,fo,$o,Mn[1],3905402710,12),$o=fnF($o,mo,io,fo,Mn[2],606105819,17),fo=fnF(fo,$o,mo,io,Mn[3],3250441966,22),io=fnF(io,fo,$o,mo,Mn[4],4118548399,7),mo=fnF(mo,io,fo,$o,Mn[5],1200080426,12),$o=fnF($o,mo,io,fo,Mn[6],2821735955,17),fo=fnF(fo,$o,mo,io,Mn[7],4249261313,22),io=fnF(io,fo,$o,mo,Mn[8],1770035416,7),mo=fnF(mo,io,fo,$o,Mn[9],2336552879,12),$o=fnF($o,mo,io,fo,Mn[10],4294925233,17),fo=fnF(fo,$o,mo,io,Mn[11],2304563134,22),io=fnF(io,fo,$o,mo,Mn[12],1804603682,7),mo=fnF(mo,io,fo,$o,Mn[13],4254626195,12),$o=fnF($o,mo,io,fo,Mn[14],2792965006,17),fo=fnF(fo,$o,mo,io,Mn[15],1236535329,22),io=fnG(io,fo,$o,mo,Mn[1],4129170786,5),mo=fnG(mo,io,fo,$o,Mn[6],3225465664,9),$o=fnG($o,mo,io,fo,Mn[11],643717713,14),fo=fnG(fo,$o,mo,io,Mn[0],3921069994,20),io=fnG(io,fo,$o,mo,Mn[5],3593408605,5),mo=fnG(mo,io,fo,$o,Mn[10],38016083,9),$o=fnG($o,mo,io,fo,Mn[15],3634488961,14),fo=fnG(fo,$o,mo,io,Mn[4],3889429448,20),io=fnG(io,fo,$o,mo,Mn[9],568446438,5),mo=fnG(mo,io,fo,$o,Mn[14],3275163606,9),$o=fnG($o,mo,io,fo,Mn[3],4107603335,14),fo=fnG(fo,$o,mo,io,Mn[8],1163531501,20),io=fnG(io,fo,$o,mo,Mn[13],2850285829,5),mo=fnG(mo,io,fo,$o,Mn[2],4243563512,9),$o=fnG($o,mo,io,fo,Mn[7],1735328473,14),fo=fnG(fo,$o,mo,io,Mn[12],2368359562,20),io=fnH(io,fo,$o,mo,Mn[5],4294588738,4),mo=fnH(mo,io,fo,$o,Mn[8],2272392833,11),$o=fnH($o,mo,io,fo,Mn[11],1839030562,16),fo=fnH(fo,$o,mo,io,Mn[14],4259657740,23),io=fnH(io,fo,$o,mo,Mn[1],2763975236,4),mo=fnH(mo,io,fo,$o,Mn[4],1272893353,11),$o=fnH($o,mo,io,fo,Mn[7],4139469664,16),fo=fnH(fo,$o,mo,io,Mn[10],3200236656,23),io=fnH(io,fo,$o,mo,Mn[13],681279174,4),mo=fnH(mo,io,fo,$o,Mn[0],3936430074,11),$o=fnH($o,mo,io,fo,Mn[3],3572445317,16),fo=fnH(fo,$o,mo,io,Mn[6],76029189,23),io=fnH(io,fo,$o,mo,Mn[9],3654602809,4),mo=fnH(mo,io,fo,$o,Mn[12],3873151461,11),$o=fnH($o,mo,io,fo,Mn[15],530742520,16),fo=fnH(fo,$o,mo,io,Mn[2],3299628645,23),io=fnI(io,fo,$o,mo,Mn[0],4096336452,6),mo=fnI(mo,io,fo,$o,Mn[7],1126891415,10),$o=fnI($o,mo,io,fo,Mn[14],2878612391,15),fo=fnI(fo,$o,mo,io,Mn[5],4237533241,21),io=fnI(io,fo,$o,mo,Mn[12],1700485571,6),mo=fnI(mo,io,fo,$o,Mn[3],2399980690,10),$o=fnI($o,mo,io,fo,Mn[10],4293915773,15),fo=fnI(fo,$o,mo,io,Mn[1],2240044497,21),io=fnI(io,fo,$o,mo,Mn[8],1873313359,6),mo=fnI(mo,io,fo,$o,Mn[15],4264355552,10),$o=fnI($o,mo,io,fo,Mn[6],2734768916,15),fo=fnI(fo,$o,mo,io,Mn[13],1309151649,21),io=fnI(io,fo,$o,mo,Mn[4],4149444226,6),mo=fnI(mo,io,fo,$o,Mn[11],3174756917,10),$o=fnI($o,mo,io,fo,Mn[2],718787259,15),fo=fnI(fo,$o,mo,io,Mn[9],3951481745,21),this._a=this._a+io|0,this._b=this._b+fo|0,this._c=this._c+$o|0,this._d=this._d+mo|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Mn=Buffer$y.allocUnsafe(16);return Mn.writeInt32LE(this._a,0),Mn.writeInt32LE(this._b,4),Mn.writeInt32LE(this._c,8),Mn.writeInt32LE(this._d,12),Mn};function rotl$1(Mn,Fn){return Mn<<Fn|Mn>>>32-Fn}function fnF(Mn,Fn,io,fo,$o,mo,Ao){return rotl$1(Mn+(Fn&io|~Fn&fo)+$o+mo|0,Ao)+Fn|0}function fnG(Mn,Fn,io,fo,$o,mo,Ao){return rotl$1(Mn+(Fn&fo|io&~fo)+$o+mo|0,Ao)+Fn|0}function fnH(Mn,Fn,io,fo,$o,mo,Ao){return rotl$1(Mn+(Fn^io^fo)+$o+mo|0,Ao)+Fn|0}function fnI(Mn,Fn,io,fo,$o,mo,Ao){return rotl$1(Mn+(io^(Fn|~fo))+$o+mo|0,Ao)+Fn|0}var md5_js=MD5$3,Buffer$x=require$$1$8.Buffer,inherits$n=inherits_browserExports$1,HashBase=hashBase,ARRAY16=new Array(16),zl=[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],zr$3=[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],sl$2=[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],sr$4=[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],hl$1=[0,1518500249,1859775393,2400959708,2840853838],hr$4=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$n(RIPEMD160$4,HashBase);RIPEMD160$4.prototype._update=function(){for(var Mn=ARRAY16,Fn=0;Fn<16;++Fn)Mn[Fn]=this._block.readInt32LE(Fn*4);for(var io=this._a|0,fo=this._b|0,$o=this._c|0,mo=this._d|0,Ao=this._e|0,jo=this._a|0,Lo=this._b|0,Ho=this._c|0,zo=this._d|0,Go=this._e|0,Vo=0;Vo<80;Vo+=1){var Yo,Xo;Vo<16?(Yo=fn1(io,fo,$o,mo,Ao,Mn[zl[Vo]],hl$1[0],sl$2[Vo]),Xo=fn5(jo,Lo,Ho,zo,Go,Mn[zr$3[Vo]],hr$4[0],sr$4[Vo])):Vo<32?(Yo=fn2(io,fo,$o,mo,Ao,Mn[zl[Vo]],hl$1[1],sl$2[Vo]),Xo=fn4(jo,Lo,Ho,zo,Go,Mn[zr$3[Vo]],hr$4[1],sr$4[Vo])):Vo<48?(Yo=fn3(io,fo,$o,mo,Ao,Mn[zl[Vo]],hl$1[2],sl$2[Vo]),Xo=fn3(jo,Lo,Ho,zo,Go,Mn[zr$3[Vo]],hr$4[2],sr$4[Vo])):Vo<64?(Yo=fn4(io,fo,$o,mo,Ao,Mn[zl[Vo]],hl$1[3],sl$2[Vo]),Xo=fn2(jo,Lo,Ho,zo,Go,Mn[zr$3[Vo]],hr$4[3],sr$4[Vo])):(Yo=fn5(io,fo,$o,mo,Ao,Mn[zl[Vo]],hl$1[4],sl$2[Vo]),Xo=fn1(jo,Lo,Ho,zo,Go,Mn[zr$3[Vo]],hr$4[4],sr$4[Vo])),io=Ao,Ao=mo,mo=rotl($o,10),$o=fo,fo=Yo,jo=Go,Go=zo,zo=rotl(Ho,10),Ho=Lo,Lo=Xo}var is=this._b+$o+zo|0;this._b=this._c+mo+Go|0,this._c=this._d+Ao+jo|0,this._d=this._e+io+Lo|0,this._e=this._a+fo+Ho|0,this._a=is};RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Mn=Buffer$x.alloc?Buffer$x.alloc(20):new Buffer$x(20);return Mn.writeInt32LE(this._a,0),Mn.writeInt32LE(this._b,4),Mn.writeInt32LE(this._c,8),Mn.writeInt32LE(this._d,12),Mn.writeInt32LE(this._e,16),Mn};function rotl(Mn,Fn){return Mn<<Fn|Mn>>>32-Fn}function fn1(Mn,Fn,io,fo,$o,mo,Ao,jo){return rotl(Mn+(Fn^io^fo)+mo+Ao|0,jo)+$o|0}function fn2(Mn,Fn,io,fo,$o,mo,Ao,jo){return rotl(Mn+(Fn&io|~Fn&fo)+mo+Ao|0,jo)+$o|0}function fn3(Mn,Fn,io,fo,$o,mo,Ao,jo){return rotl(Mn+((Fn|~io)^fo)+mo+Ao|0,jo)+$o|0}function fn4(Mn,Fn,io,fo,$o,mo,Ao,jo){return rotl(Mn+(Fn&fo|io&~fo)+mo+Ao|0,jo)+$o|0}function fn5(Mn,Fn,io,fo,$o,mo,Ao,jo){return rotl(Mn+(Fn^(io|~fo))+mo+Ao|0,jo)+$o|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$w=safeBufferExports$1.Buffer;function Hash$9(Mn,Fn){this._block=Buffer$w.alloc(Mn),this._finalSize=Fn,this._blockSize=Mn,this._len=0}Hash$9.prototype.update=function(Mn,Fn){typeof Mn=="string"&&(Fn=Fn||"utf8",Mn=Buffer$w.from(Mn,Fn));for(var io=this._block,fo=this._blockSize,$o=Mn.length,mo=this._len,Ao=0;Ao<$o;){for(var jo=mo%fo,Lo=Math.min($o-Ao,fo-jo),Ho=0;Ho<Lo;Ho++)io[jo+Ho]=Mn[Ao+Ho];mo+=Lo,Ao+=Lo,mo%fo===0&&this._update(io)}return this._len+=$o,this};Hash$9.prototype.digest=function(Mn){var Fn=this._len%this._blockSize;this._block[Fn]=128,this._block.fill(0,Fn+1),Fn>=this._finalSize&&(this._update(this._block),this._block.fill(0));var io=this._len*8;if(io<=4294967295)this._block.writeUInt32BE(io,this._blockSize-4);else{var fo=(io&4294967295)>>>0,$o=(io-fo)/4294967296;this._block.writeUInt32BE($o,this._blockSize-8),this._block.writeUInt32BE(fo,this._blockSize-4)}this._update(this._block);var mo=this._hash();return Mn?mo.toString(Mn):mo};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$7=Hash$9,inherits$m=inherits_browserExports$1,Hash$8=hash$7,Buffer$v=safeBufferExports$1.Buffer,K$9=[1518500249,1859775393,-1894007588,-899497514],W$7=new Array(80);function Sha(){this.init(),this._w=W$7,Hash$8.call(this,64,56)}inherits$m(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(Mn){return Mn<<5|Mn>>>27}function rotl30$1(Mn){return Mn<<30|Mn>>>2}function ft$2(Mn,Fn,io,fo){return Mn===0?Fn&io|~Fn&fo:Mn===2?Fn&io|Fn&fo|io&fo:Fn^io^fo}Sha.prototype._update=function(Mn){for(var Fn=this._w,io=this._a|0,fo=this._b|0,$o=this._c|0,mo=this._d|0,Ao=this._e|0,jo=0;jo<16;++jo)Fn[jo]=Mn.readInt32BE(jo*4);for(;jo<80;++jo)Fn[jo]=Fn[jo-3]^Fn[jo-8]^Fn[jo-14]^Fn[jo-16];for(var Lo=0;Lo<80;++Lo){var Ho=~~(Lo/20),zo=rotl5$1(io)+ft$2(Ho,fo,$o,mo)+Ao+Fn[Lo]+K$9[Ho]|0;Ao=mo,mo=$o,$o=rotl30$1(fo),fo=io,io=zo}this._a=io+this._a|0,this._b=fo+this._b|0,this._c=$o+this._c|0,this._d=mo+this._d|0,this._e=Ao+this._e|0};Sha.prototype._hash=function(){var Mn=Buffer$v.allocUnsafe(20);return Mn.writeInt32BE(this._a|0,0),Mn.writeInt32BE(this._b|0,4),Mn.writeInt32BE(this._c|0,8),Mn.writeInt32BE(this._d|0,12),Mn.writeInt32BE(this._e|0,16),Mn};var sha$4=Sha,inherits$l=inherits_browserExports$1,Hash$7=hash$7,Buffer$u=safeBufferExports$1.Buffer,K$8=[1518500249,1859775393,-1894007588,-899497514],W$6=new Array(80);function Sha1(){this.init(),this._w=W$6,Hash$7.call(this,64,56)}inherits$l(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(Mn){return Mn<<1|Mn>>>31}function rotl5(Mn){return Mn<<5|Mn>>>27}function rotl30(Mn){return Mn<<30|Mn>>>2}function ft$1(Mn,Fn,io,fo){return Mn===0?Fn&io|~Fn&fo:Mn===2?Fn&io|Fn&fo|io&fo:Fn^io^fo}Sha1.prototype._update=function(Mn){for(var Fn=this._w,io=this._a|0,fo=this._b|0,$o=this._c|0,mo=this._d|0,Ao=this._e|0,jo=0;jo<16;++jo)Fn[jo]=Mn.readInt32BE(jo*4);for(;jo<80;++jo)Fn[jo]=rotl1(Fn[jo-3]^Fn[jo-8]^Fn[jo-14]^Fn[jo-16]);for(var Lo=0;Lo<80;++Lo){var Ho=~~(Lo/20),zo=rotl5(io)+ft$1(Ho,fo,$o,mo)+Ao+Fn[Lo]+K$8[Ho]|0;Ao=mo,mo=$o,$o=rotl30(fo),fo=io,io=zo}this._a=io+this._a|0,this._b=fo+this._b|0,this._c=$o+this._c|0,this._d=mo+this._d|0,this._e=Ao+this._e|0};Sha1.prototype._hash=function(){var Mn=Buffer$u.allocUnsafe(20);return Mn.writeInt32BE(this._a|0,0),Mn.writeInt32BE(this._b|0,4),Mn.writeInt32BE(this._c|0,8),Mn.writeInt32BE(this._d|0,12),Mn.writeInt32BE(this._e|0,16),Mn};var sha1$1=Sha1,inherits$k=inherits_browserExports$1,Hash$6=hash$7,Buffer$t=safeBufferExports$1.Buffer,K$7=[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],W$5=new Array(64);function Sha256$1(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$k(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch$2(Mn,Fn,io){return io^Mn&(Fn^io)}function maj$1(Mn,Fn,io){return Mn&Fn|io&(Mn|Fn)}function sigma0$1(Mn){return(Mn>>>2|Mn<<30)^(Mn>>>13|Mn<<19)^(Mn>>>22|Mn<<10)}function sigma1$1(Mn){return(Mn>>>6|Mn<<26)^(Mn>>>11|Mn<<21)^(Mn>>>25|Mn<<7)}function gamma0(Mn){return(Mn>>>7|Mn<<25)^(Mn>>>18|Mn<<14)^Mn>>>3}function gamma1(Mn){return(Mn>>>17|Mn<<15)^(Mn>>>19|Mn<<13)^Mn>>>10}Sha256$1.prototype._update=function(Mn){for(var Fn=this._w,io=this._a|0,fo=this._b|0,$o=this._c|0,mo=this._d|0,Ao=this._e|0,jo=this._f|0,Lo=this._g|0,Ho=this._h|0,zo=0;zo<16;++zo)Fn[zo]=Mn.readInt32BE(zo*4);for(;zo<64;++zo)Fn[zo]=gamma1(Fn[zo-2])+Fn[zo-7]+gamma0(Fn[zo-15])+Fn[zo-16]|0;for(var Go=0;Go<64;++Go){var Vo=Ho+sigma1$1(Ao)+ch$2(Ao,jo,Lo)+K$7[Go]+Fn[Go]|0,Yo=sigma0$1(io)+maj$1(io,fo,$o)|0;Ho=Lo,Lo=jo,jo=Ao,Ao=mo+Vo|0,mo=$o,$o=fo,fo=io,io=Vo+Yo|0}this._a=io+this._a|0,this._b=fo+this._b|0,this._c=$o+this._c|0,this._d=mo+this._d|0,this._e=Ao+this._e|0,this._f=jo+this._f|0,this._g=Lo+this._g|0,this._h=Ho+this._h|0};Sha256$1.prototype._hash=function(){var Mn=Buffer$t.allocUnsafe(32);return Mn.writeInt32BE(this._a,0),Mn.writeInt32BE(this._b,4),Mn.writeInt32BE(this._c,8),Mn.writeInt32BE(this._d,12),Mn.writeInt32BE(this._e,16),Mn.writeInt32BE(this._f,20),Mn.writeInt32BE(this._g,24),Mn.writeInt32BE(this._h,28),Mn};var sha256$9=Sha256$1,inherits$j=inherits_browserExports$1,Sha256=sha256$9,Hash$5=hash$7,Buffer$s=safeBufferExports$1.Buffer,W$4=new Array(64);function Sha224(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$j(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var Mn=Buffer$s.allocUnsafe(28);return Mn.writeInt32BE(this._a,0),Mn.writeInt32BE(this._b,4),Mn.writeInt32BE(this._c,8),Mn.writeInt32BE(this._d,12),Mn.writeInt32BE(this._e,16),Mn.writeInt32BE(this._f,20),Mn.writeInt32BE(this._g,24),Mn};var sha224$2=Sha224,inherits$i=inherits_browserExports$1,Hash$4=hash$7,Buffer$r=safeBufferExports$1.Buffer,K$6=[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],W$3=new Array(160);function Sha512(){this.init(),this._w=W$3,Hash$4.call(this,128,112)}inherits$i(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch$2(Mn,Fn,io){return io^Mn&(Fn^io)}function maj(Mn,Fn,io){return Mn&Fn|io&(Mn|Fn)}function sigma0(Mn,Fn){return(Mn>>>28|Fn<<4)^(Fn>>>2|Mn<<30)^(Fn>>>7|Mn<<25)}function sigma1(Mn,Fn){return(Mn>>>14|Fn<<18)^(Mn>>>18|Fn<<14)^(Fn>>>9|Mn<<23)}function Gamma0(Mn,Fn){return(Mn>>>1|Fn<<31)^(Mn>>>8|Fn<<24)^Mn>>>7}function Gamma0l(Mn,Fn){return(Mn>>>1|Fn<<31)^(Mn>>>8|Fn<<24)^(Mn>>>7|Fn<<25)}function Gamma1(Mn,Fn){return(Mn>>>19|Fn<<13)^(Fn>>>29|Mn<<3)^Mn>>>6}function Gamma1l(Mn,Fn){return(Mn>>>19|Fn<<13)^(Fn>>>29|Mn<<3)^(Mn>>>6|Fn<<26)}function getCarry(Mn,Fn){return Mn>>>0<Fn>>>0?1:0}Sha512.prototype._update=function(Mn){for(var Fn=this._w,io=this._ah|0,fo=this._bh|0,$o=this._ch|0,mo=this._dh|0,Ao=this._eh|0,jo=this._fh|0,Lo=this._gh|0,Ho=this._hh|0,zo=this._al|0,Go=this._bl|0,Vo=this._cl|0,Yo=this._dl|0,Xo=this._el|0,is=this._fl|0,yl=this._gl|0,us=this._hl|0,hs=0;hs<32;hs+=2)Fn[hs]=Mn.readInt32BE(hs*4),Fn[hs+1]=Mn.readInt32BE(hs*4+4);for(;hs<160;hs+=2){var _l=Fn[hs-30],xl=Fn[hs-15*2+1],Il=Gamma0(_l,xl),Ol=Gamma0l(xl,_l);_l=Fn[hs-2*2],xl=Fn[hs-2*2+1];var Tl=Gamma1(_l,xl),Cl=Gamma1l(xl,_l),Nl=Fn[hs-7*2],Wl=Fn[hs-7*2+1],Dl=Fn[hs-16*2],Rl=Fn[hs-16*2+1],Qo=Ol+Wl|0,Jo=Il+Nl+getCarry(Qo,Ol)|0;Qo=Qo+Cl|0,Jo=Jo+Tl+getCarry(Qo,Cl)|0,Qo=Qo+Rl|0,Jo=Jo+Dl+getCarry(Qo,Rl)|0,Fn[hs]=Jo,Fn[hs+1]=Qo}for(var rs=0;rs<160;rs+=2){Jo=Fn[rs],Qo=Fn[rs+1];var ps=maj(io,fo,$o),_c=maj(zo,Go,Vo),$l=sigma0(io,zo),El=sigma0(zo,io),ds=sigma1(Ao,Xo),os=sigma1(Xo,Ao),Al=K$6[rs],Ul=K$6[rs+1],Zl=Ch$2(Ao,jo,Lo),Pl=Ch$2(Xo,is,yl),Hl=us+os|0,Ml=Ho+ds+getCarry(Hl,us)|0;Hl=Hl+Pl|0,Ml=Ml+Zl+getCarry(Hl,Pl)|0,Hl=Hl+Ul|0,Ml=Ml+Al+getCarry(Hl,Ul)|0,Hl=Hl+Qo|0,Ml=Ml+Jo+getCarry(Hl,Qo)|0;var Fl=El+_c|0,Yl=$l+ps+getCarry(Fl,El)|0;Ho=Lo,us=yl,Lo=jo,yl=is,jo=Ao,is=Xo,Xo=Yo+Hl|0,Ao=mo+Ml+getCarry(Xo,Yo)|0,mo=$o,Yo=Vo,$o=fo,Vo=Go,fo=io,Go=zo,zo=Hl+Fl|0,io=Ml+Yl+getCarry(zo,Hl)|0}this._al=this._al+zo|0,this._bl=this._bl+Go|0,this._cl=this._cl+Vo|0,this._dl=this._dl+Yo|0,this._el=this._el+Xo|0,this._fl=this._fl+is|0,this._gl=this._gl+yl|0,this._hl=this._hl+us|0,this._ah=this._ah+io+getCarry(this._al,zo)|0,this._bh=this._bh+fo+getCarry(this._bl,Go)|0,this._ch=this._ch+$o+getCarry(this._cl,Vo)|0,this._dh=this._dh+mo+getCarry(this._dl,Yo)|0,this._eh=this._eh+Ao+getCarry(this._el,Xo)|0,this._fh=this._fh+jo+getCarry(this._fl,is)|0,this._gh=this._gh+Lo+getCarry(this._gl,yl)|0,this._hh=this._hh+Ho+getCarry(this._hl,us)|0};Sha512.prototype._hash=function(){var Mn=Buffer$r.allocUnsafe(64);function Fn(io,fo,$o){Mn.writeInt32BE(io,$o),Mn.writeInt32BE(fo,$o+4)}return Fn(this._ah,this._al,0),Fn(this._bh,this._bl,8),Fn(this._ch,this._cl,16),Fn(this._dh,this._dl,24),Fn(this._eh,this._el,32),Fn(this._fh,this._fl,40),Fn(this._gh,this._gl,48),Fn(this._hh,this._hl,56),Mn};var sha512$2=Sha512,inherits$h=inherits_browserExports$1,SHA512$2=sha512$2,Hash$3=hash$7,Buffer$q=safeBufferExports$1.Buffer,W$2=new Array(160);function Sha384(){this.init(),this._w=W$2,Hash$3.call(this,128,112)}inherits$h(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var Mn=Buffer$q.allocUnsafe(48);function Fn(io,fo,$o){Mn.writeInt32BE(io,$o),Mn.writeInt32BE(fo,$o+4)}return Fn(this._ah,this._al,0),Fn(this._bh,this._bl,8),Fn(this._ch,this._cl,16),Fn(this._dh,this._dl,24),Fn(this._eh,this._el,32),Fn(this._fh,this._fl,40),Mn};var sha384$1=Sha384,exports=sha_js.exports=function(Fn){Fn=Fn.toLowerCase();var io=exports[Fn];if(!io)throw new Error(Fn+" is not supported (we accept pull requests)");return new io};exports.sha=sha$4;exports.sha1=sha1$1;exports.sha224=sha224$2;exports.sha256=sha256$9;exports.sha384=sha384$1;exports.sha512=sha512$2;var sha_jsExports=sha_js.exports,Buffer$p=safeBufferExports$1.Buffer,Transform$6=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$g=inherits_browserExports$1;function CipherBase$1(Mn){Transform$6.call(this),this.hashMode=typeof Mn=="string",this.hashMode?this[Mn]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$g(CipherBase$1,Transform$6);CipherBase$1.prototype.update=function(Mn,Fn,io){typeof Mn=="string"&&(Mn=Buffer$p.from(Mn,Fn));var fo=this._update(Mn);return this.hashMode?this:(io&&(fo=this._toString(fo,io)),fo)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(Mn,Fn,io){var fo;try{this.hashMode?this._update(Mn):this.push(this._update(Mn))}catch($o){fo=$o}finally{io(fo)}};CipherBase$1.prototype._flush=function(Mn){var Fn;try{this.push(this.__final())}catch(io){Fn=io}Mn(Fn)};CipherBase$1.prototype._finalOrDigest=function(Mn){var Fn=this.__final()||Buffer$p.alloc(0);return Mn&&(Fn=this._toString(Fn,Mn,!0)),Fn};CipherBase$1.prototype._toString=function(Mn,Fn,io){if(this._decoder||(this._decoder=new StringDecoder(Fn),this._encoding=Fn),this._encoding!==Fn)throw new Error("can't switch encodings");var fo=this._decoder.write(Mn);return io&&(fo+=this._decoder.end()),fo};var cipherBase=CipherBase$1,inherits$f=inherits_browserExports$1,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(Mn){Base$5.call(this,"digest"),this._hash=Mn}inherits$f(Hash$2,Base$5);Hash$2.prototype._update=function(Mn){this._hash.update(Mn)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$i=function(Fn){return Fn=Fn.toLowerCase(),Fn==="md5"?new MD5$2:Fn==="rmd160"||Fn==="ripemd160"?new RIPEMD160$3:new Hash$2(sha$3(Fn))},inherits$e=inherits_browserExports$1,Buffer$o=safeBufferExports$1.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$3(Mn,Fn){Base$4.call(this,"digest"),typeof Fn=="string"&&(Fn=Buffer$o.from(Fn)),this._alg=Mn,this._key=Fn,Fn.length>blocksize?Fn=Mn(Fn):Fn.length<blocksize&&(Fn=Buffer$o.concat([Fn,ZEROS$2],blocksize));for(var io=this._ipad=Buffer$o.allocUnsafe(blocksize),fo=this._opad=Buffer$o.allocUnsafe(blocksize),$o=0;$o<blocksize;$o++)io[$o]=Fn[$o]^54,fo[$o]=Fn[$o]^92;this._hash=[io]}inherits$e(Hmac$3,Base$4);Hmac$3.prototype._update=function(Mn){this._hash.push(Mn)};Hmac$3.prototype._final=function(){var Mn=this._alg(Buffer$o.concat(this._hash));return this._alg(Buffer$o.concat([this._opad,Mn]))};var legacy=Hmac$3,MD5$1=md5_js,md5$2=function(Mn){return new MD5$1().update(Mn).digest()},inherits$d=inherits_browserExports$1,Legacy=legacy,Base$3=cipherBase,Buffer$n=safeBufferExports$1.Buffer,md5$1=md5$2,RIPEMD160$2=ripemd160,sha$2=sha_jsExports,ZEROS$1=Buffer$n.alloc(128);function Hmac$2(Mn,Fn){Base$3.call(this,"digest"),typeof Fn=="string"&&(Fn=Buffer$n.from(Fn));var io=Mn==="sha512"||Mn==="sha384"?128:64;if(this._alg=Mn,this._key=Fn,Fn.length>io){var fo=Mn==="rmd160"?new RIPEMD160$2:sha$2(Mn);Fn=fo.update(Fn).digest()}else Fn.length<io&&(Fn=Buffer$n.concat([Fn,ZEROS$1],io));for(var $o=this._ipad=Buffer$n.allocUnsafe(io),mo=this._opad=Buffer$n.allocUnsafe(io),Ao=0;Ao<io;Ao++)$o[Ao]=Fn[Ao]^54,mo[Ao]=Fn[Ao]^92;this._hash=Mn==="rmd160"?new RIPEMD160$2:sha$2(Mn),this._hash.update($o)}inherits$d(Hmac$2,Base$3);Hmac$2.prototype._update=function(Mn){this._hash.update(Mn)};Hmac$2.prototype._final=function(){var Mn=this._hash.digest(),Fn=this._alg==="rmd160"?new RIPEMD160$2:sha$2(this._alg);return Fn.update(this._opad).update(Mn).digest()};var browser$h=function(Fn,io){return Fn=Fn.toLowerCase(),Fn==="rmd160"||Fn==="ripemd160"?new Hmac$2("rmd160",io):Fn==="md5"?new Legacy(md5$1,io):new Hmac$2(Fn,io)};const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$8={sign:"ecdsa",hash:"sha256",id:""},sha224$1={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512$1={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256$8,sha224:sha224$1,sha384,sha512:sha512$1,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos=require$$6,browser$g={},MAX_ALLOC=Math.pow(2,30)-1,precondition=function(Mn,Fn){if(typeof Mn!="number")throw new TypeError("Iterations not a number");if(Mn<0)throw new TypeError("Bad iterations");if(typeof Fn!="number")throw new TypeError("Key length not a number");if(Fn<0||Fn>MAX_ALLOC||Fn!==Fn)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal$c.process&&commonjsGlobal$c.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal$c.process&&commonjsGlobal$c.process.version){var pVersionMajor=parseInt(process$1$7.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$m=safeBufferExports$1.Buffer,toBuffer$2=function(Mn,Fn,io){if(Buffer$m.isBuffer(Mn))return Mn;if(typeof Mn=="string")return Buffer$m.from(Mn,Fn);if(ArrayBuffer.isView(Mn))return Buffer$m.from(Mn.buffer);throw new TypeError(io+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$l=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$l.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(Mn,Fn,io){var fo=getDigest(Mn),$o=Mn==="sha512"||Mn==="sha384"?128:64;Fn.length>$o?Fn=fo(Fn):Fn.length<$o&&(Fn=Buffer$l.concat([Fn,ZEROS],$o));for(var mo=Buffer$l.allocUnsafe($o+sizes[Mn]),Ao=Buffer$l.allocUnsafe($o+sizes[Mn]),jo=0;jo<$o;jo++)mo[jo]=Fn[jo]^54,Ao[jo]=Fn[jo]^92;var Lo=Buffer$l.allocUnsafe($o+io+4);mo.copy(Lo,0,0,$o),this.ipad1=Lo,this.ipad2=mo,this.opad=Ao,this.alg=Mn,this.blocksize=$o,this.hash=fo,this.size=sizes[Mn]}Hmac$1.prototype.run=function(Mn,Fn){Mn.copy(Fn,this.blocksize);var io=this.hash(Fn);return io.copy(this.opad,this.blocksize),this.hash(this.opad)};function getDigest(Mn){function Fn(fo){return sha$1(Mn).update(fo).digest()}function io(fo){return new RIPEMD160$1().update(fo).digest()}return Mn==="rmd160"||Mn==="ripemd160"?io:Mn==="md5"?md5:Fn}function pbkdf2(Mn,Fn,io,fo,$o){checkParameters$1(io,fo),Mn=toBuffer$1(Mn,defaultEncoding$1,"Password"),Fn=toBuffer$1(Fn,defaultEncoding$1,"Salt"),$o=$o||"sha1";var mo=new Hmac$1($o,Mn,Fn.length),Ao=Buffer$l.allocUnsafe(fo),jo=Buffer$l.allocUnsafe(Fn.length+4);Fn.copy(jo,0,0,Fn.length);for(var Lo=0,Ho=sizes[$o],zo=Math.ceil(fo/Ho),Go=1;Go<=zo;Go++){jo.writeUInt32BE(Go,Fn.length);for(var Vo=mo.run(jo,mo.ipad1),Yo=Vo,Xo=1;Xo<io;Xo++){Yo=mo.run(Yo,mo.ipad2);for(var is=0;is<Ho;is++)Vo[is]^=Yo[is]}Vo.copy(Ao,Lo),Lo+=Ho}return Ao}var syncBrowser=pbkdf2,Buffer$k=safeBufferExports$1.Buffer,checkParameters=precondition,defaultEncoding=defaultEncoding_1,sync=syncBrowser,toBuffer=toBuffer$2,ZERO_BUF,subtle=commonjsGlobal$c.crypto&&commonjsGlobal$c.crypto.subtle,toBrowser={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},checks=[];function checkNative(Mn){if(commonjsGlobal$c.process&&!commonjsGlobal$c.process.browser||!subtle||!subtle.importKey||!subtle.deriveBits)return Promise.resolve(!1);if(checks[Mn]!==void 0)return checks[Mn];ZERO_BUF=ZERO_BUF||Buffer$k.alloc(8);var Fn=browserPbkdf2(ZERO_BUF,ZERO_BUF,10,128,Mn).then(function(){return!0}).catch(function(){return!1});return checks[Mn]=Fn,Fn}var nextTick$1;function getNextTick(){return nextTick$1||(commonjsGlobal$c.process&&commonjsGlobal$c.process.nextTick?nextTick$1=commonjsGlobal$c.process.nextTick:commonjsGlobal$c.queueMicrotask?nextTick$1=commonjsGlobal$c.queueMicrotask:commonjsGlobal$c.setImmediate?nextTick$1=commonjsGlobal$c.setImmediate:nextTick$1=commonjsGlobal$c.setTimeout,nextTick$1)}function browserPbkdf2(Mn,Fn,io,fo,$o){return subtle.importKey("raw",Mn,{name:"PBKDF2"},!1,["deriveBits"]).then(function(mo){return subtle.deriveBits({name:"PBKDF2",salt:Fn,iterations:io,hash:{name:$o}},mo,fo<<3)}).then(function(mo){return Buffer$k.from(mo)})}function resolvePromise(Mn,Fn){Mn.then(function(io){getNextTick()(function(){Fn(null,io)})},function(io){getNextTick()(function(){Fn(io)})})}var async=function(Mn,Fn,io,fo,$o,mo){typeof $o=="function"&&(mo=$o,$o=void 0),$o=$o||"sha1";var Ao=toBrowser[$o.toLowerCase()];if(!Ao||typeof commonjsGlobal$c.Promise!="function"){getNextTick()(function(){var jo;try{jo=sync(Mn,Fn,io,fo,$o)}catch(Lo){return mo(Lo)}mo(null,jo)});return}if(checkParameters(io,fo),Mn=toBuffer(Mn,defaultEncoding,"Password"),Fn=toBuffer(Fn,defaultEncoding,"Salt"),typeof mo!="function")throw new Error("No callback provided to pbkdf2");resolvePromise(checkNative(Ao).then(function(jo){return jo?browserPbkdf2(Mn,Fn,io,fo,Ao):sync(Mn,Fn,io,fo,$o)}),mo)};browser$g.pbkdf2=async;browser$g.pbkdf2Sync=syncBrowser;var browser$f={},des$2={},utils$L={};utils$L.readUInt32BE=function(Fn,io){var fo=Fn[0+io]<<24|Fn[1+io]<<16|Fn[2+io]<<8|Fn[3+io];return fo>>>0};utils$L.writeUInt32BE=function(Fn,io,fo){Fn[0+fo]=io>>>24,Fn[1+fo]=io>>>16&255,Fn[2+fo]=io>>>8&255,Fn[3+fo]=io&255};utils$L.ip=function(Fn,io,fo,$o){for(var mo=0,Ao=0,jo=6;jo>=0;jo-=2){for(var Lo=0;Lo<=24;Lo+=8)mo<<=1,mo|=io>>>Lo+jo&1;for(var Lo=0;Lo<=24;Lo+=8)mo<<=1,mo|=Fn>>>Lo+jo&1}for(var jo=6;jo>=0;jo-=2){for(var Lo=1;Lo<=25;Lo+=8)Ao<<=1,Ao|=io>>>Lo+jo&1;for(var Lo=1;Lo<=25;Lo+=8)Ao<<=1,Ao|=Fn>>>Lo+jo&1}fo[$o+0]=mo>>>0,fo[$o+1]=Ao>>>0};utils$L.rip=function(Fn,io,fo,$o){for(var mo=0,Ao=0,jo=0;jo<4;jo++)for(var Lo=24;Lo>=0;Lo-=8)mo<<=1,mo|=io>>>Lo+jo&1,mo<<=1,mo|=Fn>>>Lo+jo&1;for(var jo=4;jo<8;jo++)for(var Lo=24;Lo>=0;Lo-=8)Ao<<=1,Ao|=io>>>Lo+jo&1,Ao<<=1,Ao|=Fn>>>Lo+jo&1;fo[$o+0]=mo>>>0,fo[$o+1]=Ao>>>0};utils$L.pc1=function(Fn,io,fo,$o){for(var mo=0,Ao=0,jo=7;jo>=5;jo--){for(var Lo=0;Lo<=24;Lo+=8)mo<<=1,mo|=io>>Lo+jo&1;for(var Lo=0;Lo<=24;Lo+=8)mo<<=1,mo|=Fn>>Lo+jo&1}for(var Lo=0;Lo<=24;Lo+=8)mo<<=1,mo|=io>>Lo+jo&1;for(var jo=1;jo<=3;jo++){for(var Lo=0;Lo<=24;Lo+=8)Ao<<=1,Ao|=io>>Lo+jo&1;for(var Lo=0;Lo<=24;Lo+=8)Ao<<=1,Ao|=Fn>>Lo+jo&1}for(var Lo=0;Lo<=24;Lo+=8)Ao<<=1,Ao|=Fn>>Lo+jo&1;fo[$o+0]=mo>>>0,fo[$o+1]=Ao>>>0};utils$L.r28shl=function(Fn,io){return Fn<<io&268435455|Fn>>>28-io};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$L.pc2=function(Fn,io,fo,$o){for(var mo=0,Ao=0,jo=pc2table.length>>>1,Lo=0;Lo<jo;Lo++)mo<<=1,mo|=Fn>>>pc2table[Lo]&1;for(var Lo=jo;Lo<pc2table.length;Lo++)Ao<<=1,Ao|=io>>>pc2table[Lo]&1;fo[$o+0]=mo>>>0,fo[$o+1]=Ao>>>0};utils$L.expand=function(Fn,io,fo){var $o=0,mo=0;$o=(Fn&1)<<5|Fn>>>27;for(var Ao=23;Ao>=15;Ao-=4)$o<<=6,$o|=Fn>>>Ao&63;for(var Ao=11;Ao>=3;Ao-=4)mo|=Fn>>>Ao&63,mo<<=6;mo|=(Fn&31)<<1|Fn>>>31,io[fo+0]=$o>>>0,io[fo+1]=mo>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$L.substitute=function(Fn,io){for(var fo=0,$o=0;$o<4;$o++){var mo=Fn>>>18-$o*6&63,Ao=sTable[$o*64+mo];fo<<=4,fo|=Ao}for(var $o=0;$o<4;$o++){var mo=io>>>18-$o*6&63,Ao=sTable[4*64+$o*64+mo];fo<<=4,fo|=Ao}return fo>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$L.permute=function(Fn){for(var io=0,fo=0;fo<permuteTable.length;fo++)io<<=1,io|=Fn>>>permuteTable[fo]&1;return io>>>0};utils$L.padSplit=function(Fn,io,fo){for(var $o=Fn.toString(2);$o.length<io;)$o="0"+$o;for(var mo=[],Ao=0;Ao<io;Ao+=fo)mo.push($o.slice(Ao,Ao+fo));return mo.join(" ")};var assert$i=minimalisticAssert;function Cipher$3(Mn){this.options=Mn,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=Mn.padding!==!1}var cipher=Cipher$3;Cipher$3.prototype._init=function(){};Cipher$3.prototype.update=function(Fn){return Fn.length===0?[]:this.type==="decrypt"?this._updateDecrypt(Fn):this._updateEncrypt(Fn)};Cipher$3.prototype._buffer=function(Fn,io){for(var fo=Math.min(this.buffer.length-this.bufferOff,Fn.length-io),$o=0;$o<fo;$o++)this.buffer[this.bufferOff+$o]=Fn[io+$o];return this.bufferOff+=fo,fo};Cipher$3.prototype._flushBuffer=function(Fn,io){return this._update(this.buffer,0,Fn,io),this.bufferOff=0,this.blockSize};Cipher$3.prototype._updateEncrypt=function(Fn){var io=0,fo=0,$o=(this.bufferOff+Fn.length)/this.blockSize|0,mo=new Array($o*this.blockSize);this.bufferOff!==0&&(io+=this._buffer(Fn,io),this.bufferOff===this.buffer.length&&(fo+=this._flushBuffer(mo,fo)));for(var Ao=Fn.length-(Fn.length-io)%this.blockSize;io<Ao;io+=this.blockSize)this._update(Fn,io,mo,fo),fo+=this.blockSize;for(;io<Fn.length;io++,this.bufferOff++)this.buffer[this.bufferOff]=Fn[io];return mo};Cipher$3.prototype._updateDecrypt=function(Fn){for(var io=0,fo=0,$o=Math.ceil((this.bufferOff+Fn.length)/this.blockSize)-1,mo=new Array($o*this.blockSize);$o>0;$o--)io+=this._buffer(Fn,io),fo+=this._flushBuffer(mo,fo);return io+=this._buffer(Fn,io),mo};Cipher$3.prototype.final=function(Fn){var io;Fn&&(io=this.update(Fn));var fo;return this.type==="encrypt"?fo=this._finalEncrypt():fo=this._finalDecrypt(),io?io.concat(fo):fo};Cipher$3.prototype._pad=function(Fn,io){if(io===0)return!1;for(;io<Fn.length;)Fn[io++]=0;return!0};Cipher$3.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var Fn=new Array(this.blockSize);return this._update(this.buffer,0,Fn,0),Fn};Cipher$3.prototype._unpad=function(Fn){return Fn};Cipher$3.prototype._finalDecrypt=function(){assert$i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var Fn=new Array(this.blockSize);return this._flushBuffer(Fn,0),this._unpad(Fn)};var assert$h=minimalisticAssert,inherits$c=inherits_browserExports$1,utils$K=utils$L,Cipher$2=cipher;function DESState(){this.tmp=new Array(2),this.keys=null}function DES$3(Mn){Cipher$2.call(this,Mn);var Fn=new DESState;this._desState=Fn,this.deriveKeys(Fn,Mn.key)}inherits$c(DES$3,Cipher$2);var des$1=DES$3;DES$3.create=function(Fn){return new DES$3(Fn)};var shiftTable=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES$3.prototype.deriveKeys=function(Fn,io){Fn.keys=new Array(16*2),assert$h.equal(io.length,this.blockSize,"Invalid key length");var fo=utils$K.readUInt32BE(io,0),$o=utils$K.readUInt32BE(io,4);utils$K.pc1(fo,$o,Fn.tmp,0),fo=Fn.tmp[0],$o=Fn.tmp[1];for(var mo=0;mo<Fn.keys.length;mo+=2){var Ao=shiftTable[mo>>>1];fo=utils$K.r28shl(fo,Ao),$o=utils$K.r28shl($o,Ao),utils$K.pc2(fo,$o,Fn.keys,mo)}};DES$3.prototype._update=function(Fn,io,fo,$o){var mo=this._desState,Ao=utils$K.readUInt32BE(Fn,io),jo=utils$K.readUInt32BE(Fn,io+4);utils$K.ip(Ao,jo,mo.tmp,0),Ao=mo.tmp[0],jo=mo.tmp[1],this.type==="encrypt"?this._encrypt(mo,Ao,jo,mo.tmp,0):this._decrypt(mo,Ao,jo,mo.tmp,0),Ao=mo.tmp[0],jo=mo.tmp[1],utils$K.writeUInt32BE(fo,Ao,$o),utils$K.writeUInt32BE(fo,jo,$o+4)};DES$3.prototype._pad=function(Fn,io){if(this.padding===!1)return!1;for(var fo=Fn.length-io,$o=io;$o<Fn.length;$o++)Fn[$o]=fo;return!0};DES$3.prototype._unpad=function(Fn){if(this.padding===!1)return Fn;for(var io=Fn[Fn.length-1],fo=Fn.length-io;fo<Fn.length;fo++)assert$h.equal(Fn[fo],io);return Fn.slice(0,Fn.length-io)};DES$3.prototype._encrypt=function(Fn,io,fo,$o,mo){for(var Ao=io,jo=fo,Lo=0;Lo<Fn.keys.length;Lo+=2){var Ho=Fn.keys[Lo],zo=Fn.keys[Lo+1];utils$K.expand(jo,Fn.tmp,0),Ho^=Fn.tmp[0],zo^=Fn.tmp[1];var Go=utils$K.substitute(Ho,zo),Vo=utils$K.permute(Go),Yo=jo;jo=(Ao^Vo)>>>0,Ao=Yo}utils$K.rip(jo,Ao,$o,mo)};DES$3.prototype._decrypt=function(Fn,io,fo,$o,mo){for(var Ao=fo,jo=io,Lo=Fn.keys.length-2;Lo>=0;Lo-=2){var Ho=Fn.keys[Lo],zo=Fn.keys[Lo+1];utils$K.expand(Ao,Fn.tmp,0),Ho^=Fn.tmp[0],zo^=Fn.tmp[1];var Go=utils$K.substitute(Ho,zo),Vo=utils$K.permute(Go),Yo=Ao;Ao=(jo^Vo)>>>0,jo=Yo}utils$K.rip(Ao,jo,$o,mo)};var cbc$1={},assert$g=minimalisticAssert,inherits$b=inherits_browserExports$1,proto={};function CBCState(Mn){assert$g.equal(Mn.length,8,"Invalid IV length"),this.iv=new Array(8);for(var Fn=0;Fn<this.iv.length;Fn++)this.iv[Fn]=Mn[Fn]}function instantiate(Mn){function Fn(mo){Mn.call(this,mo),this._cbcInit()}inherits$b(Fn,Mn);for(var io=Object.keys(proto),fo=0;fo<io.length;fo++){var $o=io[fo];Fn.prototype[$o]=proto[$o]}return Fn.create=function(Ao){return new Fn(Ao)},Fn}cbc$1.instantiate=instantiate;proto._cbcInit=function(){var Fn=new CBCState(this.options.iv);this._cbcState=Fn};proto._update=function(Fn,io,fo,$o){var mo=this._cbcState,Ao=this.constructor.super_.prototype,jo=mo.iv;if(this.type==="encrypt"){for(var Lo=0;Lo<this.blockSize;Lo++)jo[Lo]^=Fn[io+Lo];Ao._update.call(this,jo,0,fo,$o);for(var Lo=0;Lo<this.blockSize;Lo++)jo[Lo]=fo[$o+Lo]}else{Ao._update.call(this,Fn,io,fo,$o);for(var Lo=0;Lo<this.blockSize;Lo++)fo[$o+Lo]^=jo[Lo];for(var Lo=0;Lo<this.blockSize;Lo++)jo[Lo]=Fn[io+Lo]}};var assert$f=minimalisticAssert,inherits$a=inherits_browserExports$1,Cipher$1=cipher,DES$2=des$1;function EDEState(Mn,Fn){assert$f.equal(Fn.length,24,"Invalid key length");var io=Fn.slice(0,8),fo=Fn.slice(8,16),$o=Fn.slice(16,24);Mn==="encrypt"?this.ciphers=[DES$2.create({type:"encrypt",key:io}),DES$2.create({type:"decrypt",key:fo}),DES$2.create({type:"encrypt",key:$o})]:this.ciphers=[DES$2.create({type:"decrypt",key:$o}),DES$2.create({type:"encrypt",key:fo}),DES$2.create({type:"decrypt",key:io})]}function EDE(Mn){Cipher$1.call(this,Mn);var Fn=new EDEState(this.type,this.options.key);this._edeState=Fn}inherits$a(EDE,Cipher$1);var ede=EDE;EDE.create=function(Fn){return new EDE(Fn)};EDE.prototype._update=function(Fn,io,fo,$o){var mo=this._edeState;mo.ciphers[0]._update(Fn,io,fo,$o),mo.ciphers[1]._update(fo,$o,fo,$o),mo.ciphers[2]._update(fo,$o,fo,$o)};EDE.prototype._pad=DES$2.prototype._pad;EDE.prototype._unpad=DES$2.prototype._unpad;des$2.utils=utils$L;des$2.Cipher=cipher;des$2.DES=des$1;des$2.CBC=cbc$1;des$2.EDE=ede;var CipherBase=cipherBase,des=des$2,inherits$9=inherits_browserExports$1,Buffer$j=safeBufferExports$1.Buffer,modes$3={"des-ede3-cbc":des.CBC.instantiate(des.EDE),"des-ede3":des.EDE,"des-ede-cbc":des.CBC.instantiate(des.EDE),"des-ede":des.EDE,"des-cbc":des.CBC.instantiate(des.DES),"des-ecb":des.DES};modes$3.des=modes$3["des-cbc"];modes$3.des3=modes$3["des-ede3-cbc"];var browserifyDes=DES$1;inherits$9(DES$1,CipherBase);function DES$1(Mn){CipherBase.call(this);var Fn=Mn.mode.toLowerCase(),io=modes$3[Fn],fo;Mn.decrypt?fo="decrypt":fo="encrypt";var $o=Mn.key;Buffer$j.isBuffer($o)||($o=Buffer$j.from($o)),(Fn==="des-ede"||Fn==="des-ede-cbc")&&($o=Buffer$j.concat([$o,$o.slice(0,8)]));var mo=Mn.iv;Buffer$j.isBuffer(mo)||(mo=Buffer$j.from(mo)),this._des=io.create({key:$o,iv:mo,type:fo})}DES$1.prototype._update=function(Mn){return Buffer$j.from(this._des.update(Mn))};DES$1.prototype._final=function(){return Buffer$j.from(this._des.final())};var browser$e={},encrypter={},ecb={};ecb.encrypt=function(Mn,Fn){return Mn._cipher.encryptBlock(Fn)};ecb.decrypt=function(Mn,Fn){return Mn._cipher.decryptBlock(Fn)};var cbc={},bufferXor=function(Fn,io){for(var fo=Math.min(Fn.length,io.length),$o=new Buffer$D(fo),mo=0;mo<fo;++mo)$o[mo]=Fn[mo]^io[mo];return $o},xor$7=bufferXor;cbc.encrypt=function(Mn,Fn){var io=xor$7(Fn,Mn._prev);return Mn._prev=Mn._cipher.encryptBlock(io),Mn._prev};cbc.decrypt=function(Mn,Fn){var io=Mn._prev;Mn._prev=Fn;var fo=Mn._cipher.decryptBlock(Fn);return xor$7(fo,io)};var cfb={},Buffer$i=safeBufferExports$1.Buffer,xor$6=bufferXor;function encryptStart(Mn,Fn,io){var fo=Fn.length,$o=xor$6(Fn,Mn._cache);return Mn._cache=Mn._cache.slice(fo),Mn._prev=Buffer$i.concat([Mn._prev,io?Fn:$o]),$o}cfb.encrypt=function(Mn,Fn,io){for(var fo=Buffer$i.allocUnsafe(0),$o;Fn.length;)if(Mn._cache.length===0&&(Mn._cache=Mn._cipher.encryptBlock(Mn._prev),Mn._prev=Buffer$i.allocUnsafe(0)),Mn._cache.length<=Fn.length)$o=Mn._cache.length,fo=Buffer$i.concat([fo,encryptStart(Mn,Fn.slice(0,$o),io)]),Fn=Fn.slice($o);else{fo=Buffer$i.concat([fo,encryptStart(Mn,Fn,io)]);break}return fo};var cfb8={},Buffer$h=safeBufferExports$1.Buffer;function encryptByte$1(Mn,Fn,io){var fo=Mn._cipher.encryptBlock(Mn._prev),$o=fo[0]^Fn;return Mn._prev=Buffer$h.concat([Mn._prev.slice(1),Buffer$h.from([io?Fn:$o])]),$o}cfb8.encrypt=function(Mn,Fn,io){for(var fo=Fn.length,$o=Buffer$h.allocUnsafe(fo),mo=-1;++mo<fo;)$o[mo]=encryptByte$1(Mn,Fn[mo],io);return $o};var cfb1={},Buffer$g=safeBufferExports$1.Buffer;function encryptByte(Mn,Fn,io){for(var fo,$o=-1,mo=8,Ao=0,jo,Lo;++$o<mo;)fo=Mn._cipher.encryptBlock(Mn._prev),jo=Fn&1<<7-$o?128:0,Lo=fo[0]^jo,Ao+=(Lo&128)>>$o%8,Mn._prev=shiftIn(Mn._prev,io?jo:Lo);return Ao}function shiftIn(Mn,Fn){var io=Mn.length,fo=-1,$o=Buffer$g.allocUnsafe(Mn.length);for(Mn=Buffer$g.concat([Mn,Buffer$g.from([Fn])]);++fo<io;)$o[fo]=Mn[fo]<<1|Mn[fo+1]>>7;return $o}cfb1.encrypt=function(Mn,Fn,io){for(var fo=Fn.length,$o=Buffer$g.allocUnsafe(fo),mo=-1;++mo<fo;)$o[mo]=encryptByte(Mn,Fn[mo],io);return $o};var ofb={},xor$5=bufferXor;function getBlock$2(Mn){return Mn._prev=Mn._cipher.encryptBlock(Mn._prev),Mn._prev}ofb.encrypt=function(Mn,Fn){for(;Mn._cache.length<Fn.length;)Mn._cache=Buffer$D.concat([Mn._cache,getBlock$2(Mn)]);var io=Mn._cache.slice(0,Fn.length);return Mn._cache=Mn._cache.slice(Fn.length),xor$5(Fn,io)};var ctr={};function incr32$2(Mn){for(var Fn=Mn.length,io;Fn--;)if(io=Mn.readUInt8(Fn),io===255)Mn.writeUInt8(0,Fn);else{io++,Mn.writeUInt8(io,Fn);break}}var incr32_1=incr32$2,xor$4=bufferXor,Buffer$f=safeBufferExports$1.Buffer,incr32$1=incr32_1;function getBlock$1(Mn){var Fn=Mn._cipher.encryptBlockRaw(Mn._prev);return incr32$1(Mn._prev),Fn}var blockSize=16;ctr.encrypt=function(Mn,Fn){var io=Math.ceil(Fn.length/blockSize),fo=Mn._cache.length;Mn._cache=Buffer$f.concat([Mn._cache,Buffer$f.allocUnsafe(io*blockSize)]);for(var $o=0;$o<io;$o++){var mo=getBlock$1(Mn),Ao=fo+$o*blockSize;Mn._cache.writeUInt32BE(mo[0],Ao+0),Mn._cache.writeUInt32BE(mo[1],Ao+4),Mn._cache.writeUInt32BE(mo[2],Ao+8),Mn._cache.writeUInt32BE(mo[3],Ao+12)}var jo=Mn._cache.slice(0,Fn.length);return Mn._cache=Mn._cache.slice(Fn.length),xor$4(Fn,jo)};const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2$5={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modeModules={ECB:ecb,CBC:cbc,CFB:cfb,CFB8:cfb8,CFB1:cfb1,OFB:ofb,CTR:ctr,GCM:ctr},modes$2=require$$2$5;for(var key$5 in modes$2)modes$2[key$5].module=modeModules[modes$2[key$5].mode];var modes_1=modes$2,aes$5={},Buffer$e=safeBufferExports$1.Buffer;function asUInt32Array(Mn){Buffer$e.isBuffer(Mn)||(Mn=Buffer$e.from(Mn));for(var Fn=Mn.length/4|0,io=new Array(Fn),fo=0;fo<Fn;fo++)io[fo]=Mn.readUInt32BE(fo*4);return io}function scrubVec(Mn){for(var Fn=0;Fn<Mn.length;Mn++)Mn[Fn]=0}function cryptBlock(Mn,Fn,io,fo,$o){for(var mo=io[0],Ao=io[1],jo=io[2],Lo=io[3],Ho=Mn[0]^Fn[0],zo=Mn[1]^Fn[1],Go=Mn[2]^Fn[2],Vo=Mn[3]^Fn[3],Yo,Xo,is,yl,us=4,hs=1;hs<$o;hs++)Yo=mo[Ho>>>24]^Ao[zo>>>16&255]^jo[Go>>>8&255]^Lo[Vo&255]^Fn[us++],Xo=mo[zo>>>24]^Ao[Go>>>16&255]^jo[Vo>>>8&255]^Lo[Ho&255]^Fn[us++],is=mo[Go>>>24]^Ao[Vo>>>16&255]^jo[Ho>>>8&255]^Lo[zo&255]^Fn[us++],yl=mo[Vo>>>24]^Ao[Ho>>>16&255]^jo[zo>>>8&255]^Lo[Go&255]^Fn[us++],Ho=Yo,zo=Xo,Go=is,Vo=yl;return Yo=(fo[Ho>>>24]<<24|fo[zo>>>16&255]<<16|fo[Go>>>8&255]<<8|fo[Vo&255])^Fn[us++],Xo=(fo[zo>>>24]<<24|fo[Go>>>16&255]<<16|fo[Vo>>>8&255]<<8|fo[Ho&255])^Fn[us++],is=(fo[Go>>>24]<<24|fo[Vo>>>16&255]<<16|fo[Ho>>>8&255]<<8|fo[zo&255])^Fn[us++],yl=(fo[Vo>>>24]<<24|fo[Ho>>>16&255]<<16|fo[zo>>>8&255]<<8|fo[Go&255])^Fn[us++],Yo=Yo>>>0,Xo=Xo>>>0,is=is>>>0,yl=yl>>>0,[Yo,Xo,is,yl]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G$3=function(){for(var Mn=new Array(256),Fn=0;Fn<256;Fn++)Fn<128?Mn[Fn]=Fn<<1:Mn[Fn]=Fn<<1^283;for(var io=[],fo=[],$o=[[],[],[],[]],mo=[[],[],[],[]],Ao=0,jo=0,Lo=0;Lo<256;++Lo){var Ho=jo^jo<<1^jo<<2^jo<<3^jo<<4;Ho=Ho>>>8^Ho&255^99,io[Ao]=Ho,fo[Ho]=Ao;var zo=Mn[Ao],Go=Mn[zo],Vo=Mn[Go],Yo=Mn[Ho]*257^Ho*16843008;$o[0][Ao]=Yo<<24|Yo>>>8,$o[1][Ao]=Yo<<16|Yo>>>16,$o[2][Ao]=Yo<<8|Yo>>>24,$o[3][Ao]=Yo,Yo=Vo*16843009^Go*65537^zo*257^Ao*16843008,mo[0][Ho]=Yo<<24|Yo>>>8,mo[1][Ho]=Yo<<16|Yo>>>16,mo[2][Ho]=Yo<<8|Yo>>>24,mo[3][Ho]=Yo,Ao===0?Ao=jo=1:(Ao=zo^Mn[Mn[Mn[Vo^zo]]],jo^=Mn[Mn[jo]])}return{SBOX:io,INV_SBOX:fo,SUB_MIX:$o,INV_SUB_MIX:mo}}();function AES(Mn){this._key=asUInt32Array(Mn),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var Mn=this._key,Fn=Mn.length,io=Fn+6,fo=(io+1)*4,$o=[],mo=0;mo<Fn;mo++)$o[mo]=Mn[mo];for(mo=Fn;mo<fo;mo++){var Ao=$o[mo-1];mo%Fn===0?(Ao=Ao<<8|Ao>>>24,Ao=G$3.SBOX[Ao>>>24]<<24|G$3.SBOX[Ao>>>16&255]<<16|G$3.SBOX[Ao>>>8&255]<<8|G$3.SBOX[Ao&255],Ao^=RCON[mo/Fn|0]<<24):Fn>6&&mo%Fn===4&&(Ao=G$3.SBOX[Ao>>>24]<<24|G$3.SBOX[Ao>>>16&255]<<16|G$3.SBOX[Ao>>>8&255]<<8|G$3.SBOX[Ao&255]),$o[mo]=$o[mo-Fn]^Ao}for(var jo=[],Lo=0;Lo<fo;Lo++){var Ho=fo-Lo,zo=$o[Ho-(Lo%4?0:4)];Lo<4||Ho<=4?jo[Lo]=zo:jo[Lo]=G$3.INV_SUB_MIX[0][G$3.SBOX[zo>>>24]]^G$3.INV_SUB_MIX[1][G$3.SBOX[zo>>>16&255]]^G$3.INV_SUB_MIX[2][G$3.SBOX[zo>>>8&255]]^G$3.INV_SUB_MIX[3][G$3.SBOX[zo&255]]}this._nRounds=io,this._keySchedule=$o,this._invKeySchedule=jo};AES.prototype.encryptBlockRaw=function(Mn){return Mn=asUInt32Array(Mn),cryptBlock(Mn,this._keySchedule,G$3.SUB_MIX,G$3.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(Mn){var Fn=this.encryptBlockRaw(Mn),io=Buffer$e.allocUnsafe(16);return io.writeUInt32BE(Fn[0],0),io.writeUInt32BE(Fn[1],4),io.writeUInt32BE(Fn[2],8),io.writeUInt32BE(Fn[3],12),io};AES.prototype.decryptBlock=function(Mn){Mn=asUInt32Array(Mn);var Fn=Mn[1];Mn[1]=Mn[3],Mn[3]=Fn;var io=cryptBlock(Mn,this._invKeySchedule,G$3.INV_SUB_MIX,G$3.INV_SBOX,this._nRounds),fo=Buffer$e.allocUnsafe(16);return fo.writeUInt32BE(io[0],0),fo.writeUInt32BE(io[3],4),fo.writeUInt32BE(io[2],8),fo.writeUInt32BE(io[1],12),fo};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$d=safeBufferExports$1.Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(Mn){return[Mn.readUInt32BE(0),Mn.readUInt32BE(4),Mn.readUInt32BE(8),Mn.readUInt32BE(12)]}function fromArray(Mn){var Fn=Buffer$d.allocUnsafe(16);return Fn.writeUInt32BE(Mn[0]>>>0,0),Fn.writeUInt32BE(Mn[1]>>>0,4),Fn.writeUInt32BE(Mn[2]>>>0,8),Fn.writeUInt32BE(Mn[3]>>>0,12),Fn}function GHASH$1(Mn){this.h=Mn,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(Mn){for(var Fn=-1;++Fn<Mn.length;)this.state[Fn]^=Mn[Fn];this._multiply()};GHASH$1.prototype._multiply=function(){for(var Mn=toArray$1(this.h),Fn=[0,0,0,0],io,fo,$o,mo=-1;++mo<128;){for(fo=(this.state[~~(mo/8)]&1<<7-mo%8)!==0,fo&&(Fn[0]^=Mn[0],Fn[1]^=Mn[1],Fn[2]^=Mn[2],Fn[3]^=Mn[3]),$o=(Mn[3]&1)!==0,io=3;io>0;io--)Mn[io]=Mn[io]>>>1|(Mn[io-1]&1)<<31;Mn[0]=Mn[0]>>>1,$o&&(Mn[0]=Mn[0]^225<<24)}this.state=fromArray(Fn)};GHASH$1.prototype.update=function(Mn){this.cache=Buffer$d.concat([this.cache,Mn]);for(var Fn;this.cache.length>=16;)Fn=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(Fn)};GHASH$1.prototype.final=function(Mn,Fn){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,Mn,0,Fn])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports$1,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(Mn,Fn){var io=0;Mn.length!==Fn.length&&io++;for(var fo=Math.min(Mn.length,Fn.length),$o=0;$o<fo;++$o)io+=Mn[$o]^Fn[$o];return io}function calcIv(Mn,Fn,io){if(Fn.length===12)return Mn._finID=Buffer$c.concat([Fn,Buffer$c.from([0,0,0,1])]),Buffer$c.concat([Fn,Buffer$c.from([0,0,0,2])]);var fo=new GHASH(io),$o=Fn.length,mo=$o%16;fo.update(Fn),mo&&(mo=16-mo,fo.update(Buffer$c.alloc(mo,0))),fo.update(Buffer$c.alloc(8,0));var Ao=$o*8,jo=Buffer$c.alloc(8);jo.writeUIntBE(Ao,0,8),fo.update(jo),Mn._finID=fo.state;var Lo=Buffer$c.from(Mn._finID);return incr32(Lo),Lo}function StreamCipher$3(Mn,Fn,io,fo){Transform$5.call(this);var $o=Buffer$c.alloc(4,0);this._cipher=new aes$4.AES(Fn);var mo=this._cipher.encryptBlock($o);this._ghash=new GHASH(mo),io=calcIv(this,io,mo),this._prev=Buffer$c.from(io),this._cache=Buffer$c.allocUnsafe(0),this._secCache=Buffer$c.allocUnsafe(0),this._decrypt=fo,this._alen=0,this._len=0,this._mode=Mn,this._authTag=null,this._called=!1}inherits$8(StreamCipher$3,Transform$5);StreamCipher$3.prototype._update=function(Mn){if(!this._called&&this._alen){var Fn=16-this._alen%16;Fn<16&&(Fn=Buffer$c.alloc(Fn,0),this._ghash.update(Fn))}this._called=!0;var io=this._mode.encrypt(this,Mn);return this._decrypt?this._ghash.update(Mn):this._ghash.update(io),this._len+=Mn.length,io};StreamCipher$3.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var Mn=xor$3(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(Mn,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=Mn,this._cipher.scrub()};StreamCipher$3.prototype.getAuthTag=function(){if(this._decrypt||!Buffer$c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};StreamCipher$3.prototype.setAuthTag=function(Fn){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=Fn};StreamCipher$3.prototype.setAAD=function(Fn){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(Fn),this._alen+=Fn.length};var authCipher=StreamCipher$3,aes$3=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$4=cipherBase,inherits$7=inherits_browserExports$1;function StreamCipher$2(Mn,Fn,io,fo){Transform$4.call(this),this._cipher=new aes$3.AES(Fn),this._prev=Buffer$b.from(io),this._cache=Buffer$b.allocUnsafe(0),this._secCache=Buffer$b.allocUnsafe(0),this._decrypt=fo,this._mode=Mn}inherits$7(StreamCipher$2,Transform$4);StreamCipher$2.prototype._update=funct{"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":"4haraTP2H9r82oEkrxvKNYcSGkRGbMAWLZnwL6BjrEBH","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.