1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0ea7cb20-e403-44e7-8222-c95c49448dd1",e._sentryDebugIdIdentifier="sentry-dbid-0ea7cb20-e403-44e7-8222-c95c49448dd1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=x,t.fromBig=s,t.split=i;let r=BigInt(0x100000000-1),n=BigInt(32);function s(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e,t=!1){let r=e.length,n=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){let{h:r,l:o}=s(e[i],t);[n[i],a[i]]=[r,o]}return[n,a]}let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;let o=(e,t,r)=>e>>>r;t.shrSH=o;let c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;let l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;let u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;let d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;let f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;let h=(e,t)=>t;t.rotr32H=h;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;let b=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=b;let m=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=m;let y=(e,t,r)=>e<<r-32|t>>>64-r;function x(e,t,r,n){let s=(t>>>0)+(n>>>0);return{h:e+r+(s/0x100000000|0)|0,l:0|s}}t.rotlBL=y;let A=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=A;let w=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;t.add3H=w;let v=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=v;let E=(e,t,r,n,s)=>t+r+n+s+(e/0x100000000|0)|0;t.add4H=E;let P=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);t.add5L=P;let k=(e,t,r,n,s,i)=>t+r+n+s+i+(e/0x100000000|0)|0;t.add5H=k,t.default={fromBig:s,split:i,toBig:a,shrSH:o,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:b,rotlBH:m,rotlBL:y,add:x,add3L:A,add3H:w,add4L:v,add4H:E,add5H:k,add5L:P}},1083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;let n=r(85910),s=r(15953),i=r(21287),a=r(43814),o=r(11498),c=r(70079),l=r(77014),u=r(23847);t.defaultPath="m/44'/60'/0'/0/0";let d=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function h(e,t){let r="";for(;e;)r="0123456789abcdef"[e%16]+r,e=Math.trunc(e/16);for(;r.length<2*t;)r="0"+r;return"0x"+r}function p(e){let t=(0,a.getBytes)(e),r=(0,a.dataSlice)((0,n.sha256)((0,n.sha256)(t)),0,4),s=(0,a.concat)([t,r]);return(0,a.encodeBase58)(s)}let g={};function b(e,t,r,s){let i=new Uint8Array(37);0x80000000&e?((0,a.assert)(null!=s,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),i.set((0,a.getBytes)(s),1)):i.set((0,a.getBytes)(r));for(let t=24;t>=0;t-=8)i[33+(t>>3)]=e>>24-t&255;let o=(0,a.getBytes)((0,n.computeHmac)("sha512",t,i));return{IL:o.slice(0,32),IR:o.slice(32)}}function m(e,t){let r=t.split("/");(0,a.assertArgument)(r.length>0,"invalid path","path",t),"m"===r[0]&&((0,a.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),r.shift());let n=e;for(let e=0;e<r.length;e++){let t=r[e];if(t.match(/^[0-9]+'$/)){let r=parseInt(t.substring(0,t.length-1));(0,a.assertArgument)(r<0x80000000,"invalid path index",`path[${e}]`,t),n=n.deriveChild(0x80000000+r)}else if(t.match(/^[0-9]+$/)){let r=parseInt(t);(0,a.assertArgument)(r<0x80000000,"invalid path index",`path[${e}]`,t),n=n.deriveChild(r)}else(0,a.assertArgument)(!1,"invalid path component",`path[${e}]`,t)}return n}class y extends c.BaseWallet{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,r,s,i,o,c,l,u){super(t,u),(0,a.assertPrivate)(e,g,"HDNodeWallet"),(0,a.defineProperties)(this,{publicKey:t.compressedPublicKey});let d=(0,a.dataSlice)((0,n.ripemd160)((0,n.sha256)(this.publicKey)),0,4);(0,a.defineProperties)(this,{parentFingerprint:r,fingerprint:d,chainCode:s,path:i,index:o,depth:c}),(0,a.defineProperties)(this,{mnemonic:l})}connect(e){return new y(g,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}#e(){let e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&"en"===t.wordlist.locale&&""===t.password&&(e.mnemonic={path:this.path,locale:"en",entropy:t.entropy}),e}
1async encrypt(e,t){return await (0,u.encryptKeystoreJson)(this.#e(),e,{progressCallback:t})}encryptSync(e){return(0,u.encryptKeystoreJsonSync)(this.#e(),e)}get extendedKey(){return(0,a.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),p((0,a.concat)(["0x0488ADE4",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,(0,a.concat)(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new x(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){let t=(0,a.getNumber)(e,"index");(0,a.assertArgument)(t<=0xffffffff,"invalid index","index",t);let r=this.path;r&&(r+="/"+(0x7fffffff&t),0x80000000&t&&(r+="'"));let{IR:s,IL:i}=b(t,this.chainCode,this.publicKey,this.privateKey);return new y(g,new n.SigningKey((0,a.toBeHex)(((0,a.toBigInt)(i)+BigInt(this.privateKey))%f,32)),this.fingerprint,(0,a.hexlify)(s),r,t,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return m(this,e)}static #t(e,t){(0,a.assertArgument)((0,a.isBytesLike)(e),"invalid seed","seed","[REDACTED]");let r=(0,a.getBytes)(e,"seed");(0,a.assertArgument)(r.length>=16&&r.length<=64,"invalid seed","seed","[REDACTED]");let s=(0,a.getBytes)((0,n.computeHmac)("sha512",d,r));return new y(g,new n.SigningKey((0,a.hexlify)(s.slice(0,32))),"0x00000000",(0,a.hexlify)(s.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){let t=(0,a.toBeArray)((0,a.decodeBase58)(e));(0,a.assertArgument)(82===t.length||p(t.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");let r=t[4],s=(0,a.hexlify)(t.slice(5,9)),o=parseInt((0,a.hexlify)(t.slice(9,13)).substring(2),16),c=(0,a.hexlify)(t.slice(13,45)),l=t.slice(45,78);switch((0,a.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{let e=(0,a.hexlify)(l);return new x(g,(0,i.computeAddress)(e),e,s,c,null,o,r,null)}case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new y(g,new n.SigningKey(l.slice(1)),s,c,null,o,r,null,null)}(0,a.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,r,s){null==e&&(e=""),null==r&&(r=t.defaultPath),null==s&&(s=o.LangEn.wordlist());let i=l.Mnemonic.fromEntropy((0,n.randomBytes)(16),e,s);return y.#t(i.computeSeed(),i).derivePath(r)}static fromMnemonic(e,r){return r||(r=t.defaultPath),y.#t(e.computeSeed(),e).derivePath(r)}static fromPhrase(e,r,n,s){null==r&&(r=""),null==n&&(n=t.defaultPath),null==s&&(s=o.LangEn.wordlist());let i=l.Mnemonic.fromPhrase(e,r,s);return y.#t(i.computeSeed(),i).derivePath(n)}static fromSeed(e){return y.#t(e,null)}}t.HDNodeWallet=y;class x extends s.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,r,s,i,o,c,l,u){super(t,u),(0,a.assertPrivate)(e,g,"HDNodeVoidWallet"),(0,a.defineProperties)(this,{publicKey:r});let d=(0,a.dataSlice)((0,n.ripemd160)((0,n.sha256)(r)),0,4);(0,a.defineProperties)(this,{publicKey:r,fingerprint:d,parentFingerprint:s,chainCode:i,path:o,index:c,depth:l})}connect(e){return new x(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,a.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),p((0,a.concat)(["0x0488B21E",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){let t=(0,a.getNumber)(e,"index");(0,a.assertArgument)(t<=0xffffffff,"invalid index","index",t);let r=this.path;r&&(r+="/"+(0x7fffffff&t),0x80000000&t&&(r+="'"));let{IR:s,IL:o}=b(t,this.chainCode,this.publicKey,null),c=n.SigningKey.addPoints(o,this.publicKey,!0);return new x(g,(0,i.computeAddress)(c),c,this.fingerprint,(0,a.hexlify)(s),r,t,this.depth+1,this.provider)}derivePath(e){return m(this,e)}}t.HDNodeVoidWallet=x,t.getAccountPath=function(e){let t=(0,a.getNumber)(e,"index");return(0,a.assertArgument)(t>=0&&t<0x80000000,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`},t.getIndexedAccountPath=function(e){let t=(0,a.getNumber)(e,"index");return(0,a.assertArgument)(t>=0&&t<0x80000000,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}},1700:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;let n=r(43814),s=r(1992),i=r(16887),a=r(96854),o="919b412a057b5e9c9b6dce193c5a60242d6efadb";class c extends a.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);null==t&&(t=o),super(c.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{token:t})}_getProvider(e){try{return new c(e,this.token)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.token===o}static getRequest(e,t){null==t&&(t=o);let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return r.allowGzip=!0,t===o&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("QuickNodeProvider"),!0)),r}}t.QuickNodeProvider=c},1992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;let r=new Set;t.showThrottleMessage=function(e){r.has(e)||(r.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},2026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},5046:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cb=void 0;let s=n(r(63287)),i=s.default.utils,a=s.default.ids,o=r(75503),c=/^(?<d
1ate>[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/,l=e=>{let t=c.exec(e);if(!t)return!1;let r=new Date(t.groups.date).toISOString(),n=c.exec(r);return t.groups.date===n.groups.date};t.cb={signInWithEtherium:function(e,t,r,n){switch(e.state){case a.ACTIVE:if("object"!=typeof n||null===n)throw Error("data must be an object");break;case a.NOMATCH:n.errors.push(`invalid message: max line number was ${n.lineno}`)}},lineno:function(e,t,r,n){e.state===a.MATCH&&(n.lineno+=1)},exTitle:function(e,t,r,n){e.state===a.NOMATCH&&(n.lineno-=1)},nbTitle:function(e,t,r,n){e.state===a.NOMATCH&&(n.lineno-=1)},riTitle:function(e,t,r,n){e.state===a.NOMATCH&&(n.lineno-=1)},reTitle:function(e,t,r,n){e.state===a.MATCH?n.resources=[]:e.state===a.NOMATCH&&(n.lineno-=1)},oscheme:function(e,t,r,n){e.state===a.MATCH&&(n.scheme=i.charsToString(t,r,e.phraseLength-3))},domain:function(e,t,r,n){switch(e.state){case a.MATCH:n.domain=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:n.errors.push(`line ${n.lineno}: domain cannot be empty`);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid domain`)}},address:function(e,t,r,n){switch(e.state){case a.MATCH:n.address=i.charsToString(t,r,e.phraseLength),(0,o.isEIP55Address)(n.address)||n.errors.push(`line ${n.lineno}: invalid EIP-55 address - ${n.address}`);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid address`)}},statement:function(e,t,r,n){e.state===a.MATCH&&(n.statement=i.charsToString(t,r,e.phraseLength))},emptyStatement:function(e,t,r,n){e.state===a.MATCH&&(n.statement="")},version:function(e,t,r,n){switch(e.state){case a.MATCH:n.version=i.charsToString(t,r,e.phraseLength);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid version`)}},nonce:function(e,t,r,n){switch(e.state){case a.MATCH:n.nonce=i.charsToString(t,r,e.phraseLength);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid nonce`)}},issuedAt:function(e,t,r,n){switch(e.state){case a.MATCH:n.issuedAt=i.charsToString(t,r,e.phraseLength),l(n.issuedAt)||n.errors.push(`line ${n.lineno}: invalid issued-at date time semantics`);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid issued-at date time syntax`)}},expirationTime:function(e,t,r,n){switch(e.state){case a.MATCH:n.expirationTime=i.charsToString(t,r,e.phraseLength),l(n.expirationTime)||n.errors.push(`line ${n.lineno}: invalid expiration-time date time semantics`);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid expiration-time date time syntax`)}},notBefore:function(e,t,r,n){switch(e.state){case a.MATCH:n.notBefore=i.charsToString(t,r,e.phraseLength),l(n.notBefore)||n.errors.push(`line ${n.lineno}: invalid not-before date time semantics`);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid not-before date time syntax`)}},requestId:function(e,t,r,n){switch(e.state){case a.MATCH:n.requestId=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:n.requestId="";break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid requestID`)}},chainId:function(e,t,r,n){switch(e.state){case a.MATCH:n.chainId=(0,o.parseIntegerNumber)(i.charsToString(t,r,e.phraseLength));break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid chain-id`)}},uriR:function(e,t,r,n){switch(e.state){case a.MATCH:n.uriR=i.charsToString(t,r,e.phraseLength);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid resource URI`)}},resource:function(e,t,r,n){switch(e.state){case a.MATCH:n.resources.push(n.uriR),delete n.uriR;break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid resource`)}},scheme:function(e,t,r,n){switch(e.state){case a.MATCH:n.uriElements.scheme=i.charsToString(t,r,e.phraseLength);break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI scheme`)}},userinfo:function(e,t,r,n){e.state===a.MATCH&&(n.uriElements.userinfo=i.charsToString(t,r,e.phraseLength-1))},host:function(e,t,r,n){switch(e.state){case a.ACTIVE:n.iplit=!1;break;case a.MATCH:n.iplit?n.uriElements.host=i.charsToString(t,r+1,e.phraseLength-2):n.uriElements.host=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:n.uriElements.host="";break;case a.NOMATCH:n.errors.push(`line ${n.lineno}
1: invalid URI host`)}},ipLiteral:function(e,t,r,n){e.state===a.MATCH&&(n.iplit=!0)},port:function(e,t,r,n){switch(e.state){case a.MATCH:n.uriElements.port=(0,o.parseIntegerNumber)(i.charsToString(t,r,e.phraseLength));break;case a.EMPTY:n.uriElements.port="";break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI port`)}},pathAbempty:function(e,t,r,n){switch(e.state){case a.MATCH:n.uriElements.path=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:n.uriElements.path="";break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI path-abempty`)}},pathAbsolute:function(e,t,r,n){e.state===a.MATCH&&(n.uriElements.path=i.charsToString(t,r,e.phraseLength))},pathRootless:function(e,t,r,n){e.state===a.MATCH&&(n.uriElements.path=i.charsToString(t,r,e.phraseLength))},pathEmpty:function(e,t,r,n){switch(e.state){case a.MATCH:case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI - path-empty must be empty`);break;case a.EMPTY:n.uriElements.path=""}},query:function(e,t,r,n){switch(e.state){case a.MATCH:n.uriElements.query=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:n.uriElements.query="";break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI query`)}},fragment:function(e,t,r,n){switch(e.state){case a.MATCH:n.uriElements.fragment=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:n.uriElements.fragment="";break;case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI fragment`)}},uri:function(e,t,r,n){switch(e.state){case a.MATCH:n.uri=i.charsToString(t,r,e.phraseLength);break;case a.EMPTY:case a.NOMATCH:n.errors.push(`line ${n.lineno}: invalid URI`)}},ipv4:function(e,t,r,n){e.state===a.MATCH&&(n.ipv4=!0)},h16:function(e,t,r,n){e.state===a.MATCH&&(n.h16count+=1)},nodcolon:function(e,t,r,n){switch(e.state){case a.ACTIVE:n.h16count=0,n.ipv4=!1;break;case a.MATCH:n.ipv4?6===n.h16count?e.state=a.MATCH:(e.state=a.NOMATCH,e.phraseLength=0):8===n.h16count?e.state=a.MATCH:(e.state=a.NOMATCH,e.phraseLength=0)}},dcolon:function(e,t,r,n){switch(e.state){case a.ACTIVE:n.h16count=0,n.ipv4=!1;break;case a.MATCH:n.ipv4?n.h16count<6?e.state=a.MATCH:(e.state=a.NOMATCH,e.phraseLength=0):n.h16count<8?e.state=a.MATCH:(e.state=a.NOMATCH,e.phraseLength=0)}},decOctet:function(e,t,r,n){switch(e.state){case a.ACTIVE:n.octet=0;break;case a.MATCH:n.octet>255?(e.state=a.NOMATCH,e.phraseLength=0):e.state=a.MATCH}},decDigit:function(e,t,r,n){e.state===a.MATCH&&(n.octet=10*n.octet+t[r]-48)}}},5676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let n=r(46307),s=r(51113);class i{constructor(){if(this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new s.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}t.SystemRandomSource=i},6045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.BlockscoutProvider=t.AnkrProvider=t.AlchemyProvi
1der=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.verifyAuthorization=t.hashAuthorization=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.authorizationify=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=t.EnsPlugin=t.Network=t.EnsResolver=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=void 0;var n=r(85263);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return n.version}});var s=r(88221);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return s.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return s.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return s.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return s.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return s.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return s.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return s.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return s.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return s.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return s.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return s.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return s.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return s.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return s.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return s.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return s.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return s.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return s.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return s.Typed}});var i=r(8651);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return i.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return i.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}
1),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}});var a=r(80114);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return a.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return a.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return a.MessagePrefix}});var o=r(46685);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return o.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return o.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return o.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return o.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return o.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return o.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return o.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return o.UndecodedEventLog}});var c=r(85910);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return c.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return c.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return c.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return c.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return c.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return c.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return c.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return c.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var l=r(47071);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return l.hashAuthorization}}),Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return l.verifyAuthorization}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}
1});var u=r(15953);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return u.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return u.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return u.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return u.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return u.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return u.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return u.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return u.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return u.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return u.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return u.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return u.AnkrProvider}}),Object.defineProperty(t,"BlockscoutProvider",{enumerable:!0,get:function(){return u.BlockscoutProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return u.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return u.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return u.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return u.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return u.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return u.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return u.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return u.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return u.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return u.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return u.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return u.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return u.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return u.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return u.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return u.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return u.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return u.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return u.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return u.showThrottleMessage}});var d=r(21287);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return d.accessListify}}),Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return d.authorizationify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return d.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return d.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return d.Transaction}});var f=r(43814);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return f.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return f.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return f.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return f.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return f.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return f.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return f.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return f.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return f.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return f.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return f.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return f.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return f.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return f.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return f.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return f.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return f.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return f.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return f.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return f.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return f.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return f.assertPrivate}}
1),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return f.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return f.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return f.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return f.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return f.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return f.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return f.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return f.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return f.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return f.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return f.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return f.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return f.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return f.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return f.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return f.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return f.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return f.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return f.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return f.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return f.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return f.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return f.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return f.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return f.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return f.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return f.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return f.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return f.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return f.uuidV4}});var h=r(23522);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return h.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return h.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return h.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return h.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return h.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return h.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return h.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return h.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return h.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return h.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return h.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return h.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return h.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return h.encryptKe
1ystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return h.encryptKeystoreJsonSync}});var p=r(24290);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return p.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return p.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return p.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return p.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return p.wordlists}})},6330:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function s(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function o(e,t){s(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=s,t.hash=i,t.exists=a,t.output=o,t.default={number:r,bool:n,bytes:s,hash:i,exists:a,output:o}},6555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;let n=r(92111);class s{constructor(e,t,r){if(r&&!(this instanceof r))throw Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new n.AES(t)},name:{enumerable:!0,value:e}})}}t.ModeOfOperation=s},7511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkInvalidKeys=t.isValidISO8601Date=t.generateNonce=t.checkContractWalletSignature=void 0;let n=r(97762),s=r(36548),i=r(45857),a=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],o=/^(?<date>[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/;t.checkContractWalletSignature=async(e,t,r)=>{if(!r)return!1;let n=new s.Contract(e.address,a,r),o=(0,i.hashMessage)(e.prepareMessage());return await n.isValidSignature(o,t)==="0x1626ba7e"},t.generateNonce=()=>{let e=(0,n.randomStringForEntropy)(96);if(!e||e.length<8)throw Error("Error during nonce creation.");return e},t.isValidISO8601Date=e=>{let t=o.exec(e);if(!t)return!1;let r=new Date(t.groups.date).toISOString(),n=o.exec(r);return t.groups.date===n.groups.date},t.checkInvalidKeys=(e,t)=>{let r=[];return Object.keys(e).forEach(e=>{t.includes(e)||r.push(e)}),r}},7528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;let n=r(43814);t.WordSize=32;let s=new Uint8Array(t.WordSize),i=["then"],a={},o=new WeakMap;function c(e){return o.get(e)}function l(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}class u extends Array{#r;constructor(...e){var t,r;let s=e[0],u=e[1],d=(e[2]||[]).slice(),f=!0;s!==a&&(u=e,d=[],f=!1),super(u.length),u.forEach((e,t)=>{this[t]=e});let h=d.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(t=Object.freeze(u.map((e,t)=>{let r=d[t];return null!=r&&1===h.get(r)?r:null})),o.set(this,t),this.#r=[],null==this.#r&&this.#r,!f)return;Object.freeze(this);let p=new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){let r=(0,n.getNumber)(t,"%index");if(r<0||r>=this.length)throw RangeError("out of result range");let s=e[r];return s instanceof Error&&l(`index ${r}`,s),s}if(i.indexOf(t)>=0)return Reflect.get(e,t,r);let s=e[t];if(s instanceof Function)return function(...t){return s.apply(this===r?e:this,t)};if(!(t in e))return e.getValue.apply(this===r?e:this,[t])}return Reflect.get(e,t,r)}});return r=c(this),o.set(p,r),p}toArray(e){let t=[];return this.forEach((r,n)=>{r instanceof Error&&l(`index ${n}`,r),e&&r instanceof u&&(r=r.toArray(e)),t.push(r)}),t}toObject(e){let t=c(this);return t.reduce((r,s,i)=>((0,n.assert)(null!=s,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),function e(t,r,n){return t.indexOf(null)>=0?r.map((t,r)=>t instanceof u?e(c(t),t,n):t):t.reduce((t,s,i)=>{let a=r.getValue(s);return s in t||(n&&a instanceof u&&(a=e(c(a),a,n)),t[s]=a),t},{})}(t,this,e)),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);let r=c(this),n=[],s=[];for(let i=e;i<t;i++)n.push(this[i]),s.push(r[i]);return new u(a,n,s)}filter(e,t){let r=c(this),n=[],s=[];for(let i=0;i<this.length;i++){let a=this[i];a instanceof Error&&l(`index ${i}`,a),e.call(t,a,i,this)&&(n.push(a),s.push(r[i]))}return new u(a,n,s)}map(e,t){let r=[];for(let n=0;n<this.length;n++){let s=this[n];s instanceof Error&&l(`index ${n}`,s),r.push(e.call(t,s,n,this))}return r}getValue(e){let t=c(this).indexOf(e);if(-1===t)return;let r=this[t];return r instanceof Error&&l(`property ${JSON.stringify(e)}`,r.error),r}static fromItems(e,t){return new u(a,e,t)}}function d(e){let r=(0,n.toBeArray)(e);return(0,n.assert)(r.length<=t.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:r,length:t.WordSize,offset:r.length}),r.length!==t.WordSize&&(r=(0,n.getBytesCopy)((0,n.concat)([s.slice(r.length%t.WordSize),r]))),r}t.Result=u,t.checkResultErrors=function(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let s in n){let i=e.slice();i.push(s);try{r(i,n[s])}catch(e){t.push({path:i,error:e})}}};return r([],e),t};class f{name;type;localName;dynamic;constructor(e,t,r,s){(0,n.defineProperties)(this,{name:e,type:t,localName:r,dynamic:s},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,n.assertArgument)(!1,e,this.localName,t)}}t.Coder=f;class h{#n;#s;constructor(){this.#n=[],this.#s=0}
1get data(){return(0,n.concat)(this.#n)}get length(){return this.#s}#i(e){return this.#n.push(e),this.#s+=e.length,e.length}appendWriter(e){return this.#i((0,n.getBytesCopy)(e.data))}writeBytes(e){let r=(0,n.getBytesCopy)(e),i=r.length%t.WordSize;return i&&(r=(0,n.getBytesCopy)((0,n.concat)([r,s.slice(i)]))),this.#i(r)}writeValue(e){return this.#i(d(e))}writeUpdatableValue(){let e=this.#n.length;return this.#n.push(s),this.#s+=t.WordSize,t=>{this.#n[e]=d(t)}}}t.Writer=h;class p{allowLoose;#n;#a;#o;#c;#l;constructor(e,t,r){(0,n.defineProperties)(this,{allowLoose:!!t}),this.#n=(0,n.getBytesCopy)(e),this.#o=0,this.#c=null,this.#l=null!=r?r:1024,this.#a=0}get data(){return(0,n.hexlify)(this.#n)}get dataLength(){return this.#n.length}get consumed(){return this.#a}get bytes(){return new Uint8Array(this.#n)}#u(e){if(this.#c)return this.#c.#u(e);this.#o+=e,(0,n.assert)(this.#l<1||this.#o<=this.#l*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#l} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,n.getBytesCopy)(this.#n),offset:this.#a,length:e,info:{bytesRead:this.#o,dataLength:this.dataLength}})}#d(e,r,s){let i=Math.ceil(r/t.WordSize)*t.WordSize;return this.#a+i>this.#n.length&&(this.allowLoose&&s&&this.#a+r<=this.#n.length?i=r:(0,n.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,n.getBytesCopy)(this.#n),length:this.#n.length,offset:this.#a+i})),this.#n.slice(this.#a,this.#a+i)}subReader(e){let t=new p(this.#n.slice(this.#a+e),this.allowLoose,this.#l);return t.#c=this,t}readBytes(e,t){let r=this.#d(0,e,!!t);return this.#u(e),this.#a+=r.length,r.slice(0,e)}readValue(){return(0,n.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,n.toNumber)(this.readBytes(t.WordSize))}}t.Reader=p},7707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;let n=r(43814);t.encodeBytes32String=function(e){let t=(0,n.toUtf8Bytes)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,n.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){let t=(0,n.getBytes)(e,"bytes");if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,n.toUtf8String)(t.slice(0,r))}},8363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},8406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;let n=r(43814);class s{locale;constructor(e){(0,n.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}t.Wordlist=s},8651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var n=r(60371);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return n.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return n.getIcapAddress}});var s=r(42966);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return s.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}});var i=r(67164);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}})},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;let n=r(25265),s=r(44873),i=r(96673),a=["wei","kwei","mwei","gwei","szabo","finney","ether"];function o(e,t){let r=18;if("string"==typeof t){let e=a.indexOf(t);(0,n.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,i.getNumber)(t,"unit"));return s.FixedNumber.fromValue(e,r,{decimals:r,width:512}).toString()}function c(e,t){(0,n.assertArgument)("string"==typeof e,"value must be a string","value",e);let r=18;if("string"==typeof t){let e=a.indexOf(t);(0,n.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,i.getNumber)(t,"unit"));return s.FixedNumber.fromString(e,{decimals:r,width:512}).value}t.formatUnits=o,t.parseUnits=c,t.formatEther=function(e){return o(e,18)},t.parseEther=function(e){return c(e,18)}},8864:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;let n=r(85910),s=r(80114),i=r(21287),a=r(43814);function o(e){return"string"==typeof e&&(e=(0,a.toUtf8Bytes)(e)),(0,n.keccak256)((0,a.concat)([(0,a.toUtf8Bytes)(s.MessagePrefix),(0,a.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=o,t.verifyMessage=function(e,t){let r=o(e);return(0,i.recoverAddress)(r,t)}},9490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(57382);function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function o(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/0x100000000>>>0,t,r),u(e>>>0,t,r+4),t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/0x100000000>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=s,t.writeInt16BE=s,t.writeUint16LE=i,t.writeInt16LE=i,t.readInt32BE=a,t.readUint32BE=o,t.readInt32LE=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 0x100000000*r+n-(n>>31)*0x100000000},t.readUint64BE=function(e,t){return void 0===t&&(t=0),0x100000000*o(e,t)+o(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 0x100000000*c(e,t+4)+r-(r>>31)*0x100000000},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 0x100000000*l(e,t+4)+r},t.writeUint64BE=f,t.writeInt64BE=f,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given b
1itLength");for(var n=0,s=1,i=e/8+r-1;i>=r;i--)n+=t[i]*s,s*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,s=1,i=r;i<r+e/8;i++)n+=t[i]*s,s*=256;return n},t.writeUintBE=function(e,t,r,s){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===s&&(s=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var i=1,a=e/8+s-1;a>=s;a--)r[a]=t/i&255,i*=256;return r},t.writeUintLE=function(e,t,r,s){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===s&&(s=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var i=1,a=s;a<s+e/8;a++)r[a]=t/i&255,i*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},10563:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SiweErrorType=t.SiweError=t.VerifyOptsKeys=t.VerifyParamsKeys=void 0,t.VerifyParamsKeys=["signature","scheme","domain","nonce","time"],t.VerifyOptsKeys=["provider","suppressExceptions","verificationFallback"];class r{constructor(e,t,r){this.type=e,this.expected=t,this.received=r}}t.SiweError=r,function(e){e.EXPIRED_MESSAGE="Expired message.",e.INVALID_DOMAIN="Invalid domain.",e.SCHEME_MISMATCH="Scheme does not match provided scheme for verification.",e.DOMAIN_MISMATCH="Domain does not match provided domain for verification.",e.NONCE_MISMATCH="Nonce does not match provided nonce for verification.",e.INVALID_ADDRESS="Invalid address.",e.INVALID_URI="URI does not conform to RFC 3986.",e.INVALID_NONCE="Nonce size smaller then 8 characters or is not alphanumeric.",e.NOT_YET_VALID_MESSAGE="Message is not valid yet.",e.INVALID_SIGNATURE="Signature does not match address of the message.",e.INVALID_TIME_FORMAT="Invalid time format.",e.INVALID_MESSAGE_VERSION="Invalid message version.",e.UNABLE_TO_PARSE="Unable to parse the message."}(t.SiweErrorType||(t.SiweErrorType={}))},11498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;let n=r(70721),s=null;class i extends n.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskO
1ccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp [email protected]#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|[email protected])[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==s&&(s=new i),s}}t.LangEn=i},11558:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;let n=r(58652),s=r(60286),i=r(58524),a=r(37697),o=r(43814),c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),l=c.crypto||c.msCrypto;t.createHash=function(e){switch(e){case"sha256":return i.sha256.create();case"sha512":return a.sha512.create()}(0,o.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){let r={sha256:i.sha256,sha512:a.sha512}[e];return(0,o.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",e),n.hmac.create(r,t)},t.pbkdf2Sync=function(e,t,r,n,c){let l={sha256:i.sha256,sha512:a.sha512}[c];return(0,o.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",c),(0,s.pbkdf2)(l,e,t,{c:r,dkLen:n})},t.randomBytes=function(e){(0,o.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,o.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);let t=new Uint8Array(e);return l.getRandomValues(t),t}},13538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;let n=r(43814),s=r(84482);class i extends s.AbstractSigner{signer;#f;#h;constructor(e){super(e.provider),(0,n.defineProperties)(this,{signer:e}),this.#f=null,this.#h=0}async getAddress(){return this.signer.getAddress()}connect(e){return new i(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#f&&(this.#f=super.getNonce("pending"));let e=this.#h;return await this.#f+e}return super.getNonce(e)}increment(){this.#h++}reset(){this.#h=0,this.#f=null}async sendTransaction(e){let t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,r){return this.signer.signTypedData(e,t,r)}}t.NonceManager=i},15684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;let n=r(79676),s=r(43814),i=!1,a=function(e){return(0,n.keccak_256)(e)},o=a;function c(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(o(t))}t.keccak256=c,c._=a,c.lock=function(){i=!0},c.register=function(e){if(i)throw TypeError("keccak256 is locked");o=e},Object.freeze(c)},15953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.BlockscoutProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var n=r(93061);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return n.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return n.UnmanagedSubscriber}});var s=r(84482);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return s.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return s.VoidSigner}});var i=r(1992);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return i.showThrottleMessage}});var a=r(87342);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return a.getDefaultProvider}});var o=r(17518);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return o.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return o.MulticoinProviderPlugin}});var c=r(16887);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return c.Network}});var l=r(13538);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var u=r(67598);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}});var d=r(36866);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return d.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return d.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return d.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return d.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return d.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return d.copyRequest}});var f=r(91939);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return f.FallbackProvider}});var h=r(96854);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return h.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return h.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return h.JsonRpcSigner}});var p=r(59155);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return p.BrowserProvider}});var g=r(45796);
1Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return g.AlchemyProvider}});var b=r(68392);Object.defineProperty(t,"BlockscoutProvider",{enumerable:!0,get:function(){return b.BlockscoutProvider}});var m=r(80171);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return m.AnkrProvider}});var y=r(55266);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return y.CloudflareProvider}});var x=r(70366);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return x.ChainstackProvider}});var A=r(54989);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return A.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return A.EtherscanPlugin}});var w=r(65298);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return w.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return w.InfuraWebSocketProvider}});var v=r(52019);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return v.PocketProvider}});var E=r(1700);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return E.QuickNodeProvider}});let P=r(87997);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return P.IpcSocketProvider}});var k=r(69620);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return k.SocketProvider}});var O=r(80716);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return O.WebSocketProvider}});var T=r(69620);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return T.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return T.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return T.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return T.SocketEventSubscriber}})},16701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=x;let n=r(940),s=r(53311),i=BigInt(0),a=BigInt(1),o=BigInt(2),c=BigInt(7),l=BigInt(256),u=BigInt(113),d=[],f=[],h=[];for(let e=0,t=a,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),f.push((e+1)*(e+2)/2%64);let s=i;for(let e=0;e<7;e++)(t=(t<<a^(t>>c)*u)%l)&o&&(s^=a<<(a<<BigInt(e))-a);h.push(s)}let p=(0,n.split)(h,!0),g=p[0],b=p[1],m=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function x(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,s=(t+2)%10,i=r[s],a=r[s+1],o=m(i,a,1)^r[n],c=y(i,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){let n=f[r],i=m(t,s,n),a=y(t,s,n),o=d[r];t=e[o],s=e[o+1],e[o]=i,e[o+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=g[n],e[1]^=b[n]}(0,s.clean)(r)}class A extends s.Hash{constructor(e,t,r,n=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,(0,s.anumber)(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,s.swap32IfBE)(this.state32),x(this.state32,this.rounds),(0,s.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,s.aexists)(this),e=(0,s.toBytes)(e),(0,s.abytes)(e);let{blockLen:t,state:r}=this,n=e.length;for(let s=0;s<n;){let i=Math.min(t-this.pos,n-s);for(let t=0;t<i;t++)r[this.pos++]^=e[s++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,s.aexists)(this,!1),(0,s.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,s.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,s.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,s.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new A(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=A;let w=(e,t,r)=>(0,s.createHasher)(()=>new A(t,e,r));t.sha3_224=w(6,144,28),t.sha3_256=w(6,136,32),t.sha3_384=w(6,104,48),t.sha3_512=w(6,72,64),t.keccak_224=w(1,144,28),t.keccak_256=w(1,136,32),t.keccak_384=w(1,104,48),t.keccak_512=w(1,72,64);let v=(e,t,r)=>(0,s.createXOFer)((n={})=>new A(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=v(31,168,16),t.shake256=v(31,136,32)},16887:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;let n=r(21287),s=r(43814),i=r(67598),a=new Map;class o{#p;#g;#b;constructor(e,t){this.#p=e,this.#g=(0,s.getBigInt)(t),this.#b=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#p}set name(e){this.#p=e}get chainId(){return this.#g}set chainId(e){this.#g=(0,s.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,s.getBigInt)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,s.getBigInt)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,s.getBigInt)(e.chainId)}catch(e){}return!1}if(null!=e.name)return this.name===e.name}return!1}get plugins(){return Array.from(this.#b.values())}attachPlugin(e){if(this.#b.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#b.set(e.name,e.clone()),this}getPlugin(e){return this.#b.get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){let e=new o(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){let t=this.getPlugin("org.ethers.plugins.network.GasCost")||new i.GasCostPlugin,r=t.txBase;if(null==e.to&&(r+=t.txCreate),e.data)for(let n=2;n<e.data.length;n+=2)"00"===e.data.substring(n,n+2)?r+=t.txDataZero:r+=t.txDataNonzero;if(e.accessList){let s=(0,n.accessListify)(e.accessList);for(let e in s)r+=t.txAccessListAddress+t.txAccessListStorageKey*s[e].storageKeys.length}return r}static from(e){if(function(){u||(u=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",0xaa36a7,{ensNetwork:0xaa36a7}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("filecoin",314,{}),e("filecoin-calibration",314159,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[l("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[l("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",0xaa37dc,{}),e("xdai",100,{ensNetwork:1}));function e(e,t,r){let n=function(){let n=new o(e,t);return null!=r.ensNetwork&&n.attachPlugin(new i.EnsPlugin(null,r.ensNetwork)),n.attachPlugin(new i.GasCostPlugin),(r.plugins||[]).forEach(e=>{n.attachPlugin(e)}),n};o.register(e,n),o.register(t,n),r.altNames&&r.altNames.forEach(e=>{o.register(e,n)})}}(),null==e)return o.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){let t=a.get(e);if(t)return t();if("bigint"==typeof e)return new o("unknown",e);(0,s.assertArgument)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,s.assertArgument)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);let t=new o(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new i.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,s.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));let r=a.get(e);r&&(0,s.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),a.set(e,t)}}function c(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw Error(`invalid gwei value: ${e}`);let n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw Error(`invalid gwei value: ${e}`);for(;n[1].length<t;)n[1]+="0";if(n[1].length>9){let e=BigInt(n[1].substring(0,9));!n[1].substring(9).match(/^0+$/)&&e++,n[1]=e.toString()}return BigInt(n[0]+n[1])}function l(e){return new i.FetchUrlFeeDataNetworkPlugin(e,async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{let[t,s]=await Promise.all([r.send(),e()]),i=(n=t).bodyJson.standard;return{gasPrice:s.gasPrice,maxFeePerGas:c(i.maxFee,9),maxPriorityFeePerGas:c(i.maxPriorityFee,9)}}catch(e){(0,s.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:e})}})}t.Network=o;let u=!1},17185:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;let n=r(51930),s=r(25265);function i(e,t,r,n,s){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function a(e,r){null==r&&(r=t.Utf8ErrorFuncs.error);let s=(0,n.getBytes)(e,"bytes"),i=[],a=0;for(;a<s.length;){let e=s[a++];if(e>>7==0){i.push(e);continue}let t=null,n=null;if((224&e)==192)t=1,n=127;else if((240&e)==224)t=2,n=2047;else if((248&e)==240)t=3,n=65535;else{(192&e)==128?a+=r("UNEXPECTED_CONTINUE",a-1,s,i):a+=r("BAD_PREFIX",a-1,s,i);continue}if(a-1+t>=s.length){a+=r("OVERRUN",a-1,s,i);continue}let o=e&(1<<8-t-1)-1;for(let e=0;e<t;e++){let e=s[a];if((192&e)!=128){a+=r("MISSING_CONTINUE",a,s,i),o=null;break}o=o<<6|63&e,a++}if(null!==o){if(o>1114111){a+=r("OUT_OF_RANGE",a-1-t,s,i,o);continue}if(o>=55296&&o<=57343){a+=r("UTF16_SURROGATE",a-1-t,s,i,o);continue}if(o<=n){a+=r("OVERLONG",a-1-t,s,i,o);continue}i.push(o)}}return i}function o(e,t){(0,s.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,s.assertNormalize)(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);(0,s.assertArgument)(t<e.length&&(64512&i)==56320,"invalid surrogate pair","str",e);let a=65536+((1023&n)<<10)+(1023&i);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,n,i){(0,s.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:i,replace:function(e,t,r,n,a){return"OVERLONG"===e?((0,s.assertArgument)("number"==typeof a,"invalid bad code point for replacement","badCodepoint",a),n.push(a),0):(n.push(65533),i(e,t,r,n,a))}}),t.toUtf8Bytes=o,t.toUtf8String=function(e,t){return a(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")},t.toUtf8CodePoints=function(e,t){return a(o(e,t))}},17518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;let n=r(8651),s=r(80114),i=r(46685),a=r(47071),o=r(43814);function c(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,o.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class l{name;constructor(e){(0,o.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw Error("unsupported coin")}async decodeAddress(e,t){throw Error("unsupported coin")}}t.MulticoinProviderPlugin=l;class u extends l{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}}t.BasicMulticoinProviderPlugin=u;let d=RegExp("^(ipfs)://(.*)$","i"),f=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),d,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class h{provider;address;name;#m;#y;constructor(e,t,r){(0,o.defineProperties)(this,{provider:e,address:t,name:r}),this.#m=null,this.#y=new i.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#m&&(this.#m=(async()=>{try{return await this.#y.supportsInterface("0x9061b923")}catch(e){if((0,o.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#m=null,e}})()),await this.#m}async #x(e,t){t=(t||[]).slice();let r=this.#y.interface;t.unshift((0,a.namehash)(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(e),(0,o.assert)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,a.dnsEncode)(this.name,255),r.encodeFunctionData(n,t)],e="resolve(bytes,b
1ytes)"),t.push({enableCcipRead:!0});try{let s=await this.#y[e](...t);if(n)return r.decodeFunctionResult(n,s)[0];return s}catch(e){if(!(0,o.isError)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{let e=await this.#x("addr(bytes32)");if(null==e||e===s.ZeroAddress)return null;return e}catch(e){if((0,o.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<0x80000000){let t=e+0x80000000,r=await this.#x("addr(bytes32,uint)",[t]);if((0,o.isHexString)(r,20))return(0,n.getAddress)(r)}let t=null;for(let r of this.provider.plugins)if(r instanceof l&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;let r=await this.#x("addr(bytes32,uint)",[e]);if(null==r||"0x"===r)return null;let i=await t.decodeAddress(e,r);if(null!=i)return i;(0,o.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){let t=await this.#x("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){let e=await this.#x("contenthash(bytes32)");if(null==e||"0x"===e)return null;let t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e="e3010170"===t[1]?"ipfs":"ipns",r=parseInt(t[4],16);if(t[5].length===2*r)return`${e}://${(0,o.encodeBase58)("0x"+t[2])}`}let r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,o.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let e=[{type:"name",value:this.name}];try{let t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let r=0;r<f.length;r++){let n=t.match(f[r]);if(null==n)continue;let s=n[1].toLowerCase();switch(s){case"https":case"data":return e.push({type:"url",value:t}),{linkage:e,url:t};case"ipfs":{let r=c(t);return e.push({type:"ipfs",value:t}),e.push({type:"url",value:r}),{linkage:e,url:r}}case"erc721":case"erc1155":{let r="erc721"===s?"tokenURI(uint256)":"uri(uint256)";e.push({type:s,value:t});let a=await this.getAddress();if(null==a)return e.push({type:"!owner",value:""}),{url:null,linkage:e};let l=(n[2]||"").split("/");if(2!==l.length)return e.push({type:`!${s}caip`,value:n[2]||""}),{url:null,linkage:e};let u=l[1],f=new i.Contract(l[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===s){let t=await f.ownerOf(u);if(a!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===s){let t=await f.balanceOf(a,u);
1if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let h=await f[r](u);if(null==h||"0x"===h)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:h}),"erc1155"===s&&(h=h.replace("{id}",(0,o.toBeHex)(u,32).substring(2)),e.push({type:"metadata-url-expanded",value:h})),h.match(/^ipfs:/i)&&(h=c(h)),e.push({type:"metadata-url",value:h});let p={},g=await new o.FetchRequest(h).send();g.assertOk();try{p=g.bodyJson}catch(t){try{e.push({type:"!metadata",value:g.bodyText})}catch(r){let t=g.body;t&&e.push({type:"!metadata",value:(0,o.hexlify)(t)})}return{url:null,linkage:e}}if(!p)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(p)});let b=p.image;if("string"!=typeof b)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(b.match(/^(https:\/\/|data:)/i));else{let t=b.match(d);if(null==t)return e.push({type:"!imageUrl-ipfs",value:b}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:b}),b=c(b)}return e.push({type:"url",value:b}),{linkage:e,url:b}}}}}catch(e){}return{linkage:e,url:null}}static async getEnsAddress(e){let t=await e.getNetwork(),r=t.getPlugin("org.ethers.plugins.network.Ens");return(0,o.assert)(r,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),r.address}static async #A(e,t){let r=await h.getEnsAddress(e);try{let n=new i.Contract(r,["function resolver(bytes32) view returns (address)"],e),o=await n.resolver((0,a.namehash)(t),{enableCcipRead:!0});if(o===s.ZeroAddress)return null;return o}catch(e){throw e}}static async fromName(e,t){let r=t;for(;;){if(""===r||"."===r||"eth"!==t&&"eth"===r)return null;let n=await h.#A(e,r);if(null!=n){let s=new h(e,n,t);if(r!==t&&!await s.supportsWildcard())return null;return s}r=r.split(".").slice(1).join(".")}}}t.EnsResolver=h},17653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;let n=r(51930);t.uuidV4=function(e){let t=(0,n.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;let r=(0,n.hexlify)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},18092:(e,t,r)=>{e.exports=function(){let e,t=r(41327),n=r(55827),s=r(78694),i=[],a=[],o=[],c=[],l=[];this.statsObject="statsObject";let u=function(e,t){return e.lower<t.lower?-1:+(e.lower>t.lower)},d=function(e,t){return e.total<t.total?1:e.total>t.total?-1:u(e,t)},f=function(e,t){return e.index<t.index?-1:+(e.index>t.index)},h=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},p=function(){o.length=0,e=new h,o[t.ALT]=new h,o[t.CAT]=new h,o[t.REP]=new h,o[t.RNM]=new h,o[t.TRG]=new h,o[t.TBS]=new h,o[t.TLS]=new h,o[t.UDT]=new h,o[t.AND]=new h,o[t.NOT]=new h,o[t.BKR]=new h,o[t.BKA]=new h,o[t.BKN]=new h,o[t.ABG]=new h,o[t.AEN]=new h,c.length=0;for(let e=0;e<i.length;e+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:i[e].name,lower:i[e].lower,index:i[e].index});if(a.length>0){l.length=0;for(let e=0;e<a.length;e+=1)l.push({empty:0,match:0,nomatch:0,total:0,name:a[e].name,lower:a[e].lower,index:a[e].index})}},g=function(e,r){switch(e.total+=1,r){case t.EMPTY:e.empty+=1;break;case t.MATCH:e.match+=1;break;case t.NOMATCH:e.nomatch+=1;break;default:throw Error(`stats.js: collect(): incStat(): unrecognized state: ${r}`)}},b=function(e,t){let r="";return r+`<tr><td class="${s.CLASS_ACTIVE}">${e}</td><td class="${s.CLASS_EMPTY}">${t.empty}</td><td class="${s.CLASS_MATCH}">${t.match}</td><td class="${s.CLASS_NOMATCH}">${t.nomatch}</td><td class="${s.CLASS_ACTIVE}">${t.total}</td></tr> 2`},m=function(){let r="";return r+=b("ALT",o[t.ALT]),r+=b("CAT",o[t.CAT]),r+=b("REP",o[t.REP]),r+=b("RNM",o[t.RNM]),r+=b("TRG",o[t.TRG]),r+=b("TBS",o[t.TBS]),r+=b("TLS",o[t.TLS]),r+=b("UDT",o[t.UDT]),r+=b("AND",o[t.AND]),r+=b("NOT",o[t.NOT]),r+=b("BKR",o[t.BKR]),r+=b("BKA",o[t.BKA]),r+=b("BKN",o[t.BKN]),r+=b("ABG",o[t.ABG]),r+=b("AEN",o[t.AEN]),r+=b("totals",e)},y=function(){let e="";e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n<tr><th>
2rules</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<i.length;t+=1)c[t].total>0&&(e+=`<tr><td class="${s.CLASS_ACTIVE}">${c[t].name}</td><td class="${s.CLASS_EMPTY}">${c[t].empty}</td><td class="${s.CLASS_MATCH}">${c[t].match}</td><td class="${s.CLASS_NOMATCH}">${c[t].nomatch}</td><td class="${s.CLASS_ACTIVE}">${c[t].total}</td></tr> 3`);if(a.length>0){e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n<tr><th>udts</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<a.length;t+=1)l[t].total>0&&(e+=`<tr><td class="${s.CLASS_ACTIVE}">${l[t].name}</td><td class="${s.CLASS_EMPTY}">${l[t].empty}</td><td class="${s.CLASS_MATCH}">${l[t].match}</td><td class="${s.CLASS_NOMATCH}">${l[t].nomatch}</td><td class="${s.CLASS_ACTIVE}">${l[t].total}</td></tr> 4`)}return e};this.validate=function(e){let t=!1;return"string"==typeof e&&"stats"===e&&(t=!0),t},this.init=function(e,t){i=e,a=t,p()},this.collect=function(r,n){g(e,n.state,n.phraseLength),g(o[r.type],n.state,n.phraseLength),r.type===t.RNM&&g(c[r.index],n.state,n.phraseLength),r.type===t.UDT&&g(l[r.index],n.state,n.phraseLength)},this.toHtml=function(e,t){let r="";for(r+=`<table class="${s.CLASS_STATS}"> 5`,"string"==typeof t&&(r+=`<caption>${t}</caption> 6`),r+=`<tr><th class="${s.CLASS_ACTIVE}">ops</th> 7`,r+=`<th class="${s.CLASS_EMPTY}">EMPTY</th> 8`,r+=`<th class="${s.CLASS_MATCH}">MATCH</th> 9`,r+=`<th class="${s.CLASS_NOMATCH}">NOMATCH</th> 10`,r+=`<th class="${s.CLASS_ACTIVE}">totals</th></tr> 11`;;){if(null==e||"ops"===e){r+=m();break}if("index"===e){c.sort(f),l.length>0&&l.sort(f),r+=m(),r+=y();break}if("hits"===e){c.sort(d),l.length>0&&l.sort(f),r+=m(),r+=y();break}"alpha"===e&&(c.sort(u),l.length>0&&l.sort(u),r+=m(),r+=y());break}return r+"</table>\n"},this.toHtmlPage=function(e,t,r){return n.htmlToPage(this.toHtml(e,t),r)}}},18266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;let n=r(51930),s=r(25265),i=r(96673),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",o=null,c=BigInt(0),l=BigInt(58);t.encodeBase58=function(e){let t=(0,n.getBytes)(e),r=(0,i.toBigInt)(t),s="";for(;r;)s=a[Number(r%l)]+s,r/=l;for(let e=0;e<t.length&&!t[e];e++)s=a[0]+s;return s},t.decodeBase58=function(e){let t=c;for(let r=0;r<e.length;r++)t*=l,t+=function(e){if(null==o){o={};for(let e=0;e<a.length;e++)o[a[e]]=BigInt(e)}let t=o[e];return(0,s.assertArgument)(null!=t,"invalid base58 value","letter",e),t}(e[r]);return t}},18698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;let n=r(85910),s=r(43814),i=r(76794),a=new Uint8Array(32);function o(e){return(0,s.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function c(e){let t=(0,s.toUtf8Bytes)(l(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(o(t.slice(n,e))),n=e+1);return(0,s.assertArgument)(n<t.length,"invalid ENS name; empty component","name",e),r.push(o(t.slice(n))),r}function l(e){try{if(0===e.length)throw Error("empty label");return(0,i.ens_normalize)(e)}catch(t){(0,s.assertArgument)(!1,`invalid ENS name (${t.message})`,"name",e)}}a.fill(0),t.ensNormalize=l,t.isValidName=function(e){try{return 0!==c(e).length}catch(e){}return!1},t.namehash=function(e){(0,s.assertArgument)("string"==typeof e,"invalid ENS name; not a string","name",e),(0,s.assertArgument)(e.length,"invalid ENS name (empty label)","name",e);let t=a,r=c(e);for(;r.length;)t=(0,n.keccak256)((0,s.concat)([t,(0,n.keccak256)(r.pop())]));return(0,s.hexlify)(t)},t.dnsEncode=function(e,t){let r=null!=t?t:63;return(0,s.assertArgument)(r<=255,"DNS encoded label cannot exceed 255","length",r),(0,s.hexlify)((0,s.concat)(c(e).map(t=>{(0,s.assertArgument)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}},20017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;let n=r(43814),s=r(7528);class i extends s.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,n.getBytesCopy)(t);let r=e.writeValue(t.length);return r+e.writeBytes(t)}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=i;class a extends i{constructor(e){super("bytes",e)}decode(e){return(0,n.hexlify)(super.decode(e))}}t.BytesCoder=a},20063:(e,t,r)=>{"use strict";var n=r(47260);r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},20503:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;let n=r(45080),s=r(8651),i=r(85910),a=r(47071),o=r(43814),c=r(45103);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(e){}return!1},t.decryptCrowdsaleJson=function(e,t){let r=JSON.parse(e),l=(0,c.getPassword)(t),u=(0,s.getAddress)((0,c.spelunk)(r,"ethaddr:string!")),d=(0,c.looseArrayify)((0,c.spelunk)(r,"encseed:string!"));(0,o.assertArgument)(d&&d.length%16==0,"invalid encseed","json",e);let f=(0,o.getBytes)((0,i.pbkdf2)(l,l,2e3,32,"sha256")).slice(0,16),h=d.slice(0,16),p=d.slice(16),g=new n.CBC(f,h),b=(0,n.pkcs7Strip)((0,o.getBytes)(g.decrypt(p))),m="";for(let e=0;e<b.length;e++)m+=String.fromCharCode(b[e]);return{address:u,privateKey:(0,a.id)(m)}}},20796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;let n=r(92055),s=BigInt(0),i=BigInt(1),a=BigInt(2),o=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function d(e,t){let r=e%t;return r>=s?r:t+r}function f(e,t,r){if(r<=s||t<s)throw Error("Expected power/modulo > 0");if(r===i)return s;let n=i;for(;t>s;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function h(e,t){if(e===s||t<=s)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=s,o=i,c=i,l=s;for(;r!==s;){let e=n/r,t=n%r,s=a-c*e,i=o-l*e;n=r,r=t,a=c,o=l,c=s,l=i}if(n!==i)throw Error("invert: does not exist");return d(a,t)}function p(e){let t,r,n,o=(e-i)/a;for(t=e-i,r=0;t%a===s;t/=a,r++);for(n=a;n<e&&f(n,o,e)!==e-i;n++);if(1===r){let t=(e+i)/c;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let l=(t+i)/a;return function(e,s){if(e.pow(s,o)===e.neg(e.ONE))throw Error("Cannot find square root");let a=r,c=e.pow(e.mul(e.ONE,n),t),u=e.pow(s,l),d=e.pow(s,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(c,i<<BigInt(a-t-1));c=e.sqr(r),u=e.mul(u,r),d=e.mul(d,c),a=t}return u}}function g(e){if(e%c===o){let t=(e+i)/c;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%u===l){let t=(e-l)/u;return function(e,r){let n=e.mul(r,a),s=e.pow(n,t),i=e.mul(r,s),o=e.mul(e.mul(i,a),s),c=e.mul(i,e.sub(o,e.ONE));if(!e.eql(e.sqr(c),r))throw Error("Cannot find square root");return c}}return p(e)}BigInt(9),BigInt(16),t.mod=d,t.pow=f,t.pow2=function(e,t,r){let n=e;for(;t-- >s;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=g,t.isNegativeLE=(e,t)=>(d(e,t)&i)===i;let b=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,r){if(r<s)throw Error("Expected power > 0");if(r===s)return e.ONE;if(r===i)return t;let n=e.ONE,a=t;for(;r>s;)r&i&&(n=e.mul(n,a)),a=e.sqr(a),r>>=i;return n}function y(e,t){let r=Array(t.length),n=t.reduce((t,n,s)=>e.is0(n)?t:(r[s]=t,e.mul(t,n)),e.ONE),s=e.inv(n);return t.reduceRight((t,n,s)=>e.is0(n)?t:(r[s]=e.mul(t,r[s]),e.mul(t,n)),s),r}function x(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function A(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function w(e){let t=A(e);return t+Math.ceil(t/2)}t.validateField=function(e){let t=b.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=m,t.FpInvertBatch=y,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){let t=(e.ORDER-i)/a;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=x,t.Field=function(e,t,r=!1,a={}){if(e<=s)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:c}=x(e,t);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let l=g(e),u=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,n.bitMask)(o),ZERO:s,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return s<=t&&t<e},is0:e=>e===s,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>
11e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>m(u,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>l(u,e)),invertBatch:e=>y(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){let s=(e=(0,n.ensureBytes)("privateHash",e)).length,a=x(t).nByteLength+8;if(a<24||s<a||s>1024)throw Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${s}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=A,t.getMinHashLength=w,t.mapHashToField=function(e,t,r=!1){let s=e.length,a=A(t),o=w(t);if(s<16||s<o||s>1024)throw Error(`expected ${o}-1024 bytes of input, got ${s}`);let c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,a):(0,n.numberToBytesBE)(c,a)}},21287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.authorizationify=t.accessListify=void 0;var n=r(78499);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return n.accessListify}});var s=r(86166);Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return s.authorizationify}});var i=r(34271);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return i.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return i.recoverAddress}});var a=r(50011);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return a.Transaction}})},22360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(53566);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));async function i(e,r,n){let s=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-s;e>=0&&e<r||(await (0,t.nextTick)(),s+=e)}}function a(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function o(e){if("string"==typeof e&&(e=a(e)),!(e instanceof Uint8Array))throw Error(`expected Uint8Array, got ${typeof e}`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,s=Number.parseInt(e.slice(n,n+2),16);if(Number.isNaN(s)||s<0)throw Error("Invalid byte sequence");r[t]=s}return r},t.nextTick=async()=>{},t.asyncLoop=i,t.utf8ToBytes=a,t.toBytes=o,t.concatBytes=function(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t};class c{clone(){return this._cloneInto()}}t.Hash=c;let l={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==l.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){let t=t=>e().update(o(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(o(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(o(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},22922:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;let n=r(20796),s=r(92055),i=s.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function o(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function c(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function l(e,t,r,n){o(e),o(t),c(r),t.length>255&&(t=n((0,s.concatBytes)((0,s.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:l}=n,u=Math.ceil(r/i);if(u>255)throw Error("Invalid xmd length");let d=(0,s.concatBytes)(t,a(t.length,1)),f=a(0,l),h=a(r,2),p=Array(u),g=n((0,s.concatBytes)(f,e,h,a(0,1),d));p[0]=n((0,s.concatBytes)(g,a(1,1),d));for(let e=1;e<=u;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(g,p[e-1]),a(e+1,1),d];p[e]=n((0,s.concatBytes)(...t))}return(0,s.concatBytes)(...p).slice(0,r)}function u(e,t,r,n,i){if(o(e),o(t),c(r),t.length>255){let e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,s.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function d(e,t,r){let a;(0,s.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:f,m:h,hash:p,expand:g,DST:b}=r;o(e),c(t);let m=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,s.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(b),y=Math.ceil((d.toString(2).length+f)/8),x=t*h*y;if("xmd"===g)a=l(e,m,x,p);else if("xof"===g)a=u(e,m,x,f,p);else if("_internal_pass"===g)a=e;else throw Error('expand must be "xmd" or "xof"');let A=Array(t);for(let e=0;e<t;e++){let t=Array(h);for(let r=0;r<h;r++){let s=y*(r+e*h),o=a.subarray(s,s+y);t[r]=(0,n.mod)(i(o),d)}A[e]=t}return A}t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[s,i,a,o]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(s,i),n=e.mul(n,e.div(a,o)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,s){let i=d(n,2,{...r,DST:r.DST,...s}),a=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=a.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,s){let i=d(n,1,{...r,DST:r.encodeDST,...s}),a=e.fromAffine(t(i[0])).clearCofactor();return a.assertValidity(),a}}}},23522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var n=r(70079);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return n.BaseWallet}});var s=r(1083);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return s.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return s.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return s.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return s.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return s.HDNodeVoidWallet}});var i=r(20503);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return i.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return i.decryptCrowdsaleJson}});var a=r(23847);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return a.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return a.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return a.decryptKeystoreJson}}
11),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return a.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return a.encryptKeystoreJsonSync}});var o=r(77014);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return o.Mnemonic}});var c=r(44327);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return c.Wallet}})},23847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;let n=r(45080),s=r(8651),i=r(85910),a=r(21287),o=r(43814),c=r(45103),l=r(85263),u="m/44'/60'/0'/0/0";function d(e,t){let r=(0,o.getBytes)(t),l=(0,c.spelunk)(e,"crypto.ciphertext:data!"),d=(0,o.hexlify)((0,i.keccak256)((0,o.concat)([r.slice(16,32),l]))).substring(2);(0,o.assertArgument)(d===(0,c.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");let f=function(e,t,r){if("aes-128-ctr"===(0,c.spelunk)(e,"crypto.cipher:string")){let s=(0,c.spelunk)(e,"crypto.cipherparams.iv:data!"),i=new n.CTR(t,s);return(0,o.hexlify)(i.decrypt(r))}(0,o.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,r.slice(0,16),l),h=(0,a.computeAddress)(f);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,o.assertArgument)((0,s.getAddress)(t)===h,"keystore address/privateKey mismatch","address",e.address)}let p={address:h,privateKey:f};if("0.1"===(0,c.spelunk)(e,"x-ethers.version:string")){let t=r.slice(32,64),s=(0,c.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),i=(0,c.spelunk)(e,"x-ethers.mnemonicCounter:data!"),a=new n.CTR(t,i);p.mnemonic={path:(0,c.spelunk)(e,"x-ethers.path:string")||u,locale:(0,c.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,o.hexlify)((0,o.getBytes)(a.decrypt(s)))}}return p}function f(e){let t=(0,c.spelunk)(e,"crypto.kdf:string");if(t&&"string"==typeof t){if("scrypt"===t.toLowerCase()){let r=(0,c.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,c.spelunk)(e,"crypto.kdfparams.n:int!"),s=(0,c.spelunk)(e,"crypto.kdfparams.r:int!"),i=(0,c.spelunk)(e,"crypto.kdfparams.p:int!");(0,o.assertArgument)(n>0&&(n&n-1)==0,"invalid kdf.N","kdf.N",n),(0,o.assertArgument)(s>0&&i>0,"invalid kdf","kdf",t);let a=(0,c.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,o.assertArgument)(32===a,"invalid kdf.dklen","kdf.dflen",a),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}else if("pbkdf2"===t.toLowerCase()){let t=(0,c.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,c.spelunk)(e,"crypto.kdfparams.prf:string!"),n=r.split("-").pop();(0,o.assertArgument)("sha256"===n||"sha512"===n,"invalid kdf.pdf","kdf.pdf",r);let s=(0,c.spelunk)(e,"crypto.kdfparams.c:int!"),i=(0,c.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,o.assertArgument)(32===i,"invalid kdf.dklen","kdf.dklen",i),{name:"pbkdf2",salt:t,count:s,dkLen:i,algorithm:n}}}(0,o.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function h(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function p(e){let t=null!=e.salt?(0,o.getBytes)(e.salt,"options.salt"):(0,i.randomBytes)(32),r=131072,n=8,s=1;return e.scrypt&&(e.scrypt.N&&(r=e.scrypt.N),e.scrypt.r&&(n=e.scrypt.r),e.scrypt.p&&(s=e.scrypt.p)),(0,o.assertArgument)("number"==typeof r&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),(0,o.assertArgument)("number"==typeof n&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),(0,o.assertArgument)("number"==typeof s&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:t,N:r,r:n,p:s}}function g(e,t,r,s){let a=(0,o.getBytes)(r.privateKey,"privateKey"),d=null!=s.iv?(0,o.getBytes)(s.iv,"options.iv"):(0,i.randomBytes)(16);(0,o.assertArgument)(16===d.length,"invalid options.iv length","options.iv",s.iv);let f=null!=s.uuid?(0,o.getBytes)(s.uuid,"options.uuid"):(0,i.randomBytes)(16);(0,o.assertArgument)(16===f.length,"invalid options.uuid length","options.uuid",s.iv);let h=e.slice(0,16),p=e.slice(16,32),g=new n.CTR(h,d),b=(0,o.getBytes)(g.encrypt(a)),m=(0,i.keccak256)((0,o.concat)([p,b])),y={address:r.address.substring(2).toLowerCase(),id:(0,o.uuidV4)(f),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,o.hexlify)(d).substring(2)},ciphertext:(0,o.hexlify)(b).substring(2),kdf:"scrypt",kdfparams:{salt:(0,o.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:m.substring(2)}};if(r.mnemonic){let t=null!=s.client?s.client:`ethers/${l.version}`,a=r.mnemonic.path||u,d=r.mnemonic.locale||"en",f=e.slice(32,64),h=(0,o.getBytes)(r.mnemonic.entropy,"account.mnemonic.entropy"),p=(0,i.randomBytes)(16),g=new n.CTR(f,p),b=(0,o.getBytes)(g.encrypt(h)),m=new Date,x="UTC--"+(m.getUTCFullYear()+"-"+(0,c.zpad)(m.getUTCMonth()+1,2)+"-"+(0,c.zpad)(m.getUTCDate(),2)+"T"+(0,c.zpad)(m.getUTCHours(),2)+"-"+(0,c.zpad)(m.getUTCMinutes(),2)+"-"+(0,c.zpad)(m.getUTCSeconds(),2))+".0Z--"+y.address;y["x-ethers"]={client:t,gethFilename:x,path:a,locale:d,mnemonicCounter:(0,o.hexlify)(p).substring(2),mnemonicCiphertext:(0,o.hexlify)(b).substring(2),version:"0.1"}}return JSON.stringify(y)}t.isKeystoreJson=function(e){try{let t=JSON.parse(e),r=null!=t.version?parseInt(t.version):0;if(3===r)return!0}catch(e){}return!1},t.decryptKeystoreJsonSync=function(e,t){let r=JSON.parse(e),n=(0,c.getPassword)(t),s=f(r);if("pbkdf2"===s.name){let{salt:e,count:t,dkLen:a,algorithm:o}=s;return d(r,(0,i.pbkdf2)(n,e,t,a,o))}(0,o.assert)("scrypt"===s.name,"cannot be reached","UNKNOWN_ERROR",{params:s});let{salt:a,N:l,r:u,p:h,dkLen:p}=s;return d(r,(0,i.scryptSync)(n,a,l,u,h,p))},t.decryptKeystoreJson=async function(e,t,r){let n=JSON.parse(e),s=(0,c.getPassword)(t),a=f(n);if("pbkdf2"===a.name){r&&(r(0),await h(0));let{salt:e,count:t,dkLen:o,algorithm:c}=a,l=(0,i.pbkdf2)(s,e,t,o,c);return r&&(r(1),await h(0)),d(n,l)}(0,o.assert)("scrypt"===a.name,"cannot be reached","UNKNOWN_ERROR",{params:a});let{salt:l,N:u,r:p,p:g,dkLen:b}=a;return d(n,await (0,i.scrypt)(s,l,u,p,g,b,r))}
11,t.encryptKeystoreJsonSync=function(e,t,r){null==r&&(r={});let n=(0,c.getPassword)(t),s=p(r),a=(0,i.scryptSync)(n,s.salt,s.N,s.r,s.p,64);return g((0,o.getBytes)(a),s,e,r)},t.encryptKeystoreJson=async function(e,t,r){null==r&&(r={});let n=(0,c.getPassword)(t),s=p(r),a=await (0,i.scrypt)(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return g((0,o.getBytes)(a),s,e,r)}},24290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var n=r(8406);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var s=r(11498);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return s.LangEn}});var i=r(70721);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return i.WordlistOwl}});var a=r(91880);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return a.WordlistOwlA}});var o=r(28194);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return o.wordlists}})},25161:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;let n=r(58524),s=r(22360),i=r(20796),a=r(64870),o=r(92055),c=r(22922),l=r(33069),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),s=BigInt(22),a=BigInt(23),o=BigInt(44),c=BigInt(88),l=e*e*e%u,d=l*l*e%u,f=(0,i.pow2)(d,t,u)*d%u,p=(0,i.pow2)(f,t,u)*d%u,g=(0,i.pow2)(p,h,u)*l%u,m=(0,i.pow2)(g,n,u)*g%u,y=(0,i.pow2)(m,s,u)*m%u,x=(0,i.pow2)(y,o,u)*y%u,A=(0,i.pow2)(x,c,u)*x%u,w=(0,i.pow2)(A,o,u)*y%u,v=(0,i.pow2)(w,t,u)*d%u,E=(0,i.pow2)(v,a,u)*m%u,P=(0,i.pow2)(E,r,u)*l%u,k=(0,i.pow2)(P,h,u);if(!b.eql(b.sqr(k),e))throw Error("Cannot find square root");return k}let b=(0,i.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:b,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=BigInt("0x100000000000000000000000000000000"),a=p(t*e,d),o=p(-r*e,d),c=(0,i.mod)(e-a*t-o*n,d),l=(0,i.mod)(-a*r-o*t,d),u=c>s,h=l>s;if(u&&(c=d-c),h&&(l=d-l),c>s||l>s)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:c,k2neg:h,k2:l}}}},n.sha256);let m=BigInt(0),y=e=>"bigint"==typeof e&&m<e&&e<u,x={};function A(e,...t){let r=x[e];if(void 0===r){let t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,o.concatBytes)(t,t),x[e]=r}return(0,n.sha256)((0,o.concatBytes)(r,...t))}let w=e=>e.toRawBytes(!0).slice(1),v=e=>(0,o.numberToBytesBE)(e,32),E=e=>(0,i.mod)(e,u),P=e=>(0,i.mod)(e,d),k=t.secp256k1.ProjectivePoint;function O(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=k.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:P(-r),bytes:w(n)}}function T(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=E(e*e),r=g(E(t*e+BigInt(7)));r%h!==m&&(r=E(-r));let n=new k(e,r,f);return n.assertValidity(),n}function B(...e){return P((0,o.bytesToNumberBE)(A("BIP0340/challenge",...e)))}function S(e,t,r){let n=(0,o.ensureBytes)("signature",e,64),s=(0,o.ensureBytes)("message",t),i=(0,o.ensureBytes)("publicKey",r,32);try{let e,t=T((0,o.bytesToNumberBE)(i)),r=(0,o.bytesToNumberBE)(n.subarray(0,32));if(!y(r))return!1;let a=(0,o.bytesToNumberBE)(n.subarray(32,64));if("bigint"!=typeof a||!(m<a)||!(a<d))return!1;let c=B(v(r),w(t),s),l=(e=P(-c),k.BASE.multiplyAndAddUnsafe(t,a,e));if(!l||!l.hasEvenY()||l.toAffine().x!==r)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return O(e).bytes},sign:function(e,t,r=(0,s.randomBytes)(32)){let n=(0,o.ensureBytes)("message",e),{bytes:i,scalar:a}=O(t),c=(0,o.ensureBytes)("auxRand",r,32),l=v(a^(0,o.bytesToNumberBE)(A("BIP0340/aux",c))),u=A("BIP0340/nonce",l,i,n),d=P((0,o.bytesToNumberBE)(u));if(d===m)throw Error("sign failed: k is zero");let{bytes:f,scalar:h}=O(d),p=B(f,i,n),g=new Uint8Array(64);if(g.set(f,0),g.set(v(P(h+p*a)),32),!S(g,n,i))throw Error("sign: Invalid signature produced");return g},verify:S,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:T,pointToBytes:w,numberToBytesBE:o.numberToBytesBE,bytesToNumberBE:o.bytesToNumberBE,taggedHash:A,mod:i.mod}};let C=(0,c.isogenyMap)(b,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a4
1113deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),N=(0,a.mapToCurveSimpleSWU)(b,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:b.create(BigInt("-11"))}),I=(0,c.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=N(b.create(e[0]));return C(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:b.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});t.hashToCurve=I.hashToCurve,t.encodeToCurve=I.encodeToCurve},25265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;let n=r(85263),s=r(37979);function i(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map(e=>i(e,t)).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n<e.length;n++)r+=t[e[n]>>4],r+=t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return i(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let r=Object.keys(e);return r.sort(),"{ "+r.map(r=>`${i(r,t)}: ${i(e[r],t)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function a(e,t){return e&&e.code===t}function o(e,t,r){let a,o=e;{let s=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${i(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];s.push(e+"="+i(t))}}s.push(`code=${t}`),s.push(`version=${n.version}`),s.length&&(e+=" ("+s.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":a=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=RangeError(e);break;default:a=Error(e)}return(0,s.defineProperties)(a,{code:t}),r&&Object.assign(a,r),null==a.shortMessage&&(0,s.defineProperties)(a,{shortMessage:o}),a}function c(e,t,r,n){if(!e)throw o(t,r,n)}t.isError=a,t.isCallException=function(e){return a(e,"CALL_EXCEPTION")},t.makeError=o,t.assert=c,t.assertArgument=function(e,t,r,n){c(e,t,"INVALID_ARGUMENT",{argument:r,value:n})},t.assertArgumentCount=function(e,t,r){null==r&&(r=""),r&&(r=": "+r),c(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),c(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};let l=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);t.assertNormalize=function(e){c(l.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),c(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},25291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;let n=r(25161),s=r(43814),i=r(99008);class a{#w;constructor(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#w=(0,s.hexlify)(e)}get privateKey(){return this.#w}get publicKey(){return a.computePublicKey(this.#w)}get compressedPublicKey(){return a.computePublicKey(this.#w,!0)}sign(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);let t=n.secp256k1.sign((0,s.getBytesCopy)(e),(0,s.getBytesCopy)(this.#w),{lowS:!0});return i.Signature.from({r:(0,s.toBeHex)(t.r,32),s:(0,s.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=a.computePublicKey(e);return(0,s.hexlify)(n.secp256k1.getSharedSecret((0,s.getBytesCopy)(this.#w),(0,s.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,s.getBytes)(e,"key");if(32===r.length){let e=n.secp256k1.getPublicKey(r,!!t);return(0,s.hexlify)(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let i=n.secp256k1.ProjectivePoint.fromHex(r);return(0,s.hexlify)(i.toRawBytes(t))}static recoverPublicKey(e,t){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);let r=i.Signature.from(t),a=n.secp256k1.Signature.fromCompact((0,s.getBytesCopy)((0,s.concat)([r.r,r.s]))),o=(a=a.addRecoveryBit(r.yParity)).recoverPublicKey((0,s.getBytesCopy)(e));return(0,s.assertArgument)(null!=o,"invalid signature for digest","signature",t),"0x"+o.toHex(!1)}static addPoints(e,t,r){let s=n.secp256k1.ProjectivePoint.fromHex(a.computePublicKey(e).substring(2)),i=n.secp256k1.ProjectivePoint.fromHex(a.computePublicKey(t).substring(2));return"0x"+s.add(i).toHex(!!r)}}t.SigningKey=a},26640:(e,t)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},28191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;let n=r(43814),s=r(7528),i=r(45118),a=r(61647),o=r(66146),c=r(20017),l=r(84506),u=r(39295),d=r(81467),f=r(41203),h=r(48496),p=r(57840),g=r(8651),b=r(43814),m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");let y=new RegExp(/^bytes([0-9]*)$/),x=new RegExp(/^(u?int)([0-9]*)$/),A=null,w=1024;class v{#v(e){if(e.isArray())return new a.ArrayCoder(this.#v(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new h.TupleCoder(e.components.map(e=>this.#v(e)),e.name);switch(e.baseType){case"address":return new i.AddressCoder(e.name);case"bool":return new o.BooleanCoder(e.name);case"string":return new f.StringCoder(e.name);case"bytes":return new c.BytesCoder(e.name);case"":return new u.NullCoder(e.name)}let t=e.type.match(x);if(t){let r=parseInt(t[2]||"256");return(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid "+t[1]+" bit length","param",e),new d.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(y)){let r=parseInt(t[1]);return(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",e),new l.FixedBytesCoder(r,e.name)}(0,n.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){let t=e.map(e=>this.#v(p.ParamType.from(e)));return new h.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,n.assertArgumentCount)(t.length,e.length,"types/values length mismatch");let r=e.map(e=>this.#v(p.ParamType.from(e))),i=new h.TupleCoder(r,"_"),a=new s.Writer;return i.encode(a,t),a.data}decode(e,t,r){let n=e.map(e=>this.#v(p.ParamType.from(e)));return new h.TupleCoder(n,"_").decode(new s.Reader(t,r,w))}static _setDefaultMaxInflation(e){(0,n.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),w=e}static defaultAbiCoder(){return null==A&&(A=new v),A}static getBuiltinCallException(e,t,r){return function(e,t,r,n){let s="missing revert data",i=null,a=null;if(r){s="execution reverted";let e=(0,b.getBytes)(r);if(r=(0,b.hexlify)(r),0===e.length)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(e.length%32!=4)s+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,b.hexlify)(e.slice(0,4)))try{i=n.decode(["string"],e.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch(e){s+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,b.hexlify)(e.slice(0,4)))try{let t=Number(n.decode(["uint256"],e.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[t]},i=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,s+=`: ${i}`}catch(e){s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}let o={to:t.to?(0,g.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(o.from=(0,g.getAddress)(t.from)),(0,b.makeError)(s,"CALL_EXCEPTION",{action:e,data:r,reason:i,transaction:o,invocation:null,revert:a})}(e,t,r,v.defaultAbiCoder())}}t.AbiCoder=v},28194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}
11),t.wordlists=void 0,t.wordlists={en:r(11498).LangEn.wordlist()}},28630:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(35781),t),s(r(10563),t),s(r(7511),t)},29910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.grammar=void 0,t.grammar=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"sign-in-with-ethereum",lower:"sign-in-with-ethereum",index:0,isBkr:!1},this.rules[1]={name:"ex-title",lower:"ex-title",index:1,isBkr:!1},this.rules[2]={name:"nb-title",lower:"nb-title",index:2,isBkr:!1},this.rules[3]={name:"ri-title",lower:"ri-title",index:3,isBkr:!1},this.rules[4]={name:"re-title",lower:"re-title",index:4,isBkr:!1},this.rules[5]={name:"oscheme",lower:"oscheme",index:5,isBkr:!1},this.rules[6]={name:"domain",lower:"domain",index:6,isBkr:!1},this.rules[7]={name:"address",lower:"address",index:7,isBkr:!1},this.rules[8]={name:"statement",lower:"statement",index:8,isBkr:!1},this.rules[9]={name:"empty-statement",lower:"empty-statement",index:9,isBkr:!1},this.rules[10]={name:"version",lower:"version",index:10,isBkr:!1},this.rules[11]={name:"nonce",lower:"nonce",index:11,isBkr:!1},this.rules[12]={name:"issued-at",lower:"issued-at",index:12,isBkr:!1},this.rules[13]={name:"expiration-time",lower:"expiration-time",index:13,isBkr:!1},this.rules[14]={name:"not-before",lower:"not-before",index:14,isBkr:!1},this.rules[15]={name:"request-id",lower:"request-id",index:15,isBkr:!1},this.rules[16]={name:"chain-id",lower:"chain-id",index:16,isBkr:!1},this.rules[17]={name:"resources",lower:"resources",index:17,isBkr:!1},this.rules[18]={name:"resource",lower:"resource",index:18,isBkr:!1},this.rules[19]={name:"URI",lower:"uri",index:19,isBkr:!1},this.rules[20]={name:"hier-part",lower:"hier-part",index:20,isBkr:!1},this.rules[21]={name:"scheme",lower:"scheme",index:21,isBkr:!1},this.rules[22]={name:"authority",lower:"authority",index:22,isBkr:!1},this.rules[23]={name:"path-abempty",lower:"path-abempty",index:23,isBkr:!1},this.rules[24]={name:"path-absolute",lower:"path-absolute",index:24,isBkr:!1},this.rules[25]={name:"path-rootless",lower:"path-rootless",index:25,isBkr:!1},this.rules[26]={name:"path-empty",lower:"path-empty",index:26,isBkr:!1},this.rules[27]={name:"userinfo-at",lower:"userinfo-at",index:27,isBkr:!1},this.rules[28]={name:"userinfo",lower:"userinfo",index:28,isBkr:!1},this.rules[29]={name:"host",lower:"host",index:29,isBkr:!1},this.rules[30]={name:"IP-literal",lower:"ip-literal",index:30,isBkr:!1},this.rules[31]={name:"IPvFuture",lower:"ipvfuture",index:31,isBkr:!1},this.rules[32]={name:"IPv6address",lower:"ipv6address",index:32,isBkr:!1},this.rules[33]={name:"nodcolon",lower:"nodcolon",index:33,isBkr:!1},this.rules[34]={name:"dcolon",lower:"dcolon",index:34,isBkr:!1},this.rules[35]={name:"h16",lower:"h16",index:35,isBkr:!1},this.rules[36]={name:"h16c",lower:"h16c",index:36,isBkr:!1},this.rules[37]={name:"h16n",lower:"h16n",index:37,isBkr:!1},this.rules[38]={name:"h16cn",lower:"h16cn",index:38,isBkr:!1},this.rules[39]={name:"IPv4address",lower:"ipv4address",index:39,isBkr:!1},this.rules[40]={name:"dec-octet",lower:"dec-octet",index:40,isBkr:!1},this.rules[41]={name:"dec-digit",lower:"dec-digit",index:41,isBkr:!1},this.rules[42]={name:"reg-name",lower:"reg-name",index:42,isBkr:!1},this.rules[43]={name:"reg-name-char",lower:"reg-name-char",index:43,isBkr:!1},this.rules[44]={name:"port",lower:"port",index:44,isBkr:!1},this.rules[45]={name:"query",lower:"query",index:45,isBkr:!1},this.rules[46]={name:"fragment",lower:"fragment",index:46,isBkr:!1},this.rules[47]={name:"URI-r",lower:"uri-r",index:47,isBkr:!1},this.rules[48]={name:"hier-part-r",lower:"hier-part-r",index:48,isBkr:!1},this.rules[49]={name:"scheme-r",lower:"scheme-r",index:49,isBkr:!1},this.rules[50]={name:"query-r",lower:"query-r",index:50,isBkr:!1},this.rules[51]={name:"fragment-r",lower:"fragment-r",index:51,isBkr:!1},this.rules[52]={name:"authority-d",lower:"authority-d",index:52,isBkr:!1},this.rules[53]={name:"userinfo-d",lower:"userinfo-d",index:53,isBkr:!1},this.rules[54]={name:"host-d",lower:"host-d",index:54,isBkr:!1}
11,this.rules[55]={name:"port-d",lower:"port-d",index:55,isBkr:!1},this.rules[56]={name:"path-abempty-r",lower:"path-abempty-r",index:56,isBkr:!1},this.rules[57]={name:"path-absolute-r",lower:"path-absolute-r",index:57,isBkr:!1},this.rules[58]={name:"path-rootless-r",lower:"path-rootless-r",index:58,isBkr:!1},this.rules[59]={name:"path-empty-r",lower:"path-empty-r",index:59,isBkr:!1},this.rules[60]={name:"segment",lower:"segment",index:60,isBkr:!1},this.rules[61]={name:"segment-nz",lower:"segment-nz",index:61,isBkr:!1},this.rules[62]={name:"pchar",lower:"pchar",index:62,isBkr:!1},this.rules[63]={name:"pct-encoded",lower:"pct-encoded",index:63,isBkr:!1},this.rules[64]={name:"date-fullyear",lower:"date-fullyear",index:64,isBkr:!1},this.rules[65]={name:"date-month",lower:"date-month",index:65,isBkr:!1},this.rules[66]={name:"date-mday",lower:"date-mday",index:66,isBkr:!1},this.rules[67]={name:"time-hour",lower:"time-hour",index:67,isBkr:!1},this.rules[68]={name:"time-minute",lower:"time-minute",index:68,isBkr:!1},this.rules[69]={name:"time-second",lower:"time-second",index:69,isBkr:!1},this.rules[70]={name:"time-secfrac",lower:"time-secfrac",index:70,isBkr:!1},this.rules[71]={name:"time-numoffset",lower:"time-numoffset",index:71,isBkr:!1},this.rules[72]={name:"time-offset",lower:"time-offset",index:72,isBkr:!1},this.rules[73]={name:"partial-time",lower:"partial-time",index:73,isBkr:!1},this.rules[74]={name:"full-date",lower:"full-date",index:74,isBkr:!1},this.rules[75]={name:"full-time",lower:"full-time",index:75,isBkr:!1},this.rules[76]={name:"date-time",lower:"date-time",index:76,isBkr:!1},this.rules[77]={name:"ALPHA",lower:"alpha",index:77,isBkr:!1},this.rules[78]={name:"LF",lower:"lf",index:78,isBkr:!1},this.rules[79]={name:"DIGIT",lower:"digit",index:79,isBkr:!1},this.rules[80]={name:"HEXDIG",lower:"hexdig",index:80,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,3,4,5,6,7,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,36,41,46]},this.rules[0].opcodes[1]={type:4,index:5},this.rules[0].opcodes[2]={type:4,index:6},this.rules[0].opcodes[3]={type:6,string:[32,119,97,110,116,115,32,121,111,117,32,116,111,32,115,105,103,110,32,105,110,32,119,105,116,104,32,121,111,117,114,32,69,116,104,101,114,101,117,109,32,97,99,99,111,117,110,116,58]},this.rules[0].opcodes[4]={type:4,index:78},this.rules[0].opcodes[5]={type:4,index:7},this.rules[0].opcodes[6]={type:4,index:78},this.rules[0].opcodes[7]={type:1,children:[8,13,14]},this.rules[0].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[0].opcodes[9]={type:4,index:78},this.rules[0].opcodes[10]={type:4,index:8},this.rules[0].opcodes[11]={type:4,index:78},this.rules[0].opcodes[12]={type:4,index:78},this.rules[0].opcodes[13]={type:4,index:9},this.rules[0].opcodes[14]={type:2,children:[15,16]},this.rules[0].opcodes[15]={type:4,index:78},this.rules[0].opcodes[16]={type:4,index:78},this.rules[0].opcodes[17]={type:6,string:[85,82,73,58,32]},this.rules[0].opcodes[18]={type:4,index:19},this.rules[0].opcodes[19]={type:4,index:78},this.rules[0].opcodes[20]={type:6,string:[86,101,114,115,105,111,110,58,32]},this.rules[0].opcodes[21]={type:4,index:10},this.rules[0].opcodes[22]={type:4,index:78},this.rules[0].opcodes[23]={type:6,string:[67,104,97,105,110,32,73,68,58,32]},this.rules[0].opcodes[24]={type:4,index:16},this.rules[0].opcodes[25]={type:4,index:78},this.rules[0].opcodes[26]={type:6,string:[78,111,110,99,101,58,32]},this.rules[0].opcodes[27]={type:4,index:11},this.rules[0].opcodes[28]={type:4,index:78},this.rules[0].opcodes[29]={type:6,string:[73,115,115,117,101,100,32,65,116,58,32]},this.rules[0].opcodes[30]={type:4,index:12},this.rules[0].opcodes[31]={type:3,min:0,max:1},this.rules[0].opcodes[32]={type:2,children:[33,34,35]},this.rules[0].opcodes[33]={type:4,index:78},this.rules[0].opcodes[34]={type:4,index:1},this.rules[0].opcodes[35]={type:4,index:13},this.rules[0].opcodes[36]={type:3,min:0,max:1},this.rules[0].opcodes[37]={type:2,children:[38,39,40]},this.rules[0].opcodes[38]={type:4,index:78},this.rules[0].opcodes[39]={type:4,index:2},this.rules[0].opcodes[40]={type:4,index:14},this.rules[0].opcodes[41]={type:3,min:0,max:1},this.rules[0].opcodes[42]={type:2,children:[43,44,45]},this.rules[0].opcodes[43]={type:4,index:78},this.rules[0].opcodes[44]={type:4,index:3},this.rules[0].opcodes[45]={type:4,index:15},this.rules[0].opcodes[46]={type:3,min:0,max:1},this.rules[0].opcodes[47]={type:2,children:[48,49,50]},this.rules[0].opcodes[48]={type:4,index:78},this.rules[0].opcodes[49]={type:4,index:4},this.rules[0].opcodes[50]={type:4,index:17},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:6,string:[69,120,112,105,114,97,116,105,111,110,32,84,105,109,101,58,32]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:6,string:[78,111,116,32,66,101,102,111,114,101,58,32]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:6,string:[82,101,113,117,101,115,116,32,73,68,58,32]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:6,string:[82,101,115,111,117,114,99,101,115,58]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:0,max:1}
11,this.rules[5].opcodes[1]={type:2,children:[2,3,9]},this.rules[5].opcodes[2]={type:4,index:77},this.rules[5].opcodes[3]={type:3,min:0,max:1/0},this.rules[5].opcodes[4]={type:1,children:[5,6,7,8]},this.rules[5].opcodes[5]={type:4,index:77},this.rules[5].opcodes[6]={type:4,index:79},this.rules[5].opcodes[7]={type:6,string:[43]},this.rules[5].opcodes[8]={type:5,min:45,max:46},this.rules[5].opcodes[9]={type:7,string:[58,47,47]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:52},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2]},this.rules[7].opcodes[1]={type:7,string:[48,120]},this.rules[7].opcodes[2]={type:3,min:40,max:40},this.rules[7].opcodes[3]={type:4,index:80},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:1/0},this.rules[8].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[8].opcodes[2]={type:5,min:97,max:122},this.rules[8].opcodes[3]={type:5,min:65,max:90},this.rules[8].opcodes[4]={type:5,min:48,max:57},this.rules[8].opcodes[5]={type:5,min:32,max:33},this.rules[8].opcodes[6]={type:5,min:35,max:36},this.rules[8].opcodes[7]={type:5,min:38,max:59},this.rules[8].opcodes[8]={type:6,string:[61]},this.rules[8].opcodes[9]={type:5,min:63,max:64},this.rules[8].opcodes[10]={type:6,string:[91]},this.rules[8].opcodes[11]={type:6,string:[93]},this.rules[8].opcodes[12]={type:6,string:[95]},this.rules[8].opcodes[13]={type:6,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2,3]},this.rules[9].opcodes[1]={type:4,index:78},this.rules[9].opcodes[2]={type:4,index:78},this.rules[9].opcodes[3]={type:4,index:78},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:7,string:[49]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:3,min:8,max:1/0},this.rules[11].opcodes[1]={type:1,children:[2,3]},this.rules[11].opcodes[2]={type:4,index:77},this.rules[11].opcodes[3]={type:4,index:79},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:4,index:76},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:4,index:76},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:4,index:76},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:0,max:1/0},this.rules[15].opcodes[1]={type:4,index:62},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:3,min:1,max:1/0},this.rules[16].opcodes[1]={type:4,index:79},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:3,min:0,max:1/0},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:78},this.rules[17].opcodes[3]={type:4,index:18},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:2,children:[1,2]},this.rules[18].opcodes[1]={type:7,string:[45,32]},this.rules[18].opcodes[2]={type:4,index:47},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:2,children:[1,2,3,4,8]},this.rules[19].opcodes[1]={type:4,index:21},this.rules[19].opcodes[2]={type:7,string:[58]},this.rules[19].opcodes[3]={type:4,index:20},this.rules[19].opcodes[4]={type:3,min:0,max:1},this.rules[19].opcodes[5]={type:2,children:[6,7]},this.rules[19].opcodes[6]={type:7,string:[63]},this.rules[19].opcodes[7]={type:4,index:45},this.rules[19].opcodes[8]={type:3,min:0,max:1},this.rules[19].opcodes[9]={type:2,children:[10,11]},this.rules[19].opcodes[10]={type:7,string:[35]},this.rules[19].opcodes[11]={type:4,index:46},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,5,6,7]},this.rules[20].opcodes[1]={type:2,children:[2,3,4]},this.rules[20].opcodes[2]={type:7,string:[47,47]},this.rules[20].opcodes[3]={type:4,index:22},this.rules[20].opcodes[4]={type:4,index:23},this.rules[20].opcodes[5]={type:4,index:24},this.rules[20].opcodes[6]={type:4,index:25},this.rules[20].opcodes[7]={type:4,index:26},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2]},this.rules[21].opcodes[1]={type:4,index:77},this.rules[21].opcodes[2]={type:3,min:0,max:1/0},this.rules[21].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[21].opcodes[4]={type:4,index:77},this.rules[21].opcodes[5]={type:4,index:79},this.rules[21].opcodes[6]={type:6,string:[43]},this.rules[21].opcodes[7]={type:5,min:45,max:46},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,3,4]}
11,this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:4,index:27},this.rules[22].opcodes[3]={type:4,index:29},this.rules[22].opcodes[4]={type:3,min:0,max:1},this.rules[22].opcodes[5]={type:2,children:[6,7]},this.rules[22].opcodes[6]={type:7,string:[58]},this.rules[22].opcodes[7]={type:4,index:44},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:3,min:0,max:1/0},this.rules[23].opcodes[1]={type:2,children:[2,3]},this.rules[23].opcodes[2]={type:7,string:[47]},this.rules[23].opcodes[3]={type:4,index:60},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:7,string:[47]},this.rules[24].opcodes[2]={type:3,min:0,max:1},this.rules[24].opcodes[3]={type:2,children:[4,5]},this.rules[24].opcodes[4]={type:4,index:61},this.rules[24].opcodes[5]={type:3,min:0,max:1/0},this.rules[24].opcodes[6]={type:2,children:[7,8]},this.rules[24].opcodes[7]={type:7,string:[47]},this.rules[24].opcodes[8]={type:4,index:60},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:61},this.rules[25].opcodes[2]={type:3,min:0,max:1/0},this.rules[25].opcodes[3]={type:2,children:[4,5]},this.rules[25].opcodes[4]={type:7,string:[47]},this.rules[25].opcodes[5]={type:4,index:60},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:7,string:[]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:6,string:[64]},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:3,min:0,max:1/0},this.rules[28].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12]},this.rules[28].opcodes[2]={type:5,min:97,max:122},this.rules[28].opcodes[3]={type:5,min:65,max:90},this.rules[28].opcodes[4]={type:5,min:48,max:57},this.rules[28].opcodes[5]={type:4,index:63},this.rules[28].opcodes[6]={type:6,string:[33]},this.rules[28].opcodes[7]={type:6,string:[36]},this.rules[28].opcodes[8]={type:5,min:38,max:46},this.rules[28].opcodes[9]={type:5,min:58,max:59},this.rules[28].opcodes[10]={type:6,string:[61]},this.rules[28].opcodes[11]={type:6,string:[95]},this.rules[28].opcodes[12]={type:6,string:[126]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:1,children:[1,2,6]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:2,children:[3,4]},this.rules[29].opcodes[3]={type:4,index:39},this.rules[29].opcodes[4]={type:13},this.rules[29].opcodes[5]={type:4,index:43},this.rules[29].opcodes[6]={type:4,index:42},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,5]},this.rules[30].opcodes[1]={type:7,string:[91]},this.rules[30].opcodes[2]={type:1,children:[3,4]},this.rules[30].opcodes[3]={type:4,index:32},this.rules[30].opcodes[4]={type:4,index:31},this.rules[30].opcodes[5]={type:7,string:[93]},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,2,4,5]},this.rules[31].opcodes[1]={type:7,string:[118]},this.rules[31].opcodes[2]={type:3,min:1,max:1/0},this.rules[31].opcodes[3]={type:4,index:80},this.rules[31].opcodes[4]={type:7,string:[46]},this.rules[31].opcodes[5]={type:3,min:1,max:1/0},this.rules[31].opcodes[6]={type:1,children:[7,8,9,10,11,12,13,14,15,16]},this.rules[31].opcodes[7]={type:5,min:97,max:122},this.rules[31].opcodes[8]={type:5,min:65,max:90},this.rules[31].opcodes[9]={type:5,min:48,max:57},this.rules[31].opcodes[10]={type:6,string:[33]},this.rules[31].opcodes[11]={type:6,string:[36]},this.rules[31].opcodes[12]={type:5,min:38,max:46},this.rules[31].opcodes[13]={type:5,min:58,max:59},this.rules[31].opcodes[14]={type:6,string:[61]},this.rules[31].opcodes[15]={type:6,string:[95]},this.rules[31].opcodes[16]={type:6,string:[126]},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:1,children:[1,2]},this.rules[32].opcodes[1]={type:4,index:33},this.rules[32].opcodes[2]={type:4,index:34},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:2,children:[2,3]},this.rules[33].opcodes[2]={type:4,index:37},this.rules[33].opcodes[3]={type:3,min:0,max:1/0},this.rules[33].opcodes[4]={type:4,index:38},this.rules[33].opcodes[5]={type:3,min:0,max:1},this.rules[33].opcodes[6]={type:2,children:[7,8]},this.rules[33].opcodes[7]={type:6,string:[58]},this.rules[33].opcodes[8]={type:4,index:39},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:2,children:[1,6,7]}
11,this.rules[34].opcodes[1]={type:3,min:0,max:1},this.rules[34].opcodes[2]={type:2,children:[3,4]},this.rules[34].opcodes[3]={type:4,index:35},this.rules[34].opcodes[4]={type:3,min:0,max:1/0},this.rules[34].opcodes[5]={type:4,index:36},this.rules[34].opcodes[6]={type:6,string:[58,58]},this.rules[34].opcodes[7]={type:1,children:[8,17]},this.rules[34].opcodes[8]={type:2,children:[9,13]},this.rules[34].opcodes[9]={type:2,children:[10,11]},this.rules[34].opcodes[10]={type:4,index:37},this.rules[34].opcodes[11]={type:3,min:0,max:1/0},this.rules[34].opcodes[12]={type:4,index:38},this.rules[34].opcodes[13]={type:3,min:0,max:1},this.rules[34].opcodes[14]={type:2,children:[15,16]},this.rules[34].opcodes[15]={type:6,string:[58]},this.rules[34].opcodes[16]={type:4,index:39},this.rules[34].opcodes[17]={type:3,min:0,max:1},this.rules[34].opcodes[18]={type:4,index:39},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:3,min:1,max:4},this.rules[35].opcodes[1]={type:4,index:80},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:2,children:[1,2]},this.rules[36].opcodes[1]={type:6,string:[58]},this.rules[36].opcodes[2]={type:3,min:1,max:4},this.rules[36].opcodes[3]={type:4,index:80},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,3]},this.rules[37].opcodes[1]={type:3,min:1,max:4},this.rules[37].opcodes[2]={type:4,index:80},this.rules[37].opcodes[3]={type:13},this.rules[37].opcodes[4]={type:6,string:[46]},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2,4]},this.rules[38].opcodes[1]={type:6,string:[58]},this.rules[38].opcodes[2]={type:3,min:1,max:4},this.rules[38].opcodes[3]={type:4,index:80},this.rules[38].opcodes[4]={type:13},this.rules[38].opcodes[5]={type:6,string:[46]},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[39].opcodes[1]={type:4,index:40},this.rules[39].opcodes[2]={type:7,string:[46]},this.rules[39].opcodes[3]={type:4,index:40},this.rules[39].opcodes[4]={type:7,string:[46]},this.rules[39].opcodes[5]={type:4,index:40},this.rules[39].opcodes[6]={type:7,string:[46]},this.rules[39].opcodes[7]={type:4,index:40},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:3,min:0,max:3},this.rules[40].opcodes[1]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:5,min:48,max:57},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:3,min:0,max:1/0},this.rules[42].opcodes[1]={type:4,index:43},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[43].opcodes[1]={type:5,min:97,max:122},this.rules[43].opcodes[2]={type:5,min:65,max:90},this.rules[43].opcodes[3]={type:5,min:48,max:57},this.rules[43].opcodes[4]={type:4,index:63},this.rules[43].opcodes[5]={type:6,string:[33]},this.rules[43].opcodes[6]={type:6,string:[36]},this.rules[43].opcodes[7]={type:5,min:38,max:46},this.rules[43].opcodes[8]={type:6,string:[59]},this.rules[43].opcodes[9]={type:6,string:[61]},this.rules[43].opcodes[10]={type:6,string:[95]},this.rules[43].opcodes[11]={type:6,string:[126]},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:4,index:79},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:3,min:0,max:1/0},this.rules[45].opcodes[1]={type:1,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:62},this.rules[45].opcodes[3]={type:6,string:[47]},this.rules[45].opcodes[4]={type:6,string:[63]},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:3,min:0,max:1/0},this.rules[46].opcodes[1]={type:1,children:[2,3,4]},this.rules[46].opcodes[2]={type:4,index:62},this.rules[46].opcodes[3]={type:6,string:[47]},this.rules[46].opcodes[4]={type:6,string:[63]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,2,3,4,8]},this.rules[47].opcodes[1]={type:4,index:49},this.rules[47].opcodes[2]={type:7,string:[58]},this.rules[47].opcodes[3]={type:4,index:48},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:2,children:[6,7]},this.rules[47].opcodes[6]={type:7,string:[63]},this.rules[47].opcodes[7]={type:4,index:50},this.rules[47].opcodes[8]={type:3,min:0,max:1},this.rules[47].opcodes[9]={type:2,children:[10,11]}
11,this.rules[47].opcodes[10]={type:7,string:[35]},this.rules[47].opcodes[11]={type:4,index:51},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:1,children:[1,5,6,7]},this.rules[48].opcodes[1]={type:2,children:[2,3,4]},this.rules[48].opcodes[2]={type:7,string:[47,47]},this.rules[48].opcodes[3]={type:4,index:52},this.rules[48].opcodes[4]={type:4,index:56},this.rules[48].opcodes[5]={type:4,index:57},this.rules[48].opcodes[6]={type:4,index:58},this.rules[48].opcodes[7]={type:4,index:59},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2]},this.rules[49].opcodes[1]={type:4,index:77},this.rules[49].opcodes[2]={type:3,min:0,max:1/0},this.rules[49].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[49].opcodes[4]={type:4,index:77},this.rules[49].opcodes[5]={type:4,index:79},this.rules[49].opcodes[6]={type:6,string:[43]},this.rules[49].opcodes[7]={type:5,min:45,max:46},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:3,min:0,max:1/0},this.rules[50].opcodes[1]={type:1,children:[2,3,4]},this.rules[50].opcodes[2]={type:4,index:62},this.rules[50].opcodes[3]={type:6,string:[47]},this.rules[50].opcodes[4]={type:6,string:[63]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:3,min:0,max:1/0},this.rules[51].opcodes[1]={type:1,children:[2,3,4]},this.rules[51].opcodes[2]={type:4,index:62},this.rules[51].opcodes[3]={type:6,string:[47]},this.rules[51].opcodes[4]={type:6,string:[63]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:2,children:[1,5,6]},this.rules[52].opcodes[1]={type:3,min:0,max:1},this.rules[52].opcodes[2]={type:2,children:[3,4]},this.rules[52].opcodes[3]={type:4,index:53},this.rules[52].opcodes[4]={type:6,string:[64]},this.rules[52].opcodes[5]={type:4,index:54},this.rules[52].opcodes[6]={type:3,min:0,max:1},this.rules[52].opcodes[7]={type:2,children:[8,9]},this.rules[52].opcodes[8]={type:7,string:[58]},this.rules[52].opcodes[9]={type:4,index:55},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:3,min:0,max:1/0},this.rules[53].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12]},this.rules[53].opcodes[2]={type:5,min:97,max:122},this.rules[53].opcodes[3]={type:5,min:65,max:90},this.rules[53].opcodes[4]={type:5,min:48,max:57},this.rules[53].opcodes[5]={type:4,index:63},this.rules[53].opcodes[6]={type:6,string:[33]},this.rules[53].opcodes[7]={type:6,string:[36]},this.rules[53].opcodes[8]={type:5,min:38,max:46},this.rules[53].opcodes[9]={type:5,min:58,max:59},this.rules[53].opcodes[10]={type:6,string:[61]},this.rules[53].opcodes[11]={type:6,string:[95]},this.rules[53].opcodes[12]={type:6,string:[126]},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:1,children:[1,2,6]},this.rules[54].opcodes[1]={type:4,index:30},this.rules[54].opcodes[2]={type:2,children:[3,4]},this.rules[54].opcodes[3]={type:4,index:39},this.rules[54].opcodes[4]={type:13},this.rules[54].opcodes[5]={type:4,index:43},this.rules[54].opcodes[6]={type:4,index:42},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:3,min:0,max:1/0},this.rules[55].opcodes[1]={type:4,index:79},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1/0},this.rules[56].opcodes[1]={type:2,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[47]},this.rules[56].opcodes[3]={type:4,index:60},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2]},this.rules[57].opcodes[1]={type:7,string:[47]},this.rules[57].opcodes[2]={type:3,min:0,max:1},this.rules[57].opcodes[3]={type:2,children:[4,5]},this.rules[57].opcodes[4]={type:4,index:61},this.rules[57].opcodes[5]={type:3,min:0,max:1/0},this.rules[57].opcodes[6]={type:2,children:[7,8]},this.rules[57].opcodes[7]={type:7,string:[47]},this.rules[57].opcodes[8]={type:4,index:60},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:2,children:[1,2]},this.rules[58].opcodes[1]={type:4,index:61},this.rules[58].opcodes[2]={type:3,min:0,max:1/0},this.rules[58].opcodes[3]={type:2,children:[4,5]},this.rules[58].opcodes[4]={type:7,string:[47]},this.rules[58].opcodes[5]={type:4,index:60},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:7,str
11ing:[]},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:3,min:0,max:1/0},this.rules[60].opcodes[1]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:3,min:1,max:1/0},this.rules[61].opcodes[1]={type:4,index:62},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[62].opcodes[1]={type:5,min:97,max:122},this.rules[62].opcodes[2]={type:5,min:65,max:90},this.rules[62].opcodes[3]={type:5,min:48,max:57},this.rules[62].opcodes[4]={type:4,index:63},this.rules[62].opcodes[5]={type:6,string:[33]},this.rules[62].opcodes[6]={type:6,string:[36]},this.rules[62].opcodes[7]={type:5,min:38,max:46},this.rules[62].opcodes[8]={type:5,min:58,max:59},this.rules[62].opcodes[9]={type:6,string:[61]},this.rules[62].opcodes[10]={type:6,string:[64]},this.rules[62].opcodes[11]={type:6,string:[95]},this.rules[62].opcodes[12]={type:6,string:[126]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:2,children:[1,2,3]},this.rules[63].opcodes[1]={type:6,string:[37]},this.rules[63].opcodes[2]={type:4,index:80},this.rules[63].opcodes[3]={type:4,index:80},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:4,max:4},this.rules[64].opcodes[1]={type:4,index:79},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:3,min:2,max:2},this.rules[65].opcodes[1]={type:4,index:79},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:3,min:2,max:2},this.rules[66].opcodes[1]={type:4,index:79},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:2,max:2},this.rules[67].opcodes[1]={type:4,index:79},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:3,min:2,max:2},this.rules[68].opcodes[1]={type:4,index:79},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:3,min:2,max:2},this.rules[69].opcodes[1]={type:4,index:79},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:2,children:[1,2]},this.rules[70].opcodes[1]={type:7,string:[46]},this.rules[70].opcodes[2]={type:3,min:1,max:1/0},this.rules[70].opcodes[3]={type:4,index:79},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,4,5,6]},this.rules[71].opcodes[1]={type:1,children:[2,3]},this.rules[71].opcodes[2]={type:7,string:[43]},this.rules[71].opcodes[3]={type:7,string:[45]},this.rules[71].opcodes[4]={type:4,index:67},this.rules[71].opcodes[5]={type:7,string:[58]},this.rules[71].opcodes[6]={type:4,index:68},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:7,string:[122]},this.rules[72].opcodes[2]={type:4,index:71},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:2,children:[1,2,3,4,5,6]},this.rules[73].opcodes[1]={type:4,index:67},this.rules[73].opcodes[2]={type:7,string:[58]},this.rules[73].opcodes[3]={type:4,index:68},this.rules[73].opcodes[4]={type:7,string:[58]},this.rules[73].opcodes[5]={type:4,index:69},this.rules[73].opcodes[6]={type:3,min:0,max:1},this.rules[73].opcodes[7]={type:4,index:70},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[74].opcodes[1]={type:4,index:64},this.rules[74].opcodes[2]={type:7,string:[45]},this.rules[74].opcodes[3]={type:4,index:65},this.rules[74].opcodes[4]={type:7,string:[45]},this.rules[74].opcodes[5]={type:4,index:66},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2]},this.rules[75].opcodes[1]={type:4,index:73},this.rules[75].opcodes[2]={type:4,index:72},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:2,children:[1,2,3]},this.rules[76].opcodes[1]={type:4,index:74},this.rules[76].opcodes[2]={type:7,string:[116]},this.rules[76].opcodes[3]={type:4,index:75},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:5,min:65,max:90},this.rules[77].opcodes[2]={type:5,min:97,max:122},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:6,string:[10]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:5,min:48,max:57},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:1,children:[1,2,3]},this.rules[80].opcodes[1]={type:5,min:48,max:57},this.rules[80].opcodes[2]={type:5,min:65,max:70},this.rules[80].opcodes[3]={type:5,min:97,max:102},this.toString=function(){let e="";return e+'; LDT 05/06/2024 \n; modified in several significant ways\n;
11 1) Literal strings are replaced with numbers and ranges (%d32 & %d32-126, etc.) when possible.\n; TRB and especially TRG operators are much more efficient than TLS operators.\n; 2) Two rules, authority and URI, are used multiple times in different contexts. These rules will be reproduced and renamed\n; in order to a) recognize the context and b) remove unneccary callback functions for certain contexts.\n; This will simiplify recognizing contexts AND remove unneccesary callbacks\n; 2.a) domain is defined as authority-d which is identical to authority except that there will be no\n; callback functions defined on authority-d or any of its *-d components.\n; 2.b) The resource URI is defined as URI-r and its components defined as *-r.\n; In this way, callback functions can be defined on URI and is components while\n; leaving URI-r to be parsed identically with no unnecessary callback functions to slow it down.\n; 3) IPv6address does not work because of APG\'s "first-success disambiguation" and "greedy" repetitions.\n; IPv6address redefined and validations moved to callback functions (semantic vs syntactic validation)\n; Redefinition requires negative look-ahead operators, https://en.wikipedia.org/wiki/Syntactic_predicate\n; That is SABNF instead of simple ABNF.\n; 4) IPv4address fails because of "first-success disambiguation".\n; This could be fixed with rearrangement of the alternative terms. However, it would still not\n; accept zero-padded (leading zeros) decimal octets.\n; Therefore, IPv4address is also done with callback functions and semantic validation.\n; 5) The negative look-ahead operator is also needed in the definition of host to\n; prevent failure with a reg-name that begins with an IPv4 address.\n; 6) NOTE: host = 1.1.1.256 is a valid host name even though it is an invalid IPv4address.\n; The IPv4address alternative fails but the reg-name alternative succeeds.\n; 7) The Ethereum spec (https://eips.ethereum.org/EIPS/eip-4361) message format ABNF\n; allows for empty statements. Because of the "first success disambiguation" of APG\n; the an explicit "empty-statement" rule is required to match the spec\'s intent.\n\n\nsign-in-with-ethereum =\n oscheme domain %s" wants you to sign in with your Ethereum account:" LF\n address LF\n ((LF statement LF LF) / empty-statement / (LF LF))\n %s"URI: " URI LF\n %s"Version: " version LF\n %s"Chain ID: " chain-id LF\n %s"Nonce: " nonce LF\n %s"Issued At: " issued-at\n [ LF ex-title expiration-time ]\n [ LF nb-title not-before ]\n [ LF ri-title request-id ]\n [ LF re-title resources ]\nex-title = %s"Expiration Time: "\nnb-title = %s"Not Before: "\nri-title = %s"Request ID: "\nre-title = %s"Resources:"\noscheme = [ ALPHA *( ALPHA / DIGIT / %d43 / %d45-46 ) "://" ]\ndomain = authority-d\naddress = "0x" 40*40HEXDIG\n ; Must also conform to captilization\n ; checksum encoding specified in EIP-55\n ; where applicable (EOAs).\n\nstatement = 1*( %d97-122 / %d65-90 / %d48-57 / %d32-33 / %d35-36 / %d38-59 / %d61 / %d63-64 / %d91 / %d93 / %d95 / %d126)\n ; The purpose is to exclude LF (line breaks).\n ; LDT 10/04/2023: Do you mean %d32-126? All printing characters\nempty-statement = LF LF LF\nversion = "1"\nnonce = 8*( ALPHA / DIGIT )\nissued-at = date-time\nexpiration-time = date-time\nnot-before = date-time\nrequest-id = *pchar\nchain-id = 1*DIGIT\n ; See EIP-155 for valid CHAIN_IDs.\nresources = *( LF resource )\nresource = "- " URI-r\n\n; ------------------------------------------------------------------------------\n; RFC 3986\n\nURI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]\nhier-part = "//" authority path-abempty\n / path-absolute\n / path-rootless\n / path-empty\nscheme = ALPHA *( ALPHA / DIGIT / %d43 / %d45-46 )\nauthority = [ userinfo-at ] host [ ":" port ]\npath-abempty = *( "/" segment )\npath-absolute = "/" [ segment-nz *( "/" segment ) ]\npath-rootless = segment-nz *( "/" segment )\npath-empty = ""\nuserinfo-at = userinfo %d64\n ; userinfo redefined to include the "@" so that it will fail without it\n ; otherwise userinfo can match host and then the parser will backtrack\n ; incorrectly keeping the captured userinfo phrase\nuserinfo = *(%d97-122 / %d65-90 / %d48-57 / pct-encoded / %d33 / %d36 / %d38-46 / %d58-59 / %d61 / %d95 / %d126)\nhost = IP-literal / (IPv4address !reg-name-char) / reg-name\n ; negative look-ahead required to prevent IPv4address from being recognized as first part of reg-name\n ; same fix as https://github.com/garycourt/uri-js/issues/4\nIP-literal = "["
11( IPv6address / IPvFuture ) "]"\nIPvFuture = "v" 1*HEXDIG "." 1*( %d97-122 / %d65-90 / %d48-57 / %d33 / %d36 /%d38-46 / %d58-59 /%d61 /%d95 / %d126 )\nIPv6address = nodcolon / dcolon\nnodcolon = (h16n *h16cn) [%d58 IPv4address]\ndcolon = [h16 *h16c] %d58.58 (((h16n *h16cn) [%d58 IPv4address]) / [IPv4address])\nh16 = 1*4HEXDIG\nh16c = %d58 1*4HEXDIG\nh16n = 1*4HEXDIG !%d46\nh16cn = %d58 1*4HEXDIG !%d46\nIPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet\n; Here we will will use callback functions to evaluate and validate the (possibly zero-padded) dec-octet.\ndec-octet = *3dec-digit\ndec-digit = %d48-57\nreg-name = *reg-name-char\nreg-name-char = %d97-122 / %d65-90 / %d48-57 / pct-encoded / %d33 / %d36 / %d38-46 / %d59 / %d61 /%d95 / %d126\nport = *DIGIT\nquery = *(pchar / %d47 / %d63)\nfragment = *(pchar / %d47 / %d63)\n\n; URI-r is a redefiniton of URI but without the callback functions attached to it\n; it reuses athority-d from domain \nURI-r = scheme-r ":" hier-part-r [ "?" query-r ] [ "#" fragment-r ]\nhier-part-r = "//" authority-d path-abempty-r\n / path-absolute-r\n / path-rootless-r\n / path-empty-r\nscheme-r = ALPHA *( ALPHA / DIGIT / %d43 / %d45-46 )\nquery-r = *(pchar / %d47 / %d63)\nfragment-r = *(pchar / %d47 / %d63)\n\n; authority-d is a redefinition of authority for capturing the domian phrase\n; but without callback functions \n; it is reused for URI- for the same reason \nauthority-d = [ userinfo-d %d64 ] host-d [ ":" port-d ]\nuserinfo-d = *(%d97-122 / %d65-90 / %d48-57 / pct-encoded / %d33 / %d36 / %d38-46 / %d58-59 / %d61 / %d95 / %d126)\nhost-d = IP-literal / (IPv4address !reg-name-char) / reg-name\nport-d = *DIGIT\n\n; for use with URI-r\npath-abempty-r = *( "/" segment )\npath-absolute-r = "/" [ segment-nz *( "/" segment ) ]\npath-rootless-r = segment-nz *( "/" segment )\npath-empty-r = ""\nsegment = *pchar\nsegment-nz = 1*pchar\npchar = (%d97-122 / %d65-90 / %d48-57 / pct-encoded / %d33 / %d36 / %d38-46 /%d58-59 / %d61 / %d64 / %d95 / %d126)\npct-encoded = %d37 HEXDIG HEXDIG\n\n; no longer needed - expanded for all usage for fewer branches in the parse there\n; and more efficient use of the TBS & TRG operators in place of TLS and rule names\n; does not work with APG probably because of "first-success disambiguation" and greedy repetitions.\n; will replace with semantic checking of valid number of h16s\n;IPv6address = 6( h16 ":" ) ls32\n; / "::" 5( h16 ":" ) ls32\n; / [ h16 ] "::" 4( h16 ":" ) ls32\n; / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32\n; / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32\n; / [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32\n; / [ *4( h16 ":" ) h16 ] "::" ls32\n; / [ *5( h16 ":" ) h16 ] "::" h16\n; / [ *6( h16 ":" ) h16 ] "::"\n;ls32 = ( h16 ":" h16 ) / IPv4address\n; dec-octet does not work because of "first-success disambiguation".\n; Must have the longest (3-digit) numbers first.\n; Even so, this form does not accept leading zeros.\n; There does not seem to be a clear standard for this (https://en.wikipedia.org/wiki/Dot-decimal_notation)\n; however and early RFC 790 did show leading-zero padding of the three digits.\n;dec-octet = DIGIT ; 0-9\n; / %x31-39 DIGIT ; 10-99\n; / "1" 2DIGIT ; 100-199\n; / "2" %x30-34 DIGIT ; 200-249\n; / "25" %x30-35 ; 250-255\n;statement = 1*( reserved / unreserved / " " )\n;scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )\n;authority = [ userinfo "@" ] host [ ":" port ]\n;userinfo = *( unreserved / pct-encoded / sub-delims / ":" )\n;query = *( pchar / "/" / "?" )\n;fragment = *( pchar / "/" / "?" )\n;IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )\n;reg-name = *( unreserved / pct-encoded / sub-delims )\n;pct-encoded = "%" HEXDIG HEXDIG\n;pchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n;path-empty = 0pchar; deprecated - empty literal string, "", is more efficient \n;unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n;reserved = gen-delims / sub-delims\n;gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"\n;sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n; / "*" / "+" / "," / ";" / "="\n;HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n\n; ------------------------------------------------------------------------------\n; RFC 3339\n\ndate-fullyear = 4DIGIT\ndate-month = 2DIGIT ; 01-12\ndate-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on\n ; month/year\ntime-hour = 2DIGIT ; 00-23\ntime-minute = 2DIGIT ; 00-59\ntime-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second\n ; rules\ntime-secfrac = "." 1*DIGIT\ntime-numoffset = ("+" / "-") time-hour ":" time-minute\ntime-offset = "Z" / time-numoffset\n\npartial-time = time-hour ":" time-minute ":" time-second\n [time-secfrac]\nfull-date = date-fullyear "-" date-month "-" date-mday\nfull-time = partial-time time-offset\n\ndate-time = full-date "T" full-time\n\n; ------------------------------------------------------------------------------\n; RFC 5234\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nLF = %x0A\n ;
11 linefeed\nDIGIT = %x30-39\n ; 0-9\nHEXDIG = %d48-57 / %d65-70 / %d97-102\n\n'}}},31140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;let n=r(8651),s=r(85910),i=r(21287),a=r(43814),o=BigInt(0);function c(e,t){return function(r){return null==r?t:e(r)}}function l(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw Error("not an array");return r.map(t=>e(t))}}function u(e,t){return r=>{let n={};for(let s in e){let i=s;if(t&&s in t&&!(i in r)){for(let e of t[s])if(e in r){i=e;break}}try{let t=e[s](r[i]);void 0!==t&&(n[s]=t)}catch(t){let e=t instanceof Error?t.message:"not-an-error";(0,a.assert)(!1,`invalid value for value.${s} (${e})`,"BAD_DATA",{value:r})}}return n}}function d(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,a.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function f(e){return(0,a.assertArgument)((0,a.isHexString)(e,!0),"invalid data","value",e),e}function h(e){return(0,a.assertArgument)((0,a.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=c,t.arrayOf=l,t.object=u,t.formatBoolean=d,t.formatData=f,t.formatHash=h,t.formatUint256=function(e){if(!(0,a.isHexString)(e))throw Error("invalid uint256");return(0,a.zeroPadValue)(e,32)};let p=u({address:n.getAddress,blockHash:h,blockNumber:a.getNumber,data:f,index:a.getNumber,removed:c(d,!1),topics:l(h),transactionHash:h,transactionIndex:a.getNumber},{index:["logIndex"]});t.formatLog=function(e){return p(e)};let g=u({hash:c(h),parentHash:h,parentBeaconBlockRoot:c(h,null),number:a.getNumber,timestamp:a.getNumber,nonce:c(f),difficulty:a.getBigInt,gasLimit:a.getBigInt,gasUsed:a.getBigInt,stateRoot:c(h,null),receiptsRoot:c(h,null),blobGasUsed:c(a.getBigInt,null),excessBlobGas:c(a.getBigInt,null),miner:c(n.getAddress),prevRandao:c(h,null),extraData:f,baseFeePerGas:c(a.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){let t=g(e);return t.transactions=e.transactions.map(e=>"string"==typeof e?e:x(e)),t};let b=u({transactionIndex:a.getNumber,blockNumber:a.getNumber,transactionHash:h,address:n.getAddress,topics:l(h),data:f,index:a.getNumber,blockHash:h},{index:["logIndex"]});function m(e){return b(e)}t.formatReceiptLog=m;let y=u({to:c(n.getAddress,null),from:c(n.getAddress,null),contractAddress:c(n.getAddress,null),index:a.getNumber,root:c(a.hexlify),gasUsed:a.getBigInt,blobGasUsed:c(a.getBigInt,null),logsBloom:c(f),blockHash:h,hash:h,logs:l(m),blockNumber:a.getNumber,cumulativeGasUsed:a.getBigInt,effectiveGasPrice:c(a.getBigInt),blobGasPrice:c(a.getBigInt,null),status:c(a.getNumber),type:c(a.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function x(e){e.to&&(0,a.getBigInt)(e.to)===o&&(e.to="0x0000000000000000000000000000000000000000");let t=u({hash:h,index:c(a.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,a.getNumber)(e),accessList:c(i.accessListify,null),blobVersionedHashes:c(l(h,!0),null),authorizationList:c(l(e=>{let t;if(e.signature)t=e.signature;else{let r=e.yParity;"0x1b"===r?r=0:"0x1c"===r&&(r=1),t=Object.assign({},e,{yParity:r})}return{address:(0,n.getAddress)(e.address),chainId:(0,a.getBigInt)(e.chainId),nonce:(0,a.getBigInt)(e.nonce),signature:s.Signature.from(t)}},!1),null),blockHash:c(h,null),blockNumber:c(a.getNumber,null),transactionIndex:c(a.getNumber,null),from:n.getAddress,gasPrice:c(a.getBigInt),maxPriorityFeePerGas:c(a.getBigInt),maxFeePerGas:c(a.getBigInt),maxFeePerBlobGas:c(a.getBigInt,null),gasLimit:a.getBigInt,to:c(n.getAddress,null),value:a.getBigInt,nonce:a.getNumber,data:f,creates:c(n.getAddress,null),chainId:c(a.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,n.getCreateAddress)(t)),(1===e.type||2===e.type)&&null==e.accessList&&(t.accessList=[]),e.signature?t.signature=s.Signature.from(e.signature):t.signature=s.Signature.from(e),null==t.chainId){let e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,a.getBigInt)(t.blockHash)===o&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return y(e)},t.formatTransactionResponse=x},32463:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>L,__assign:()=>i,__asyncDelegator:()=>k,__asyncGenerator:()=>P,__asyncValues:()=>O,__await:()=>E,__awaiter:()=>p,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>I,__createBinding:()=>b,__decorate:()=>o,__disposeResources:()=>U,__esDecorate:()=>l,__exportStar:()=>m,__extends:()=>s,__generator:()=>g,__importDefault:()=>C,__importStar:()=>
11S,__makeTemplateObject:()=>T,__metadata:()=>h,__param:()=>c,__propKey:()=>d,__read:()=>x,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>A,__spreadArray:()=>v,__spreadArrays:()=>w,__values:()=>y,default:()=>F});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)0>t.indexOf(n[s])&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function o(e,t,r,n){var s,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,s,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,h=r.length-1;h>=0;h--){var p={};for(var g in n)p[g]="access"===g?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var b=(0,r[h])("accessor"===c?{get:d.get,set:d.set}:d[l],p);if("accessor"===c){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw TypeError("Object expected");(o=a(b.get))&&(d.get=o),(o=a(b.set))&&(d.set=o),(o=a(b.init))&&s.unshift(o)}else(o=a(b))&&("field"===c?s.unshift(o):d[l]=o)}u&&Object.defineProperty(u,n.name,d),f=!0}function u(e,t,r){for(var n=arguments.length>2,s=0;s<t.length;s++)r=n?t[s].call(e,r):t[s].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(s,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function o(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,o)}c((n=n.apply(e,t||[])).next())})}function g(e,t){var r,n,s,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){var l=[o,c];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(s=2&l[0]?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[2&l[0],s.value]),l[0]){case 0:case 1:s=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(6===l[0]&&i.label<s[1]){i.label=s[1],s=l;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(l);break}s[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=s=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var b=Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);
vendor: 4,124 bytes, line 11
11(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function m(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||b(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a}function A(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(x(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var i=arguments[t],a=0,o=i.length;a<o;a++,s++)n[s]=i[a];return n}function v(e,t,r){if(r||2==arguments.length)for(var n,s=0,i=t.length;s<i;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){s[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||o(e,t)})},t&&(n[e]=t(n[e])))}function o(e,t){try{var r;(r=s[e](t)).value instanceof E?Promise.resolve(r.value.v).then(c,l):u(i[0][2],r)}catch(e){u(i[0][3],e)}}function c(e){o("next",e)}function l(e){o("throw",e)}function u(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:s?s(t):t}:s}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,s){var i,a,o;i=n,a=s,o=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:o})},a)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var B=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&b(t,e,r);return B(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,r){if(null!=t){var n,s;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
11if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function U(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}let F={__extends:s,__assign:i,__rest:a,__decorate:o,__param:c,__metadata:h,__awaiter:p,__generator:g,__createBinding:b,__exportStar:m,__values:y,__read:x,__spread:A,__spreadArrays:w,__spreadArray:v,__await:E,__asyncGenerator:P,__asyncDelegator:k,__asyncValues:O,__makeTemplateOb
11ject:T,__importStar:S,__importDefault:C,__classPrivateFieldGet:N,__classPrivateFieldSet:I,__classPrivateFieldIn:R,__addDisposableResource:L,__disposeResources:U}},32545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;let n=r(51930);function s(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}let i="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(let r of function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=s(r.length);return n.unshift(247+n.length),n.concat(r)}let r=Array.prototype.slice.call((0,n.getBytes)(t,"object"));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let i=s(r.length);return i.unshift(183+i.length),i.concat(r)}(e))t+=i[r>>4],t+=i[15&r];return t}},33069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;let n=r(58652),s=r(22360),i=r(64870);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,s.concatBytes)(...r)),randomBytes:s.randomBytes}}t.getHash=a,t.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})}},34271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;let n=r(8651),s=r(85910);function i(e){let t;return t="string"==typeof e?s.SigningKey.computePublicKey(e,!1):e.publicKey,(0,n.getAddress)((0,s.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=i,t.recoverAddress=function(e,t){return i(s.SigningKey.recoverPublicKey(e,t))}},35781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SiweMessage=void 0;let n=r(71938),s=r(45857),i=r(10563),a=r(7511);class o{constructor(e){if("string"==typeof e){let t=new n.ParsedMessage(e);this.scheme=t.scheme,this.domain=t.domain,this.address=t.address,this.statement=t.statement,this.uri=t.uri,this.version=t.version,this.nonce=t.nonce,this.issuedAt=t.issuedAt,this.expirationTime=t.expirationTime,this.notBefore=t.notBefore,this.requestId=t.requestId,this.chainId=t.chainId,this.resources=t.resources}else this.scheme=null==e?void 0:e.scheme,this.domain=e.domain,this.address=e.address,this.statement=null==e?void 0:e.statement,this.uri=e.uri,this.version=e.version,this.chainId=e.chainId,this.nonce=e.nonce,this.issuedAt=null==e?void 0:e.issuedAt,this.expirationTime=null==e?void 0:e.expirationTime,this.notBefore=null==e?void 0:e.notBefore,this.requestId=null==e?void 0:e.requestId,this.resources=null==e?void 0:e.resources,"string"==typeof this.chainId&&(this.chainId=(0,n.parseIntegerNumber)(this.chainId)),this.nonce=this.nonce||(0,a.generateNonce)(),new n.ParsedMessage(this.prepareMessage())}toMessage(){let e=this.scheme?`${this.scheme}://${this.domain}`:this.domain,t=`${e} wants you to sign in with your Ethereum account:`,r=`URI: ${this.uri}`,n=[t,this.address].join("\n"),s=`Version: ${this.version}`;this.nonce||(this.nonce=(0,a.generateNonce)());let i=[r,s,"Chain ID: "+this.chainId,`Nonce: ${this.nonce}`];if(this.issuedAt=this.issuedAt||new Date().toISOString(),i.push(`Issued At: ${this.issuedAt}`),this.expirationTime){let e=`Expiration Time: ${this.expirationTime}`;i.push(e)}this.notBefore&&i.push(`Not Before: ${this.notBefore}`),this.requestId&&i.push(`Request ID: ${this.requestId}`),this.resources&&i.push(["Resources:",...this.resources.map(e=>`- ${e}`)].join("\n"));let o=i.join("\n");return n=[n,this.statement].join("\n\n"),void 0!==this.statement&&(n+="\n"),[n,o].join("\n")}prepareMessage(){return this.version,this.toMessage()}async verify(e,t={suppressExceptions:!1}){return new Promise((r,n)=>{var o,c,l;let u,d,f=e=>t.suppressExceptions?r(e):n(e),h=(0,a.checkInvalidKeys)(e,i.VerifyParamsKeys);h.length>0&&f({success:!1,data:this,error:Error(`${h.join(", ")} is/are not valid key(s) for VerifyParams.`)});let p=(0,a.checkInvalidKeys)(t,i.VerifyOptsKeys);p.length>0&&f({success:!1,data:this,error:Error(`${p.join(", ")} is/are not valid key(s) for VerifyOpts.`)});let{signature:g,scheme:b,domain:m,nonce:y,time:x}=e;b&&b!==this.scheme&&f({success:!1,data:this,error:new i.SiweError(i.SiweErrorType.SCHEME_MISMATCH,b,this.scheme)}),m&&m!==this.domain&&f({success:!1,data:this,error:new i.SiweError(i.SiweErrorType.DOMAIN_MISMATCH,m,this.domain)}),y&&y!==this.nonce&&f({success:!1,data:this,error:new i.SiweError(i.SiweErrorType.NONCE_MISMATCH,y,this.nonce)});let A=new Date(x||new Date);if(this.expirationTime){let e=new Date(this.expirationTime);A.getTime()>=e.getTime()&&f({success:!1,data:this,error:new i.SiweError(i.SiweErrorType.EXPIRED_MESSAGE,`${A.toISOString()} < ${e.toISOString()}`,`${A.toISOString()} >= ${e.toISOString()}`)})}if(this.notBefore){let e=new Date(this.notBefore);A.getTime()<e.getTime()&&f({success:!1,data:this,error:new i.SiweError(i.SiweErrorType.NOT_YET_VALID_MESSAGE,`${A.toISOString()} >= ${e.toISOString()}`,`${A.toISOString()} < ${e.toISOString()}`)})}try{u=this.prepareMessage()}catch(e){f({success:!1,data:this,error:e})}try{d=(0,s.verifyMessage)(u,g)}catch(e){console.error(e)}if(d===this.address)return r({success:!0,data:this});{let n=(0,a.checkContractWalletSignature)(this,g,t.provider).then(e=>e?{success:!0,data:this}:{success:!1,data:this,error:new i.SiweError(i.SiweErrorType.INVALID_SIGNATURE,d,`Resolved address to be ${this.address}`)}).catch(e=>({success:!1,data:this,error:e}));Promise.all([n,null==(l=null==(c=null==(o=null==t?void 0:t.verificationFallback)?void 0:o.call(t,e,t,this,n))?void 0:c.then(e=>e))?void 0:l.catch(e=>e)]).then(([e,t])=>
11{if(t)if(t.success)return r(t);else f(t);else{if(e.success)return r(e);f(e)}})}})}}t.SiweMessage=o},36548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;let n=r(32463);t.ethers=n.__importStar(r(6045)),n.__exportStar(r(6045),t)},36866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;let n=r(43814),s=r(21287),i=BigInt(0);function a(e){return null==e?null:e}function o(e){return null==e?null:e.toString()}class c{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,n.defineProperties)(this,{gasPrice:a(e),maxFeePerGas:a(t),maxPriorityFeePerGas:a(r)})}toJSON(){let{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(r)}}}t.FeeData=c,t.copyRequest=function(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,n.hexlify)(e.data)),"chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=(0,n.getBigInt)(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=(0,n.getNumber)(e[r],`request.${r}`));return e.accessList&&(t.accessList=(0,s.accessListify)(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobWrapperVersion"in e&&(t.blobWrapperVersion=e.blobWrapperVersion),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(e=>(0,n.isBytesLike)(e)?(0,n.hexlify)(e):Object.assign({},e))),t};class l{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#E;constructor(e,t){this.#E=e.transactions.map(e=>"string"!=typeof e?new f(e,t):e),(0,n.defineProperties)(this,{provider:t,hash:a(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:a(e.prevRandao),extraData:e.extraData,baseFeePerGas:a(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#E.map(e=>"string"==typeof e?e:e.hash)}get prefetchedTransactions(){let e=this.#E.slice();return 0===e.length?[]:((0,n.assert)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){let{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:s,hash:i,miner:a,prevRandao:c,nonce:l,number:u,parentHash:d,parentBeaconBlockRoot:f,stateRoot:h,receiptsRoot:p,timestamp:g,transactions:b}=this;return{_type:"Block",baseFeePerGas:o(e),difficulty:o(t),extraData:r,gasLimit:o(n),gasUsed:o(s),blobGasUsed:o(this.blobGasUsed),excessBlobGas:o(this.excessBlobGas),hash:i,miner:a,prevRandao:c,nonce:l,number:u,parentHash:d,timestamp:g,parentBeaconBlockRoot:f,stateRoot:h,receiptsRoot:p,transactions:b}}[Symbol.iterator](){let e=0,t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#E.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"==typeof e)t=this.#E[e];else{let r=e.toLowerCase();for(let e of this.#E)if("string"==typeof e){if(e!==r)continue;t=e;break}else{if(e.hash!==r)continue;t=e;break}}if(null==t)throw Error("no such tx");return"string"==typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){let t=this.prefetchedTransactions;if("number"==typeof e)return t[e];for(let r of(e=e.toLowerCase(),t))if(r.hash===e)return r;(0,n.assertArgument)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){var e;if(!this.isMined())throw Error("");return e=this,{orphan:"drop-block",hash:e.hash,number:e.number}}}t.Block=l;class u{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;let r=Object.freeze(e.topics.slice());(0,n.defineProperties)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:r,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){let{address:e,blockHash:t,blockNumber:r,data:n,index:s,removed:i,topics:a,transactionHash:o,transactionIndex:c}=this;return{_type:"log",address:e,blockHash:t,blockNumber:r,data:n,index:s,removed:i,topics:a,transactionHash:o,transactionIndex:c}}async getBlock(){let e=await this.provider.getBlock(this.blockHash);return(0,n.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){let e=await this.provider.getTransaction(this.transactionHash);return(0,n.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){let e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,n.assert)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){var e;return e=this,{orphan:"drop-log",log:{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}}}}t.Log=u;class d{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#P;constructor(e,t){this.#P=Object.freeze(e.logs.map(e=>new u(e,t)));let r=i;null!=e.effectiveGasPrice?r=e.effectiveGasPrice:null!=e.gasPrice&&(r=e.gasPrice),(0,n.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:r,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#P}toJSON(){let{to:e,from:t,contractAddress:r,hash:n,index:s,blockHash:i,blockNumber:a,logsBloom:c,logs:l,status:u,root:d}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:a,contractAddress:r,cumulativeGasUsed:o(this.cumulativeGasUsed),from:t,gasPrice:o(this.gasPrice),blobGasUsed:o(this.blobGasUsed),blobGasPrice:o(this.blobGasPrice),gasUsed:o(this.gasUsed),hash:n,index:s,logs:l,logsBloom:c,root:d,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){let e=await this.provider.getBlock(this.blockHash);if(null==e)throw Error("TODO");return e}async getTransaction(){let e=await this.provider.getTransaction(this.hash);if(null==e)throw Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return p(this)}reorderedEvent(e){return(0,n.assert)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),h(this,e)}}t.TransactionReceipt=d;class f{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;authorizationList;#k;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLim
11it,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.authorizationList=null!=e.authorizationList?e.authorizationList:null,this.#k=-1}toJSON(){let{blockNumber:e,blockHash:t,index:r,hash:n,type:s,to:i,from:a,nonce:c,data:l,signature:u,accessList:d,blobVersionedHashes:f}=this;return{_type:"TransactionResponse",accessList:d,blockNumber:e,blockHash:t,blobVersionedHashes:f,chainId:o(this.chainId),data:l,from:a,gasLimit:o(this.gasLimit),gasPrice:o(this.gasPrice),hash:n,maxFeePerGas:o(this.maxFeePerGas),maxPriorityFeePerGas:o(this.maxPriorityFeePerGas),maxFeePerBlobGas:o(this.maxFeePerBlobGas),nonce:c,signature:u,to:i,index:r,type:s,value:o(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){let t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;let t=this.provider.getBlock(e);if(null==t)throw Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){let{tx:e,blockNumber:t}=await (0,n.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){let r=null==e?1:e,s=null==t?0:t,a=this.#k,o=-1,c=-1===a,l=async()=>{if(c)return null;let{blockNumber:e,nonce:t}=await (0,n.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce){a=e;return}if(c)return null;let s=await this.getTransaction();if(!s||null==s.blockNumber)for(-1===o&&(o=a-3)<this.#k&&(o=this.#k);o<=e;){if(c)return null;let t=await this.provider.getBlock(o,!0);if(null==t)break;for(let e of t)if(e===this.hash)return;for(let s=0;s<t.length;s++){let o=await t.getTransaction(s);if(o.from===this.from&&o.nonce===this.nonce){if(c)return null;let t=await this.provider.getTransactionReceipt(o.hash);if(null==t||e-t.blockNumber+1<r)return;let s="replaced";o.data===this.data&&o.to===this.to&&o.value===this.value?s="repriced":"0x"===o.data&&o.from===o.to&&o.value===i&&(s="cancelled"),(0,n.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===s||"cancelled"===s,reason:s,replacement:o.replaceableTransaction(a),hash:o.hash,receipt:t})}}o++}},u=e=>{if(null==e||0!==e.status)return e;(0,n.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},d=await this.provider.getTransactionReceipt(this.hash);if(0===r)return u(d);if(d){if(1===r||await d.confirmations()>=r)return u(d)}else if(await l(),0===r)return null;let f=new Promise((e,t)=>{let i=[],o=()=>{i.forEach(e=>e())};if(i.push(()=>{c=!0}),s>0){let e=setTimeout(()=>{o(),t((0,n.makeError)("wait for transaction timeout","TIMEOUT"))},s);i.push(()=>{clearTimeout(e)})}let d=async n=>{if(await n.confirmations()>=r){o();try{e(u(n))}catch(e){t(e)}}};if(i.push(()=>{this.provider.off(this.hash,d)}),this.provider.on(this.hash,d),a>=0){let e=async()=>{try{await l()}catch(e){if((0,n.isError)(e,"TRANSACTION_REPLACED")){o(),t(e);return}}c||this.provider.once("block",e)};i.push(()=>{this.provider.off("block",e)}),this.provider.once("block",e)}});return await f}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(e){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,n.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),h(this,e)}replaceableTransaction(e){(0,n.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);let t=new f(this,this.provider);return t.#k=e,t}}function h(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function p(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=f},37697:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;let n=r(85940),s=r(94185),i=r(22360),[a,o]=s.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
115771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),c=new Uint32Array(80),l=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:s,Cl:i,Dh:a,Dl:o,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:h,Hh:p,Hl:g}=this;return[e,t,r,n,s,i,a,o,c,l,u,d,f,h,p,g]}set(e,t,r,n,s,i,a,o,c,l,u,d,f,h,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|s,this.Cl=0|i,this.Dh=0|a,this.Dl=0|o,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),l[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|c[e-15],r=0|l[e-15],n=s.default.rotrSH(t,r,1)^s.default.rotrSH(t,r,8)^s.default.shrSH(t,r,7),i=s.default.rotrSL(t,r,1)^s.default.rotrSL(t,r,8)^s.default.shrSL(t,r,7),a=0|c[e-2],o=0|l[e-2],u=s.default.rotrSH(a,o,19)^s.default.rotrBH(a,o,61)^s.default.shrSH(a,o,6),d=s.default.rotrSL(a,o,19)^s.default.rotrBL(a,o,61)^s.default.shrSL(a,o,6),f=s.default.add4L(i,d,l[e-7],l[e-16]),h=s.default.add4H(f,n,u,c[e-7],c[e-16]);c[e]=0|h,l[e]=0|f}let{Ah:r,Al:n,Bh:i,Bl:u,Ch:d,Cl:f,Dh:h,Dl:p,Eh:g,El:b,Fh:m,Fl:y,Gh:x,Gl:A,Hh:w,Hl:v}=this;for(let e=0;e<80;e++){let t=s.default.rotrSH(g,b,14)^s.default.rotrSH(g,b,18)^s.default.rotrBH(g,b,41),E=s.default.rotrSL(g,b,14)^s.default.rotrSL(g,b,18)^s.default.rotrBL(g,b,41),P=g&m^~g&x,k=b&y^~b&A,O=s.default.add5L(v,E,k,o[e],l[e]),T=s.default.add5H(O,w,t,P,a[e],c[e]),B=0|O,S=s.default.rotrSH(r,n,28)^s.default.rotrBH(r,n,34)^s.default.rotrBH(r,n,39),C=s.default.rotrSL(r,n,28)^s.default.rotrBL(r,n,34)^s.default.rotrBL(r,n,39),N=r&i^r&d^i&d,I=n&u^n&f^u&f;w=0|x,v=0|A,x=0|m,A=0|y,m=0|g,y=0|b,({h:g,l:b}=s.default.add(0|h,0|p,0|T,0|B)),h=0|d,p=0|f,d=0|i,f=0|u,i=0|r,u=0|n;let R=s.default.add3L(B,C,I);r=s.default.add3H(R,T,S,N),n=0|R}({h:r,l:n}=s.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:u}=s.default.add(0|this.Bh,0|this.Bl,0|i,0|u)),({h:d,l:f}=s.default.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h:h,l:p}=s.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:g,l:b}=s.default.add(0|this.Eh,0|this.El,0|g,0|b)),({h:m,l:y}=s.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:x,l:A}=s.default.add(0|this.Gh,0|this.Gl,0|x,0|A)),({h:w,l:v}=s.default.add(0|this.Hh,0|this.Hl,0|w,0|v)),this.set(r,n,i,u,d,f,h,p,g,b,m,y,x,A,w,v)}roundClean(){c.fill(0),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)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-0x73c2c838,this.Al=0x19544da2,this.Bh=0x73e19966,this.Bl=-0x76232b2a,this.Ch=0x1dfab7ae,this.Cl=0x32ff9c82,this.Dh=0x679dd514,this.Dl=0x582f9fcf,this.Eh=0xf6d2b69,this.El=0x7bd44da8,this.Fh=0x77e36f73,this.Fl=0x4c48942,this.Gh=0x3f9d85a8,this.Gl=0x6a1d36c8,this.Hh=0x1112e6ad,this.Hl=-0x6e296d5f,this.outputLen=28}}class f extends u{constructor(){super(),this.Ah=0x22312194,this.Al=-0x3d408d4,this.Bh=-0x60aaa05d,this.Bl=-0x37b39b3e,this.Ch=0x2393b86b,this.Cl=0x6f53b151,this.Dh=-0x69c788e7,this.Dl=0x5940eabd,this.Eh=-0x69d7c11e,this.El=-0x5771001d,this.Fh=-0x41a1e1db,this.Fl=0x53863992,this.Gh=0x2b0199fc,this.Gl=0x2c85b8aa,this.Hh=0xeb72ddc,this.Hl=-0x7e3ad35e,this.outputLen=32}}class h extends u{constructor(){super(),this.Ah=-0x344462a3,this.Al=-0x3efa6128,this.Bh=0x629a292a,this.Bl=0x367cd507,this.Ch=-0x6ea6fea6,this.Cl=0x3070dd17,this.Dh=0x152fecd8,this.Dl=-0x8f1a6c7,this.Eh=0x67332667,this.El=-4191439,this.Fh=-0x714bb579,this.Fl=0x68581511,this.Gh=-0x24f3d1f3,this.Gl=0x64f98fa7,this.Hh=0x47b5481d,this.Hl=-0x4105b05c,this.outputLen=48}}t.sha512=(0,i.wrapConstructor)(()=>new u),t.sha512_224=(0,i.wrapConstructor)(()=>new d),t.sha512_256=(0,i.wrapConstructor)(()=>new f),t.sha384=(0,i.wrapConstructor)(()=>new h)},37979:(e,t)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,n)=>(e[t[n]]=r,e),{})},t.defineProperties=function(e,t,r){for(let n in t){let s=t[n],i=r?r[n]:null;i&&function(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;r<n.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}let s=Error(`invalid value for type ${t}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${r}`,s.value=e,s}(s,i,n),Object.defineProperty(e,n,{enumerable:!0,value:s,writable:!1})}}},39295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;let n=r(7528),s=new Uint8Array([]);class i extends n.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(s)}decode(e){return e.readBytes(0),null}}t.NullCoder=i},40728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="\x19Ethereum Signed Message:\n"},41203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;let n=r(17185),s=r(78045),i=r(20017);class a extends i.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,n.toUtf8Bytes)(s.Typed.dereference(t,"string")))}decode(e){return(0,n.toUtf8String)(super.decode(e))}}t.StringCoder=a},41327:e=>{e.exports={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,BKR:14,BKA:15,BKN:16,ABG:17,AEN:18,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,SEM_SKIP:301,ATTR_N:400,ATTR_R:401,ATTR_MR:402,LOOKAROUND_NONE:500,LOOKAROUND_AHEAD:501,LOOKAROUND_BEHIND:502,BKR_MODE_UM:601,BKR_MODE_PM:602,BKR_MODE_CS:603,BKR_MODE_CI:604}},42966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;let n=r(85910),s=r(43814),i=r(60371);t.getCreateAddress=function(e){let t=(0,i.getAddress)(e.from),r=(0,s.getBigInt)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,i.getAddress)((0,s.dataSlice)((0,n.keccak256)((0,s.encodeRlp)([t,r])),12))},t.getCreate2Address=function(e,t,r){let a=(0,i.getAddress)(e),o=(0,s.getBytes)(t,"salt"),c=(0,s.getBytes)(r,"initCodeHash");return(0,s.assertArgument)(32===o.length,"salt must be 32 bytes","salt",t),(0,s.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,i.getAddress)((0,s.dataSlice)((0,n.keccak256)((0,s.concat)(["0xff",a,o,c])),12))}},43814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var n=r(18266);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return n.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return n.encodeBase58}});var s=r(51728);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return s.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return s.encodeBase64}});var i=r(51930);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return i.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return i.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return i.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return i.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return i.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return i.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return i.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return i.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return i.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return i.zeroPadBytes}});var a=r(25265);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return a.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return a.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return a.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return a.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return a.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return a.assertPrivate}}
11),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return a.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return a.makeError}});var o=r(77223);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return o.EventPayload}});var c=r(80330);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return c.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return c.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return c.FetchCancelSignal}});var l=r(44873);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var u=r(96673);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var d=r(37979);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}});var f=r(76985);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return f.decodeRlp}});var h=r(32545);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return h.encodeRlp}});var p=r(8761);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return p.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return p.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return p.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return p.parseUnits}});var g=r(17185);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return g.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return g.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return g.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return g.Utf8ErrorFuncs}});var b=r(17653);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return b.uuidV4}})},44327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;let n=r(85910),s=r(43814),i=r(70079),a=r(1083),o=r(20503),c=r(23847),l=r(77014);function u(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}class d extends i.BaseWallet{constructor(e,t){"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),super("string"==typeof e?new n.SigningKey(e):e,t)}connect(e){return new d(this.signingKey,e)}async encrypt(e,t){let r={address:this.address,privateKey:this.privateKey};return await (0,c.encryptKeystoreJson)(r,e,{progressCallback:t})}encryptSync(e){let t={address:this.address,privateKey:this.privateKey};return(0,c.encryptKeystoreJsonSync)(t,e)}static #O(e){if((0,s.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){let t=l.Mnemonic.fromEntropy(e.mnemonic.entropy),r=a.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(r.address===e.address&&r.privateKey===e.privateKey)return r;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}let t=new d(e.privateKey);return(0,s.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}static async fromEncryptedJson(e,t,r){let n=null;return(0,c.isKeystoreJson)(e)?n=await (0,c.decryptKeystoreJson)(e,t,r):(0,o.isCrowdsaleJson)(e)&&(r&&(r(0),await u(0)),n=(0,o.decryptCrowdsaleJson)(e,t),r&&(r(1),await u(0))),d.#O(n)}static fromEncryptedJsonSync(e,t){let r=null;return(0,c.isKeystoreJson)(e)?r=(0,c.decryptKeystoreJsonSync)(e,t):(0,o.isCrowdsaleJson)(e)?r=(0,o.decryptCrowdsaleJson)(e,t):(0,s.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),d.#O(r)}static createRandom(e){let t=a.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){let r=a.HDNodeWallet.fromPhrase(e);return t?r.connect(t):r}}t.Wallet=d},44873:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;let n=r(51930),s=r(25265),i=r(96673),a=r(37979),o=BigInt(-1),c=BigInt(0),l=BigInt(1),u=BigInt(5),d={},f="0000";for(;f.length<80;)f+=f;function h(e){let t=f;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function p(e,t,r){let n=BigInt(t.width);if(t.signed){let t=l<<n-l;(0,s.assert)(null==r||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=e>c?(0,i.fromTwos)((0,i.mask)(e,n),n):-(0,i.fromTwos)((0,i.mask)(-e,n),n)}else{let t=l<<n;(0,s.assert)(null==r||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=(e%t+t)%t&t-l}return e}function g(e){"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,s.assertArgument)(i,"invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(e){let i=e,a=(e,t,r)=>null==i[e]?r:((0,s.assertArgument)(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=a("signed","boolean",t),r=a("width","number",r),n=a("decimals","number",n)}(0,s.assertArgument)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,s.assertArgument)(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);let i=(t?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:t,width:r,decimals:n,name:i}}class b{format;#T;#B;#S;_value;constructor(e,t,r){(0,s.assertPrivate)(e,d,"FixedNumber"),this.#B=t,this.#T=r;let n=function(e,t){let r="";e<c&&(r="-",e*=o);let n=e.toString();if(0===t)return r+n;for(;n.length<=t;)n=f+n;let s=n.length-t;for(n=n.substring(0,s)+"."+n.substring(s);"0"===n[0]&&"."!==n[1];)n=n.substring(1);for(;"0"===n[n.length-1]&&"."!==n[n.length-2];)n=n.substring(0,n.length-1);return r+n}(t,r.decimals);(0,a.defineProperties)(this,{format:r.name,_value:n}),this.#S=h(r.decimals)}get signed(){return this.#T.signed}get width(){return this.#T.width}get decimals(){return this.#T.decimals}get value(){return this.#B}#C(e){(0,s.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#N(e,t){return new b(d,e=p(e,this.#T,t),this.#T)}#I(e,t){return this.#C(e),this.#N(this.#B+e.#B,t)}addUnsafe(e){return this.#I(e)}add(e){return this.#I(e,"add")}#R(e,t){return this.#C(e),this.#N(this.#B-e.#B,t)}subUnsafe(e){return this.#R(e)}sub(e){return this.#R(e,"sub")}#L(e,t){return this.#C(e),this.#N(this.#B*e.#B/this.#S,t)}mulUnsafe(e){return this.#L(e)}mul(e){return this.#L(e,"mul")}mulSignal(e){this.#C(e);let t=this.#B*e.#B;return(0,s.assert)(t%this.#S===c,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#N(t/this.#S,"mulSignal")}#M(e,t){return(0,s.assert)(e.#B!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#C(e),this.#N(this.#B*this.#S/e.#B,t)}divUnsafe(e){return this.#M(e)}div(e){return this.#M(e,"div")}divSignal(e){(0,s.assert)(e.#B!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#C(e);let t=this.#B*this.#S;return(0,s.assert)(t%e.#B===c,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#N(t/e.#B,"divSignal")}cmp(e){let t=this.value,r=e.value,n=this.decimals-e.decimals;return(n>0?r*=h(n):n<0&&(t*=h(-n)),t<r)?-1:+(t>r)}eq(e){return 0===this.cmp(e)}lt(e){return 0>this.cmp(e)}lte(e){return 0>=this.cmp(e)}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#B;return this.#B<c&&(e-=this.#S-l),e=this.#B/this.#S*this.#S,this.#N(e,"floor")}ceiling(){let e=this.#B;return this.#B>c&&(e+=this.#S-l),e=this.#B/this.#S*this.#S,this.#N(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;let t=this.decimals-e,r=u*h(t-1),n=this.value+r,s=h(t);return p(n=n/s*s,this.#T,"round"),new b(d,n,this.#T)}isZero(){return this.#B===c}isNegative(){return this.#B<c}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return b.fromString(this.toString(),e)}static fromValue(e,t,r){let n=null==t?0:(0,i.getNumber)(t),a=g(r),o=(0,i.getBigInt)(e,"value"),l=n-a.decimals;if(l>0){let t=h(l);(0,s.assert)(o%t===c,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=t}else l<0&&(o*=h(-l));return p(o,a,"fromValue"),new b(d,o,a)}static fromString(e,t){let r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,s.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);let n=g(t),i=r[2]||"0",a=r[3]||"";for(;a.length<n.decimals;)a+=f;(0,s.assert)(a.substring(n.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),a=a.substring(0,n.decimals);let o=BigInt(r[1]+i+a);return p(o,n,"fromString"),new b(d,o,n)}static fromBytes(e,t){let r=(0,i.toBigInt)((0,n.getBytes)(e,"value")),s=g(t);return s.signed&&(r=(0,i.fromTwos)(r,s.width)),p(r,s,"fromBytes"),new b(d,r,s)}}t.FixedNumber=b},45080:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var n=r(92111);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return n.AES}});var s=r(6555);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return s.ModeOfOperation}});var i=r(61844);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return i.CBC}});var a=r(86491);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return a.CFB}});var o=r(67417);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return o.CTR}});var c=r(83008);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return c.ECB}});var l=r(78711);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return l.OFB}});var u=r(57529);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return u.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return u.pkcs7Strip}})},45103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;let n=r(43814);function s(e){return"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),(0,n.getBytesCopy)(e)}t.looseArrayify=s,t.zpad=function(e,t){for(e=String(e);e.length<t;)e="0"+e;return e},t.getPassword=function(e){return"string"==typeof e?(0,n.toUtf8Bytes)(e,"NFKC"):(0,n.getBytesCopy)(e)},t.spelunk=function(e,t){let r=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,n.assertArgument)(null!=r,"invalid path","path",t);let i=r[1],a=r[3],o="!"===r[4],c=e;for(let e of i.toLowerCase().split(".")){if(Array.isArray(c)){if(!e.match(/^[0-9]+$/))break;c=c[parseInt(e)]}else if("object"==typeof c){let t=null;for(let r in c)if(r.toLowerCase()===e){t=c[r];break}c=t}else c=null;if(null==c)break}if((0,n.assertArgument)(!o||null!=c,"missing required value","path",i),a&&null!=c){if("int"===a){if("string"==typeof c&&c.match(/^-?[0-9]+$/))return parseInt(c);else if(Number.isSafeInteger(c))return c}if("number"===a&&"string"==typeof c&&c.match(/^-?[0-9.]*$/))return parseFloat(c);if("data"===a&&"string"==typeof c)return s(c);if("array"===a&&Array.isArray(c)||a===typeof c)return c;(0,n.assertArgument)(!1,`wrong type found for ${a} `,"path",i)}return c}},45118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;let n=r(8651),s=r(96673),i=r(78045),a=r(7528);class o extends a.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let r=i.Typed.dereference(t,"string");try{r=(0,n.getAddress)(r)}catch(e){return this._throwError(e.message,t)}return e.writeValue(r)}decode(e){return(0,n.getAddress)((0,s.toBeHex)(e.readValue(),20))}}t.AddressCoder=o},45796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;let n=r(43814),s=r(1992),i=r(16887),a=r(96854),o="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class c extends a.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);null==t&&(t=o),super(c.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(e){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){let t,{trace:r,tx:s}=await (0,n.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==r||null==s)return null;let i=!1;try{t=r[0].result.output,i="Reverted"===r[0].error}catch(e){}if(t)return(0,n.assert)(!i,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:t,reason:null,transaction:s,invocation:null,revert:null}),t;(0,n.assert)(!1,"could not parse trace result","BAD_DATA",{value:r})}return await super._perform(e)}isCommunityResource(){return this.apiKey===o}static getRequest(e,t){null==t&&(t=o);let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.g.alchemy.com";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return r.allowGzip=!0,t===o&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("alchemy"),!0)),r}}
11t.AlchemyProvider=c},45857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.hashMessage=t.verifyMessage=void 0;let n=r(36548),s=null,i=null,a=null;try{s=n.ethers.utils.verifyMessage,i=n.ethers.utils.hashMessage,a=n.ethers.utils.getAddress}catch(e){s=n.ethers.verifyMessage,i=n.ethers.hashMessage,a=n.ethers.getAddress}t.verifyMessage=s,t.hashMessage=i,t.getAddress=a},46077:(e,t,r)=>{let{Buffer:n}=r(81029),s=r(50811),i="UTF8",a="UTF16",o="UTF16BE",c="UTF16LE",l="UTF32",u="UTF32BE",d="UTF32LE",f="UINT7",h="ASCII",p="BINARY",g="UINT8",b="UINT16",m="UINT16LE",y="UINT16BE",x="UINT32",A="UINT32LE",w="UINT32BE",v="ESCAPED",E="STRING",P=function(e){e.type=i;let t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)},k=function(e){let t=e.data;switch(e.bom=0,e.type){case a:e.type=o,t.length>=2&&(254===t[0]&&255===t[1]?e.bom=2:255===t[0]&&254===t[1]&&(e.type=c,e.bom=2));break;case o:if(e.type=o,t.length>=2){if(254===t[0]&&255===t[1])e.bom=2;else if(255===t[0]&&254===t[1])throw TypeError(`src type: "${o}" specified but BOM is for "${c}"`)}break;case c:if(e.type=c,t.length>=0)if(254===t[0]&&255===t[1])throw TypeError(`src type: "${c}" specified but BOM is for "${o}"`);else 255===t[0]&&254===t[1]&&(e.bom=2);break;default:throw TypeError(`UTF16 BOM: src type "${e.type}" unrecognized`)}},O=function(e){let t=e.data;switch(e.bom=0,e.type){case l:e.type=u,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.type=d,e.bom=4));break;case u:if(e.type=u,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]))throw TypeError(`src type: ${u} specified but BOM is for ${d}"`);break;case d:if(e.type=d,t.length>=4){if(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3])throw TypeError(`src type: "${d}" specified but BOM is for "${u}"`);255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw TypeError(`UTF32 BOM: src type "${e.type}" unrecognized`)}},T=function(e,t){let r=function(e){let t={type:"",base64:!1}
11,r=/^(base64:)?([a-zA-Z0-9]+)$/i.exec(e);return r&&(r[2]&&(t.type=r[2].toUpperCase()),r[1]&&(t.base64=!0)),t}(e.toUpperCase());if(r.base64){if(r.type===E)throw TypeError(`type: "${e} "BASE64:" prefix not allowed with type ${E}`);if(n.isBuffer(t))r.data=s.base64.decode(t);else if("string"==typeof t){let e=n.from(t,"ascii");r.data=s.base64.decode(e)}else throw TypeError(`type: "${e} unrecognized data type: typeof(data): ${typeof t}`)}else r.data=t;switch(r.type){case i:P(r);break;case a:case o:case c:k(r);break;case l:case u:case d:O(r);break;case b:r.type=y;break;case x:r.type=w;break;case h:r.type=f;break;case p:r.type=g;break;case f:case g:case m:case y:case A:case w:case E:case v:break;default:throw TypeError(`type: "${e}" not recognized`)}if(r.type===E){if("string"!=typeof r.data)throw TypeError(`type: "${e}" but data is not a string`)}else if(!n.isBuffer(r.data))throw TypeError(`type: "${e}" but data is not a Buffer`);return r},B=function(e,t){if(!Array.isArray(t))throw TypeError(`dst chars: not array: "${typeof t}`);if("string"!=typeof e)throw TypeError(`dst type: not string: "${typeof e}`);let r=function(e){let t,r,n={crlf:!1,lf:!1,base64:!1,type:""};for(;;){if(r=e,"CRLF:"===(t=e.slice(0,5))){n.crlf=!0,r=e.slice(5);break}"LF:"===(t=e.slice(0,3))&&(n.lf=!0,r=e.slice(3));break}return 1===(t=r.split(":")).length?n.type=t[0]:2===t.length&&"BASE64"===t[1]&&(n.base64=!0,n.type=t[0]),n}(e.toUpperCase());switch(r.type){case i:case o:case c:case u:case d:case f:case g:case m:case y:case A:case w:case v:break;case E:if(r.base64)throw TypeError(`":BASE64" suffix not allowed with type ${E}`);break;case h:r.type=f;break;case p:r.type=g;break;case a:r.type=o;break;case l:r.type=u;break;case b:r.type=y;break;case x:r.type=w;break;default:throw TypeError(`dst type unrecognized: "${e}" : must have form [crlf:|lf:]type[:base64]`)}return r},S=function(e,t){switch(e){case i:return s.utf8.encode(t);case o:return s.utf16be.encode(t);case c:return s.utf16le.encode(t);case u:return s.utf32be.encode(t);case d:return s.utf32le.encode(t);case f:return s.uint7.encode(t);case g:return s.uint8.encode(t);case y:return s.uint16be.encode(t);case m:return s.uint16le.encode(t);case w:return s.uint32be.encode(t);case A:return s.uint32le.encode(t);case E:return s.string.encode(t);case v:return s.escaped.encode(t);default:throw TypeError(`encode type "${e}" not recognized`)}},C=function(e){switch(e.type){case i:return s.utf8.decode(e.data,e.bom);case c:return s.utf16le.decode(e.data,e.bom);case o:return s.utf16be.decode(e.data,e.bom);case u:return s.utf32be.decode(e.data,e.bom);case d:return s.utf32le.decode(e.data,e.bom);case f:return s.uint7.decode(e.data);case g:return s.uint8.decode(e.data);case y:return s.uint16be.decode(e.data);case m:return s.uint16le.decode(e.data);case w:return s.uint32be.decode(e.data);case A:return s.uint32le.decode(e.data);case E:return s.string.decode(e.data);case v:return s.escaped.decode(e.data);default:throw TypeError(`decode type "${e.type}" not recognized`)}};t.decode=function(e,t){return C(T(e,t))},t.encode=function(e,t){let r,n,i=B(e,t);return i.crlf?(r=s.lineEnds.crlf(t),n=S(i.type,r)):i.lf?(r=s.lineEnds.lf(t),n=S(i.type,r)):n=S(i.type,t),i.base64&&(n=s.base64.encode(n)),n},t.convert=function(e,r,n){return t.encode(n,t.decode(e,r))}},46307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;class r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}t.BrowserRandomSource=r},46685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var n=r(91237);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return n.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return n.Contract}});var s=r(49227);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}});var i=r(48275);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return i.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return i.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return i.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return i.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return i.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return i.UndecodedEventLog}})},47071:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.verifyAuthorization=t.hashAuthorization=void 0;var n=r(61262);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return n.hashAuthorization}}),Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return n.verifyAuthorization}});var s=r(51548);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return s.id}});var i=r(18698);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return i.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return i.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return i.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return i.dnsEncode}});var a=r(8864);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return a.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return a.verifyMessage}});var o=r(51828);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return o.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return o.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return o.solidityPackedSha256}});var c=r(84050);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return c.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return c.verifyTypedData}})},47516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0,t.WebSocket=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}().WebSocket},47964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;let n=r(6330),s=r(58524),i=r(60286),a=r(22360),o=(e,t)=>e<<t|e>>>32-t;function c(e,t,r,n,s,i){let a=e[t++]^r[n++],c=e[t++]^r[n++],l=e[t++]^r[n++],u=e[t++]^r[n++],d=e[t++]^r[n++],f=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],g=e[t++]^r[n++],b=e[t++]^r[n++],m=e[t++]^r[n++],y=e[t++]^r[n++],x=e[t++]^r[n++],A=e[t++]^r[n++],w=e[t++]^r[n++],v=e[t++]^r[n++],E=a,P=c,k=l,O=u,T=d,B=f,S=h,C=p,N=g,I=b,R=m,L=y,M=x,U=A,F=w,D=v;for(let e=0;e<8;e+=2)T^=o(E+M|0,7),N^=o(T+E|0,9),M^=o(N+T|0,13),E^=o(M+N|0,18),I^=o(B+P|0,7),U^=o(I+B|0,9),P^=o(U+I|0,13),B^=o(P+U|0,18),F^=o(R+S|0,7),k^=o(F+R|0,9),S^=o(k+F|0,13),R^=o(S+k|0,18),O^=o(D+L|0,7),C^=o(O+D|0,9),L^=o(C+O|0,13),D^=o(L+C|0,18),P^=o(E+O|0,7),k^=o(P+E|0,9),O^=o(k+P|0,13),E^=o(O+k|0,18),S^=o(B+T|0,7),C^=o(S+B|0,9),T^=o(C+S|0,13),B^=o(T+C|0,18),L^=o(R+I|0,7),N^=o(L+R|0,9),I^=o(N+L|0,13),R^=o(I+N|0,18),M^=o(D+F|0,7),U^=o(M+D|0,9),F^=o(U+M|0,13),D^=o(F+U|0,18);s[i++]=a+E|0,s[i++]=c+P|0,s[i++]=l+k|0,s[i++]=u+O|0,s[i++]=d+T|0,s[i++]=f+B|0,s[i++]=h+S|0,s[i++]=p+C|0,s[i++]=g+N|0,s[i++]=b+I|0,s[i++]=m+R|0,s[i++]=y+L|0,s[i++]=x+M|0,s[i++]=A+U|0,s[i++]=w+F|0,s[i++]=v+D|0}function l(e,t,r,n,s){let i=n+0,a=n+16*s;for(let n=0;n<16;n++)r[a+n]=e[t+(2*s-1)*16+n];for(let n=0;n<s;n++,i+=16,t+=16)c(r,a,e,t,r,i),n>0&&(a+=16),c(r,i,e,t+=16,r,a)}function u(e,t,r){let{N:o,r:c,p:l,dkLen:u,asyncTick:d,maxmem:f,onProgress:h}=(0,a.checkOpts)({dkLen:32,asyncTick:10,maxmem:0x40000400},r);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(l),(0,n.number)(u),(0,n.number)(d),(0,n.number)(f),void 0!==h&&"function"!=typeof h)throw Error("progressCb should be function");let p=128*c,g=p/4;if(o<=1||(o&o-1)!=0||o>=2**(p/8)||o>0x100000000)throw Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(l<0||l>(0x100000000-1)*32/p)throw Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>(0x100000000-1)*32)throw Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let b=p*(o+l);if(b>f)throw Error(`Scrypt: parameters too large, ${b} (128 * r * (N + p)) > ${f} (maxmem)`);let m=(0,i.pbkdf2)(s.sha256,e,t,{c:1,dkLen:p*l}),y=(0,a.u32)(m),x=(0,a.u32)(new Uint8Array(p*o)),A=(0,a.u32)(new Uint8Array(p)),w=()=>{};if(h){let e=2*o*l,t=Math.max(Math.floor(e/1e4),1),r=0;w=()=>{r++,h&&(!(r%t)||r===e)&&h(r/e)}}return{N:o,r:c,p:l,dkLen:u,blockSize32:g,V:x,B32:y,B:m,tmp:A,blockMixCb:w,asyncTick:d}}function d(e,t,r,n,a){let o=(0,i.pbkdf2)(s.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),a.fill(0),o}t.scrypt=function(e,t,r){let{N:n,r:s,p:i,dkLen:a,blockSize32:o,V:c,B32:f,B:h,tmp:p,blockMixCb:g}=u(e,t,r);for(let e=0;e<i;
11e++){let t=o*e;for(let e=0;e<o;e++)c[e]=f[t+e];for(let e=0,t=0;e<n-1;e++)l(c,t,c,t+=o,s),g();l(c,(n-1)*o,f,t,s),g();for(let e=0;e<n;e++){let e=f[t+o-16]%n;for(let r=0;r<o;r++)p[r]=f[t+r]^c[e*o+r];l(p,0,f,t,s),g()}}return d(e,a,h,c,p)},t.scryptAsync=async function(e,t,r){let{N:n,r:s,p:i,dkLen:o,blockSize32:c,V:f,B32:h,B:p,tmp:g,blockMixCb:b,asyncTick:m}=u(e,t,r);for(let e=0;e<i;e++){let t=c*e;for(let e=0;e<c;e++)f[e]=h[t+e];let r=0;await (0,a.asyncLoop)(n-1,m,()=>{l(f,r,f,r+=c,s),b()}),l(f,(n-1)*c,h,t,s),b(),await (0,a.asyncLoop)(n,m,()=>{let e=h[t+c-16]%n;for(let r=0;r<c;r++)g[r]=h[t+r]^f[e*c+r];l(g,0,h,t,s),b()})}return d(e,o,p,f,g)}},48275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;let n=r(36866),s=r(43814);class i extends n.Log{interface;fragment;args;constructor(e,t,r){super(e,e.provider);let n=t.decodeEventLog(r,e.data,e.topics);(0,s.defineProperties)(this,{args:n,fragment:r,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=i;class a extends n.Log{error;constructor(e,t){super(e,e.provider),(0,s.defineProperties)(this,{error:t})}}t.UndecodedEventLog=a;class o extends n.TransactionReceipt{#U;constructor(e,t,r){super(r,t),this.#U=e}get logs(){return super.logs.map(e=>{let t=e.topics.length?this.#U.getEvent(e.topics[0]):null;if(t)try{return new i(e,this.#U,t)}catch(t){return new a(e,t)}return e})}}t.ContractTransactionReceipt=o;class c extends n.TransactionResponse{#U;constructor(e,t,r){super(r,t),this.#U=e}async wait(e,t){let r=await super.wait(e,t);return null==r?null:new o(this.#U,this.provider,r)}}t.ContractTransactionResponse=c;class l extends s.EventPayload{log;constructor(e,t,r,n){super(e,t,r),(0,s.defineProperties)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=l;class u extends l{constructor(e,t,r,n,a){super(e,t,r,new i(a,e.interface,n));let o=e.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,s.defineProperties)(this,{args:o,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.ContractEventPayload=u},48496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;let n=r(37979),s=r(78045),i=r(7528),a=r(61647);class o extends i.Coder{coders;constructor(e,t){let r=!1,s=[];e.forEach(e=>{e.dynamic&&(r=!0),s.push(e.type)}),super("tuple","tuple("+s.join(",")+")",t,r),(0,n.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let s=r.localName;s&&1===t[s]&&("length"===s&&(s="_length"),null==e[s]&&(e[s]=e[n]))}),Object.freeze(e)}encode(e,t){let r=s.Typed.dereference(t,"tuple");return(0,a.pack)(e,this.coders,r)}decode(e){return(0,a.unpack)(e,this.coders)}}t.TupleCoder=o},49227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;let n=r(88221),s=r(8651),i=r(43814),a=r(91237);class o{interface;bytecode;runner;constructor(e,t,r){let s=n.Interface.from(e);t instanceof Uint8Array||("object"==typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,i.hexlify)((0,i.getBytes)(t)),(0,i.defineProperties)(this,{bytecode:t,interface:s,runner:r||null})}attach(e){return new a.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(...e){let t={},r=this.interface.deploy;if(r.inputs.length+1===e.length&&(t=await (0,a.copyOverrides)(e.pop())),r.inputs.length!==e.length)throw Error("incorrect number of arguments to constructor");let n=await (0,a.resolveArgs)(this.runner,r.inputs,e);return Object.assign({},t,{data:(0,i.concat)([this.bytecode,this.interface.encodeDeploy(n)])})}async deploy(...e){let t=await this.getDeployTransaction(...e);(0,i.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let r=await this.runner.sendTransaction(t),n=(0,s.getCreateAddress)(r);return new a.BaseContract(n,this.interface,this.runner,r)}connect(e){return new o(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,i.assertArgument)(null!=e,"bad compiler output","output",e),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n="";return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}}t.ContractFactory=o},50011:(e,t,r)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.splitBlobCells=void 0;let n=r(8651),s=r(99866),i=r(85910),a=r(43814),o=r(78499),c=r(86166),l=r(34271),u=BigInt(0),d=BigInt(2),f=BigInt(27),h=BigInt(28),p=BigInt(35),g=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=Symbol.for("nodejs.util.inspect.custom");function m(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return"0x"+(r+=(0,i.sha256)(t).substring(4))}function y(e){return"0x"===e?null:(0,n.getAddress)(e)}function x(e,t){try{return(0,o.accessListify)(e)}catch(r){(0,a.assertArgument)(!1,r.message,t,e)}}function A(e,t){return"0x"===e?0:(0,a.getNumber)(e,t)}function w(e,t){if("0x"===e)return u;let r=(0,a.getBigInt)(e,t);return(0,a.assertArgument)(r<=g,"value exceeds uint size",t,r),r}function v(e,t){let r=(0,a.getBigInt)(e,"value"),n=(0,a.toBeArray)(r);return(0,a.assertArgument)(n.length<=32,"value too large",`tx.${t}`,r),n}function E(e){return(0,o.accessListify)(e).map(e=>[e.address,e.storageKeys])}function P(e,t){let r;try{if(r=A(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){(0,a.assertArgument)(!1,"invalid yParity","yParity",t[0])}let n=(0,a.zeroPadValue)(t[1],32),s=(0,a.zeroPadValue)(t[2],32);e.signature=i.Signature.from({r:n,s,yParity:r})}t.splitBlobCells=function(e,t){null==t&&(t=128);let r=[],n=(0,a.getBytes)(e),s=n.length/t;for(let e=0;e<n.length;e+=s)r.push((0,a.hexlify)(n.subarray(e,e+s)));return r};class k{#F;#D;#n;#_;#j;#H;#G;#z;#$;#g;#V;#K;#J;#Q;#q;#W;#Y;#Z;get type(){return this.#F}set type(e){switch(e){case null:this.#F=null;break;case 0:case"legacy":this.#F=0;break;case 1:case"berlin":case"eip-2930":this.#F=1;break;case 2:case"london":case"eip-1559":this.#F=2;break;case 3:case"cancun":case"eip-4844":this.#F=3;break;case 4:case"pectra":case"eip-7702":this.#F=4;break;default:(0,a.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){let e=this.#D;return null==e&&3===this.type?s.ZeroAddress:e}set to(e){this.#D=null==e?null:(0,n.getAddress)(e)}get nonce(){return this.#_}set nonce(e){this.#_=(0,a.getNumber)(e,"value")}get gasLimit(){return this.#j}set gasLimit(e){this.#j=(0,a.getBigInt)(e)}get gasPrice(){let e=this.#H;return null==e&&(0===this.type||1===this.type)?u:e}set gasPrice(e){this.#H=null==e?null:(0,a.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#G;return null==e?2===this.type||3===this.type?u:null:e}set maxPriorityFeePerGas(e){this.#G=null==e?null:(0,a.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#z;return null==e?2===this.type||3===this.type?u:null:e}set maxFeePerGas(e){this.#z=null==e?null:(0,a.getBigInt)(e,"maxFeePerGas")}get data(){return this.#n}set data(e){this.#n=(0,a.hexlify)(e)}get value(){return this.#$}set value(e){this.#$=(0,a.getBigInt)(e,"value")}get chainId(){return this.#g}set chainId(e){this.#g=(0,a.getBigInt)(e)}get signature(){return this.#V||null}set signature(e){this.#V=null==e?null:i.Signature.from(e)}isValid(){let e=this.signature;if(e&&!e.isValid())return!1;let t=this.authorizationList;if(t){for(let e of t)if(!e.signature.isValid())return!1}return!0}get accessList(){let e=this.#K||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#K=null==e?null:(0,o.accessListify)(e)}get authorizationList(){let e=this.#Y||null;return null==e&&4===this.type?[]:e}set authorizationList(e){this.#Y=null==e?null:e.map(e=>(0,c.authorizationify)(e))}get maxFeePerBlobGas(){let e=this.#J;return null==e&&3===this.type?u:e}set maxFeePerBlobGas(e){this.#J=null==e?null:(0,a.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#Q;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,a.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,a.assertArgument)((0,a.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#Q=e}get blobs(){return null==this.#W?null:this.#W.map(e=>Object.assign({},e))}set blobs(e){if(null==e){this.#W=null;return}let t=[],r=[];for(let n=0;n<e.length;n++){let s=e[n];if((0,a.isBytesLike)(s)){(0,a.assert)(this.#q,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,a.getBytes)(s);if((0,a.assertArgument)(e.length<=131072,"blob is too large",`blobs[${n}]`,s),131072!==e.length){let t=new Uint8Array(131072);t.set(e),e=t}let i=this.#q.blobToKzgCommitment(e),o=(0,a.hexlify)(this.#q.computeBlobKzgProof(e,i));t.push({data:(0,a.hexlify)(e),commitment:(0,a.hexlify)(i),proof:o}),r.push(m(1,i))}else{let e=(0,a.hexlify)(s.data),n=(0,a.hexlify)(s.commitment),i=(0,a.hexlify)(s.proof);t.push({data:e,commitment:n,proof:i}),r.push(m(1,n))}}this.#W=t,this.#Q=r}get kzg(){return this.#q}set kzg(e){if(null==e)this.#q=null;else this.#q={blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,a.getBytes)(e.blobToKzgCommitment((0,a.hexlify)(t)))}else if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,a.getBytes)(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"==typeof e.blobToKZGCommitment)return(0,a.getBytes)(e.blobToKZGCommitment((0,a.hexlify)(t)));(0,a.assertArgument)(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,r)=>"computeBlobProof"in e&&"function"==typeof e.computeBlobProof?(0,a.getBytes)(e.computeBlobProof((0,a.hexlify)(t),(0,a.hexlify)(r))):"computeBlobKzgProof"in e&&"function"==typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,r):"computeBlobKZGProof"in e&&"function"==typeof e.computeBlobKZGProof?(0,a.getBytes)(e.computeBlobKZGProof((0,a.hexlify)(t),(0,a.hexlify)(r))):void(0,a.assertArgument)(!1,"unsupported KZG library","kzg",e)}}get blobWrapperVersion(){return this.#Z}set blobWrapperVersion(e){this.#Z=e}constructor(){this.#F=null,this.#D=null,this.#_=0,this.#j=u,this.#H=null,this.#G=null,this.#z=null,this.#n="0x",this.#$=u,this.#g=u,this.#V=null,this.#K=null,this.#J=null,this.#Q=null,this.#q=null,this.#W=null,this.#Y=null,this.#Z=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.#X(!0,!1))}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,l.recoverAddress)(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}#X(e,t){(0,a.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});let r=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){let r=[v(e.nonce,"nonce"),v(e.gasPrice||0,"gasPrice"),v(e.gasLim
11it,"gasLimit"),e.to||"0x",v(e.value,"value"),e.data],n=u;if(e.chainId!=u)n=(0,a.getBigInt)(e.chainId,"tx.chainId"),(0,a.assertArgument)(!t||null==t.networkV||t.legacyChainId===n,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){let t=e.signature.legacyChainId;null!=t&&(n=t)}if(!t)return n!==u&&(r.push((0,a.toBeArray)(n)),r.push("0x"),r.push("0x")),(0,a.encodeRlp)(r);let s=BigInt(27+t.yParity);return n!==u?s=i.Signature.getChainIdV(n,t.v):BigInt(t.v)!==s&&(0,a.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),r.push((0,a.toBeArray)(s)),r.push((0,a.toBeArray)(t.r)),r.push((0,a.toBeArray)(t._s)),(0,a.encodeRlp)(r)}(this,r);case 1:let n=[v(this.chainId,"chainId"),v(this.nonce,"nonce"),v(this.gasPrice||0,"gasPrice"),v(this.gasLimit,"gasLimit"),this.to||"0x",v(this.value,"value"),this.data,E(this.accessList||[])];return r&&(n.push(v(r.yParity,"recoveryParam")),n.push((0,a.toBeArray)(r.r)),n.push((0,a.toBeArray)(r.s))),(0,a.concat)(["0x01",(0,a.encodeRlp)(n)]);case 2:let o=[v(this.chainId,"chainId"),v(this.nonce,"nonce"),v(this.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),v(this.maxFeePerGas||0,"maxFeePerGas"),v(this.gasLimit,"gasLimit"),this.to||"0x",v(this.value,"value"),this.data,E(this.accessList||[])];return r&&(o.push(v(r.yParity,"yParity")),o.push((0,a.toBeArray)(r.r)),o.push((0,a.toBeArray)(r.s))),(0,a.concat)(["0x02",(0,a.encodeRlp)(o)]);case 3:return function(e,t,r){let n=[v(e.chainId,"chainId"),v(e.nonce,"nonce"),v(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),v(e.maxFeePerGas||0,"maxFeePerGas"),v(e.gasLimit,"gasLimit"),e.to||s.ZeroAddress,v(e.value,"value"),e.data,E(e.accessList||[]),v(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),function(e,t){(0,a.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)(0,a.assertArgument)((0,a.isHexString)(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(n.push(v(t.yParity,"yParity")),n.push((0,a.toBeArray)(t.r)),n.push((0,a.toBeArray)(t.s)),r)){if(null!=e.blobWrapperVersion){let t=(0,a.toBeArray)(e.blobWrapperVersion),s=[];for(let{proof:e}of r){let t=(0,a.getBytes)(e),r=t.length/128;for(let e=0;e<t.length;e+=r)s.push(t.subarray(e,e+r))}return(0,a.concat)(["0x03",(0,a.encodeRlp)([n,t,r.map(e=>e.data),r.map(e=>e.commitment),s])])}return(0,a.concat)(["0x03",(0,a.encodeRlp)([n,r.map(e=>e.data),r.map(e=>e.commitment),r.map(e=>e.proof)])])}return(0,a.concat)(["0x03",(0,a.encodeRlp)(n)])}(this,r,t?this.blobs:null);case 4:let c=[v(this.chainId,"chainId"),v(this.nonce,"nonce"),v(this.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),v(this.maxFeePerGas||0,"maxFeePerGas"),v(this.gasLimit,"gasLimit"),this.to||"0x",v(this.value,"value"),this.data,E(this.accessList||[]),(this.authorizationList||[]).map(e=>[v(e.chainId,"chainId"),e.address,v(e.nonce,"nonce"),v(e.signature.yParity,"yParity"),(0,a.toBeArray)(e.signature.r),(0,a.toBeArray)(e.signature._s)])];return r&&(c.push(v(r.yParity,"yParity")),c.push((0,a.toBeArray)(r.r)),c.push((0,a.toBeArray)(r.s))),(0,a.concat)(["0x04",(0,a.encodeRlp)(c)])}(0,a.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#X(!0,!0)}get unsignedSerialized(){return this.#X(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#J||this.#Q;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,a.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,a.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,a.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let s=[];return null!=this.type?s.push(this.type):this.authorizationList&&this.authorizationList.length?s.push(4):t?s.push(2):e?(s.push(1),r||s.push(0)):r?(s.push(1),s.push(2)):(n&&this.to||(s.push(0),s.push(1),s.push(2)),s.push(3)),s.sort(),s}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return k.from(this)}toJSON(){let e=e=>null==e?null:e.toString();
11return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[b](){return this.toString()}toString(){let e=[],t=t=>{let r=this[t];"string"==typeof r&&(r=JSON.stringify(r)),e.push(`${t}: ${r}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));let r=this.authorizationList;if(r){let t=[];for(let e of r){let r=[];r.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&r.push(`nonce: ${e.nonce}`),null!=e.chainId&&r.push(`chainId: ${e.chainId}`),e.signature&&r.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${r.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(null==e)return new k;if("string"==typeof e){let t=(0,a.getBytes)(e);if(t[0]>=127)return k.from(function(e){let t=(0,a.decodeRlp)(e);(0,a.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:A(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:y(t[3]),value:w(t[4],"value"),data:(0,a.hexlify)(t[5]),chainId:u};if(6===t.length)return r;let n=w(t[6],"v"),s=w(t[7],"r"),o=w(t[8],"s");if(s===u&&o===u)r.chainId=n;else{let e=(n-p)/d;e<u&&(e=u),r.chainId=e,(0,a.assertArgument)(e!==u||n===f||n===h,"non-canonical legacy v","v",t[6]),r.signature=i.Signature.from({r:(0,a.zeroPadValue)(t[7],32),s:(0,a.zeroPadValue)(t[8],32),v:n})}return r}(t));switch(t[0]){case 1:return k.from(function(e){let t=(0,a.decodeRlp)((0,a.getBytes)(e).slice(1));(0,a.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,a.hexlify)(e));let r={type:1,chainId:w(t[0],"chainId"),nonce:A(t[1],"nonce"),gasPrice:w(t[2],"gasPrice"),gasLimit:w(t[3],"gasLimit"),to:y(t[4]),value:w(t[5],"value"),data:(0,a.hexlify)(t[6]),accessList:x(t[7],"accessList")};return 8===t.length||P(r,t.slice(8)),r}(t));case 2:return k.from(function(e){let t=(0,a.decodeRlp)((0,a.getBytes)(e).slice(1));(0,a.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,a.hexlify)(e));let r={type:2,chainId:w(t[0],"chainId"),nonce:A(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:y(t[5]),value:w(t[6],"value"),data:(0,a.hexlify)(t[7]),accessList:x(t[8],"accessList")};return 9===t.length||P(r,t.slice(9)),r}(t));case 3:return k.from(function(e){let t=(0,a.decodeRlp)((0,a.getBytes)(e).slice(1)),r="3",n=null,
11s=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";let e=t[1],n=t[2],i=t[3];(0,a.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,a.assertArgument)(Array.isArray(n),"invalid network format: commitments not an array","fields[2]",n),(0,a.assertArgument)(Array.isArray(i),"invalid network format: proofs not an array","fields[3]",i),(0,a.assertArgument)(e.length===n.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,a.assertArgument)(e.length===i.length,"invalid network format: blobs/proofs length mismatch","fields",t),s=[];for(let r=0;r<t[1].length;r++)s.push({data:e[r],commitment:n[r],proof:i[r]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){r="3 (EIP-7594 network format)",n=(0,a.getNumber)(t[1]);let e=t[2],i=t[3],o=t[4];(0,a.assertArgument)(1===n,`unsupported EIP-7594 network format version: ${n}`,"fields[1]",n),(0,a.assertArgument)(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),(0,a.assertArgument)(Array.isArray(i),"invalid EIP-7594 network format: commitments not an array","fields[3]",i),(0,a.assertArgument)(Array.isArray(o),"invalid EIP-7594 network format: proofs not an array","fields[4]",o),(0,a.assertArgument)(e.length===i.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,a.assertArgument)(128*e.length===o.length,"invalid network format: blobs/proofs length mismatch","fields",t),s=[];for(let t=0;t<e.length;t++){let r=[];for(let e=0;e<128;e++)r.push(o[128*t+e]);s.push({data:e[t],commitment:i[t],proof:(0,a.concat)(r)})}t=t[0]}(0,a.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",(0,a.hexlify)(e));let i={type:3,chainId:w(t[0],"chainId"),nonce:A(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:y(t[5]),value:w(t[6],"value"),data:(0,a.hexlify)(t[7]),accessList:x(t[8],"accessList"),maxFeePerBlobGas:w(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:n};s&&(i.blobs=s),(0,a.assertArgument)(null!=i.to,`invalid address for transaction type: ${r}`,"data",e),(0,a.assertArgument)(Array.isArray(i.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<i.blobVersionedHashes.length;t++)(0,a.assertArgument)((0,a.isHexString)(i.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||P(i,t.slice(11)),i}(t));case 4:return k.from(function(e){let t=(0,a.decodeRlp)((0,a.getBytes)(e).slice(1));(0,a.assertArgument)(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",(0,a.hexlify)(e));let r={type:4,chainId:w(t[0],"chainId"),nonce:A(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:y(t[5]),value:w(t[6],"value"),data:(0,a.hexlify)(t[7]),accessList:x(t[8],"accessList"),authorizationList:function(e,t){try{if(!Array.isArray(e))throw Error("authorizationList: invalid array");let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(!Array.isArray(n))throw Error(`authorization[${r}
11]: invalid array`);if(6!==n.length)throw Error(`authorization[${r}]: wrong length`);if(!n[1])throw Error(`authorization[${r}]: null address`);t.push({address:y(n[1]),nonce:w(n[2],"nonce"),chainId:w(n[0],"chainId"),signature:i.Signature.from({yParity:A(n[3],"yParity"),r:(0,a.zeroPadValue)(n[4],32),s:(0,a.zeroPadValue)(n[5],32)})})}return t}catch(r){(0,a.assertArgument)(!1,r.message,t,e)}}(t[9],"authorizationList")};return 10===t.length||P(r,t.slice(10)),r}(t))}(0,a.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}let t=new k;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=i.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobWrapperVersion&&(t.blobWrapperVersion=e.blobWrapperVersion),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,a.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,a.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,a.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,a.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}t.Transaction=k},50811:(e,t,r)=>{let{Buffer:n}=r(81029),s=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"],i=[];"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(e=>{i.push(e.charCodeAt(0))}),t.utf8={encode(e){let t=[];return e.forEach(e=>{if(e>=0&&e<=127)t.push(e);else if(e<=2047)t.push(192+(e>>6&31)),t.push(128+(63&e));else if(e<55296||e>57343&&e<=65535)t.push(224+(e>>12&15)),t.push(128+(e>>6&63)),t.push(128+(63&e));else if(e>=65536&&e<=1114111){let r=e>>16&31;t.push(240+(r>>2)),t.push(128+((3&r)<<4)+(e>>12&15)),t.push(128+(e>>6&63)),t.push(128+(63&e))}else throw RangeError(`utf8.encode: character out of range: char: ${e}`)}),n.from(t)},decode(e,t){let r,n,s,i,a,o,c=e.length,l=3*!!t,u=[];for(;l<c;){for(n=e[l],r=0xffffffff;;){if(n>=0&&n<=127){r=n,o=1;break}if((s=l+1)<c&&n>=194&&n<=223){r=function(e,t){if((192&t)!=128)return 0xfffffffd;let r=((31&e)<<6)+(63&t);return r<128?0xfffffffc:r}(n,e[s]),o=2;break}if((i=l+2)<c&&n>=224&&n<=239){r=function(e,t,r){if((192&r)!=128||(192&t)!=128)return 0xfffffffd;let n=((15&e)<<12)+((63&t)<<6)+(63&r);return n<2048?0xfffffffc:n>=55296&&n<=57343?0xfffffffe:n}(n,e[s],e[i]),o=3;break}(a=l+3)<c&&n>=240&&n<=244&&(r=function(e,t,r,n){if((192&n)!=128||(192&r)!=128||(192&t)!=128)return 0xfffffffd;let s=(((7&e)<<2)+(t>>4&3)<<16)+((15&t)<<12)+((63&r)<<6)+(63&n);return s<65536?0xfffffffc:s>1114111?0xfffffffe:s}(n,e[s],e[i],e[a]),o=4);break}if(r>1114111){let e=`byte[${l}]`;if(0xffffffff===r)throw RangeError(`utf8.decode: ill-formed UTF8 byte sequence found at: ${e}`);if(0xfffffffd===r)throw RangeError(`utf8.decode: illegal trailing byte found at: ${e}`);if(0xfffffffe===r)throw RangeError(`utf8.decode: code point out of range found at: ${e}`);if(0xfffffffc===r)throw RangeError(`utf8.decode: non-shortest form found at: ${e}`);throw RangeError(`utf8.decode: unrecognized error found at: ${e}`)}u.push(r),l+=o}return u}},t.utf16be={encode(e){let t,r,s,i=[];for(let n=0;n<e.length;n+=1)if((t=e[n])>=0&&t<=55295||t>=57344&&t<=65535)i.push(t>>8&255),i.push(255&t);else if(t>=65536&&t<=1114111)r=55296+((s=t-65536)>>10),s=56320+(1023&s),i.push(r>>8&255),i.push(255&r),i.push(s>>8&255),i.push(255&s);else throw RangeError(`utf16be.encode: UTF16BE value out of range: char[${n}]: ${t}`);return n.from(i)},decode(e,t){let r,n,s,i,a,o;if(e.length%2>0)throw RangeError(`utf16be.decode: data length must be even multiple of 2: length: ${e.length}`);let c=[],l=e.length,u=2*!!t,d=0;for(;u<l;){for(;;){if((s=u+1)<l){if((a=(e[u]<<8)+e[s])<55296||a>57343){r=a,n=2;break}
11if((i=u+3)<l&&(o=(e[u+2]<<8)+e[i],a<=56319&&o>=56320&&o<=57343)){r=65536+(a-55296<<10)+(o-56320),n=4;break}}throw RangeError(`utf16be.decode: ill-formed UTF16BE byte sequence found: byte[${u}]`)}c[d++]=r,u+=n}return c}},t.utf16le={encode(e){let t,r,s,i=[];for(let n=0;n<e.length;n+=1)if((t=e[n])>=0&&t<=55295||t>=57344&&t<=65535)i.push(255&t),i.push(t>>8&255);else if(t>=65536&&t<=1114111)r=55296+((s=t-65536)>>10),s=56320+(1023&s),i.push(255&r),i.push(r>>8&255),i.push(255&s),i.push(s>>8&255);else throw RangeError(`utf16le.encode: UTF16LE value out of range: char[${n}]: ${t}`);return n.from(i)},decode(e,t){let r,n,s,i,a,o;if(e.length%2>0)throw RangeError(`utf16le.decode: data length must be even multiple of 2: length: ${e.length}`);let c=[],l=e.length,u=2*!!t,d=0;for(;u<l;){for(;;){if((s=u+1)<l){if((a=(e[s]<<8)+e[u])<55296||a>57343){r=a,n=2;break}if((i=u+3)<l&&(o=(e[i]<<8)+e[u+2],a<=56319&&o>=56320&&o<=57343)){r=65536+(a-55296<<10)+(o-56320),n=4;break}}throw RangeError(`utf16le.decode: ill-formed UTF16LE byte sequence found: byte[${u}]`)}c[d++]=r,u+=n}return c}},t.utf32be={encode(e){let t=n.alloc(4*e.length),r=0;return e.forEach(e=>{if(e>=55296&&e<=57343||e>1114111)throw RangeError(`utf32be.encode: UTF32BE character code out of range: char[${r/4}]: ${e}`);t[r++]=e>>24&255,t[r++]=e>>16&255,t[r++]=e>>8&255,t[r++]=255&e}),t},decode(e,t){if(e.length%4>0)throw RangeError(`utf32be.decode: UTF32BE byte length must be even multiple of 4: length: ${e.length}`);let r=[],n=4*!!t;for(;n<e.length;n+=4){let t=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];if(t>=55296&&t<=57343||t>1114111)throw RangeError(`utf32be.decode: UTF32BE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},t.utf32le={encode(e){let t=n.alloc(4*e.length),r=0;return e.forEach(e=>{if(e>=55296&&e<=57343||e>1114111)throw RangeError(`utf32le.encode: UTF32LE character code out of range: char[${r/4}]: ${e}`);t[r++]=255&e,t[r++]=e>>8&255,t[r++]=e>>16&255,t[r++]=e>>24&255}),t},decode(e,t){if(e.length%4>0)throw RangeError(`utf32be.decode: UTF32LE byte length must be even multiple of 4: length: ${e.length}`);let r=[],n=4*!!t;for(;n<e.length;n+=4){let t=(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n];if(t>=55296&&t<=57343||t>1114111)throw RangeError(`utf32le.encode: UTF32LE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},t.uint7={encode(e){let t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>127)throw RangeError(`uint7.encode: UINT7 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){let t=[];for(let r=0;r<e.length;r+=1){if(e[r]>127)throw RangeError(`uint7.decode: UINT7 character code out of range: byte[${r}]: ${e[r]}`);t[r]=e[r]}return t}},t.uint8={encode(e){let t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>255)throw RangeError(`uint8.encode: UINT8 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){let t=[];for(let r=0;r<e.length;r+=1)t[r]=e[r];return t}},t.uint16be={encode(e){let t=n.alloc(2*e.length),r=0;return e.forEach(e=>{if(e>65535)throw RangeError(`uint16be.encode: UINT16BE character code out of range: char[${r/2}]: ${e}`);t[r++]=e>>8&255,t[r++]=255&e}),t},decode(e){if(e.length%2>0)throw RangeError(`uint16be.decode: UINT16BE byte length must be even multiple of 2: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=2)t.push((e[r]<<8)+e[r+1]);return t}},t.uint16le={encode(e){let t=n.alloc(2*e.length),r=0;return e.forEach(e=>{if(e>65535)throw RangeError(`uint16le.encode: UINT16LE character code out of range: char[${r/2}]: ${e}`);t[r++]=255&e,t[r++]=e>>8&255}),t},decode(e){if(e.length%2>0)throw RangeError(`uint16le.decode: UINT16LE byte length must be even multiple of 2: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=2)t.push((e[r+1]<<8)+e[r]);return t}},t.uint32be={encode(e){let t=n.alloc(4*e.length),r=0;return e.forEach(e=>{t[r++]=e>>24&255,t[r++]=e>>16&255,t[r++]=e>>8&255,t[r++]=255&e}),t},decode(e){if(e.length%4>0)throw RangeError(`uint32be.decode: UINT32BE byte length must be even multiple of 4: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=4)t.push((e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3]);return t}},t.uint32le={encode(e){let t=n.alloc(4*e.length),r=0;
11return e.forEach(e=>{t[r++]=255&e,t[r++]=e>>8&255,t[r++]=e>>16&255,t[r++]=e>>24&255}),t},decode(e){if(e.length%4>0)throw RangeError(`uint32le.decode: UINT32LE byte length must be even multiple of 4: length: ${e.length}`);let t=[];for(let r=0;r<e.length;r+=4)t.push((e[r+3]<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]);return t}},t.string={encode:e=>t.utf16le.encode(e).toString("utf16le"),decode:e=>t.utf16le.decode(n.from(e,"utf16le"),0)},t.escaped={encode(e){let t=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(96===i)t.push(i),t.push(i);else if(10===i)t.push(i);else if(i>=32&&i<=126)t.push(i);else{let e="";if(i>=0&&i<=31)e+=`\`x${s[i]}`;else if(i>=127&&i<=255)e+=`\`x${s[i]}`;else if(i>=256&&i<=65535)e+=`\`u${s[i>>8&255]}${s[255&i]}`;else if(i>=65536&&i<=0xffffffff){e+="`u{";let t=i>>24&255;t>0&&(e+=s[t]),e+=`${s[i>>16&255]+s[i>>8&255]+s[255&i]}}`}else throw Error("escape.encode(char): char > 0xffffffff not allowed");n.from(e).forEach(e=>{t.push(e)})}}return n.from(t)},decode(e){let t,r,n;function s(e){return!!(e>=48)&&!!(e<=57)||!!(e>=65)&&!!(e<=70)||!!(e>=97)&&!!(e<=102)}let i=[],a=e.length,o=0;for(;o<a;){for(;;){if(n=!0,96!==e[o]){i.push(e[o]),o+=1,n=!1;break}if((t=o+1)>=a)break;if(96===e[t]){i.push(96),o+=2,n=!1;break}if(120===e[t]){if((r=function(e,t,r){let n={char:null,nexti:e+2,error:!0};return e+1<t&&s(r[e])&&s(r[e+1])&&(n.char=parseInt(String.fromCodePoint(r[e],r[e+1]),16),Number.isNaN(n.char)||(n.error=!1)),n}(t+1,a,e)).error)break;
11i.push(r.char),o=r.nexti,n=!1;break}if(117===e[t]){if(123===e[t+1]){if((r=function(e,t,r){let n={char:null,nexti:e+4,error:!0},i="";for(;e<t&&s(r[e]);)i+=String.fromCodePoint(r[e]),e+=1;return n.char=parseInt(i,16),125!==r[e]||Number.isNaN(n.char)||(n.error=!1),n.nexti=e+1,n}(t+2,a,e)).error)break;i.push(r.char),o=r.nexti,n=!1;break}if((r=function(e,t,r){let n={char:null,nexti:e+4,error:!0};return e+3<t&&s(r[e])&&s(r[e+1])&&s(r[e+2])&&s(r[e+3])&&(n.char=parseInt(String.fromCodePoint(r[e],r[e+1],r[e+2],r[e+3]),16),Number.isNaN(n.char)||(n.error=!1)),n}(t+1,a,e)).error)break;i.push(r.char),o=r.nexti,n=!1}break}if(n)throw Error(`escaped.decode: ill-formed escape sequence at buf[${o}]`)}return i}},t.lineEnds={crlf(e){let t=[],r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&10===e[r+1]?r+=2:r+=1,t.push(13),t.push(10);break;case 10:t.push(13),t.push(10),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&10!==t[t.length-1]&&(t.push(13),t.push(10)),t},lf(e){let t=[],r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&10===e[r+1]?r+=2:r+=1,t.push(10);break;case 10:t.push(10),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&10!==t[t.length-1]&&t.push(10),t}},t.base64={encode(e){let t,r,s;if(0===e.length)return n.alloc(0);let a=e.length%3;a=a>0?3-a:0;let o=(e.length+a)/3,c=n.alloc(4*o);a>0&&(o-=1),t=0,r=0;for(let n=0;n<o;n+=1)s=(e[t++]<<16)+(e[t++]<<8)+e[t++],c[r++]=i[s>>18&63],c[r++]=i[s>>12&63],c[r++]=i[s>>6&63],c[r++]=i[63&s];return 0===a?c:1===a?(s=(e[t++]<<16)+(e[t]<<8),c[r++]=i[s>>18&63],c[r++]=i[s>>12&63],c[r++]=i[s>>6&63],c[r]=i[64],c):2===a?(s=e[t]<<16,c[r++]=i[s>>18&63],c[r++]=i[s>>12&63],c[r++]=i[64],c[r]=i[64],c):void 0},decode(e){let t,r,s;if(0===e.length)return n.alloc(0);let i=function(e){let t=[],r=0;for(let n=0;n<e.length;n+=1){let s=e[n];for(;32!==s&&9!==s&&10!==s&&13!==s;){if(s>=65&&s<=90){t.push(s-65);break}if(s>=97&&s<=122){t.push(s-71);break}if(s>=48&&s<=57){t.push(s+4);break}if(43===s){t.push(62);break}if(47===s){t.push(63);break}if(61===s){t.push(64),r+=1;break}throw RangeError(`base64.decode: invalid character buf[${n}]: ${s}`)}}if(t.length%4>0)throw RangeError(`base64.decode: string length not integral multiple of 4: ${t.length}`);switch(r){case 0:break;case 1:if(64!==t[t.length-1])throw RangeError("base64.decode: one tail character found: not last character");break;case 2:if(64!==t[t.length-1]||64!==t[t.length-2])throw RangeError("base64.decode: two tail characters found: not last characters");break;default:throw RangeError(`base64.decode: more than two tail characters found: ${r}`)}return{tail:r,buf:n.from(t)}}(e),{tail:a}=i,o=i.buf,c=o.length/4,l=n.alloc(3*c-a);a>0&&(c-=1),r=0,t=0;for(let e=0;e<c;e+=1)s=(o[t++]<<18)+(o[t++]<<12)+(o[t++]<<6)+o[t++],l[r++]=s>>16&255,l[r++]=s>>8&255,l[r++]=255&s;return 1===a&&(s=(o[t++]<<18)+(o[t++]<<12)+(o[t]<<6),l[r++]=s>>16&255,l[r]=s>>8&255),2===a&&(s=(o[t++]<<18)+(o[t++]<<12),l[r]=s>>16&255),l},toString(e){if(e.length%4>0)throw RangeError(`base64.toString: input buffer length not multiple of 4: ${e.length}`);let t="",r=0;for(let s=0;s<e.length;s+=4){for(let t=s;t<s+4;t+=1){var n;if(!((n=e[t])>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||43===n||47===n||61===n))throw RangeError(`base64.toString: buf[${t}]: ${e[t]} : not valid base64 character code`)}!function(e,n,s,i){switch(r){case 76:t+=`\r 12${e}${n}${s}${i}`,r=4;break;case 75:t+=`${e}\r 13${n}${s}${i}`,r=3;break;case 74:t+=`${e+n}\r 14${s}${i}`,r=2;break;case 73:t+=`${e+n+s}\r 15${i}`,r=1;break;default:t+=e+n+s+i,r+=4}}(String.fromCharCode(e[s]),String.fromCharCode(e[s+1]),String.fromCharCode(e[s+2]),String.fromCharCode(e[s+3]))}return t}}},51113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let n=r(89962);class s{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(99432);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}t.NodeRandomSource=s},51548:(e,t,r)=>{"use strict";
15Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;let n=r(85910),s=r(43814);t.id=function(e){return(0,n.keccak256)((0,s.toUtf8Bytes)(e))}},51728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;let n=r(51930);t.decodeBase64=function(e){let t=new Uint8Array((e=atob(e)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,n.getBytes)(t)},t.encodeBase64=function(e){let t=(0,n.getBytes)(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}},51828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;let n=r(8651),s=r(85910),i=r(43814),a=RegExp("^bytes([0-9]+)$"),o=RegExp("^(u?int)([0-9]*)$"),c=RegExp("^(.*)\\[([0-9]*)\\]$");function l(e,t){(0,i.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,s){r.push(function e(t,r,s){switch(t){case"address":if(s)return(0,i.getBytes)((0,i.zeroPadValue)(r,32));return(0,i.getBytes)((0,n.getAddress)(r));case"string":return(0,i.toUtf8Bytes)(r);case"bytes":return(0,i.getBytes)(r);case"bool":if(r=r?"0x01":"0x00",s)return(0,i.getBytes)((0,i.zeroPadValue)(r,32));return(0,i.getBytes)(r)}let l=t.match(o);if(l){let e="int"===l[1],n=parseInt(l[2]||"256");return(0,i.assertArgument)((!l[2]||l[2]===String(n))&&n%8==0&&0!==n&&n<=256,"invalid number type","type",t),s&&(n=256),e&&(r=(0,i.toTwos)(r,n)),(0,i.getBytes)((0,i.zeroPadValue)((0,i.toBeArray)(r),n/8))}if(l=t.match(a)){let e=parseInt(l[1]);return((0,i.assertArgument)(String(e)===l[1]&&0!==e&&e<=32,"invalid bytes type","type",t),(0,i.assertArgument)((0,i.dataLength)(r)===e,`invalid value for ${t}`,"value",r),s)?(0,i.getBytes)((0,i.zeroPadBytes)(r,32)):r}if((l=t.match(c))&&Array.isArray(r)){let n=l[1],s=parseInt(l[2]||String(r.length));(0,i.assertArgument)(s===r.length,`invalid array length for ${t}`,"value",r);let a=[];return r.forEach(function(t){a.push(e(n,t,!0))}),(0,i.getBytes)((0,i.concat)(a))}(0,i.assertArgument)(!1,"invalid type","type",t)}(e,t[s]))}),(0,i.hexlify)((0,i.concat)(r))}t.solidityPacked=l,t.solidityPackedKeccak256=function(e,t){return(0,s.keccak256)(l(e,t))},t.solidityPackedSha256=function(e,t){return(0,s.sha256)(l(e,t))}},51930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;let n=r(25265);function s(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.length%2==0&&e.match(/^0x[0-9a-f]*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n<t.length;n++)t[n]=parseInt(e.substring(r,r+2),16),r+=2;return t}(0,n.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function i(e,t){return s(e,t,!1)}function a(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0)}t.getBytes=i,t.getBytesCopy=function(e,t){return s(e,t,!0)},t.isHexString=a,t.isBytesLike=function(e){return a(e,!0)||e instanceof Uint8Array};let o="0123456789abcdef";function c(e){let t=i(e),r="0x";for(let e=0;e<t.length;e++){let n=t[e];r+=o[(240&n)>>4]+o[15&n]}return r}function l(e,t,r){let s=i(e);(0,n.assert)(t>=s.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(s),length:t,offset:t+1});let a=new Uint8Array(t);return a.fill(0),r?a.set(s,t-s.length):a.set(s,0),c(a)}t.hexlify=c,t.concat=function(e){return"0x"+e.map(e=>c(e).substring(2)).join("")},t.dataLength=function(e){return a(e,!0)?(e.length-2)/2:i(e).length},t.dataSlice=function(e,t,r){let s=i(e);return null!=r&&r>s.length&&(0,n.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:s,length:s.length,offset:r}),c(s.slice(null==t?0:t,null==r?s.length:r))},t.stripZerosLeft=function(e){let t=c(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return l(e,t,!0)},t.zeroPadBytes=function(e,t){return l(e,t,!1)}},52019:(e,t,r)=>{"use strict";
15Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;let n=r(43814),s=r(1992),i=r(16887),a=r(96854),o="62e1ad51b37b8e00394bda3b";class c extends a.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,r){null==e&&(e="mainnet");let s=i.Network.from(e);null==t&&(t=o),null==r&&(r=null),super(c.getRequest(s,t,r),s,{staticNetwork:s}),(0,n.defineProperties)(this,{applicationId:t,applicationSecret:r})}_getProvider(e){try{return new c(e,this.applicationId,this.applicationSecret)}catch(e){}return super._getProvider(e)}static getRequest(e,t,r){null==t&&(t=o);let i=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return i.allowGzip=!0,r&&i.setCredentials("",r),t===o&&(i.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===o}}t.PocketProvider=c},53150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;let n=r(62565),s=r(43814),i=!1,a=function(e){return(0,n.ripemd160)(e)},o=a;function c(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(o(t))}t.ripemd160=c,c._=a,c.lock=function(){i=!0},c.register=function(e){if(i)throw TypeError("ripemd160 is locked");o=e},Object.freeze(c)},53311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=s,t.anumber=i,t.abytes=a,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){a(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=o,t.byteSwap32=c,t.bytesToHex=function(e){if(a(e),l)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,s=0;t<r;t++,s+=2){let r=f(e.charCodeAt(s)),i=f(e.charCodeAt(s+1));if(void 0===r||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[s]+e[s+1])+'" at index '+s);n[t]=16*r+i}return n},t.asyncLoop=h,t.utf8ToBytes=p,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=g,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=p(e)),a(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];a(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let s=e[t];r.set(s,n),n+=s.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=m,t.createOptHasher=y,t.createXOFer=x,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")};let n=r(8363);function s(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function a(e,...t){if(!s(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=o(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>o(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;let l="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),d={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}async function h(e,r,n){let s=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-s;e>=0&&e<r||(await (0,t.nextTick)(),s+=e)}}function p(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function g(e){return"string"==typeof e&&(e=p(e)),a(e),e}t.nextTick=async()=>{};class b{}function m(e){let t=t=>e().update(g(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e){let t=(t,r)=>e(r).update(g(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function x(e){let t=(t,r)=>e(r).update(g(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.Hash=b,t.wrapConstructor=m,t.wrapConstructorWithOpts=y,t.wrapXOFConstructorWithOpts=x},53566:(e,t)=>{"use strict";
15Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},54989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;let n=r(88221),s=r(46685),i=r(21287),a=r(43814),o=r(93061),c=r(16887),l=r(67598),u=r(1992),d="1 11155111 17000 560048 2741 11124 33111 33139 42170 42161 421614 43114 43113 8453 84532 80069 80094 199 1029 81457 168587773 56 97 42220 11142220 252 2523 100 999 737373 747474 59144 59141 5000 5003 43521 143 10143 1287 1284 1285 10 11155420 204 5611 80002 137 534352 534351 1329 1328 146 14601 988 2201 1923 1924 167013 167000 130 1301 480 4801 51 50 324 300".split(/ /g),f="org.ethers.plugins.provider.Etherscan";class h extends l.NetworkPlugin{baseUrl;constructor(e){super(f),(0,a.defineProperties)(this,{baseUrl:e})}clone(){return new h(this.baseUrl)}}t.EtherscanPlugin=h;let p=["enableCcipRead"],g=1;class b extends o.AbstractProvider{network;apiKey;#ee;constructor(e,t){super();let r=c.Network.from(e);(0,a.assertArgument)(d.indexOf(`${r.chainId}`)>=0,"unsupported network","network",r),this.#ee=r.getPlugin(f),(0,a.defineProperties)(this,{apiKey:null!=t?t:null,network:r})}getBaseUrl(){if(this.#ee)return this.#ee.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,a.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let n=t[r];return null!=n&&(e+=`&${r}=${n}`),e},"");return this.apiKey&&(r+=`&apikey=${this.apiKey}`),`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}&module=${e}${r}`}getPostUrl(){return`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t.chainid=this.network.chainId,t}async detectNetwork(){return this.network}async fetch(e,t,r){let n=g++,s=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:n,url:s,payload:i});let o=new a.FetchRequest(s);o.setThrottleParams({slotInterval:1e3}),o.retryFunc=(e,t,r)=>(this.isCommunityResource()&&(0,u.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),o.processFunc=async(t,r)=>{let s=r.hasBody()?JSON.parse((0,a.toUtf8String)(r.body)):{},i=("string"==typeof s.result?s.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?s&&0==s.status&&"NOTOK"==s.message&&i&&(this.emit("debug",{action:"receiveError",id:n,reason:"proxy-NOTOK",error:s}),r.throwThrottleError(s.result,2e3)):i&&(this.emit("debug",{action:"receiveError",id:n,reason:"null result",error:s.result}),r.throwThrottleError(s.result,2e3)),r},i&&(o.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),o.body=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));let c=await o.send();try{c.assertOk()}catch(e){this.emit("debug",{action:"receiveError",id:n,error:e,reason:"assertOk"}),(0,a.assert)(!1,"response error","SERVER_ERROR",{request:o,response:c})}c.hasBody()||(this.emit("debug",{action:"receiveError",id:n,error:"missing body",reason:"null body"}),(0,a.assert)(!1,"missing response","SERVER_ERROR",{request:o,response:c}));let l=JSON.parse((0,a.toUtf8String)(c.body));return"proxy"===e?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:n,result:l,reason:"invalid JSON-RPC"}
15),(0,a.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:o,response:c,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:n,result:l,reason:"JSON-RPC error"}),(0,a.assert)(!1,"error response","SERVER_ERROR",{request:o,response:c,info:{result:l}}))):0==l.status&&("No records found"===l.message||"No transactions found"===l.message)||1==l.status&&("string"!=typeof l.message||l.message.match(/^OK/))||(this.emit("debug",{action:"receiveError",id:n,result:l}),(0,a.assert)(!1,"error response","SERVER_ERROR",{request:o,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result}_getTransactionPostData(e){let t={};for(let r in e){if(p.indexOf(r)>=0||null==e[r])continue;let n=e[r];if(("type"!==r||0!==n)&&("blockTag"!==r||"latest"!==n)){if(({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[r])n=(0,a.toQuantity)(n);else if("accessList"===r)n="["+(0,i.accessListify)(n).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]";else if("blobVersionedHashes"===r){if(0===n.length)continue;(0,a.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else n=(0,a.hexlify)(n);t[r]=n}}return t}_checkError(e,t,r){let s="";if((0,a.isError)(t,"SERVER_ERROR")){try{s=t.info.result.error.message}catch(e){}if(!s)try{s=t.info.message}catch(e){}}if("estimateGas"===e.method&&!s.match(/revert/i)&&s.match(/insufficient funds/i)&&(0,a.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&s.match(/execution reverted/i)){let r="";try{r=t.info.result.error.data}catch(e){}let s=n.AbiCoder.getBuiltinCallException(e.method,e.transaction,r);throw s.info={request:e,error:t},s}if(s&&"broadcastTransaction"===e.method){let t=i.Transaction.from(e.signedTransaction);s.match(/replacement/i)&&s.match(/underpriced/i)&&(0,a.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),s.match(/insufficient funds/)&&(0,a.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),s.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,a.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(t=>this._checkError(e,t,e.signedTransaction));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,a.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_call";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{let t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){var t;let r=this._getAddress(e);(t=r)&&"function"==typeof t.then&&(r=await r);try{let e=await this.fetch("contract",{action:"getabi",address:r}),t=JSON.parse(e);return new s.Contract(r,t,this)}catch(e){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=b},55266:(e,t,r)=>{"use strict";
15Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;let n=r(43814),s=r(16887),i=r(96854);class a extends i.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");let t=s.Network.from(e);(0,n.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=a},55334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;let n=r(11558),s=r(43814),i=function(e){return(0,n.createHash)("sha256").update(e).digest()},a=function(e){return(0,n.createHash)("sha512").update(e).digest()},o=i,c=a,l=!1,u=!1;function d(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(o(t))}function f(e){let t=(0,s.getBytes)(e,"data");return(0,s.hexlify)(c(t))}t.sha256=d,d._=i,d.lock=function(){l=!0},d.register=function(e){if(l)throw Error("sha256 is locked");o=e},Object.freeze(d),t.sha512=f,f._=a,f.lock=function(){u=!0},f.register=function(e){if(u)throw Error("sha512 is locked");c=e},Object.freeze(d)},55431:(e,t,r)=>{e.exports=function(){let e=r(41327),t=r(55827),n=this,s=null,i=null,a=null,o=0,c=[],l=[],u=[],d=[];function f(e){let t="";for(let r=0;r<e;r+=1)t+=" ";return t}this.callbacks=[],this.astObject="astObject",this.init=function(e,t,r){let f;u.length=0,d.length=0,c.length=0,o=0,s=e,i=t,a=r;let h=[];for(f=0;f<s.length;f+=1)h.push(s[f].lower);for(f=0;f<i.length;f+=1)h.push(i[f].lower);for(f=0,o=s.length+i.length;f<o;f+=1)c[f]=!1,l[f]=null;for(let e in n.callbacks){let t=e.toLowerCase();if((f=h.indexOf(t))<0)throw Error(`ast.js: init: node '${e}' not a rule or udt name`);"function"==typeof n.callbacks[e]&&(c[f]=!0,l[f]=n.callbacks[e]),!0===n.callbacks[e]&&(c[f]=!0)}},this.ruleDefined=function(e){return!1!==c[e]},this.udtDefined=function(e){return!1!==c[s.length+e]},this.down=function(t,r){let n=d.length;return u.push(n),d.push({name:r,thisIndex:n,thatIndex:null,state:e.SEM_PRE,callbackIndex:t,phraseIndex:null,phraseLength:null,stack:u.length}),n},this.up=function(t,r,n,s){let i=d.length,a=u.pop();return d.push({name:r,thisIndex:i,thatIndex:a,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:u.length}),d[a].thatIndex=i,d[a].phraseIndex=n,d[a].phraseLength=s,i},this.translate=function(t){let r,n;for(let s=0;s<d.length;s+=1)r=l[(n=d[s]).callbackIndex],n.state===e.SEM_PRE?null!==r&&r(e.SEM_PRE,a,n.phraseIndex,n.phraseLength,t)===e.SEM_SKIP&&(s=n.thatIndex):null!==r&&r(e.SEM_POST,a,n.phraseIndex,n.phraseLength,t)},this.setLength=function(e){d.length=e,e>0?u.length=d[e-1].stack:u.length=0},this.getLength=function(){return d.length},this.toXml=function(r){let n=t.charsToDec,s="decimal integer character codes";if("string"==typeof r&&r.length>=3){let e=r.slice(0,3).toLowerCase();"asc"===e?(n=t.charsToAscii,s="ASCII for printing characters, hex for non-printing"):"hex"===e?(n=t.charsToHex,s="hexadecimal integer character codes"):"uni"===e&&(n=t.charsToUnicode,s="Unicode UTF-32 integer character codes")}let i="",o=0;return i+='<?xml version="1.0" encoding="utf-8"?>\n',i+=`<root nodes="${d.length/2}" characters="${a.length}"> 16`,i+=`<!-- input string, ${s} --> 17`,i+=f(o+2),i+=n(a),i+="\n",d.forEach(t=>{t.state===e.SEM_PRE?(o+=1,i+=f(o),i+=`<node name="${t.name}" index="${t.phraseIndex}" length="${t.phraseLength}"> 18`,i+=f(o+2),i+=n(a,t.phraseIndex,t.phraseLength),i+="\n"):(i+=f(o),i+=`</node><!-- name="${t.name}" --> 19`,o-=1)}),i+="</root>\n"},this.phrases=function(){let t,r,n={};for(t=0;t<d.length;t+=1)(r=d[t]).state===e.SEM_PRE&&(Array.isArray(n[r.name])||(n[r.name]=[]),n[r.name].push({index:r.phraseIndex,length:r.phraseLength}));return n}}},55827:(e,t,r)=>{let n=r(78694),s=r(46077),i=r(57353),a=r(41327),o="utilities.js: ",c=function(e,t,r){let n,s=t;for(;;){if(e<=0){s=0,n=0;break}if("number"!=typeof s){s=0,n=e;break}if(s>=e){s=e,n=e;break}if("number"!=typeof r){n=e;break}(n=s+r)>e&&(n=e);break}return{beg:s,end:n}};t.htmlToPage=function(e,t){if("string"!=typeof e)throw Error(`${o}htmlToPage: input HTML is not a string`);let r="";return r+="<!DOCTYPE html>\n",r+='<html lang="en">\n',r+="<head>\n",r+='<meta charset="utf-8">\n',r+=`<title>${"string"!=typeof t?"htmlToPage":t}</title> 20`,r+="<style>\n",r+=i(),r+="</style>\n",r+="</head>\n<body>\n",r+=`<p>${new Date}</p> 21`,r+=e,r+="</body>\n</html>\n"},t.parserResultToHtml=function(e,t){let r,s,i=null;"string"==typeof t&&""!==t&&(i=t),r=!0===e.success?`<span class="${n.CLASS_MATCH}">true</span>`:`<span class="${n.CLASS_NOMATCH}">
21false</span>`,s=e.state===a.EMPTY?`<span class="${n.CLASS_EMPTY}">EMPTY</span>`:e.state===a.MATCH?`<span class="${n.CLASS_MATCH}">MATCH</span>`:e.state===a.NOMATCH?`<span class="${n.CLASS_NOMATCH}">NOMATCH</span>`:`<span class="${n.CLASS_NOMATCH}">unrecognized</span>`;let o="";return o+=`<table class="${n.CLASS_STATE}"> 22`,i&&(o+=`<caption>${i}</caption> 23`),o+=`<tr><th>state item</th><th>value</th><th>description</th></tr> 24<tr><td>parser success</td><td>${r}</td> 25<td><span class="${n.CLASS_MATCH}">true</span> if the parse succeeded, 26 <span class="${n.CLASS_NOMATCH}">false</span> otherwise<br><i>NOTE: for success, entire string must be matched</i></td></tr> 27<tr><td>parser state</td><td>${s}</td> 28<td><span class="${n.CLASS_EMPTY}">EMPTY</span>, <span class="${n.CLASS_MATCH}">MATCH</span> or 29<span class="${n.CLASS_NOMATCH}">NOMATCH</span></td></tr> 30<tr><td>string length</td><td>${e.length}</td><td>length of the input (sub)string</td></tr> 31<tr><td>matched length</td><td>${e.matched}</td><td>number of input string characters matched</td></tr> 32<tr><td>max matched</td><td>${e.maxMatched}</td><td>maximum number of input string characters matched</td></tr> 33<tr><td>max tree depth</td><td>${e.maxTreeDepth}</td><td>maximum depth of the parse tree reached</td></tr> 34<tr><td>node hits</td><td>${e.nodeHits}</td><td>number of parse tree node hits (opcode function calls)</td></tr> 35<tr><td>input length</td><td>${e.inputLength}</td><td>length of full input string</td></tr> 36<tr><td>sub-string begin</td><td>${e.subBegin}</td><td>sub-string first character index</td></tr> 37<tr><td>sub-string end</td><td>${e.subEnd}</td><td>sub-string end-of-string index</td></tr> 38<tr><td>sub-string length</td><td>${e.subLength}</td><td>sub-string length</td></tr> 39</table> 40`},t.charsToString=function(e,t,r){let n,i;if("number"==typeof t){if(t>=e.length)return"";n=t<0?0:t}else n=0;if("number"==typeof r){if(r<=0)return"";i=r>e.length-n?e.length:n+r}else i=e.length;return n<i?s.encode("UTF16LE",e.slice(n,i)).toString("utf16le"):""},t.stringToChars=function(e){return s.decode("STRING",e)},t.opcodeToString=function(e){let t="unknown";switch(e){case a.ALT:t="ALT";break;case a.CAT:t="CAT";break;case a.RNM:t="RNM";break;case a.UDT:t="UDT";break;case a.AND:t="AND";break;case a.NOT:t="NOT";break;case a.REP:t="REP";break;case a.TRG:t="TRG";break;case a.TBS:t="TBS";break;case a.TLS:t="TLS";break;case a.BKR:t="BKR";break;case a.BKA:t="BKA";break;case a.BKN:t="BKN";break;case a.ABG:t="ABG";break;case a.AEN:t="AEN";break;default:throw Error("unrecognized opcode")}return t},t.stateToString=function(e){let t="unknown";switch(e){case a.ACTIVE:t="ACTIVE";break;case a.MATCH:t="MATCH";break;case a.EMPTY:t="EMPTY";break;case a.NOMATCH:t="NOMATCH";break;default:throw Error("unrecognized state")}return t},t.asciiChars=["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","SO","SI","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US"," ","!",""","#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","DEL"],t.charToHex=function(e){let t=e.toString(16).toUpperCase();switch(t.length){case 1:case 3:case 7:t=`0${t}`;break;case 2:case 6:t=`00${t}`;break;case 4:break;case 5:t=`000${t}`;break;default:throw Error("unrecognized option")}return t},t.charsToDec=function(e,t,r){let n="";if(!Array.isArray(e))throw Error(`${o}charsToDec: input must be an array of integers`);let s=c(e.length,t,r);if(s.end>s.beg){n+=e[s.beg];for(let t=s.beg+1;t<s.end;t+=1)n+=`,${e[t]}`}return n},t.charsToHex=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${o}charsToHex: input must be an array of integers`);let i=c(e.length,r,n);if(i.end>i.beg){s+=`\\x${t.charToHex(e[i.beg])}`;for(let r=i.beg+1;r<i.end;r+=1)s+=`,\\x${t.charToHex(e[r])}`}return s},t.charsToHtmlEntities=function(e,t,r){let n="";if(!Array.isArray(e))throw Error(`${o}charsToHex: input must be an array of integers`);let s=c(e.length,t,r);if(s.end>s.beg)for(let t=s.beg;t<s.end;t+=1)n+=`&#x${e[t].toString(16)};`;return n},t.charsToUnicode=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${o}charsToUnicode: input must be an array of integers`);let i=c(e.length,r,n);if(i.end>i.beg)for(let r=i.beg;r<i.end;r+=1){var a;+((a=e[r])>=55296&&a<=57343||a>1114111)?s+=` U+${t.charToHex(e[r])}`:s+=`&#${e[r]};`}return s},t.charsToJsUnicode=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${o}charsToJsUnicode: input must be an array of integers`);let i=c(e.length,r,n);if(i.end>i.beg){s+=`\\u${t.charToHex(e[i.beg])}`;for(let r=i.beg+1;r<i.end;r+=1)s+=`,\\u${t.charToHex(e[r])}`}return s},t.charsToAscii=function(e,r,n){let s="";if(!Array.isArray(e))throw Error(`${o}charsToAscii: input must be an array of integers`);let i=c(e.length,r,n);for(let r=i.beg;r<i.end;r+=1){let n=e[r];n>=32&&n<=126?s+=String.fromCharCode(n):s+=`\\x${t.charToHex(n)}`}return s},t.charsToAsciiHtml=function(e,r,s){let i;if(!Array.isArray(e))throw Error(`${o}charsToAsciiHtml: input must be an array of integers`);let a="",l=c(e.length,r,s);for(let r=l.beg;r<l.end;r+=1)(i=e[r])<32||127===i?a+=`<span class="${n.CLASS_CTRLCHAR}">${t.asciiChars[i]}</span>`:i>127?a+=`<span class="${n.CLASS_CTRLCHAR}">U+${t.charToHex(i)}</span>`:a+=t.asciiChars[i];return a},t.stringToAsciiHtml=function(e){let t=s.decode("STRING",e);return this.charsToAsciiHtml(t)}},55834:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;let n=r(25265);function s(e){return async function(t,r){let s;(0,n.assert)(null==r||!r.cancelled,"request cancelled before sending","CANCELLED");let i=t.url.split(":")[0].toLowerCase();(0,n.assert)("http"===i||"https"===i,`unsupported protocol ${i}`,"UNSUPPORTED_OPERATION",{info:{protocol:i},operation:"request"}),(0,n.assert)("https"===i||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let a=null,o=new AbortController,c=setTimeout(()=>{a=(0,n.makeError)("request timeout","TIMEOUT"),o.abort()},t.timeout);r&&r.addListener(()=>{a=(0,n.makeError)("request cancelled","CANCELLED"),o.abort()});let l=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:o.signal});try{s=await fetch(t.url,l)}catch(e){if(clearTimeout(c),a)throw a;throw e}clearTimeout(c);let u={};s.headers.forEach((e,t)=>{u[t.toLowerCase()]=e});let d=await s.arrayBuffer(),f=null==d?null:new Uint8Array(d);return{statusCode:s.status,statusMessage:s.statusText,headers:u,body:f}}}t.createGetUrl=s;let i=s({});t.getUrl=async function(e,t){return i(e,t)}},56358:(e,t,r)=>{e.exports=function(){let e,t,n,s,i,a=r(41327),o=r(55827),c="parser.js: ",l=this;this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];let u=null,d=null,f=0,h=0,p=0,g=null,b=null,m=null,y=null,x=null,A=0,w=1/0,v=1/0,E=function(t,r,n){let i=`${c}evaluateRule(): `;if(t>=m.length)throw Error(`${i}rule index: ${t} out of range`);if(r>=s)throw Error(`${i}phrase index: ${r} out of range`);let{length:o}=u;u.push({type:a.RNM,index:t}),e(o,r,n),u.pop()},P=function(t,r,n){let i=`${c}evaluateUdt(): `;if(t>=y.length)throw Error(`${i}udt index: ${t} out of range`);if(r>=s)throw Error(`${i}phrase index: ${r} out of range`);let{length:o}=u;u.push({type:a.UDT,empty:y[t].empty,index:t}),e(o,r,n),u.pop()},k=function(){f=0,h=0,p=0,A=0,i=[{lookAround:a.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],m=null,y=null,d=null,t=0,n=0,s=0,g=null,b=null,x=null,u=null},O=function(){let e=[],t=function(){let t=e[e.length-1],r={};for(let e in t)r[e]=t[e];return r};this.push=function(){e.push(t())},this.pop=function(t){let r=t;if(r||(r=e.length-1),r<1||r>e.length)throw Error(`${c}backRef.pop(): bad length: ${r}`);return e.length=r,e[e.length-1]},this.length=function(){return e.length},this.savePhrase=function(t,r,n){e[e.length-1][t]={phraseIndex:r,phraseLength:n}},this.getPhrase=function(t){return e[e.length-1][t]};let r={};m.forEach(e=>{e.isBkr&&(r[e.lower]=null)}),y.length>0&&y.forEach(e=>{e.isBkr&&(r[e.lower]=null)}),e.push(r)},T=function(){let e=this;this.state=a.ACTIVE,this.phraseLength=0,this.ruleIndex=0,this.udtIndex=0,this.lookAround=i[i.length-1],this.uFrame=new O,this.pFrame=new O,this.evaluateRule=E,this.evaluateUdt=P,this.refresh=function(){e.state=a.ACTIVE,e.phraseLength=0,e.lookAround=i[i.length-1]}},B=function(){return i[i.length-1]},S=function(){return i.length>1},C=function(){let e=`${c}initializeAst(): `;for(;;){if(void 0===l.ast){l.ast=null;break}if(null===l.ast)break;if("astObject"!==l.ast.astObject)throw Error(`${e}ast object not recognized`);break}null!==l.ast&&l.ast.init(m,y,d)},N=function(){let e=`${c}initializeTrace(): `;for(;;){if(void 0===l.trace){l.trace=null;break}if(null===l.trace)break;if("traceObject"!==l.trace.traceObject)throw Error(`${e}trace object not recognized`);break}null!==l.trace&&l.trace.init(m,y,d)},I=function(){let e=`${c}initializeStats(): `;for(;;){if(void 0===l.stats){l.stats=null;break}if(null===l.stats)break;if("statsObject"!==l.stats.statsObject)throw Error(`${e}stats object not recognized`);break}null!==l.stats&&l.stats.init(m,y)},R=function(e){let t=`${c}initializeGrammar(): `;if(!e)throw Error(`${t}grammar object undefined`);if("grammarObject"!==e.grammarObject)throw Error(`${t}bad grammar object`);m=e.rules,y=e.udts},L=function(e){let t=`${c}initializeStartRule(): `,r=null;if("number"==typeof e){if(e>=m.length)throw Error(`${t}start rule index too large: max: ${m.length}: index: ${e}`);r=e}else if("string"==typeof e){let n=e.toLowerCase();for(let e=0;e<m.length;e+=1)if(n===m[e].lower){r=m[e].index;break}if(null===r)throw Error(`${t}start rule name '${e}' not recognized`)}else throw Error(`${t}type of start rule '${typeof e}' not recognized`);return r},M=function(e,r,i){let a=`${c}initializeInputChars(): `,l=e,u=r,f=i;if(void 0===l)throw Error(`${a}input string is undefined`);if(null===l)throw Error(`${a}input string is null`);if("string"==typeof l)l=o.stringToChars(l);else if(!Array.isArray(l))throw Error(`${a}input string is not a string or array`);if(l.length>0&&"number"!=typeof l[0])throw Error(`${a}input string not an array of integers`);if("number"!=typeof u)u=0;else if((u=Math.floor(u))<0||u>l.length)throw Error(`${a}input beginning index out of range: ${u}`);if("number"!=typeof f)f=l.length-u;else if((f=Math.floor(f))<0||f>l.length-u)throw Error(`${a}input length out of range: ${f}`);d=l,s=(t=u)+(n=f)},U=function(){let e,t,r=`${c}initializeCallbacks(): `;for(e=0,g=[],b=[];e<m.length;e+=1)g[e]=null;for(e=0;e<y.length;e+=1)b[e]=null;let n=[];for(e=0;e<m.length;e+=1)n.push(m[e].lower);for(e=0;e<y.length;e+=1)n.push(y[e].lower);for(let s in l.callbacks){if((e=n.indexOf(s.toLowerCase()))<0)throw Error(`${r}syntax callback '${s}' not a rule or udt name`);if((t=l.callbacks[s])||(t=null),"function"==typeof t||null===t)e<m.length?g[e]=t:b[e-m.length]=t;else throw Error(`${r}syntax callback[${s}] must be function reference or 'false' (false/null/undefined/etc.)`)}for(e=0;e<y.length;e+=1)if(null===b[e])throw Error(`${r}all UDT callbacks must be defined. UDT callback[${y[e].lower}] not a function reference`)};this.setMaxTreeDepth=function(e){if("number"!=typeof e||(w=Math.floor(e))<=0)throw Error(`parser: max tree depth must be integer > 0: ${e}`)},this.setMaxNodeHits=function(e){if("number"!=typeof e||(v=Math.floor(e))<=0)throw Error(`parser: max n
40ode hits must be integer > 0: ${e}`)};let F=function(r,i,o){let l,f=`${c}parse(): `;R(r);let g=L(i);U(),N(),I(),C();let b=new T;switch(null!=o&&(x=o),u=[{type:a.RNM,index:g}],e(0,t,b),u=null,b.state){case a.ACTIVE:throw Error(`${f}final state should never be 'ACTIVE'`);case a.NOMATCH:l=!1;break;case a.EMPTY:case a.MATCH:l=b.phraseLength===n;break;default:throw Error("unrecognized state")}return{success:l,state:b.state,length:n,matched:b.phraseLength,maxMatched:A,maxTreeDepth:h,nodeHits:p,inputLength:d.length,subBegin:t,subEnd:s,subLength:n}};this.parseSubstring=function(e,t,r,n,s,i){return k(),M(r,n,s),F(e,t,i)},this.parse=function(e,t,r,n){return k(),M(r,0,r.length),F(e,t,n)};let D=function(t,r,n){let s=u[t];for(let t=0;t<s.children.length&&(e(s.children[t],r,n),n.state===a.NOMATCH);t+=1);},_=function(t,r,n){let s,i,o,c,d=u[t],f=n.uFrame.length(),h=n.pFrame.length();l.ast&&(i=l.ast.getLength()),s=!0,o=r,c=0;for(let t=0;t<d.children.length;t+=1){if(e(d.children[t],o,n),n.state===a.NOMATCH){s=!1;break}o+=n.phraseLength,c+=n.phraseLength}s?(n.state=0===c?a.EMPTY:a.MATCH,n.phraseLength=c):(n.state=a.NOMATCH,n.phraseLength=0,n.uFrame.pop(f),n.pFrame.pop(h),l.ast&&l.ast.setLength(i))},j=function(t,r,n){let i,o,c,d,f=u[t];if(0===f.max){n.state=a.EMPTY,n.phraseLength=0;return}o=r,c=0,d=0;let h=n.uFrame.length(),p=n.pFrame.length();for(l.ast&&(i=l.ast.getLength());!(o>=s)&&(e(t+1,o,n),n.state!==a.NOMATCH&&n.state!==a.EMPTY&&(d+=1,c+=n.phraseLength,o+=n.phraseLength,d!==f.max)););n.state===a.EMPTY||d>=f.min?(n.state=0===c?a.EMPTY:a.MATCH,n.phraseLength=c):(n.state=a.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(p),l.ast&&l.ast.setLength(i))},H=function(e,t,r,n){if(t.phraseLength>r){let n=`${c}opRNM(${e.name}): callback function error: `;throw Error(n+=`sysData.phraseLength: ${t.phraseLength} must be <= remaining chars: ${r}`)}switch(t.state){case a.ACTIVE:if(!0!==n)throw Error(`${c}opRNM(${e.name}): callback function return error. ACTIVE state not allowed.`);break;case a.EMPTY:t.phraseLength=0;break;case a.MATCH:0===t.phraseLength&&(t.state=a.EMPTY);break;case a.NOMATCH:t.phraseLength=0;break;default:throw Error(`${c}opRNM(${e.name}): callback function return error. Unrecognized return state: ${t.state}`)}},G=function(t,r,n){let i,o,c,f,h,p,b=u[t],y=m[b.index],A=g[y.index],w=!S();if(w&&((o=l.ast&&l.ast.ruleDefined(b.index))&&(i=l.ast.getLength(),l.ast.down(b.index,m[b.index].name)),f=n.uFrame.length(),h=n.pFrame.length(),n.uFrame.push(),n.pFrame.push(),p=n.pFrame,n.pFrame=new O),null===A)c=u,u=y.opcodes,e(0,r,n),u=c;else{let t=s-r;n.ruleIndex=y.index,A(n,d,r,x),H(y,n,t,!0),n.state===a.ACTIVE&&(c=u,u=y.opcodes,e(0,r,n),u=c,n.ruleIndex=y.index,A(n,d,r,x),H(y,n,t,!1))}w&&(o&&(n.state===a.NOMATCH?l.ast.setLength(i):l.ast.up(b.index,y.name,r,n.phraseLength)),n.pFrame=p,n.state===a.NOMATCH?(n.uFrame.pop(f),n.pFrame.pop(h)):y.isBkr&&(n.pFrame.savePhrase(y.lower,r,n.phraseLength),n.uFrame.savePhrase(y.lower,r,n.phraseLength)))},z=function(e,t,r){if(t.phraseLength>r){let n=`${c}opUDT(${e.name}): callback function error: `;throw Error(n+=`sysData.phraseLength: ${t.phraseLength} must be <= remaining chars: ${r}`)}switch(t.state){case a.ACTIVE:throw Error(`${c}opUDT(${e.name}): callback function return error. ACTIVE state not allowed.`);case a.EMPTY:if(!1===e.empty)throw Error(`${c}opUDT(${e.name}): callback function return error. May not return EMPTY.`);t.phraseLength=0;break;case a.MATCH:if(0===t.phraseLength)if(!1===e.empty)throw Error(`${c}opUDT(${e.name}): callback function return error. May not return EMPTY.`);else t.state=a.EMPTY;break;case a.NOMATCH:t.phraseLength=0;break;default:throw Error(`${c}opUDT(${e.name}): callback function return error. Unrecognized return state: ${t.state}`)}},$=function(e,t,r){let n,i,o,c,f,h,p=u[e],g=y[p.index];r.UdtIndex=g.index;let A=!S();A&&((o=l.ast&&l.ast.udtDefined(p.index))&&(i=m.length+p.index,n=l.ast.getLength(),l.ast.down(i,g.name)),c=r.uFrame.length(),f=r.pFrame.length(),r.uFrame.push(),r.pFrame.push(),h=r.pFrame,r.pFrame=new O);let w=s-t;b[p.index](r,d,t,x),z(g,r,w),A&&(o&&(r.state===a.NOMATCH?l.ast.setLength(n):l.ast.up(i,g.name,t,r.phraseLength)),r.pFrame=h,r.state===a.NOMATCH?(r.uFrame.pop(c),r.pFrame.pop(f)):g.isBkr&&(r.pFrame.savePhrase(g.lower,t,r.phraseLength),r.uFrame.savePhrase(g.lower,t,r.phraseLength)))},V=function(r,o,c){i.push({lookAround:a.LOOKAROUND_AHEAD,anchor:o,charsEnd:s,charsLength:n}),s=d.length,n=d.length-t,e(r+1,o,c);let l=i.pop();switch(s=l.charsEnd,n=l.charsLength,c.phraseLength=0,c.state){case a.EMPTY:case a.MATCH:c.state=a.EMPTY;break;case a.NOMATCH:c.state=a.NOMATCH;break;
40default:throw Error(`opAND: invalid state ${c.state}`)}},K=function(r,o,c){i.push({lookAround:a.LOOKAROUND_AHEAD,anchor:o,charsEnd:s,charsLength:n}),s=d.length,n=d.length-t,e(r+1,o,c);let l=i.pop();switch(s=l.charsEnd,n=l.charsLength,c.phraseLength=0,c.state){case a.EMPTY:case a.MATCH:c.state=a.NOMATCH;break;case a.NOMATCH:c.state=a.EMPTY;break;default:throw Error(`opNOT: invalid state ${c.state}`)}},J=function(e,t,r){let n=u[e];r.state=a.NOMATCH,t<s&&n.min<=d[t]&&d[t]<=n.max&&(r.state=a.MATCH,r.phraseLength=1)},Q=function(e,t,r){let n,i=u[e],o=i.string.length;if(r.state=a.NOMATCH,t+o<=s){for(n=0;n<o;n+=1)if(d[t+n]!==i.string[n])return;r.state=a.MATCH,r.phraseLength=o}},q=function(e,t,r){let n,i,o=u[e];r.state=a.NOMATCH;let c=o.string.length;if(0===c){r.state=a.EMPTY;return}if(t+c<=s){for(n=0;n<c;n+=1)if((i=d[t+n])>=65&&i<=90&&(i+=32),i!==o.string[n])return;r.state=a.MATCH,r.phraseLength=c}},W=function(e,t,r){r.state=a.NOMATCH,r.phraseLength=0,r.state=0===t?a.EMPTY:a.NOMATCH},Y=function(e,t,r){r.state=a.NOMATCH,r.phraseLength=0,r.state=t===d.length?a.EMPTY:a.NOMATCH},Z=function(e,t,r){let n,i,o,c,l=u[e];r.state=a.NOMATCH,c=l.index<m.length?m[l.index].lower:y[l.index-m.length].lower;let f=l.bkrMode===a.BKR_MODE_PM?r.pFrame.getPhrase(c):r.uFrame.getPhrase(c),h=l.bkrCase===a.BKR_MODE_CI;if(null===f)return;let p=f.phraseIndex,g=f.phraseLength;if(0===g){r.state=a.EMPTY;return}if(t+g<=s){if(h){for(n=0;n<g;n+=1)if(i=d[t+n],o=d[p+n],i>=65&&i<=90&&(i+=32),o>=65&&o<=90&&(o+=32),i!==o)return;r.state=a.MATCH,r.phraseLength=g}else for(n=0;n<g;n+=1)if((i=d[t+n])!==(o=d[p+n]))return;r.state=a.MATCH,r.phraseLength=g}},X=function(t,r,n){switch(i.push({lookAround:a.LOOKAROUND_BEHIND,anchor:r}),e(t+1,r,n),i.pop(),n.phraseLength=0,n.state){case a.EMPTY:case a.MATCH:n.state=a.EMPTY;break;case a.NOMATCH:n.state=a.NOMATCH;break;default:throw Error(`opBKA: invalid state ${n.state}`)}},ee=function(t,r,n){switch(i.push({lookAround:a.LOOKAROUND_BEHIND,anchor:r}),e(t+1,r,n),i.pop(),n.phraseLength=0,n.state){case a.EMPTY:case a.MATCH:n.state=a.NOMATCH;break;case a.NOMATCH:n.state=a.EMPTY;break;default:throw Error(`opBKN: invalid state ${n.state}`)}},et=function(t,r,n){let s,i,o,c,d=u[t],f=n.uFrame.length(),h=n.pFrame.length();l.ast&&(i=l.ast.getLength()),s=!0,o=r,c=0;for(let t=d.children.length-1;t>=0;t-=1)if(e(d.children[t],o,n),o-=n.phraseLength,c+=n.phraseLength,n.state===a.NOMATCH){s=!1;break}s?(n.state=0===c?a.EMPTY:a.MATCH,n.phraseLength=c):(n.state=a.NOMATCH,n.phraseLength=0,n.uFrame.pop(f),n.pFrame.pop(h),l.ast&&l.ast.setLength(i))},er=function(t,r,n){let s,i,o,c,d=u[t];i=r,o=0,c=0;let f=n.uFrame.length(),h=n.pFrame.length();for(l.ast&&(s=l.ast.getLength());!(i<=0)&&(e(t+1,i,n),n.state!==a.NOMATCH&&n.state!==a.EMPTY&&(c+=1,o+=n.phraseLength,i-=n.phraseLength,c!==d.max)););n.state===a.EMPTY||c>=d.min?(n.state=0===o?a.EMPTY:a.MATCH,n.phraseLength=o):(n.state=a.NOMATCH,n.phraseLength=0,n.uFrame.pop(f),n.pFrame.pop(h),l.ast&&l.ast.setLength(s))},en=function(e,t,r){let n=u[e];if(r.state=a.NOMATCH,r.phraseLength=0,t>0){let e=d[t-1];n.min<=e&&e<=n.max&&(r.state=a.MATCH,r.phraseLength=1)}},es=function(e,t,r){let n,s=u[e];r.state=a.NOMATCH;let i=s.string.length,o=t-i;if(o>=0){for(n=0;n<i;n+=1)if(d[o+n]!==s.string[n])return;r.state=a.MATCH,r.phraseLength=i}},ei=function(e,t,r){let n,s=u[e];r.state=a.NOMATCH;let i=s.string.length;if(0===i){r.state=a.EMPTY;return}let o=t-i;if(o>=0){for(let e=0;e<i;e+=1)if((n=d[o+e])>=65&&n<=90&&(n+=32),n!==s.string[e])return;r.state=a.MATCH,r.phraseLength=i}},ea=function(e,t,r){let n,s,i,o,c=u[e];r.state=a.NOMATCH,r.phraseLength=0,o=c.index<m.length?m[c.index].lower:y[c.index-m.length].lower;let l=c.bkrMode===a.BKR_MODE_PM?r.pFrame.getPhrase(o):r.uFrame.getPhrase(o),f=c.bkrCase===a.BKR_MODE_CI;if(null===l)return;let h=l.phraseIndex,p=l.phraseLength;if(0===p){r.state=a.EMPTY,r.phraseLength=0;return}let g=t-p;if(g>=0){if(f){for(n=0;n<p;n+=1)if(s=d[g+n],i=d[h+n],s>=65&&s<=90&&(s+=32),i>=65&&i<=90&&(i+=32),s!==i)return;r.state=a.MATCH,r.phraseLength=p}else for(n=0;n<p;n+=1)if((s=d[g+n])!==(i=d[h+n]))return;r.state=a.MATCH,r.phraseLength=p}};e=function(e,t,r){let n=!0,s=u[e];
40if((p+=1)>v)throw Error(`parser: maximum number of node hits exceeded: ${v}`);if((f+=1)>h&&(h=f)>w)throw Error(`parser: maximum parse tree depth exceeded: ${w}`);if(r.refresh(),null!==l.trace){let e=B();l.trace.down(s,r.state,t,r.phraseLength,e.anchor,e.lookAround)}if(i[i.length-1].lookAround===a.LOOKAROUND_BEHIND)switch(s.type){case a.ALT:D(e,t,r);break;case a.CAT:et(e,t,r);break;case a.REP:er(e,t,r);break;case a.RNM:G(e,t,r);break;case a.UDT:$(e,t,r);break;case a.AND:V(e,t,r);break;case a.NOT:K(e,t,r);break;case a.TRG:en(e,t,r);break;case a.TBS:es(e,t,r);break;case a.TLS:ei(e,t,r);break;case a.BKR:ea(e,t,r);break;case a.BKA:X(e,t,r);break;case a.BKN:ee(e,t,r);break;case a.ABG:W(e,t,r);break;case a.AEN:Y(e,t,r);break;default:n=!1}else switch(s.type){case a.ALT:D(e,t,r);break;case a.CAT:_(e,t,r);break;case a.REP:j(e,t,r);break;case a.RNM:G(e,t,r);break;case a.UDT:$(e,t,r);break;case a.AND:V(e,t,r);break;case a.NOT:K(e,t,r);break;case a.TRG:J(e,t,r);break;case a.TBS:Q(e,t,r);break;case a.TLS:q(e,t,r);break;case a.BKR:Z(e,t,r);break;case a.BKA:X(e,t,r);break;case a.BKN:ee(e,t,r);break;case a.ABG:W(e,t,r);break;case a.AEN:Y(e,t,r);break;default:n=!1}if(!S()&&t+r.phraseLength>A&&(A=t+r.phraseLength),null!==l.stats&&l.stats.collect(s,r),null!==l.trace){let e=B();l.trace.up(s,r.state,t,r.phraseLength,e.anchor,e.lookAround)}return f-=1,n}}},57353:e=>{e.exports=function(){return"/* This file automatically generated by jsonToless() and LESS. */\n.apg-mono {\n font-family: monospace;\n}\n.apg-active {\n font-weight: bold;\n color: #000000;\n}\n.apg-match {\n font-weight: bold;\n color: #264BFF;\n}\n.apg-empty {\n font-weight: bold;\n color: #0fbd0f;\n}\n.apg-nomatch {\n font-weight: bold;\n color: #FF4000;\n}\n.apg-lh-match {\n font-weight: bold;\n color: #1A97BA;\n}\n.apg-lb-match {\n font-weight: bold;\n color: #5F1687;\n}\n.apg-remainder {\n font-weight: bold;\n color: #999999;\n}\n.apg-ctrl-char {\n font-weight: bolder;\n font-style: italic;\n font-size: 0.6em;\n}\n.apg-line-end {\n font-weight: bold;\n color: #000000;\n}\n.apg-error {\n font-weight: bold;\n color: #FF4000;\n}\n.apg-phrase {\n color: #000000;\n background-color: #8caae6;\n}\n.apg-empty-phrase {\n color: #0fbd0f;\n}\ntable.apg-state {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: left;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-state th,\ntable.apg-state td {\n text-align: left;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-state th:nth-last-child(2),\ntable.apg-state td:nth-last-child(2) {\n text-align: right;\n}\ntable.apg-state caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-stats {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-stats th,\ntable.apg-stats td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-stats caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-trace {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-trace caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-trace th,\ntable.apg-trace td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-trace th:last-child,\ntable.apg-trace th:nth-last-child(2),\ntable.apg-trace td:last-child,\ntable.apg-trace td:nth-last-child(2) {\n text-align: left;\n}\ntable.apg-grammar {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-grammar caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-grammar th,\ntable.apg-grammar td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-grammar th:last-child,\ntable.apg-grammar td:last-child {\n text-align: left;\n}\ntable.apg-rules {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-rules caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-rules th,\ntable.apg-rules td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-rules a {\n color: #003399 !important;\n}
40\ntable.apg-rules a:hover {\n color: #8caae6 !important;\n}\ntable.apg-attrs {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: center;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-attrs caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-attrs th,\ntable.apg-attrs td {\n text-align: center;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-attrs th:nth-child(1),\ntable.apg-attrs th:nth-child(2),\ntable.apg-attrs th:nth-child(3) {\n text-align: right;\n}\ntable.apg-attrs td:nth-child(1),\ntable.apg-attrs td:nth-child(2),\ntable.apg-attrs td:nth-child(3) {\n text-align: right;\n}\ntable.apg-attrs a {\n color: #003399 !important;\n}\ntable.apg-attrs a:hover {\n color: #8caae6 !important;\n}\n"}},57382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=0x1fffffffffffff,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},57529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){let t=16-e.length%16,r=new Uint8Array(e.length+t);r.set(e);for(let n=e.length;n<r.length;n++)r[n]=t;return r},t.pkcs7Strip=function(e){if(e.length<16)throw TypeError("PKCS#7 invalid length");let t=e[e.length-1];if(t>16)throw TypeError("PKCS#7 padding byte out of range");let r=e.length-t;for(let n=0;n<t;n++)if(e[r+n]!==t)throw TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,r))}},57840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;let n=r(43814),s=r(47071);function i(e){let t=new Set;return e.forEach(e=>t.add(e)),Object.freeze(t)}let a=i("external public payable override".split(" ")),o="constant external internal payable private public pure view override",c=i(o.split(" ")),l="constructor error event fallback function receive struct",u=i(l.split(" ")),d="calldata memory storage payable indexed",f=i(d.split(" ")),h=i([l,d,"tuple returns",o].join(" ").split(" ")),p={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=RegExp("^(\\s*)"),b=RegExp("^([0-9]+)"),m=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),y=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),x=RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class A{#a;#et;get offset(){return this.#a}get length(){return this.#et.length-this.#a}constructor(e){this.#a=0,this.#et=e.slice()}clone(){return new A(this.#et)}reset(){this.#a=0}#er(e=0,t=0){return new A(this.#et.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){let t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){let t=this.peek();throw Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=this.#er(this.#a+1,e.match+1);return this.#a=e.match+1,t}popParams(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=[];for(;this.#a<e.match-1;){let e=this.peek().linkNext;t.push(this.#er(this.#a+1,e)),this.#a=e}return this.#a=e.match+1,t}peek(){if(this.#a>=this.#et.length)throw Error("out-of-bounds");return this.#et[this.#a]}peekKeyword(e){let t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;let t=this.peek();return t.type===e?t.text:null}pop(){let e=this.peek();return this.#a++,e}toString(){let e=[];for(let t=this.#a;t<this.#et.length;t++){let r=this.#et[t];e.push(`${r.type}:${r.text}`)}return`<TokenString ${e.join(" ")}>`}}function w(e){let t=[],r=t=>{let r=a<e.length?JSON.stringify(e[a]):"$EOI";throw Error(`invalid token ${r} at ${a}: ${t}`)},s=[],i=[],a=0;for(;a<e.length;){let o=e.substring(a),c=o.match(g);c&&(a+=c[1].length,o=e.substring(a));let l={depth:s.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:a,value:-1};t.push(l);let u=p[o[0]]||"";if(u){if(l.type=u,l.text=o[0],a++,"OPEN_PAREN"===u)s.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==u)0===s.length&&r("no matching open bracket"),l.match=s.pop(),t[l.match].match=t.length-1,l.depth--,l.linkBack=i.pop(),t[l.linkBack].linkNext=t.length-1;else if("COMMA"===u)l.linkBack=i.pop(),t[l.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===u)l.type="BRACKET";else if("CLOSE_BRACKET"===u){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){let r=t.pop().text;e=r+e,t[t.length-1].value=(0,n.getNumber)(r)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw Error("missing opening bracket");t[t.length-1].text+=e}continue}
40if(c=o.match(m)){if(l.text=c[1],a+=l.text.length,h.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(x)){l.type="TYPE";continue}l.type="ID";continue}if(c=o.match(b)){l.text=c[1],l.type="NUMBER",a+=l.text.length;continue}throw Error(`unexpected token ${JSON.stringify(o[0])} at position ${a}`)}return new A(t.map(e=>Object.freeze(e)))}function v(e,t){let r=[];for(let n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw Error(`conflicting types: ${r.join(", ")}`)}function E(e,t){if(t.peekKeyword(u)){let r=t.pop().text;if(r!==e)throw Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function P(e,t){let r=new Set;for(;;){let n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function k(e){let t=P(e,c);return(v(t,i("constant payable nonpayable".split(" "))),v(t,i("pure view payable nonpayable".split(" "))),t.has("view"))?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function O(e,t){return e.popParams().map(e=>j.from(e,t))}function T(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,n.getBigInt)(e.pop().text);throw Error("invalid gas")}return null}function B(e){if(e.length)throw Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}let S=new RegExp(/^(.*)\[([0-9]*)\]$/);function C(e){let t=e.match(x);if((0,n.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){let r=parseInt(t[2]);(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}let N={},I=Symbol.for("_ethers_internal"),R="_ParamTypeInternal",L="_ErrorInternal",M="_EventInternal",U="_ConstructorInternal",F="_FallbackInternal",D="_FunctionInternal",_="_StructInternal";class j{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,s,i,a,o,c){if((0,n.assertPrivate)(e,N,"ParamType"),Object.defineProperty(this,I,{value:R}),a&&(a=Object.freeze(a.slice())),"array"===s){if(null==o||null==c)throw Error("")}else if(null!=o||null!=c)throw Error("");if("tuple"===s){if(null==a)throw Error("")}else if(null!=a)throw Error("");(0,n.defineProperties)(this,{name:t,type:r,baseType:s,indexed:i,components:a,arrayLength:o,arrayChildren:c})}format(e){if(null==e&&(e="sighash"),"json"===e){let t=this.name||"";if(this.isArray()){let e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}let r={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw Error("array is wrong length");let r=this;return e.map(e=>r.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw Error("invalid tuple value");if(e.length!==this.components.length)throw Error("array is wrong length");let r=this;return e.map((e,n)=>r.components[n].walk(e,t))}return t(this.type,e)}#en(e,t,r,n){if(this.isArray()){if(!Array.isArray(t))throw Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw Error("array is wrong length");let s=this.arrayChildren,i=t.slice();i.forEach((t,n)=>{s.#en(e,t,r,e=>{i[n]=e})}),n(i);return}if(this.isTuple()){let s,i=this.components;if(Array.isArray(t))s=t.slice();else{if(null==t||"object"!=typeof t)throw Error("invalid tuple value");s=i.map(e=>{if(!e.name)throw Error("cannot use object value with unnamed components");if(!(e.name in t))throw Error(`missing value for component ${e.name}`);return t[e.name]})}if(s.length!==this.components.length)throw Error("array is wrong length");
40s.forEach((t,n)=>{i[n].#en(e,t,r,e=>{s[n]=e})}),n(s);return}let s=r(this.type,t);s.then?e.push(async function(){n(await s)}()):n(s)}async walkAsync(e,t){let r=[],n=[e];return this.#en(r,e,t,e=>{n[0]=e}),r.length&&await Promise.all(r),n[0]}static from(e,t){if(j.isParamType(e))return e;if("string"==typeof e)try{return j.from(w(e),t)}catch(t){(0,n.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof A){let r="",n="",s=null;P(e,i(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",s=e.popParams().map(e=>j.from(e)),r=`tuple(${s.map(e=>e.format()).join(",")})`):n=r=C(e.popType("TYPE"));let a=null,o=null;for(;e.length&&e.peekType("BRACKET");){let t=e.pop();a=new j(N,"",r,n,null,s,o,a),o=t.value,r+=t.text,n="array",s=null}let c=null;if(P(e,f).has("indexed")){if(!t)throw Error("");c=!0}let l=e.peekType("ID")?e.pop().text:"";if(e.length)throw Error("leftover tokens");return new j(N,l,r,n,c,s,o,a)}let r=e.name;(0,n.assertArgument)(!r||"string"==typeof r&&r.match(y),"invalid name","obj.name",r);let s=e.indexed;null!=s&&((0,n.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let a=e.type,o=a.match(S);if(o){let t=parseInt(o[2]||"-1"),n=j.from({type:o[1],components:e.components});return new j(N,r||"",a,"array",s,null,t,n)}if("tuple"===a||a.startsWith("tuple(")||a.startsWith("(")){let t=null!=e.components?e.components.map(e=>j.from(e)):null;return new j(N,r||"",a,"tuple",s,t,null,null)}return new j(N,r||"",a=C(e.type),a,s,null,null,null)}static isParamType(e){return e&&e[I]===R}}t.ParamType=j;class H{type;inputs;constructor(e,t,r){(0,n.assertPrivate)(e,N,"Fragment"),r=Object.freeze(r.slice()),(0,n.defineProperties)(this,{type:t,inputs:r})}static from(e){if("string"==typeof e){try{H.from(JSON.parse(e))}catch(e){}return H.from(w(e))}if(e instanceof A)switch(e.peekKeyword(u)){case"constructor":return K.from(e);case"error":return $.from(e);case"event":return V.from(e);case"fallback":case"receive":return J.from(e);case"function":return Q.from(e);case"struct":return q.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return K.from(e);case"error":return $.from(e);case"event":return V.from(e);case"fallback":case"receive":return J.from(e);case"function":return Q.from(e);case"struct":return q.from(e)}(0,n.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,n.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return K.isFragment(e)}static isError(e){return $.isFragment(e)}static isEvent(e){return V.isFragment(e)}static isFunction(e){return Q.isFragment(e)}static isStruct(e){return q.isFragment(e)}}t.Fragment=H;class G extends H{name;constructor(e,t,r,s){super(e,t,s),(0,n.assertArgument)("string"==typeof r&&r.match(y),"invalid identifier","name",r),s=Object.freeze(s.slice()),(0,n.defineProperties)(this,{name:r})}}function z(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}t.NamedFragment=G;class $ extends G{constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,I,{value:L})}get selector(){return(0,s.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+z(e,this.inputs)),t.join(" ")}static from(e){if($.isFragment(e))return e;if("string"==typeof e)return $.from(w(e));if(e instanceof A){let t=E("error",e),r=O(e);return B(e),new $(N,t,r)}return new $(N,e.name,e.inputs?e.inputs.map(j.from):[])}static isFragment(e){return e&&e[I]===L}}t.ErrorFragment=$;class V extends G{anonymous;constructor(e,t,r,s){super(e,"event",t,r),Object.defineProperty(this,I,{value:M}),(0,n.defineProperties)(this,{anonymous:s})}get topicHash(){return(0,s.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];
40return"sighash"!==e&&t.push("event"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return new V(N,e,t=(t||[]).map(e=>j.from(e)),!1).topicHash}static from(e){if(V.isFragment(e))return e;if("string"==typeof e)try{return V.from(w(e))}catch(t){(0,n.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof A){let t=E("event",e),r=O(e,!0),n=!!P(e,i(["anonymous"])).has("anonymous");return B(e),new V(N,t,r,n)}return new V(N,e.name,e.inputs?e.inputs.map(e=>j.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[I]===M}}t.EventFragment=V;class K extends H{payable;gas;constructor(e,t,r,s,i){super(e,t,r),Object.defineProperty(this,I,{value:U}),(0,n.defineProperties)(this,{payable:s,gas:i})}format(e){if((0,n.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[`constructor${z(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(K.isFragment(e))return e;if("string"==typeof e)try{return K.from(w(e))}catch(t){(0,n.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof A){P(e,i(["constructor"]));let t=O(e),r=!!P(e,a).has("payable"),n=T(e);return B(e),new K(N,"constructor",t,r,n)}return new K(N,"constructor",e.inputs?e.inputs.map(j.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===U}}t.ConstructorFragment=K;class J extends H{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,I,{value:F}),(0,n.defineProperties)(this,{payable:r})}format(e){let t=0===this.inputs.length?"receive":"fallback";return"json"===e?JSON.stringify({type:t,stateMutability:this.payable?"payable":"nonpayable"}):`${t}()${this.payable?" payable":""}`}static from(e){if(J.isFragment(e))return e;if("string"==typeof e)try{return J.from(w(e))}catch(t){(0,n.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof A){let t=e.toString(),r=e.peekKeyword(i(["fallback","receive"]));if((0,n.assertArgument)(r,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(i(["fallback","receive"]))){let t=O(e);return(0,n.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),P(e,i(["payable"])),B(e),new J(N,[],!0)}let s=O(e);s.length?(0,n.assertArgument)(1===s.length&&"bytes"===s[0].type,"invalid fallback inputs","obj.inputs",s.map(e=>e.format("minimal")).join(", ")):s=[j.from("bytes")];let a=k(e);if((0,n.assertArgument)("nonpayable"===a||"payable"===a,"fallback cannot be constants","obj.stateMutability",a),P(e,i(["returns"])).has("returns")){let t=O(e);(0,n.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return B(e),new J(N,s,"payable"===a)}return"receive"===e.type?new J(N,[],!0):"fallback"===e.type?new J(N,[j.from("bytes")],"payable"===e.stateMutability):void(0,n.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[I]===F}}t.FallbackFragment=J;class Q extends G{constant;outputs;stateMutability;payable;gas;constructor(e,t,r,s,i,a){super(e,"function",t,s),Object.defineProperty(this,I,{value:D}),i=Object.freeze(i.slice()),(0,n.defineProperties)(this,{constant:"view"===r||"pure"===r,gas:a,outputs:i,payable:"payable"===r,stateMutability:r})}get selector(){return(0,s.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(z(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return new Q(N,e,"view",t=(t||[]).map(e=>j.from(e)),[],null).selector}static from(e){if(Q.isFragment(e))return e;if("string"==typeof e)try{return Q.from(w(e))}catch(t){(0,n.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof A){let t=E("function",e),r=O(e),n=k(e),s=[];P(e,i(["returns"])).has("returns")&&(s=O(e));let a=T(e);return B(e),new Q(N,t,n,r,s,a)}let t=e.stateMutability;return null==t&&(t="payable","boolean"==typeof e.constant?(t="view",!e.constant&&(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new Q(N,e.name,t,e.inputs?e.inputs.map(j.from):[],e.outputs?e.outputs.map(j.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===D}}t.FunctionFragment=Q;class q extends G{constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,I,{value:_})}format(){throw Error("@TODO")}static from(e){if("string"==typeof e)try{return q.from(w(e))}catch(t){(0,n.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof A){let t=E("struct",e),r=O(e);return B(e),new q(N,t,r)}return new q(N,e.name,e.inputs?e.inputs.map(j.from):[])}static isFragment(e){return e&&e[I]===_}}t.StructFragment=q},58524:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;let n=r(85940),s=r(22360),i=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r,o=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),c=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),l=new Uint32Array(64);class u extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:r,D:n,E:s,F:i,G:a,H:o}=this;return[e,t,r,n,s,i,a,o]}set(e,t,r,n,s,i,a,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|s,this.F=0|i,this.G=0|a,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=l[e-15],r=l[e-2],n=(0,s.rotr)(t,7)^(0,s.rotr)(t,18)^t>>>3,i=(0,s.rotr)(r,17)^(0,s.rotr)(r,19)^r>>>10;l[e]=i+l[e-7]+n+l[e-16]|0}let{A:r,B:n,C:c,D:u,E:d,F:f,G:h,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,s.rotr)(d,6)^(0,s.rotr)(d,11)^(0,s.rotr)(d,25))+i(d,f,h)+o[e]+l[e]|0,g=((0,s.rotr)(r,2)^(0,s.rotr)(r,13)^(0,s.rotr)(r,22))+a(r,n,c)|0;p=h,h=f,f=d,d=u+t|0,u=c,c=n,n=r,r=t+g|0}r=r+this.A|0,n=n+this.B|0,c=c+this.C|0,u=u+this.D|0,d=d+this.E|0,f=f+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,c,u,d,f,h,p)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends u{constructor(){super(),this.A=-0x3efa6128,this.B=0x367cd507,this.C=0x3070dd17,this.D=-0x8f1a6c7,this.E=-4191439,this.F=0x68581511,this.G=0x64f98fa7,this.H=-0x4105b05c,this.outputLen=28}}t.sha256=(0,s.wrapConstructor)(()=>new u),t.sha224=(0,s.wrapConstructor)(()=>new d)},58652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(6330),s=r(22360);class i extends s.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);let r=(0,s.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),a.fill(0)}update(e){return(0,n.exists)(this),this.iHash.update(e),this}digestInto(e){(0,n.exists)(this),(0,n.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:s,blockLen:i,outputLen:a}=this;return e.finished=n,e.destroyed=s,e.blockLen=i,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i,t.hmac=(e,t,r)=>new i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},59155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;let n=r(43814),s=r(96854);class i extends s.JsonRpcApiPollingProvider{#es;#ei;constructor(e,t,r){let s=Object.assign({},null!=r?r:{},{batchMaxCount:1});(0,n.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,s),this.#ei=null,r&&r.providerInfo&&(this.#ei=r.providerInfo),this.#es=async(t,r)=>{let n={method:t,params:r};
40this.emit("debug",{action:"sendEip1193Request",payload:n});try{let t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(t){let e=Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}get providerInfo(){return this.#ei}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,n.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{let t=await this.#es(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);let t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter(t=>t.toLowerCase()===e).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#es("eth_requestAccounts",[])}catch(t){let e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}static async discover(e){if(null==e&&(e={}),e.provider)return new i(e.provider);let t=e.window?e.window:"undefined"!=typeof window?window:null;if(null==t)return null;let r=e.anyProvider;if(r&&t.ethereum)return new i(t.ethereum);if(!("addEventListener"in t&&"dispatchEvent"in t&&"removeEventListener"in t))return null;let s=e.timeout?e.timeout:300;return 0===s?null:await new Promise((a,o)=>{let c=[],l=e=>{c.push(e.detail),r&&u()},u=()=>{if(clearTimeout(d),c.length)if(e&&e.filter){let t=e.filter(c.map(e=>Object.assign({},e.info)));if(null==t)a(null);else if(t instanceof i)a(t);else{let e=null;if(t.uuid&&(e=c.filter(e=>t.uuid===e.info.uuid)[0]),e){let{provider:t,info:r}=e;a(new i(t,void 0,{providerInfo:r}))}else o((0,n.makeError)("filter returned unknown info","UNSUPPORTED_OPERATION",{value:t}))}}else{let{provider:e,info:t}=c[0];a(new i(e,void 0,{providerInfo:t}))}else a(null);t.removeEventListener("eip6963:announceProvider",l)},d=setTimeout(()=>{u()},s);t.addEventListener("eip6963:announceProvider",l),t.dispatchEvent(new Event("eip6963:requestProvider"))})}}t.BrowserProvider=i},60286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;let n=r(6330),s=r(58652),i=r(22360);function a(e,t,r,a){(0,n.hash)(e);let{c:o,dkLen:c,asyncTick:l}=(0,i.checkOpts)({dkLen:32,asyncTick:10},a);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(l),o<1)throw Error("PBKDF2: iterations (c) should be >= 1");let u=(0,i.toBytes)(t),d=(0,i.toBytes)(r),f=new Uint8Array(c),h=s.hmac.create(e,u),p=h._cloneInto().update(d);return{c:o,dkLen:c,asyncTick:l,DK:f,PRF:h,PRFSalt:p}}function o(e,t,r,n,s){return e.destroy(),t.destroy(),n&&n.destroy(),s.fill(0),r}t.pbkdf2=function(e,t,r,n){let s,{c,dkLen:l,DK:u,PRF:d,PRFSalt:f}=a(e,t,r,n),h=new Uint8Array(4),p=(0,i.createView)(h),g=new Uint8Array(d.outputLen);for(let e=1,t=0;t<l;e++,t+=d.outputLen){let r=u.subarray(t,t+d.outputLen);p.setInt32(0,e,!1),(s=f._cloneInto(s)).update(h).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<c;e++){d._cloneInto(s).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return o(d,f,u,s,g)},t.pbkdf2Async=async function(e,t,r,n){let s,{c,dkLen:l,asyncTick:u,DK:d,PRF:f,PRFSalt:h}=a(e,t,r,n),p=new Uint8Array(4),g=(0,i.createView)(p),b=new Uint8Array(f.outputLen);for(let e=1,t=0;t<l;e++,t+=f.outputLen){let r=d.subarray(t,t+f.outputLen);g.setInt32(0,e,!1),(s=h._cloneInto(s)).update(p).digestInto(b),r.set(b.subarray(0,r.length)),await (0,i.asyncLoop)(c-1,u,()=>{f._cloneInto(s).update(b).digestInto(b);for(let e=0;e<r.length;e++)r[e]^=b[e]})}return o(f,h,d,s,b)}},60371:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;let n=r(85910),s=r(43814),i=BigInt(0),a=BigInt(36);function o(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,s.getBytes)((0,n.keccak256)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);function l(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>c[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}let u=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function d(e){if((0,s.assertArgument)("string"==typeof e,"invali
40d address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=o(e);return(0,s.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,s.assertArgument)(e.substring(2,4)===l(e),"bad icap checksum","address",e);let t=(function(e){e=e.toLowerCase();let t=i;for(let r=0;r<e.length;r++)t=t*a+u[e[r]];return t})(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return o("0x"+t)}(0,s.assertArgument)(!1,"invalid address","address",e)}t.getAddress=d,t.getIcapAddress=function(e){let t=BigInt(d(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+l("XE00"+t)+t}},61193:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isUri=t.ParsedMessage=void 0;let s=r(29910),i=r(5046),a=n(r(63287)),o=new s.grammar;class c{constructor(e){let t=new a.default.parser;t.callbacks["sign-in-with-ethereum"]=i.cb.signInWithEtherium,t.callbacks.oscheme=i.cb.oscheme,t.callbacks.domain=i.cb.domain,t.callbacks.LF=i.cb.lineno,t.callbacks["ex-title"]=i.cb.exTitle,t.callbacks["nb-title"]=i.cb.nbTitle,t.callbacks["ri-title"]=i.cb.riTitle,t.callbacks["re-title"]=i.cb.reTitle,t.callbacks.address=i.cb.address,t.callbacks.statement=i.cb.statement,t.callbacks["empty-statement"]=i.cb.emptyStatement,t.callbacks.version=i.cb.version,t.callbacks["chain-id"]=i.cb.chainId,t.callbacks.nonce=i.cb.nonce,t.callbacks["issued-at"]=i.cb.issuedAt,t.callbacks["expiration-time"]=i.cb.expirationTime,t.callbacks["not-before"]=i.cb.notBefore,t.callbacks["request-id"]=i.cb.requestId,t.callbacks.uri=i.cb.uri,t.callbacks["uri-r"]=i.cb.uriR,t.callbacks.resource=i.cb.resource,t.callbacks.scheme=i.cb.scheme,t.callbacks["userinfo-at"]=i.cb.userinfo,t.callbacks.host=i.cb.host,t.callbacks["IP-literal"]=i.cb.ipLiteral,t.callbacks.port=i.cb.port,t.callbacks["path-abempty"]=i.cb.pathAbempty,t.callbacks["path-absolute"]=i.cb.pathAbsolute,t.callbacks["path-rootless"]=i.cb.pathRootless,t.callbacks["path-empty"]=i.cb.pathEmpty,t.callbacks.query=i.cb.query,t.callbacks.fragment=i.cb.fragment,t.callbacks.IPv4address=i.cb.ipv4,t.callbacks.nodcolon=i.cb.nodcolon,t.callbacks.dcolon=i.cb.dcolon,t.callbacks.h16=i.cb.h16,t.callbacks.h16c=i.cb.h16,t.callbacks.h16n=i.cb.h16,t.callbacks.h16cn=i.cb.h16,t.callbacks["dec-octet"]=i.cb.decOctet,t.callbacks["dec-digit"]=i.cb.decDigit;let r={errors:[],lineno:1,scheme:void 0,domain:void 0,address:void 0,statement:void 0,uri:void 0,version:void 0,chainId:void 0,nonce:void 0,issuedAt:void 0,expirationTime:void 0,notBefore:void 0,requestId:void 0,resources:void 0,uriElements:{scheme:void 0,userinfo:void 0,host:void 0,port:void 0,path:void 0,query:void 0,fragment:void 0}},n=t.parse(o,0,e,r),s="";for(let e=0;e<r.errors.length;e+=1)s+=r.errors[e]+"\n";if(n.success||(s+=`Invalid message: ${JSON.stringify(n)}`),""!==s)throw Error(s);this.scheme=r.scheme,this.domain=r.domain,this.address=r.address,this.statement=r.statement,this.uri=r.uri,this.version=r.version,this.chainId=r.chainId,this.nonce=r.nonce,this.issuedAt=r.issuedAt,this.expirationTime=r.expirationTime,this.notBefore=r.notBefore,this.requestId=r.requestId,this.resources=r.resources,this.uriElements=r.uriElements}}t.ParsedMessage=c,t.isUri=e=>{let t=new a.default.parser;return t.callbacks["IP-literal"]=i.cb.ipLiteral,t.callbacks.IPv4address=i.cb.ipv4,t.callbacks.nodcolon=i.cb.nodcolon,t.callbacks.dcolon=i.cb.dcolon,t.callbacks.h16=i.cb.h16,t.callbacks.h16c=i.cb.h16,t.callbacks.h16n=i.cb.h16,t.callbacks.h16cn=i.cb.h16,t.callbacks["dec-octet"]=i.cb.decOctet,t.callbacks["dec-digit"]=i.cb.decDigit,t.parse(o,"uri-r",e,{errors:[]}).success}},61262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=t.hashAuthorization=void 0;let n=r(8651),s=r(85910),i=r(21287),a=r(43814);function o(e){return(0,a.assertArgument)("string"==typeof e.address,"invalid address for hashAuthorization","auth.address",e),(0,s.keccak256)((0,a.concat)(["0x05",(0,a.encodeRlp)([null!=e.chainId?(0,a.toBeArray)(e.chainId):"0x",(0,n.getAddress)(e.address),null!=e.nonce?(0,a.toBeArray)(e.n
40once):"0x"])]))}t.hashAuthorization=o,t.verifyAuthorization=function(e,t){return(0,i.recoverAddress)(o(e),t)}},61647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;let n=r(43814),s=r(78045),i=r(7528),a=r(90047);function o(e,t,r){let s=[];if(Array.isArray(r))s=r;else if(r&&"object"==typeof r){let e={};s=t.map(t=>{let s=t.localName;return(0,n.assert)(s,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),(0,n.assert)(!e[s],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),e[s]=!0,r[s]})}else(0,n.assertArgument)(!1,"invalid tuple value","tuple",r);(0,n.assertArgument)(t.length===s.length,"types/value length mismatch","tuple",r);let a=new i.Writer,o=new i.Writer,c=[];t.forEach((e,t)=>{let r=s[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=a.writeUpdatableValue();c.push(e=>{n(e+t)})}else e.encode(a,r)}),c.forEach(e=>{e(a.length)});let l=e.appendWriter(a);return l+e.appendWriter(o)}function c(e,t){let r=[],s=[],a=e.subReader(0);return t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readIndex(),s=a.subReader(r);try{i=t.decode(s)}catch(e){if((0,n.isError)(e,"BUFFER_OVERRUN"))throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if((0,n.isError)(e,"BUFFER_OVERRUN"))throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}if(void 0==i)throw Error("investigate");r.push(i),s.push(t.localName||null)}),i.Result.fromItems(r,s)}t.pack=o,t.unpack=c;class l extends i.Coder{coder;length;constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),(0,n.defineProperties)(this,{coder:e,length:t})}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){let r=s.Typed.dereference(t,"array");Array.isArray(r)||this._throwError("expected array value",r);let i=this.length;-1===i&&(i=r.length,e.writeValue(r.length)),(0,n.assertArgumentCount)(r.length,i,"coder array"+(this.localName?" "+this.localName:""));let a=[];for(let e=0;e<r.length;e++)a.push(this.coder);return o(e,a,r)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,n.assert)(t*i.WordSize<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*i.WordSize,length:e.dataLength}));let r=[];for(let e=0;e<t;e++)r.push(new a.AnonymousCoder(this.coder));return c(e,r)}}t.ArrayCoder=l},61844:function(e,t,r){"use strict";var n,s,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},a=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CBC=void 0;let o=r(6555);class c extends o.ModeOfOperation{constructor(e,t){if(super("ECC",e,c),n.set(this,void 0),s.set(this,void 0),t){if(t.length%16)throw TypeError("invalid iv size (must be 16 bytes)");i(this,n,new Uint8Array(t),"f")}else i(this,n,new Uint8Array(16),"f");i(this,s,this.iv,"f")}get iv(){return new Uint8Array(a(this,n,"f"))}encrypt(e){if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){for(let t=0;t<16;t++)a(this,s,"f")[t]^=e[r+t];i(this,s,this.aes.encrypt(a(this,s,"f")),"f"),t.set(a(this,s,"f"),r)}return t}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){let n=this.aes.decrypt(e.subarray(r,r+16));for(let i=0;i<16;i++)t[r+i]=n[i]^a(this,s,"f")[i],a(this,s,"f")[i]=e[r+i]}return t}}t.CBC=c,n=new WeakMap,s=new WeakMap},62565:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;let n=r(85940),s=r(22360),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),a=Uint8Array.from({length:16},(e,t)=>t),o=a.map(e=>(9*e+5)%16),c=[a],l=[o];for(let e=0;e<4;e++)for(let t of[c,l])t.push(t[e].map(e=>i[e]));let u=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),d=c.map((e,t)=>e.map(e=>u[t][e])),f=l.map((e,t)=>e.map(e=>u[t][e])),h=new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),p=new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),g=(e,t)=>e<<t|e>>>32-t;function b(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let m=new Uint32Array(16);class y extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:s}=this;return[e,t,r,n,s]}set(e,t,r,n,s){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,s=0|this.h1,i=s,a=0|this.h2,o=a,u=0|this.h3,y=u,x=0|this.h4,A=x;for(let e=0;e<5;e++){let t=4-e,w=h[e],v=p[e],E=c[e],P=l[e],k=d[e],O=f[e];for(let t=0;t<16;t++){let n=g(r+b(e,s,a,u)+m[E[t]]+w,k[t])+x|0;r=x,x=u,u=0|g(a,10),a=s,s=n}for(let e=0;e<16;e++){let r=g(n+b(t,i,o,y)+m[P[e]]+v,O[e])+A|0;n=A,A=y,y=0|g(o,10),o=i,i=r}}this.set(this.h1+a+y|0,this.h2+u+A|0,this.h3+x+n|0,this.h4+r+i|0,this.h0+s+o|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=y,t.ripemd160=(0,s.wrapConstructor)(()=>new y)},63287:(e,t,r)=>{e.exports={ast:r(55431),circular:r(85857),ids:r(41327),parser:r(56358),stats:r(18092),trace:r(90954),utils:r(55827),emitcss:r(57353),style:r(78694)}},64870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;let n=r(20796),s=r(92055),i=r(92055),a=r(76041),{bytesToNumberBE:o,hexToBytes:c}=s;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");let n=e[1],s=e.subarray(2,n+2);if(!n||s.length!==n)throw new r("Invalid signature integer: wrong length");if(128&s[0])throw new r("Invalid signature integer: negative");if(0===s[0]&&!(128&s[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:o(s),l:e.subarray(n+2)}},toSig(e){let{Err:r}=t.DER,n="string"==typeof e?c(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let s=n.length;if(s<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==s-2)throw new r("Invalid signature: incorrect length");let{d:i,l:a}=t.DER._parseInt(n.subarray(2)),{d:o,l:l}=t.DER._parseInt(a);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s:o}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),s=t(r(e.r)),i=n.length/2,a=s.length/2,o=r(i),c=r(a);return`30${r(a+i+4)}02${c}${s}02${o}${n}`}};let l=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,a.validateBasic)(e);s.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,o=t.toBytes||((e,t,n)=>{let i=t.toAffine();return s.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){let{a:n,b:s}=t,i=r.sqr(e),a=r.mul(i,e);return r.add(r.add(a,r.mul(e,n)),s)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&l<e&&e<t.n}function p(e){if(!h(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){let r,{allowedPrivateKeyLengths:a,nByteLength:o,wrapPrivateKey:c,n:l}=t;if(a&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=s.bytesToHex(e)),"string"!=typeof e||!a.includes(e.length))throw Error("Invalid key");e=e.padStart(2*o,"0")}try{r="bigint"==typeof e?e:s.bytesToNumberBE((0,i.ensureBytes)("private key",e,o))}catch(t){throw Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return c&&(r=n.mod(r,l)),p(r),r}let b=new Map;function m(e){if(!(e instanceof y))throw Error("ProjectivePoint expected")}class y{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof y)throw Error("projective point not allowed");let s=e=>r.eql(e,r.ZERO);return s(t)&&s(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){let t=y.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,b.delete(this)}
40assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let s=r.sqr(n),i=d(e);if(!r.eql(s,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){m(e);let{px:t,py:n,pz:s}=this,{px:i,py:a,pz:o}=e,c=r.eql(r.mul(t,o),r.mul(i,s)),l=r.eql(r.mul(n,o),r.mul(a,s));return c&&l}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,s=r.mul(n,f),{px:i,py:a,pz:o}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),h=r.mul(a,a),p=r.mul(o,o),g=r.mul(i,a);return g=r.add(g,g),u=r.mul(i,o),u=r.add(u,u),c=r.mul(e,u),l=r.mul(s,p),l=r.add(c,l),c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(s,u),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,g),l=r.add(l,d),p=r.mul(a,o),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),u=r.mul(p,h),u=r.add(u,u),new y(c,l,u=r.add(u,u))}add(e){m(e);let{px:n,py:s,pz:i}=this,{px:a,py:o,pz:c}=e,l=r.ZERO,u=r.ZERO,d=r.ZERO,h=t.a,p=r.mul(t.b,f),g=r.mul(n,a),b=r.mul(s,o),x=r.mul(i,c),A=r.add(n,s),w=r.add(a,o);A=r.mul(A,w),w=r.add(g,b),A=r.sub(A,w),w=r.add(n,i);let v=r.add(a,c);return w=r.mul(w,v),v=r.add(g,x),w=r.sub(w,v),v=r.add(s,i),l=r.add(o,c),v=r.mul(v,l),l=r.add(b,x),v=r.sub(v,l),d=r.mul(h,w),l=r.mul(p,x),d=r.add(l,d),l=r.sub(b,d),d=r.add(b,d),u=r.mul(l,d),b=r.add(g,g),b=r.add(b,g),x=r.mul(h,x),w=r.mul(p,w),b=r.add(b,x),x=r.sub(g,x),x=r.mul(h,x),w=r.add(w,x),g=r.mul(b,w),u=r.add(u,g),g=r.mul(v,w),l=r.mul(A,l),l=r.sub(l,g),g=r.mul(A,b),d=r.mul(v,d),new y(l,u,d=r.add(d,g))}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return A.wNAFCached(this,b,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){let n=y.ZERO;if(e===l)return n;if(p(e),e===u)return this;let{endo:s}=t;if(!s)return A.unsafeLadder(this,e);let{k1neg:i,k1:a,k2neg:o,k2:c}=s.splitScalar(e),d=n,f=n,h=this;for(;a>l||c>l;)a&u&&(d=d.add(h)),c&u&&(f=f.add(h)),h=h.double(),a>>=u,c>>=u;return i&&(d=d.negate()),o&&(f=f.negate()),f=new y(r.mul(f.px,s.beta),f.py,f.pz),d.add(f)}multiply(e){let n,s;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:a,k2neg:o,k2:c}=i.splitScalar(e),{p:l,f:u}=this.wNAF(a),{p:d,f:f}=this.wNAF(c);l=A.constTimeNegate(t,l),d=A.constTimeNegate(o,d),d=new y(r.mul(d.px,i.beta),d.py,d.pz),n=l.add(d),s=u.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,s=r}return y.normalizeZ([n,s])[0]}multiplyAndAddUnsafe(e,t,r){let n=y.BASE,s=(e,t)=>t!==l&&t!==u&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=s(this,t).add(s(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:s}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(s));let a=r.mul(t,e),o=r.mul(n,e),c=r.mul(s,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:a,y:o}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===u?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(y,this,e)}toHex(e=!0){return s.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);let x=t.nBitLength,A=(0,a.wNAF)(y,t.endo?Math.ceil(x/2):x);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:h}}function g(e,t){let r=e.ORDER,n=l;for(let e=r-u;e%d===l;e/=d)n+=u;let s=n,i=d<<s-u-u,a=i*d,o=(r-u)/a,c=(o-u)/d,p=a-u,g=e.pow(t,o),b=e.pow(t,(o+u)/d),m=(t,r)=>{let n=g,a=e.pow(r,p),o=e.sqr(a);o=e.mul(o,r);let l=e.mul(t,o);l=e.pow(l,c),l=e.mul(l,a),a=e.mul(l,r),o=e.mul(l,t);let f=e.mul(o,a);l=e.pow(f,i);let h=e.eql(l,e.ONE);a=e.mul(o,b),l=e.mul(f,n),o=e.cmov(a,o,h),f=e.cmov(l,f,h);for(let t=s;t>u;t--){let r=t-d;r=d<<r-u;let s=e.pow(f,r),i=e.eql(s,e.ONE);a=e.mul(o,n),n=e.mul(n,n),s=e.mul(f,n),o=e.cmov(a,o,i),f=e.cmov(s,f,i)}return{isValid:h,value:o}};if(e.ORDER%h===f){let r=(e.ORDER-f)/h,n=e.sqrt(e.neg(t));m=(t,s)=>{let i=e.sqr(s),a=e.mul(t,s);i=e.mul(i,a);let o=e.pow(i,r);o=e.mul(o,a);let c=e.mul(o,n),l=e.mul(e.sqr(o),s),u=e.eql(l,t),d=e.cmov(c,o,u);return{isValid:u,value:d}}}return m}t.weierstrassPoints=p,t.weierstrass=function(e){let r=function(e){let t=(0,a.validateBasic)(e);return s.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=r,d=o.BYTES+1,f=2*o.BYTES+1;function h(e){return n.mod(e,c)}function g(e){return n.invert(e,c)}let{ProjectivePoint:b,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:x}=p({...r,toBytes(e,t,r){let n=t.toAffine(),i=o.toBytes(n.x),a=s.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,o.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===d&&(2===r||3===r)){let e=s.bytesToNumberBE(n);if(!(l<e&&e<o.ORDER))throw Error("Point is not on curve");let t=y(e),i=o.sqrt(t);return(1&r)==1!=((i&u)===u)&&(i=o.neg(i)),{x:e,y:i}}if(t===f&&4===r)return{x:o.fromBytes(n.subarray(0,o.BYTES)),y:o.fromBytes(n.subarray(o.BYTES,2*o.BYTES))};throw Error(`Point of length ${t}
40 was invalid. Expected ${d} compressed bytes or ${f} uncompressed bytes`)}}),A=e=>s.bytesToHex(s.numberToBytesBE(e,r.nByteLength)),w=(e,t,r)=>s.bytesToNumberBE(e.slice(t,r));class v{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return new v(w(e=(0,i.ensureBytes)("compactSignature",e,2*t),0,t),w(e,t,2*t))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new v(r,n)}assertValidity(){if(!x(this.r))throw Error("r must be 0 < r < CURVE.n");if(!x(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new v(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:s}=this,a=k((0,i.ensureBytes)("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let c=2===s||3===s?t+r.n:t;if(c>=o.ORDER)throw Error("recovery id 2 or 3 invalid");let l=(1&s)==0?"02":"03",u=b.fromHex(l+A(c)),d=g(c),f=h(-a*d),p=h(n*d),m=b.BASE.multiplyAndAddUnsafe(u,f,p);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>c>>u}normalizeS(){return this.hasHighS()?new v(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return s.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return s.hexToBytes(this.toCompactHex())}toCompactHex(){return A(this.r)+A(this.s)}}function E(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof b}let P=r.bits2int||function(e){let t=s.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},k=r.bits2int_modN||function(e){return h(P(e))},O=s.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(l<=e&&e<O))throw Error(`bigint expected < 2^${r.nBitLength}`);return s.numberToBytesBE(e,r.nByteLength)}let B={lowS:r.lowS,prehash:!1},S={lowS:r.lowS,prehash:!1};return b.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return b.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(E(e))throw Error("first arg must be private key");if(!E(t))throw Error("second arg must be public key");return b.fromHex(t).multiply(m(e)).toRawBytes(r)},sign:function(e,t,n=B){let{seed:a,k2sig:d}=function(e,t,n=B){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:d}=r,{lowS:f,prehash:p,extraEntropy:y}=n;null==f&&(f=!0),e=(0,i.ensureBytes)("msgHash",e),p&&(e=(0,i.ensureBytes)("prehashed msgHash",a(e)));let A=k(e),w=m(t),E=[T(w),T(A)];if(null!=y){let e=!0===y?d(o.BYTES):y;E.push((0,i.ensureBytes)("extraEntropy",e))}return{seed:s.concatBytes(...E),k2sig:function(e){var t;let r=P(e);if(!x(r))return;let n=g(r),s=b.BASE.multiply(r).toAffine(),i=h(s.x);if(i===l)return;let a=h(n*h(A+i*w));if(a===l)return;let o=2*(s.x!==i)|Number(s.y&u),d=a;return f&&a>c>>u&&(d=(t=a)>c>>u?h(-t):t,o^=1),new v(i,d,o)}}}(e,t,n);return s.createHmacDrbg(r.hash.outputLen,r.nByteLength,r.hmac)(a,d)},verify:function(e,n,s,a=S){let o,c;if(n=(0,i.ensureBytes)("msgHash",n),s=(0,i.ensureBytes)("publicKey",s),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:l,prehash:u}=a;try{if("string"==typeof e||e instanceof Uint8Array)try{c=v.fromDER(e)}catch(r){if(!(r instanceof t.DER.Err))throw r;c=v.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;c=new v(t,r)}else throw Error("PARSE");o=b.fromHex(s)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(l&&c.hasHighS())return!1;u&&(n=r.hash(n));let{r:d,s:f}=c,p=k(n),m=g(f),y=h(p*m),x=h(d*m),A=b.BASE.multiplyAndAddUnsafe(o,y,x)?.toAffine();return!!A&&h(A.x)===d},ProjectivePoint:b,Signature:v,utils:{isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{let e=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=b.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invali
40d opts");let r=g(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let s,i,a,o,c,l,u,d;s=e.sqr(n),s=e.mul(s,t.Z),i=e.sqr(s),i=e.add(i,s),a=e.add(i,e.ONE),a=e.mul(a,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(a),l=e.sqr(o),c=e.mul(l,t.A),i=e.add(i,c),i=e.mul(i,a),l=e.mul(l,o),c=e.mul(l,t.B),i=e.add(i,c),u=e.mul(s,a);let{isValid:f,value:h}=r(i,l);d=e.mul(s,n),d=e.mul(d,h),u=e.cmov(u,a,f),d=e.cmov(d,h,f);let p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),{x:u=e.div(u,o),y:d}}}},65028:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(13933);class s extends n.C{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function i(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new s({value:e});let[r,n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,s,i]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${s}.${i}`));(n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}},65298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;let n=r(43814),s=r(1992),i=r(16887),a=r(96854),o=r(80716),c="84842078b09946638c03157f83405213";class l extends o.WebSocketProvider{projectId;projectSecret;constructor(e,t){let r=new u(e,t),s=r._getConnection();(0,n.assert)(!s.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"}),super(s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),r._network),(0,n.defineProperties)(this,{projectId:r.projectId,projectSecret:r.projectSecret})}isCommunityResource(){return this.projectId===c}}t.InfuraWebSocketProvider=l;class u extends a.JsonRpcProvider{projectId;projectSecret;constructor(e,t,r){null==e&&(e="mainnet");let s=i.Network.from(e);null==t&&(t=c),null==r&&(r=null),super(u.getRequest(s,t,r),s,{staticNetwork:s}),(0,n.defineProperties)(this,{projectId:t,projectSecret:r})}_getProvider(e){try{return new u(e,this.projectId,this.projectSecret)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.projectId===c}static getWebSocketProvider(e,t){return new l(e,t)}static getRequest(e,t,r){null==t&&(t=c),null==r&&(r=null);let i=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":case"base-goerli":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bsc-mainnet.infura.io";case"bnbt":return"bsc-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return i.allowGzip=!0,r&&i.setCredentials("",r),t===c&&(i.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("InfuraProvider"),!0)),i}}t.InfuraProvider=u},66146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;let n=r(78045),s=r(7528);class i extends s.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){let r=n.Typed.dereference(t,"bool");return e.writeValue(+!!r)}decode(e){return!!e.readValue()}}t.BooleanCoder=i},66522:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;let n=r(43814),s=r(76927),i=r(89455);t.decodeOwlA=function(e,t){let r=(0,i.decodeOwl)(e).join(",");return t.split(/,/g).forEach(e=>{let i=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,n.assertArgument)(null!==i,"internal error parsing accents","accents",t);let a=0,o=(0,s.decodeBits)(parseInt(i[3]),i[4]),c=parseInt(i[2]),l=RegExp(`([${i[1]}])`,"g");r=r.replace(l,(e,t)=>(0==--o[a]&&(t=String.fromCharCode(t.charCodeAt(0),c),a++),t))}),r.split(",")}},67164:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;let n=r(43814),s=r(60371);function i(e){return e&&"function"==typeof e.getAddress}async function a(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&((0,n.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,n.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,s.getAddress)(r)}t.isAddressable=i,t.isAddress=function(e){try{return(0,s.getAddress)(e),!0}catch(e){}return!1},t.resolveAddress=function(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,s.getAddress)(e):((0,n.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),a(e,t.resolveName(e))):i(e)?a(e,e.getAddress()):e&&"function"==typeof e.then?a(e,e):void(0,n.assertArgument)(!1,"unsupported addressable value","target",e)}},67417:function(e,t,r){"use strict";var n,s,i,a=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CTR=void 0;let c=r(6555);class l extends c.ModeOfOperation{constructor(e,t){super("CTR",e,l),n.set(this,void 0),s.set(this,void 0),i.set(this,void 0),a(this,i,new Uint8Array(16),"f"),o(this,i,"f").fill(0),a(this,n,o(this,i,"f"),"f"),a(this,s,16,"f"),null==t&&(t=1),"number"==typeof t?this.setCounterValue(t):this.setCounterBytes(t)}get counter(){return new Uint8Array(o(this,i,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)o(this,i,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw TypeError("invalid counter initial Uint8Array value length");o(this,i,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(255===o(this,i,"f")[e])o(this,i,"f")[e]=0;else{o(this,i,"f")[e]++;break}}encrypt(e){var t,r;let c=new Uint8Array(e);for(let e=0;e<c.length;e++)16===o(this,s,"f")&&(a(this,n,this.aes.encrypt(o(this,i,"f")),"f"),a(this,s,0,"f"),this.increment()),c[e]^=o(this,n,"f")[a(this,s,(r=o(this,s,"f"),t=r++,r),"f"),t];return c}decrypt(e){return this.encrypt(e)}}t.CTR=l,n=new WeakMap,s=new WeakMap,i=new WeakMap},67598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;let n=r(37979),s=r(43814);class i{name;constructor(e){(0,n.defineProperties)(this,{name:e})}clone(){return new i(this.name)}}t.NetworkPlugin=i;class a extends i{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);let r={effectiveBlock:e};function i(e,n){let i=(t||{})[e];null==i&&(i=n),(0,s.assertArgument)("number"==typeof i,`invalud value for ${e}`,"costs",t),r[e]=i}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),(0,n.defineProperties)(this,r)}clone(){return new a(this.effectiveBlock,this)}}t.GasCostPlugin=a;class o extends i{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,n.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new o(this.address,this.targetNetwork)}}t.EnsPlugin=o;class c extends i{#ea;get feeDataFunc(){return this.#ea}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#ea=e}async getFeeData(e){return await this.#ea(e)}clone(){return new c(this.#ea)}}t.FeeDataNetworkPlugin=c;class l extends i{#eo;#ec;get url(){return this.#eo}get processFunc(){return this.#ec}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#eo=e,this.#ec=t}clone(){return this}}t.FetchUrlFeeDataNetworkPlugin=l},68392:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.BlockscoutProvider=void 0;let n=r(43814),s=r(16887),i=r(96854);class a extends i.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");let r=s.Network.from(e);null==t&&(t=null),super(a.getRequest(r),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new a(e,this.apiKey)}catch(e){}return super._getProvider(e)}isCommunityResource(){return null===this.apiKey}getRpcRequest(e){let t=super.getRpcRequest(e);return t&&"eth_estimateGas"===t.method&&1==t.args.length&&(t.args=t.args.slice(),t.args.push("latest")),t}getRpcError(e,t){let r=t?t.error:null;if(r&&-32015===r.code&&!(0,n.isHexString)(r.data||"",!0)){let e={"assert(false)":"01","arithmetic underflow or overflow":"11","division or modulo by zero":"12","out-of-bounds array access; popping on an empty array":"31","out-of-bounds access of an array or bytesN":"32"},t="";"VM execution error."===r.message?t=e[r.data]||"":e[r.message||""]&&(t=e[r.message||""]),t&&(r.message+=` (reverted: ${r.data})`,r.data="0x4e487b7100000000000000000000000000000000000000000000000000000000000000"+t)}else r&&-32e3===r.code&&"wrong transaction nonce"===r.message&&(r.message+=" (nonce too low)");return super.getRpcError(e,t)}static getRequest(e){let t=new n.FetchRequest(function(e){switch(e){case"mainnet":return"https://eth.blockscout.com/api/eth-rpc";case"sepolia":return"https://eth-sepolia.blockscout.com/api/eth-rpc";case"holesky":return"https://eth-holesky.blockscout.com/api/eth-rpc";case"classic":return"https://etc.blockscout.com/api/eth-rpc";case"arbitrum":return"https://arbitrum.blockscout.com/api/eth-rpc";case"base":return"https://base.blockscout.com/api/eth-rpc";case"base-sepolia":return"https://base-sepolia.blockscout.com/api/eth-rpc";case"matic":return"https://polygon.blockscout.com/api/eth-rpc";case"optimism":return"https://optimism.blockscout.com/api/eth-rpc";case"optimism-sepolia":return"https://optimism-sepolia.blockscout.com/api/eth-rpc";case"xdai":return"https://gnosis.blockscout.com/api/eth-rpc"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name));return t.allowGzip=!0,t}}t.BlockscoutProvider=a},69620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;let n=r(93061),s=r(43814),i=r(96854);class a{#el;#eu;get filter(){return JSON.parse(this.#eu)}#ed;#ef;#eh;constructor(e,t){this.#el=e,this.#eu=JSON.stringify(t),this.#ed=null,this.#ef=null,this.#eh=null}start(){this.#ed=this.#el.send("eth_subscribe",this.filter).then(e=>(this.#el._register(e,this),e))}stop(){this.#ed.then(e=>{this.#el.destroyed||this.#el.send("eth_unsubscribe",[e])}),this.#ed=null}pause(e){(0,s.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#ef=!!e}resume(){this.#ef=null}_handleMessage(e){if(null!=this.#ed&&null===this.#ef){let t=this.#eh;t=null==t?this._emit(this.#el,e):t.then(async()=>{await this._emit(this.#el,e)}),this.#eh=t.then(()=>{this.#eh===t&&(this.#eh=null)})}}async _emit(e,t){throw Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=a;class o extends a{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=o;class c extends a{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=c;class l extends a{#ep;get logFilter(){return JSON.parse(this.#ep)}constructor(e,t){super(e,["logs",t]),this.#ep=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=l;class u extends i.JsonRpcApiProvider{#eg;#eb;#em;constructor(e,t){let r=Object.assign({},null!=t?t:{});(0,s.assertArgument)(null==r.batchMaxCount||1===r.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),r.batchMaxCount=1,null==r.staticNetwork&&(r.staticNetwork=!0),super(e,r),this.#eg=new Map,this.#eb=new Map,this.#em=new Map}
40_getSubscriber(e){switch(e.type){case"close":return new n.UnmanagedSubscriber("close");case"block":return new o(this);case"pending":return new c(this);case"event":return new l(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new n.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){this.#eb.set(e,t);let r=this.#em.get(e);if(r){for(let e of r)t._handleMessage(e);this.#em.delete(e)}}async _send(e){(0,s.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);let t=new Promise((t,r)=>{this.#eg.set(e.id,{payload:e,resolve:t,reject:r})});return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){let t=JSON.parse(e);if(t&&"object"==typeof t&&"id"in t){let e=this.#eg.get(t.id);if(null==e)return void this.emit("error",(0,s.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));this.#eg.delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,s.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));let e=t.params.subscription,r=this.#eb.get(e);if(r)r._handleMessage(t.params.result);else{let r=this.#em.get(e);null==r&&(r=[],this.#em.set(e,r)),r.push(t.params.result)}}}async _write(e){throw Error("sub-classes must override this")}}t.SocketProvider=u},70079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;let n=r(8651),s=r(47071),i=r(15953),a=r(21287),o=r(43814);class c extends i.AbstractSigner{address;#ey;constructor(e,t){super(t),(0,o.assertArgument)(e&&"function"==typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#ey=e;let r=(0,a.computeAddress)(this.signingKey.publicKey);(0,o.defineProperties)(this,{address:r})}get signingKey(){return this.#ey}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new c(this.#ey,e)}async signTransaction(e){e=(0,i.copyRequest)(e);let{to:t,from:r}=await (0,o.resolveProperties)({to:e.to?(0,n.resolveAddress)(e.to,this):void 0,from:e.from?(0,n.resolveAddress)(e.from,this):void 0});null!=t&&(e.to=t),null!=r&&(e.from=r),null!=e.from&&((0,o.assertArgument)((0,n.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);let s=a.Transaction.from(e);return s.signature=this.signingKey.sign(s.unsignedHash),s.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,s.hashMessage)(e)).serialized}authorizeSync(e){(0,o.assertArgument)("string"==typeof e.address,"invalid address for authorizeSync","auth.address",e);let t=this.signingKey.sign((0,s.hashAuthorization)(e));return Object.assign({},{address:(0,n.getAddress)(e.address),nonce:(0,o.getBigInt)(e.nonce||0),chainId:(0,o.getBigInt)(e.chainId||0)},{signature:t})}async authorize(e){return e=Object.assign({},e,{address:await (0,n.resolveAddress)(e.address,this)}),this.authorizeSync(await this.populateAuthorization(e))}async signTypedData(e,t,r){let n=await s.TypedDataEncoder.resolveNames(e,t,r,async e=>{(0,o.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});let t=await this.provider.resolveName(e);return(0,o.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t});return this.signingKey.sign(s.TypedDataEncoder.hash(n.domain,t,n.value)).serialized}}t.BaseWallet=c},70366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;let n=r(43814),s=r(1992),i=r(16887),a=r(96854);function o(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,n.assertArgument)(!1,"unsupported network","network",e)}class c extends a.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);
40null==t&&(t=o(r.name)),super(c.getRequest(r,t),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===o(this._network.name)}static getRequest(e,t){null==t&&(t=o(e.name));let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return r.allowGzip=!0,t===o(e.name)&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("ChainstackProvider"),!0)),r}}t.ChainstackProvider=c},70721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;let n=r(47071),s=r(43814),i=r(89455),a=r(8406);class o extends a.Wordlist{#n;#ex;constructor(e,t,r){super(e),this.#n=t,this.#ex=r,this.#eA=null}get _data(){return this.#n}_decodeWords(){return(0,i.decodeOwl)(this.#n)}#eA;#ew(){if(null==this.#eA){let e=this._decodeWords();if((0,n.id)(e.join("\n")+"\n")!==this.#ex)throw Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#eA=e}return this.#eA}getWord(e){let t=this.#ew();return(0,s.assertArgument)(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return this.#ew().indexOf(e)}}t.WordlistOwl=o},71938:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.isUri=t.ParsedMessage=void 0;let i=r(61193);Object.defineProperty(t,"ParsedMessage",{enumerable:!0,get:function(){return i.ParsedMessage}});let a=r(61193);Object.defineProperty(t,"isUri",{enumerable:!0,get:function(){return a.isUri}}),s(r(75503),t)},73017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;let n=r(11558),s=!1,i=function(e){return new Uint8Array((0,n.randomBytes)(e))},a=i;function o(e){return a(e)}t.randomBytes=o,o._=i,o.lock=function(){s=!0},o.register=function(e){if(s)throw Error("randomBytes is locked");a=e},Object.freeze(o)},75503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntegerNumber=t.isEIP55Address=void 0;let n=r(16701),s=r(53311);t.isEIP55Address=e=>{if(42!=e.length)return!1;let t=`${e}`.toLowerCase().replace("0x",""),r=(0,s.bytesToHex)((0,n.keccak_256)(t)),i="0x";for(let e=0;e<t.length;e++)parseInt(r[e],16)>=8?i+=t[e].toUpperCase():i+=t[e];return e===i},t.parseIntegerNumber=e=>{let t=parseInt(e);if(isNaN(t)||t===1/0)throw Error("Invalid number.");return t}},76041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;let n=r(20796),s=r(92055),i=BigInt(0),a=BigInt(1);t.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,s=t;
40for(;r>i;)r&a&&(n=n.add(s)),s=s.double(),r>>=a;return n},precomputeWindow(e,t){let{windows:r,windowSize:s}=n(t),i=[],a=e,o=a;for(let e=0;e<r;e++){o=a,i.push(o);for(let e=1;e<s;e++)o=o.add(a),i.push(o);a=o.double()}return i},wNAF(t,s,i){let{windows:o,windowSize:c}=n(t),l=e.ZERO,u=e.BASE,d=BigInt(2**t-1),f=2**t,h=BigInt(t);for(let e=0;e<o;e++){let t=e*c,n=Number(i&d);i>>=h,n>c&&(n-=f,i+=a);let o=t+Math.abs(n)-1,p=e%2!=0,g=n<0;0===n?u=u.add(r(p,s[t])):l=l.add(r(g,s[o]))}return{p:l,f:u}},wNAFCached(e,t,r,n){let s=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,s),1!==s&&t.set(e,n(i))),this.wNAF(s,i,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,s.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}},76794:(e,t)=>{"use strict";let r,n,s,i,a,o,c,l,u,d,f,h,p,g,b,m,y=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function x(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),s=1,i=[0,1];for(let e=1;e<n;e++)i.push(s+=r());let a=r(),o=t;t+=a;let c=0,l=0;function u(){return 0==c&&(l=l<<8|e[t++],c=8),l>>--c&1}let d=0x80000000-1,f=0;for(let e=0;e<31;e++)f=f<<1|u();let h=[],p=0,g=0x80000000;for(;;){let e=Math.floor(((f-p+1)*s-1)/g),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<i[n]?r=n:t=n}if(0==t)break;h.push(t);let a=p+Math.floor(g*i[t]/s),o=p+Math.floor(g*i[t+1]/s)-1;for(;((a^o)&0x40000000)==0;)f=f<<1&d|u(),a=a<<1&d,o=o<<1&d|1;for(;a&~o&0x20000000;)f=0x40000000&f|f<<1&d>>>1|u(),a=a<<1^0x40000000,o=(0x40000000^o)<<1|0x40000001;p=a,g=1+o-a}let b=n-4;return h.map(t=>{switch(t-b){case 3:return b+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return b+256+(e[o++]<<8|e[o++]);case 1:return b+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>
403);for(let s=0,i=0,a=0,o=0;s<r;s++)o=o<<6|t[e.charCodeAt(s)],(a+=6)>=8&&(n[i++]=o>>(a-=8));return n}(e)),r=0,()=>t[r++]}function A(e,t=0){let r=[];for(;;){let n=e(),s=e();if(!s)break;t+=n;for(let e=0;e<s;e++)r.push(t+e);t+=s+1}return r}function w(e){return E(()=>{let t=A(e);if(t.length)return t})}function v(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),s=E(t);return P(s.length,1+e,t).flatMap((e,t)=>{let[i,...a]=e;return Array(s[t]).fill().map((e,t)=>{let s=t*n;return[i+t*r,a.map(e=>e+s)]})})}(r,e))}for(;;){var r,n;let s=e()-1;if(s<0)break;t.push((r=s,P(1+(n=e)(),1+r,n).map(e=>[e[0],e.slice(1)])))}return t.flat()}function E(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function P(e,t,r){let n=Array(e).fill().map(()=>[]);for(let s=0;s<t;s++)(function(e,t){let r=Array(e);for(let s=0,i=0;s<e;s++){var n;r[s]=i+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function k(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function O(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}function T(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}function B(e,t){let r=e.length,n=r-t.length;for(let s=0;0==n&&s<r;s++)n=e[s]-t[s];return n}let S=55204;function C(e){return e>>24&255}function N(e){return 0xffffff&e}function I(e){return e>=44032&&e<S}function R(e){r||function(){let e=x
vendor: 7,457 bytes, line 40
40("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");f
40or(let[t,a]of(r=new Map(w(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),n=new Set(A(e)),s=new Map,i=new Map,v(e))){if(!n.has(t)&&2==a.length){let[e,r]=a,n=i.get(e);n||(n=new Map,i.set(e,n)),n.set(r,t)}s.set(t,a.reverse())}}();let t=[],a=[],o=!1;function c(e){let n=r.get(e);n&&(o=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(I(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,s=e%28;c(4352+t),c(4449+n),s>0&&c(4519+s)}else{let e=s.get(r);e?a.push(...e):c(r)}if(!a.length)break;r=a.pop()}if(o&&t.length>1){let e=C(t[0]);for(let r=1;r<t.length;r++){let n=C(t[r]);if(0==n||e<=n){e=n;continue}let s=r-1;for(;;){let r=t[s+1];if(t[s+1]=t[s],t[s]=r,!s||(e=C(t[--s]))<=n)break}e=C(t[r])}}return t}function L(e){return R(e).map(N)}function M(e){return function(e){let t=[],r=[],n=-1,s=0;for(let a of e){let e=C(a),o=N(a);if(-1==n)0==e?n=o:t.push(o);else if(s>0&&s>=e)0==e?(t.push(n,...r),r.length=0,n=o):r.push(o),s=e;else{let a=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;{if(I(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);let r=i.get(e);return r&&(r=r.get(t))?r:-1}}(n,o);a>=0?n=a:0==s&&0==e?(t.push(n),n=o):(r.push(o),s=e)}}return n>=0&&t.push(n,...r),t}(R(e))}let U=e=>Array.from(e);function F(e,t){return e.P.has(t)||e.Q.has(t)}class D extends Array{get is_emoji(){return!0}}function _(){let e,t;if(a)return;let r=x("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"),n=()=>A(r),s=()=>new Set(n()),i=(e,t)=>t.forEach(t=>e.add(t));a=new Map(v(r)),o=s(),c=n(),l=new Set(n().map(e=>c[e])),c=new Set(c),u=s(),d=s();let y=w(r),P=r(),k=()=>{let e=new Set;
40return n().forEach(t=>i(e,y[t])),i(e,n()),e};f=E(e=>{let t=E(r).map(e=>e+96);if(t.length){let n=e>=P;t[0]-=32,t=T(t),n&&(t=`Restricted[${t}]`);let s=k();return{N:t,P:s,Q:k(),M:!r(),R:n}}}),h=s(),p=new Map;let O=n().concat(U(h)).sort((e,t)=>e-t);for(let{V:e,M:t}of(O.forEach((e,t)=>{let n=r(),s=O[t]=n?O[t-n]:{V:[],M:new Map};s.V.push(e),h.has(e)||p.set(e,s)}),new Set(p.values()))){let r=[];for(let t of e){let e=f.filter(e=>F(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),i(n.G,e)}let n=r.flatMap(e=>U(e.G));for(let{G:e,V:s}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of s)t.set(e,r)}}g=new Set;let S=new Set,C=e=>g.has(e)?S.add(e):g.add(e);for(let e of f){for(let t of e.P)C(t);for(let t of e.Q)C(t)}for(let e of g)p.has(e)||S.has(e)||p.set(e,1);for(let n of(i(g,L(g)),b=(e=[],t=A(r),function t({S:r,B:n},s,i){if(!(4&r)||i!==s[s.length-1])for(let a of(2&r&&(i=s[s.length-1]),1&r&&e.push(s),n))for(let e of a.Q)t(a,[...s,e],i)}(function e(n){return{S:r(),B:E(()=>{let n=A(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>D.from(e)).sort(B),m=new Map,b)){let e=[m];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function j(e){return($(e)?"":`${H(G([e]))} `)+k(e)}function H(e){return`"${e}"\u200E`}function G(e,t=1/0,r=k){let n=[];z(e[0])&&n.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let s=0,i=e.length;for(let t=0;t<i;t++){let i=e[t];
40$(i)&&(n.push(T(e.slice(s,t))),n.push(r(i)),s=t+1)}return n.push(T(e.slice(s,i))),n.join("")}function z(e){return _(),c.has(e)}function $(e){return _(),u.has(e)}function V(e,t,r){if(!e)return[];_();let n=0;return e.split(".").map(e=>{let s=O(e),i={input:s,offset:n};n+=s.length+1;try{let e,n=i.tokens=W(s,t,r),a=n.length;if(!a)throw Error("empty label");let o=i.output=n.flat();for(let e=o.lastIndexOf(95);e>0;)if(95!==o[--e])throw Error("underscore allowed only at start");if(!(i.emoji=a>1||n[0].is_emoji)&&o.every(e=>e<128)){if(o.length>=4&&45==o[2]&&45==o[3])throw Error(`invalid label extension: "${T(o.slice(0,4))}"`);e="ASCII"}else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(c.has(o[0]))throw q("leading combining mark");for(let e=1;e<a;e++){let t=n[e];if(!t.is_emoji&&c.has(t[0]))throw q(`emoji + combining mark: "${T(n[e-1])} + ${G([t[0]])}"`)}!function(e){let t=e[0],r=y.get(t);if(r)throw q(`leading ${r}`);let n=e.length,s=-1;for(let i=1;i<n;i++){t=e[i];let n=y.get(t);if(n){if(s==i)throw q(`${r} + ${n}`);s=i+1,r=n}}if(s==n)throw q(`trailing ${r}`)}(o);let r=U(new Set(t)),[s]=function(e){let t=f;for(let r of e){let e=t.filter(e=>F(e,r));if(!e.length)if(f.some(e=>F(e,r)))throw Q(t[0],r);else throw J(r);if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!F(e,r))throw Q(e,r);if(e.M){let e=L(t);for(let t=1,r=e.length;t<r;t++)if(l.has(e[t])){let n=t+1;for(let s;n<r&&l.has(s=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==s)throw Error(`duplicate non-spacing marks: ${j(s)}`);if(n-t>4)throw Error(`excessive non-spacing marks: ${H(G(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(s,t),function(e,t){let r,n=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):U(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>F(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(s,r),e=s.N}else e="Emoji"}i.type=e}catch(e){i.error=e}return i})}function K(e){return e.map(({input:t,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==e.length?n:`Invalid label ${H(G(t,63))}: ${n}`)}return T(n)}).join(".")}function J(e){return Error(`disallowed character: ${j(e)}`)}function Q(e,t){let r=j(t),n=f.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function q(e){return Error(`illegal placement: ${e}`)}function W(e,t,r){let n=[],s=[];for(e=e.slice().reverse();e.length;){let i=Z(e);if(i)s.length&&(n.push(t(s)),s=[]),n.push(r(i));else{let t=e.pop();if(g.has(t))s.push(t);else{let e=a.get(t);if(e)s.push(...e);else if(!o.has(t))throw J(t)}}}return s.length&&n.push(t(s)),n}function Y(e){return e.filter(e=>65039!=e)}function Z(e,t){let r,n=m,s=e.length;for(;s&&(n=n.get(e[--s]));){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}let X="valid",ee="mapped",et="ignored";function er(e){return e==X||e==ee}function en(e){return e.some(e=>d.has(e))}function es(e){for(let t=0;t<e.length;t++)if(e[t].type==X){let r=t+1;for(;r<e.length&&e[r].type==X;)r++;e.splice(t,r-t,{type:X,cps:e.slice(t,r).flatMap(e=>e.cps)})}return e}t.ens_beautify=function(e){let t=V(e,M,e=>e);for(let{type:e,output:r,error:n}of t){if(n)break;"Greek"!==e&&function(e,t,r){let n=0;for(;;){let t=e.indexOf(958,n);if(t<0)break;e[t]=926,n=t+1}}(r,958,926)}return K(t)},t.ens_emoji=function(){return _(),b.map(e=>e.slice())},t.ens_normalize=function(e){return K(V(e,M,Y))},t.ens_normalize_fragment=function(e,t){_();let r=t?L:M;return e.split(".").map(e=>T(W(O(e),r,Y).flat())).join(".")},t.ens_split=function(e,t){return V(e,M,t?e=>e.slice():Y)},t.ens_tokenize=function e(t,{nf:r=!0}={}){_();let n=O(t).reverse(),s=[],i=[];for(;n.length;){let e=Z(n,s);
40if(e)i.push({type:"emoji",emoji:e.slice(),input:s,cps:Y(e)}),s=[];else{let e=n.pop();if(46==e)i.push({type:"stop",cp:e});else if(g.has(e))i.push({type:X,cps:[e]});else if(o.has(e))i.push({type:et,cp:e});else{let t=a.get(e);t?i.push({type:ee,cp:e,cps:t.slice()}):i.push({type:"disallowed",cp:e})}}}if(r)for(let t=0,r=-1;t<i.length;t++){let n=i[t];if(er(n.type))if(en(n.cps)){let n=t+1;for(let e=n;e<i.length;e++){let{type:t,cps:r}=i[e];if(er(t)){if(!en(r))break;n=e+1}else if(t!==et)break}r<0&&(r=t);let s=i.slice(r,n),a=s.flatMap(e=>er(e.type)?e.cps:[]),o=M(a);B(o,a)?(i.splice(r,n-r,{type:"nfc",input:a,cps:o,tokens0:es(s),tokens:e(T(o),{nf:!1})}),t=r):t=n-1,r=-1}else r=t;else n.type!==et&&(r=-1)}return es(i)},t.is_combining_mark=z,t.nfc=M,t.nfd=L,t.safe_str_from_cps=G,t.should_escape=$},76927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0,t.decodeBits=function(e,t){let r=(1<<e)-1,n=[],s=0,i=0,a=0;for(let o=0;o<t.length;o++)for(s=s<<6|")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".indexOf(t[o]),i+=6;i>=e;){let t=s>>i-e;s&=(1<<i-e)-1,i-=e,0===t?a+=r:(n.push(t+a),a=0)}return n}},76985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;let n=r(51930),s=r(25265),i=r(51930);function a(e,t,r){let n=0;for(let s=0;s<r;s++)n=256*n+e[t+s];return n}function o(e,t,r,n){let i=[];for(;r<t+1+n;){let a=c(e,r);i.push(a.result),r+=a.consumed,(0,s.assert)(r<=t+1+n,"child data too short","BUFFER_OVERRUN",{buffer:e,length:n,offset:t})}return{consumed:1+n,result:i}}function c(e,t){(0,s.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});let r=t=>{(0,s.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let n=e[t]-247;r(t+1+n);let s=a(e,t+1,n);return r(t+1+n+s),o(e,t,t+1+n,n+s)}if(e[t]>=192){let n=e[t]-192;return r(t+1+n),o(e,t,t+1,n)}if(e[t]>=184){let s=e[t]-183;r(t+1+s);let i=a(e,t+1,s);r(t+1+s+i);let o=(0,n.hexlify)(e.slice(t+1+s,t+1+s+i));return{consumed:1+s+i,result:o}}if(e[t]>=128){let s=e[t]-128;r(t+1+s);let i=(0,n.hexlify)(e.slice(t+1,t+1+s));return{consumed:1+s,result:i}}return{consumed:1,result:function(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}(e[t])}}t.decodeRlp=function(e){let t=(0,i.getBytes)(e,"data"),r=c(t,0);return(0,s.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},77014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;let n=r(85910),s=r(43814),i=r(11498);function a(e){return(1<<e)-1<<8-e&255}function o(e,t){(0,s.assertNormalize)("NFKD"),null==t&&(t=i.LangEn.wordlist());let r=t.split(e);(0,s.assertArgument)(r.length%3==0&&r.length>
40=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");let o=new Uint8Array(Math.ceil(11*r.length/8)),c=0;for(let e=0;e<r.length;e++){let n=t.getWordIndex(r[e].normalize("NFKD"));(0,s.assertArgument)(n>=0,`invalid mnemonic word at index ${e}`,"mnemonic","[ REDACTED ]");for(let e=0;e<11;e++)n&1<<10-e&&(o[c>>3]|=1<<7-c%8),c++}let l=32*r.length/3,u=a(r.length/3),d=(0,s.getBytes)((0,n.sha256)(o.slice(0,l/8)))[0]&u;return(0,s.assertArgument)(d===(o[o.length-1]&u),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,s.hexlify)(o.slice(0,l/8))}function c(e,t){(0,s.assertArgument)(e.length%4==0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=i.LangEn.wordlist());let r=[0],o=11;for(let t=0;t<e.length;t++)o>8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],o-=8):(r[r.length-1]<<=o,r[r.length-1]|=e[t]>>8-o,r.push(e[t]&((1<<8-o)-1&255)),o+=3);let c=e.length/4,l=parseInt((0,n.sha256)(e).substring(2,4),16)&a(c);return r[r.length-1]<<=c,r[r.length-1]|=l>>8-c,t.join(r.map(e=>t.getWord(e)))}let l={};class u{phrase;password;wordlist;entropy;constructor(e,t,r,n,a){null==n&&(n=""),null==a&&(a=i.LangEn.wordlist()),(0,s.assertPrivate)(e,l,"Mnemonic"),(0,s.defineProperties)(this,{phrase:r,password:n,wordlist:a,entropy:t})}computeSeed(){let e=(0,s.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,n.pbkdf2)((0,s.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,r){let n=o(e,r);return e=c((0,s.getBytes)(n),r),new u(l,n,e,t,r)}static fromEntropy(e,t,r){let n=(0,s.getBytes)(e,"entropy"),i=c(n,r);return new u(l,(0,s.hexlify)(n),i,t,r)}static entropyToPhrase(e,t){return c((0,s.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return o(e,t)}static isValidMnemonic(e,t){try{return o(e,t),!0}catch(e){}return!1}}t.Mnemonic=u},77223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;let n=r(37979);class s{filter;emitter;#ev;constructor(e,t,r){this.#ev=t,(0,n.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#ev&&await this.emitter.off(this.filter,this.#ev)}}t.EventPayload=s},78045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;let n=r(43814),s={};function i(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new c(s,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function a(e,t){return new c(s,`bytes${t||""}`,e,{size:t})}let o=Symbol.for("_ethers_typed");class c{type;value;#eE;_typedSymbol;
40constructor(e,t,r,i){null==i&&(i=null),(0,n.assertPrivate)(s,e,"Typed"),(0,n.defineProperties)(this,{_typedSymbol:o,type:t,value:r}),this.#eE=i,this.format()}format(){if("array"===this.type||"dynamicArray"===this.type)throw Error("");return"tuple"===this.type?`tuple(${this.value.map(e=>e.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#eE}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#eE?-1:!1===this.#eE?this.value.length:null}static from(e,t){return new c(s,e,t)}static uint8(e){return i(e,8)}static uint16(e){return i(e,16)}static uint24(e){return i(e,24)}static uint32(e){return i(e,32)}static uint40(e){return i(e,40)}static uint48(e){return i(e,48)}static uint56(e){return i(e,56)}static uint64(e){return i(e,64)}static uint72(e){return i(e,72)}static uint80(e){return i(e,80)}static uint88(e){return i(e,88)}static uint96(e){return i(e,96)}static uint104(e){return i(e,104)}static uint112(e){return i(e,112)}static uint120(e){return i(e,120)}static uint128(e){return i(e,128)}static uint136(e){return i(e,136)}static uint144(e){return i(e,144)}static uint152(e){return i(e,152)}static uint160(e){return i(e,160)}static uint168(e){return i(e,168)}static uint176(e){return i(e,176)}static uint184(e){return i(e,184)}static uint192(e){return i(e,192)}static uint200(e){return i(e,200)}static uint208(e){return i(e,208)}static uint216(e){return i(e,216)}static uint224(e){return i(e,224)}static uint232(e){return i(e,232)}static uint240(e){return i(e,240)}static uint248(e){return i(e,248)}static uint256(e){return i(e,256)}static uint(e){return i(e,256)}static int8(e){return i(e,-8)}static int16(e){return i(e,-16)}static int24(e){return i(e,-24)}static int32(e){return i(e,-32)}static int40(e){return i(e,-40)}static int48(e){return i(e,-48)}static int56(e){return i(e,-56)}static int64(e){return i(e,-64)}static int72(e){return i(e,-72)}static int80(e){return i(e,-80)}static int88(e){return i(e,-88)}static int96(e){return i(e,-96)}static int104(e){return i(e,-104)}static int112(e){return i(e,-112)}static int120(e){return i(e,-120)}static int128(e){return i(e,-128)}static int136(e){return i(e,-136)}static int144(e){return i(e,-144)}static int152(e){return i(e,-152)}static int160(e){return i(e,-160)}static int168(e){return i(e,-168)}static int176(e){return i(e,-176)}static int184(e){return i(e,-184)}static int192(e){return i(e,-192)}static int200(e){return i(e,-200)}static int208(e){return i(e,-208)}static int216(e){return i(e,-216)}static int224(e){return i(e,-224)}static int232(e){return i(e,-232)}static int240(e){return i(e,-240)}static int248(e){return i(e,-248)}static int256(e){return i(e,-256)}static int(e){return i(e,-256)}static bytes1(e){return a(e,1)}static bytes2(e){return a(e,2)}static bytes3(e){return a(e,3)}static bytes4(e){return a(e,4)}static bytes5(e){return a(e,5)}static bytes6(e){return a(e,6)}static bytes7(e){return a(e,7)}static bytes8(e){return a(e,8)}static bytes9(e){return a(e,9)}static bytes10(e){return a(e,10)}static bytes11(e){return a(e,11)}static bytes12(e){return a(e,12)}static bytes13(e){return a(e,13)}static bytes14(e){return a(e,14)}static bytes15(e){return a(e,15)}static bytes16(e){return a(e,16)}static bytes17(e){return a(e,17)}static bytes18(e){return a(e,18)}static bytes19(e){return a(e,19)}static bytes20(e){return a(e,20)}static bytes21(e){return a(e,21)}static bytes22(e){return a(e,22)}static bytes23(e){return a(e,23)}static bytes24(e){return a(e,24)}static bytes25(e){return a(e,25)}static bytes26(e){return a(e,26)}static bytes27(e){return a(e,27)}static bytes28(e){return a(e,28)}static bytes29(e){return a(e,29)}static bytes30(e){return a(e,30)}static bytes31(e){return a(e,31)}static bytes32(e){return a(e,32)}static address(e){return new c(s,"address",e)}static bool(e){return new c(s,"bool",!!e)}static bytes(e){return new c(s,"bytes",e)}static string(e){return new c(s,"string",e)}static array(e,t){throw Error("not implemented yet")}static tuple(e,t){throw Error("not implemented yet")}static overrides(e){return new c(s,"overrides",Object.assign({},e))}
40static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===o}static dereference(e,t){if(c.isTyped(e)){if(e.type!==t)throw Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=c},78266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;let n=r(85910),s=r(47071),i=r(43814),a=r(28191),o=r(7528);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});let c=r(57840),l=r(78045);class u{fragment;name;signature;topic;args;constructor(e,t,r){let n=e.name,s=e.format();(0,i.defineProperties)(this,{fragment:e,name:n,signature:s,topic:t,args:r})}}t.LogDescription=u;class d{fragment;name;args;signature;selector;value;constructor(e,t,r,n){let s=e.name,a=e.format();(0,i.defineProperties)(this,{fragment:e,name:s,args:r,signature:a,selector:t,value:n})}}t.TransactionDescription=d;class f{fragment;name;args;signature;selector;constructor(e,t,r){let n=e.name,s=e.format();(0,i.defineProperties)(this,{fragment:e,name:n,args:r,signature:s,selector:t})}}t.ErrorDescription=f;class h{hash;_isIndexed;static isIndexed(e){return!!(e&&e._isIndexed)}constructor(e){(0,i.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=h;let p={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},g={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&p[e.toString()]&&(t=p[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class b{fragments;deploy;fallback;receive;#eP;#ek;#eO;#eT;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#eO=new Map,this.#eP=new Map,this.#ek=new Map;let r=[];for(let e of t)try{r.push(c.Fragment.from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,i.defineProperties)(this,{fragments:Object.freeze(r)});let n=null,s=!1;this.#eT=this.getAbiCoder(),this.fragments.forEach((e,t)=>{let r;switch(e.type){case"constructor":if(this.deploy)return void console.log("duplicate definition - constructor");(0,i.defineProperties)(this,{deploy:e});return;case"fallback":0===e.inputs.length?s=!0:((0,i.assertArgument)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),s=(n=e).payable);return;case"function":r=this.#eO;break;case"event":r=this.#ek;break;case"error":r=this.#eP;break;default:return}let a=e.format();r.has(a)||r.set(a,e)}
40),this.deploy||(0,i.defineProperties)(this,{deploy:c.ConstructorFragment.from("constructor()")}),(0,i.defineProperties)(this,{fallback:n,receive:s})}format(e){let t=e?"minimal":"full";return this.fragments.map(e=>e.format(t))}formatJson(){return JSON.stringify(this.fragments.map(e=>e.format("json")).map(e=>JSON.parse(e)))}getAbiCoder(){return a.AbiCoder.defaultAbiCoder()}#eB(e,t,r){if((0,i.isHexString)(e)){let t=e.toLowerCase();for(let e of this.#eO.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#eO)t.split("(")[0]===e&&n.push(r);if(t){let e=t.length>0?t[t.length-1]:null,r=t.length,s=!0;l.Typed.isTyped(e)&&"overrides"===e.type&&(s=!1,r--);for(let e=n.length-1;e>=0;e--){let t=n[e].inputs.length;t===r||s&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let s=0;s<t.length;s++)if(l.Typed.isTyped(t[s])){if(s>=r.length){if("overrides"===t[s].type)continue;n.splice(e,1);break}if(t[s].type!==r[s].baseType){n.splice(e,1);break}}}}if(1===n.length&&t&&t.length!==n[0].inputs.length){let e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,i.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return n[0]}let n=this.#eO.get(c.FunctionFragment.from(e).format());return n||null}getFunctionName(e){let t=this.#eB(e,null,!1);return(0,i.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#eB(e,null,!1)}getFunction(e,t){return this.#eB(e,t||null,!0)}forEachFunction(e){let t=Array.from(this.#eO.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#eO.get(n),r)}}#eS(e,t,r){if((0,i.isHexString)(e)){let t=e.toLowerCase();for(let e of this.#ek.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#ek)t.split("(")[0]===e&&n.push(r);if(t){for(let e=n.length-1;e>=0;e--)n[e].inputs.length<t.length&&n.splice(e,1);for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let s=0;s<t.length;s++)if(l.Typed.isTyped(t[s])&&t[s].type!==r[s].baseType){n.splice(e,1);break}}}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,i.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return n[0]}let n=this.#ek.get(c.EventFragment.from(e).format());return n||null}getEventName(e){let t=this.#eS(e,null,!1);return(0,i.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#eS(e,null,!1)}getEvent(e,t){return this.#eS(e,t||null,!0)}forEachEvent(e){let t=Array.from(this.#ek.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#ek.get(n),r)}}getError(e,t){if((0,i.isHexString)(e)){let t=e.toLowerCase();if(g[t])return c.ErrorFragment.from(g[t].signature);for(let e of this.#eP.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let t=[];for(let[r,n]of this.#eP)r.split("(")[0]===e&&t.push(n);if(0===t.length)return"Error"===e?c.ErrorFragment.from("error Error(string)"):"Panic"===e?c.ErrorFragment.from("error Panic(uint256)"):null;if(t.length>1){let r=t.map(e=>JSON.stringify(e.format())).join(", ");(0,i.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}if("Error(string)"===(e=c.ErrorFragment.from(e).format()))return c.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return c.ErrorFragment.from("error Panic(uint256)");let r=this.#eP.get(e);return r||null}forEachError(e){let t=Array.from(this.#eP.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#eP.get(n),r)}}_decodeParams(e,t){return this.#eT.decode(e,t)}_encodeParams(e,t){return this.#eT.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}let r="invalid length for result data",n=(0,i.getBytesCopy)(t);if(n.length%32==0)try{return this.#eT.decode(e.outputs,n)}catch(e){r="could not decode result data"}(0,i.assert)(!1,r,"BAD_DATA",{value:(0,i.hexlify)(n),info:{method:e.name,signature:e.format()}})}makeError(e,t){let r=(0,i.getBytes)(e,"data"),n=a.AbiCoder.getBuiltinCallException("call",t,r);if(n.message.startsWith("execution reverted (unknown custom error)")){let e=(0,i.hexlify)(r.slice(0,4)),t=this.getError(e);
40if(t)try{let e=this.#eT.decode(t.inputs,r.slice(4));n.revert={name:t.name,signature:t.format(),args:e},n.reason=n.revert.signature,n.message=`execution reverted: ${n.reason}`}catch(e){n.message="execution reverted (coult not decode custom error)"}}let s=this.parseTransaction(t);return s&&(n.invocation={method:s.name,signature:s.signature,args:s.args}),n}encodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.hexlify)(this.#eT.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}(0,i.assert)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});let r=[];e.anonymous||r.push(e.topicHash);let a=(e,t)=>"string"===e.type?(0,s.id)(t):"bytes"===e.type?(0,n.keccak256)((0,i.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,i.toBeHex)(t):e.type.match(/^bytes/)?t=(0,i.zeroPadBytes)(t,32):"address"===e.type&&this.#eT.encode(["address"],[t]),(0,i.zeroPadValue)((0,i.hexlify)(t),32));for(t.forEach((t,n)=>{let s=e.inputs[n];if(!s.indexed)return void(0,i.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+s.name,t);null==t?r.push(null):"array"===s.baseType||"tuple"===s.baseType?(0,i.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+s.name,t):Array.isArray(t)?r.push(t.map(e=>a(s,e))):r.push(a(s,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}let r=[],a=[],o=[];return e.anonymous||r.push(e.topicHash),(0,i.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((e,i)=>{let c=t[i];if(e.indexed)if("string"===e.type)r.push((0,s.id)(c));else if("bytes"===e.type)r.push((0,n.keccak256)(c));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this.#eT.encode([e.type],[c]));else a.push(e),o.push(c)}),{data:this.#eT.encode(a,o),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){let t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){let t=e.topicHash;(0,i.assertArgument)((0,i.isHexString)(r[0],32)&&r[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}let n=[],s=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(c.ParamType.from({type:"bytes32",name:e.name})),a.push(!0)):(n.push(e),a.push(!1)):(s.push(e),a.push(!1))});let l=null!=r?this.#eT.decode(n,(0,i.concat)(r)):null,u=this.#eT.decode(s,t,!0),d=[],f=[],p=0,g=0;return e.inputs.forEach((e,t)=>{let r=null;
40if(e.indexed)if(null==l)r=new h(null);else if(a[t])r=new h(l[g++]);else try{r=l[g++]}catch(e){r=e}else try{r=u[p++]}catch(e){r=e}d.push(r),f.push(e.name||null)}),o.Result.fromItems(d,f)}parseTransaction(e){let t=(0,i.getBytes)(e.data,"tx.data"),r=(0,i.getBigInt)(null!=e.value?e.value:0,"tx.value"),n=this.getFunction((0,i.hexlify)(t.slice(0,4)));if(!n)return null;let s=this.#eT.decode(n.inputs,t.slice(4));return new d(n,n.selector,s,r)}parseCallResult(e){throw Error("@TODO")}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new u(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){let t=(0,i.hexlify)(e),r=this.getError((0,i.dataSlice)(t,0,4));if(!r)return null;let n=this.#eT.decode(r.inputs,(0,i.dataSlice)(t,4));return new f(r,r.selector,n)}static from(e){return e instanceof b?e:new b("string"==typeof e?JSON.parse(e):"function"==typeof e.formatJson?e.formatJson():"function"==typeof e.format?e.format("json"):e)}}t.Interface=b},78499:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;let n=r(8651),s=r(43814);function i(e,t){return{address:(0,n.getAddress)(e),storageKeys:t.map((e,t)=>((0,s.assertArgument)((0,s.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}t.accessListify=function(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,s.assertArgument)(2===t.length,"invalid slot set",`value[${r}]`,t),i(t[0],t[1])):((0,s.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),i(t.address,t.storageKeys)));(0,s.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return i(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}},78694:e=>{e.exports={CLASS_MONOSPACE:"apg-mono",CLASS_ACTIVE:"apg-active",CLASS_EMPTY:"apg-empty",CLASS_MATCH:"apg-match",CLASS_NOMATCH:"apg-nomatch",CLASS_LOOKAHEAD:"apg-lh-match",CLASS_LOOKBEHIND:"apg-lb-match",CLASS_REMAINDER:"apg-remainder",CLASS_CTRLCHAR:"apg-ctrl-char",CLASS_LINEEND:"apg-line-end",CLASS_ERROR:"apg-error",CLASS_PHRASE:"apg-phrase",CLASS_EMPTYPHRASE:"apg-empty-phrase",CLASS_STATE:"apg-state",CLASS_STATS:"apg-stats",CLASS_TRACE:"apg-trace",CLASS_GRAMMAR:"apg-grammar",CLASS_RULES:"apg-rules",CLASS_RULESLINK:"apg-rules-link",CLASS_ATTRIBUTES:"apg-attrs"}},78711:function(e,t,r){"use strict";var n,s,i,a=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.OFB=void 0;let c=r(6555);class l extends c.ModeOfOperation{constructor(e,t){if(super("OFB",e,l),n.set(this,void 0),s.set(this,void 0),i.set(this,void 0),t){if(t.length%16)throw TypeError("invalid iv size (must be 16 bytes)");a(this,n,new Uint8Array(t),"f")}else a(this,n,new Uint8Array(16),"f");a(this,s,this.iv,"f"),a(this,i,16,"f")}get iv(){return new Uint8Array(o(this,n,"f"))}encrypt(e){var t,r;if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let n=new Uint8Array(e);for(let e=0;e<n.length;e++)16===o(this,i,"f")&&(a(this,s,this.aes.encrypt(o(this,s,"f")),"f"),a(this,i,0,"f")),n[e]^=o(this,s,"f")[a(this,i,(r=o(this,i,"f"),t=r++,r),"f"),t];return n}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}t.OFB=l,n=new WeakMap,s=new WeakMap,i=new WeakMap},79676:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(6330),s=r(94185),i=r(22360),[a,o,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],a.push(2*(5*n+r)),o.push((e+1)*(e+2)/2%64);let s=l;for(let e=0;e<7;e++)(t=(t<<u^(t>>f)*p)%h)&d&&(s^=u<<(u<<BigInt(e))-u);c.push(s)}let[g,b]=(0,s.split)(c,!0),m=(e,t,r)=>r>32?(0,s.rotlBH)(e,t,r):(0,s.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,s.rotlBL)(e,t,r):(0,s.rotlSL)(e,t,r);function x(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,s=(t+2)%10,i=r[s],a=r[s+1],o=m(i,a,1)^r[n],c=y(i,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){let n=o[r],i=m(t,s,n),c=y(t,s,n),l=a[r];t=e[l],s=e[l+1],e[l]=i,e[l+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=g[n],e[1]^=b[n]}r.fill(0)}t.keccakP=x;class A extends i.Hash{constructor(e,t,r,s=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){x(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){let i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.exists)(this,!1),(0,n.bytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new A(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=A;let w=(e,t,r)=>(0,i.wrapConstructor)(()=>new A(t,e,r));t.sha3_224=w(6,144,28),t.sha3_256=w(6,136,32),t.sha3_384=w(6,104,48),t.sha3_512=w(6,72,64),t.keccak_224=w(1,144,28),t.keccak_256=w(1,136,32),t.keccak_384=w(1,104,48),t.keccak_512=w(1,72,64);let v=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new A(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=v(31,168,16),t.shake256=v(31,136,32)},80114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var n=r(99866);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return n.ZeroAddress}});var s=r(2026);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return s.ZeroHash}});var i=r(26640);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return i.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return i.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return i.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return i.MinInt256}}
40),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return i.MaxInt256}});var a=r(40728);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return a.MessagePrefix}})},80171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;let n=r(43814),s=r(1992),i=r(16887),a=r(96854),o="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends a.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");let r=i.Network.from(e);null==t&&(t=o),super(c.getRequest(r,t),r,{polling:!0,staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(e){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=o);let r=new n.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"filecoin":return"rpc.ankr.com/filecoin";case"filecoin-calibration":return"rpc.ankr.com/filecoin_testnet";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,n.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return r.allowGzip=!0,t===o&&(r.retryFunc=async(e,t,r)=>((0,s.showThrottleMessage)("AnkrProvider"),!0)),r}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===o}}t.AnkrProvider=c},80330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;let n=r(51728),s=r(51930),i=r(25265),a=r(37979),o=r(17185),c=r(55834),l=(0,c.createGetUrl)(),u=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),d=RegExp("^ipfs://(ipfs/)?(.*)$","i"),f=!1;async function h(e,t){try{var r;let t=e.match(u);if(!t)throw Error("invalid data");return new A(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,n.decodeBase64)(t[3]):(r=t[3],(0,o.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}catch(t){return new A(599,"BAD REQUEST (invalid data: URI)",{},null,new x(e))}}function p(e){return async function(t,r){try{let r=t.match(d);if(!r)throw Error("invalid link");return new x(`${e}${r[2]}`)}catch(e){return new A(599,"BAD REQUEST (invalid IPFS URI)",{},null,new x(t))}}}let g={data:h,ipfs:p("https://gateway.ipfs.io/ipfs/")},b=new WeakMap;class m{#eC;#eN;constructor(e){this.#eC=[],this.#eN=!1,b.set(e,()=>{if(!this.#eN){for(let e of(this.#eN=!0,this.#eC))setTimeout(()=>{e()},0);this.#eC=[]}})}addListener(e){(0,i.assert)(!this.#eN,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#eC.push(e)}get cancelled(){return this.#eN}checkSignal(){(0,i.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function y(e){if(null==e)throw Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=m;class x{#eI;#eR;#eL;#eM;#eU;#eo;#eF;#eD;#e_;#ej;#eH;#eG;#ez;#e$;#eV;get url(){return this.#eo}set url(e){this.#eo=String(e)}get body(){return null==this.#eF?null:new Uint8Array(this.#eF)}set body(e){if(null==e)this.#eF=void 0,this.#eD=void 0;else if("string"==typeof e)this.#eF=(0,o.toUtf8Bytes)(e),this.#eD="text/plain";else if(e instanceof Uint8Array)this.#eF=e,this.#eD="application/octet-stream";else if("object"==typeof e)this.#eF=(0,o.toUtf8Bytes)(JSON.stringify(e)),this.#eD="application/json";else throw Error("invalid body")}hasBody(){return null!=this.#eF}get method(){return this.#eM?this.#eM:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#eM=String(e).toUpperCase()}get headers(){let e=Object.assign({},this.#eL);return this.#e_&&(e.authorization=`Basic ${(0,n.encodeBase64)((0,o.toUtf8Bytes)(this.#e_))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#eD&&(e["content-type"]=this.#eD),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#eL[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#eL={}}
40[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#e_||null}setCredentials(e,t){(0,i.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#e_=`${e}:${t}`}get allowGzip(){return this.#eR}set allowGzip(e){this.#eR=!!e}get allowInsecureAuthentication(){return!!this.#eI}set allowInsecureAuthentication(e){this.#eI=!!e}get timeout(){return this.#eU}set timeout(e){(0,i.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#eU=e}get preflightFunc(){return this.#ej||null}set preflightFunc(e){this.#ej=e}get processFunc(){return this.#eH||null}set processFunc(e){this.#eH=e}get retryFunc(){return this.#eG||null}set retryFunc(e){this.#eG=e}get getUrlFunc(){return this.#eV||l}set getUrlFunc(e){this.#eV=e}constructor(e){this.#eo=String(e),this.#eI=!1,this.#eR=!0,this.#eL={},this.#eM="",this.#eU=3e5,this.#e$={slotInterval:250,maxAttempts:12},this.#eV=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#eF?(0,s.hexlify)(this.#eF):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#e$.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#e$.maxAttempts=e.maxAttempts)}async #eK(e,t,r,n,s){var a;if(e>=this.#e$.maxAttempts)return s.makeServerError("exceeded maximum retry limit");(0,i.assert)(w()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await (a=r,new Promise(e=>setTimeout(e,a)));let o=this.clone(),c=(o.url.split(":")[0]||"").toLowerCase();if(c in g){let e=await g[c](o.url,y(n.#ez));if(e instanceof A){let t=e;if(this.processFunc){y(n.#ez);try{t=await this.processFunc(o,t)}catch(e){(null==e.throttle||"number"!=typeof e.stall)&&t.makeServerError("error in post-processing function",e).assertOk()}}return t}o=e}this.preflightFunc&&(o=await this.preflightFunc(o));let l=await this.getUrlFunc(o,y(n.#ez)),u=new A(l.statusCode,l.statusMessage,l.headers,l.body,n);if(301===u.statusCode||302===u.statusCode){try{let r=u.headers.location||"";return o.redirect(r).#eK(e+1,t,0,n,u)}catch(e){}return u}if(429===u.statusCode&&(null==this.retryFunc||await this.retryFunc(o,u,e))){let r=u.headers["retry-after"],s=this.#e$.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(s=parseInt(r)),o.clone().#eK(e+1,t,s,n,u)}if(this.processFunc){y(n.#ez);try{u=await this.processFunc(o,u)}catch(s){(null==s.throttle||"number"!=typeof s.stall)&&u.makeServerError("error in post-processing function",s).assertOk();let r=this.#e$.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return s.stall>=0&&(r=s.stall),o.clone().#eK(e+1,t,r,n,u)}}return u}send(){return(0,i.assert)(null==this.#ez,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#ez=new m(this),this.#eK(0,w()+this.timeout,0,this,new A(0,"",{},null,this))}cancel(){(0,i.assert)(null!=this.#ez,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let e=b.get(this);if(!e)throw Error("missing signal; should not happen");e()}redirect(e){let t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,i.assert)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});let n=new x(e);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#eL=Object.assign({},this.#eL),this.#eF&&(n.#eF=new Uint8Array(this.#eF)),n.#eD=this.#eD,n}clone(){let e=new x(this.url);return e.#eM=this.#eM,this.#eF&&(e.#eF=this.#eF),e.#eD=this.#eD,e.#eL=Object.assign({},this.#eL),e.#e_=this.#e_,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#ej=this.#ej,e.#eH=this.#eH,e.#eG=this.#eG,e.#e$=Object.assign({},this.#e$),e.#eV=this.#eV,e}static lockConfig(){f=!0}static getGateway(e){return g[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw Error(`cannot intercept ${e}; use registerGetUrl`);if(f)throw Error("gateways locked");g[e]=t}static registerGetUrl(e){if(f)throw Error("gateways locked");l=e}static createGetUrlFunc(e){return(0,c.createGetUrl)(e)}static createDataGateway(){return h}static createIpfsGatewayFunc(e){return p(e)}}t.FetchRequest=x;class A{#eJ;#eQ;#eL;#eF;#es;#eq;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#eF?(0,s.hexlify)(this.#eF):"null"}>`}get statusCode(){return this.#eJ}get statusMessage(){return this.#eQ}get headers(){return Object.assign({},this.#eL)}get body(){return null==this.#eF?null:new Uint8Array(this.#eF)}get bodyText(){try{return null==this.#eF?"":(0,o.toUtf8String)(this.#eF)}
40catch(e){(0,i.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,i.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,n,s){this.#eJ=e,this.#eQ=t,this.#eL=Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=String(r[t]),e),{}),this.#eF=null==n?null:new Uint8Array(n),this.#es=s||null,this.#eq={message:""}}makeServerError(e,t){let r;e?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${e})`);let n=new A(599,r,this.headers,this.body,this.#es||void 0);return n.#eq={message:e,error:t},n}throwThrottleError(e,t){null==t?t=-1:(0,i.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);let r=Error(e||"throttling requests");throw(0,a.defineProperties)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#eF}get request(){return this.#es}ok(){return""===this.#eq.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#eq;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#eF&&(n=(0,o.toUtf8String)(this.#eF))}catch(e){}(0,i.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function w(){return new Date().getTime()}t.FetchResponse=A},80716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;let n=r(47516),s=r(69620);class i extends s.SocketProvider{#eW;#eY;get websocket(){if(null==this.#eY)throw Error("websocket closed");return this.#eY}constructor(e,t,r){super(t,r),"string"==typeof e?(this.#eW=()=>new n.WebSocket(e),this.#eY=this.#eW()):"function"==typeof e?(this.#eW=e,this.#eY=e()):(this.#eW=null,this.#eY=e),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=this.#eY&&(this.#eY.close(),this.#eY=null),super.destroy()}}t.WebSocketProvider=i},81467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;let n=r(43814),s=r(78045),i=r(7528),a=BigInt(0),o=BigInt(1),c=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class l extends i.Coder{size;signed;constructor(e,t,r){let s=(t?"int":"uint")+8*e;super(s,s,r,!1),(0,n.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let r=(0,n.getBigInt)(s.Typed.dereference(t,this.type)),l=(0,n.mask)(c,8*i.WordSize);if(this.signed){let e=(0,n.mask)(l,8*this.size-1);(r>e||r<-(e+o))&&this._throwError("value out-of-bounds",t),r=(0,n.toTwos)(r,8*i.WordSize)}else(r<a||r>(0,n.mask)(l,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(r)}decode(e){let t=(0,n.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,n.fromTwos)(t,8*this.size)),t}}t.NumberCoder=l},83008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;let n=r(6555);class s extends n.ModeOfOperation{constructor(e){super("ECB",e,s)}encrypt(e){if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16)t.set(this.aes.encrypt(e.subarray(r,r+16)),r);return t}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16)t.set(this.aes.decrypt(e.subarray(r,r+16)),r);return t}}t.ECB=s},84050:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;let n=r(8651),s=r(85910),i=r(21287),a=r(43814),o=r(51548),c=new Uint8Array(32);c.fill(0);let l=BigInt(-1),u=BigInt(0),d=BigInt(1),f=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),h=(0,a.toBeHex)(d,32),p=(0,a.toBeHex)(u,32),g={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},b=["name","version","chainId","verifyingContract","salt"];function m(e){return function(t){return(0,a.assertArgument)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let y={name:m("name"),version:m("version"),chainId:function(e){let t=(0,a.getBigInt)(e,"domain.chainId");return((0,a.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))?Number(t):(0,a.toQuantity)(t)},verifyingContract:function(e){try{return(0,n.getAddress)(e).toLowerCase()}catch(e){}(0,a.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=(0,a.getBytes)(e,"domain.salt");return(0,a.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,a.hexlify)(t)}};function x(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=""===t[1],n=parseInt(t[2]);(0,a.assertArgument)(n%8==0&&0!==n&&n<=256&&t[2]===String(n),"invalid numeric width","type",e);let s=(0,a.mask)(f,r?n-1:n),i=r?(s+d)*l:u;return function(t){let n=(0,a.getBigInt)(t,"value");return(0,a.assertArgument)(n>=i&&n<=s,`value out-of-bounds for ${e}`,"value",n),(0,a.toBeHex)(r?(0,a.toTwos)(n,256):n,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0,a.assertArgument)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){let n=(0,a.getBytes)(t);(0,a.assertArgument)(n.length===r,`invalid length for ${e}`,"value",t);let s=(0,a.getBytes)(t),i=s.length%32;return i?(0,a.concat)([s,c.slice(i)]):(0,a.hexlify)(s)}}}switch(e){case"address":return function(e){return(0,a.zeroPadValue)((0,n.getAddress)(e),32)};case"bool":return function(e){return e?h:p};case"bytes":return function(e){return(0,s.keccak256)(e)};case"string":return function(e){return(0,o.id)(e)}}return null}function A(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function w(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class v{primaryType;#eZ;get types(){return JSON.parse(this.#eZ)}#eX;#e0;constructor(e){this.#eX=new Map,this.#e0=new Map;let t=new Map,r=new Map,n=new Map,s={};for(let i in Object.keys(e).forEach(i=>{s[i]=e[i].map(({name:t,type:r})=>{let{base:n,index:s}=w(r);return"int"!==n||e.int||(n="int256"),"uint"!==n||e.uint||(n="uint256"),{name:t,type:n+(s||"")}}),t.set(i,new Set),r.set(i,[]),n.set(i,new Set)}),this.#eZ=JSON.stringify(s),s){let n=new Set;for(let o of s[i]){(0,a.assertArgument)(!n.has(o.name),`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(i)}`,"types",e),n.add(o.name);let s=w(o.type).base;(0,a.assertArgument)(s!==i,`circular type reference to ${JSON.stringify(s)}`,"types",e),x(s)||((0,a.assertArgument)(r.has(s),`unknown type ${JSON.stringify(s)}`,"types",e),r.get(s).push(i),t.get(i).add(s))}}let i=Array.from(r.keys()).filter(e=>0===r.get(e).length);for(let[o,c]of((0,a.assertArgument)(0!==i.length,"missing primary type","types",e),(0,a.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,a.defineProperties)(this,{primaryType:i[0]}),!function s(i,o){for(let c of((0,a.assertArgument)(!o.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),o.add(i),t.get(i)))if(r.has(c))for(let e of(s(c,o),o))n.get(e).add(c);o.delete(i)}(this.primaryType,new Set),n)){let e=Array.from(c);e.sort(),this.#eX.set(o,A(o,s[o])+e.map(e=>A(e,s[e])).join(""))}}getEncoder(e){let t=this.#e0.get(e);return t||(t=this.#e1(e),this.#e0.set(e,t)),t}#e1(e){{let t=x(e);if(t)return t}let t=w(e).array;
40if(t){let e=t.prefix,r=this.getEncoder(e);return n=>{(0,a.assertArgument)(-1===t.count||t.count===n.length,`array length mismatch; expected length ${t.count}`,"value",n);let i=n.map(r);return this.#eX.has(e)&&(i=i.map(s.keccak256)),(0,s.keccak256)((0,a.concat)(i))}}let r=this.types[e];if(r){let t=(0,o.id)(this.#eX.get(e));return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this.#eX.has(r)?(0,s.keccak256)(n):n});return n.unshift(t),(0,a.concat)(n)}}(0,a.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#eX.get(e);return(0,a.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,s.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(x(e))return r(e,t);let n=w(e).array;if(n)return(0,a.assertArgument)(-1===n.count||n.count===t.length,`array length mismatch; expected length ${n.count}`,"value",t),t.map(e=>this._visit(n.prefix,e,r));let s=this.types[e];if(s)return s.reduce((e,{name:n,type:s})=>(e[n]=this._visit(s,t[n],r),e),{});(0,a.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new v(e)}static getPrimaryType(e){return v.from(e).primaryType}static hashStruct(e,t,r){return v.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){if(null==e[r])continue;let n=g[r];(0,a.assertArgument)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>b.indexOf(e.name)-b.indexOf(t.name)),v.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,a.concat)(["0x1901",v.hashDomain(e),v.from(t).hash(r)])}static hash(e,t,r){return(0,s.keccak256)(v.encode(e,t,r))}static async resolveNames(e,t,r,n){for(let t in e=Object.assign({},e))null==e[t]&&delete e[t];let s={};e.verifyingContract&&!(0,a.isHexString)(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");let i=v.from(t);for(let e in i.visit(r,(e,t)=>("address"!==e||(0,a.isHexString)(t,20)||(s[t]="0x"),t)),s)s[e]=await n(e);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),r=i.visit(r,(e,t)=>"address"===e&&s[t]?s[t]:t),{domain:e,value:r}}static getPayload(e,t,r){v.hashDomain(e);let n={},s=[];b.forEach(t=>{let r=e[t];null!=r&&(n[t]=y[t](r),s.push({name:t,type:g[t]}))});let i=v.from(t),o=Object.assign({},t=i.types);return(0,a.assertArgument)(null==o.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=s,i.encode(r),{types:o,domain:n,primaryType:i.primaryType,message:i.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,a.hexlify)((0,a.getBytes)(t));if(e.match(/^u?int/))return(0,a.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,a.assertArgument)("string"==typeof t,"invalid string","value",t),t}(0,a.assertArgument)(!1,"unsupported type","type",e)})}}}t.TypedDataEncoder=v,t.verifyTypedData=function(e,t,r,n){return(0,i.recoverAddress)(v.hash(e,t,r),n)}},84218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;let n=r(11558),s=r(43814),i=!1,a=function(e,t,r){return(0,n.createHmac)(e,t).update(r).digest()},o=a;function c(e,t,r){let n=(0,s.getBytes)(t,"key"),i=(0,s.getBytes)(r,"data");return(0,s.hexlify)(o(e,n,i))}t.computeHmac=c,c._=a,c.lock=function(){i=!0},c.register=function(e){if(i)throw Error("computeHmac is locked");o=e},Object.freeze(c)},84482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;let n=r(8651),s=r(21287),i=r(43814),a=r(36866);function o(e,t){if(e.provider)return e.provider;(0,i.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function c(e,t){let r=(0,a.copyRequest)(t);if(null!=r.to&&(r.to=(0,n.resolveAddress)(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),(0,n.resolveAddress)(t,e)]).then(([e,t])=>((0,i.assertArgument)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await (0,i.resolveProperties)(r)}class l{provider;constructor(e){(0,i.defineProperties)(this,{provider:e||null})}async getNonce(e){return o(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await c(this,e)}async populateTransaction(e){let t=o(this,"populateTransaction"),r=await c(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let n=await this.provider.getNetwork();if(null!=r.chainId){let t=(0,i.getBigInt)(r.chainId);(0,i.assertArgument)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;let s=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||s)?(0,i.assertArgument)(!1,"eip-1559 transaction do n
40ot support gasPrice","tx",e):(0===r.type||1===r.type)&&s&&(0,i.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();(0,i.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(r.authorizationList&&r.authorizationList.length?r.type=4:r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,i.assert)(!s,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):(0,i.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(2===r.type||3===r.type||4===r.type)&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await (0,i.resolveProperties)(r)}async populateAuthorization(e){let t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await o(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}async estimateGas(e){return o(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return o(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=o(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=o(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let n=s.Transaction.from(r);return await t.broadcastTransaction(await this.signTransaction(n))}authorize(e){(0,i.assert)(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}t.AbstractSigner=l;class u extends l{address;constructor(e,t){super(t),(0,i.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new u(this.address,e)}#e2(e,t){(0,i.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#e2("transactions","signTransaction")}async signMessage(e){this.#e2("messages","signMessage")}async signTypedData(e,t,r){this.#e2("typed-data","signTypedData")}}t.VoidSigner=u},84506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;let n=r(43814),s=r(78045),i=r(7528);class a extends i.Coder{size;constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),(0,n.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.getBytesCopy)(s.Typed.dereference(t,this.type));return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return(0,n.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=a},85263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.16.0"},85857:e=>{e.exports=function(){let e=-1,t=0;this.init=function(r){if("number"!=typeof r||r<=0)throw Error("circular-buffer.js: init: circular buffer size must an integer > 0");t=Math.ceil(r),e=-1},this.increment=function(){return((e+=1)+t)%t},this.maxSize=function(){return t},this.items=function(){return e+1},this.getListIndex=function(r){return -1===e||r<0||r>e||e-r>=t?-1:(r+t)%t},this.forEach=function(r){if(-1!==e){if(e<t){for(let t=0;t<=e;t+=1)r(t,t);return}for(let n=e-t+1;n<=e;n+=1)r((n+t)%t,n)}}}},85910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;let n=r(84218);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}});let s=r(15684);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return s.keccak256}});let i=r(53150);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});let a=r(98211);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return a.pbkdf2}});
40let o=r(73017);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return o.randomBytes}});let c=r(96645);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}});let l=r(55334);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}});var u=r(25291);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var d=r(99008);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return d.Signature}}),t.lock=function(){n.computeHmac.lock(),s.keccak256.lock(),a.pbkdf2.lock(),o.randomBytes.lock(),i.ripemd160.lock(),c.scrypt.lock(),c.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),o.randomBytes.lock()}},85940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;let n=r(6330),s=r(22360);class i extends s.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,s.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:i}=this,a=(e=(0,s.toBytes)(e)).length;for(let n=0;n<a;){let o=Math.min(i-this.pos,a-n);if(o===i){let t=(0,s.createView)(e);for(;i<=a-n;n+=i)this.process(t,n);continue}r.set(e.subarray(n,n+o),this.pos),this.pos+=o,n+=o,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.exists)(this),(0,n.output)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:i,isLE:a}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(r,0),o=0);for(let e=o;e<i;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let s=BigInt(32),i=BigInt(0xffffffff),a=Number(r>>s&i),o=Number(r&i),c=4*!!n,l=4*!n;e.setUint32(t+c,a,n),e.setUint32(t+l,o,n)}(r,i-8,BigInt(8*this.length),a),this.process(r,0);let c=(0,s.createView)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=l/4,d=this.get();if(u>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,d[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:s,destroyed:i,pos:a}=this;return e.length=n,e.pos=a,e.finished=s,e.destroyed=i,n%t&&e.buffer.set(r),e}}t.SHA2=i},86166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authorizationify=void 0;let n=r(8651),s=r(85910),i=r(43814);t.authorizationify=function(e){return{address:(0,n.getAddress)(e.address),nonce:(0,i.getBigInt)(null!=e.nonce?e.nonce:0),chainId:(0,i.getBigInt)(null!=e.chainId?e.chainId:0),signature:s.Signature.from(e.signature)}}},86491:function(e,t,r){"use strict";var n,s,i,a,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},c=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CFB=void 0;let l=r(6555);class u extends l.ModeOfOperation{constructor(e,t,r=8){if(super("CFB",e,u),n.add(this),s.set(this,void 0),i.set(this,void 0),!Number.isInteger(r)||r%8)throw TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:r}}),t){if(t.length%16)throw TypeError("invalid iv size (must be 16 bytes)");o(this,s,new Uint8Array(t),"f")}else o(this,s,new Uint8Array(16),"f");o(this,i,this.iv,"f")}get iv(){return new Uint8Array(c(this,s,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");let t=this.segmentSize/8,r=new Uint8Array(e);for(let e=0;e<r.length;
40e+=t){let s=this.aes.encrypt(c(this,i,"f"));for(let n=0;n<t;n++)r[e+n]^=s[n];c(this,n,"m",a).call(this,r.subarray(e))}return r}decrypt(e){if(8*e.length%this.segmentSize)throw TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");let t=this.segmentSize/8,r=new Uint8Array(e);for(let s=0;s<r.length;s+=t){let o=this.aes.encrypt(c(this,i,"f"));for(let e=0;e<t;e++)r[s+e]^=o[e];c(this,n,"m",a).call(this,e.subarray(s))}return r}}t.CFB=u,s=new WeakMap,i=new WeakMap,n=new WeakSet,a=function(e){let t=this.segmentSize/8;c(this,i,"f").set(c(this,i,"f").subarray(t)),c(this,i,"f").set(e.subarray(0,t),16-t)}},87342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;let n=r(43814),s=r(80171),i=r(45796),a=r(70366),o=r(55266),c=r(54989),l=r(65298),u=r(1700),d=r(91939),f=r(96854),h=r(16887),p=r(80716),g="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});let r=e=>"-"!==t[e]&&("string"==typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"==typeof e&&e.match(/^https?:/))return new f.JsonRpcProvider(e);if("string"==typeof e&&e.match(/^wss?:/)||e&&"function"==typeof e.send&&"function"==typeof e.close)return new p.WebSocketProvider(e);let b=null;try{b=h.Network.from(e)}catch(e){}let m=[];if(r("publicPolygon")&&b&&("matic"===b.name?m.push(new f.JsonRpcProvider("https://polygon-rpc.com/",b,{staticNetwork:b})):"matic-amoy"===b.name&&m.push(new f.JsonRpcProvider("https://rpc-amoy.polygon.technology/",b,{staticNetwork:b}))),r("alchemy"))try{m.push(new i.AlchemyProvider(e,t.alchemy))}catch(e){}if(r("ankr")&&null!=t.ankr)try{m.push(new s.AnkrProvider(e,t.ankr))}catch(e){}if(r("chainstack"))try{m.push(new a.ChainstackProvider(e,t.chainstack))}catch(e){}if(r("cloudflare"))try{m.push(new o.CloudflareProvider(e))}catch(e){}if(r("etherscan"))try{m.push(new c.EtherscanProvider(e,t.etherscan))}catch(e){}if(r("infura"))try{let r,n=t.infura;"object"==typeof n&&(r=n.projectSecret,n=n.projectId),m.push(new l.InfuraProvider(e,n,r))}catch(e){}if(r("quicknode"))try{let r=t.quicknode;m.push(new u.QuickNodeProvider(e,r))}catch(e){}if((0,n.assert)(m.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===m.length)return m[0];let y=Math.floor(m.length/2);return y>2&&(y=2),b&&-1!==g.indexOf(b.name)&&(y=1),t&&t.quorum&&(y=t.quorum),new d.FallbackProvider(m,void 0,{quorum:y})}},87997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0,t.IpcSocketProvider=void 0},88221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var n=r(28191);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}});var s=r(7707);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return s.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return s.encodeBytes32String}});var i=r(57840);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}});var a=r(78266);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return a.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return a.Result}});var o=r(78045);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return o.Typed}})},89455:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;let n=r(43814),s=" !#$%&'()*+,-./<=>?@[]^_`{|}~",i=/^[a-z]*$/i;function a(e,t){let r=97;return e.reduce((e,n)=>(n===t?r++:n.match(i)?e.push(String.fromCharCode(r)+n):(r=97,e.push(n)),e),[])}function o(e,t){for(let r=s.length-1;r>=0;r--)e=e.split(s[r]).join(t.substring(2*r,2*r+2));let r=[],n=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(e,t,n,s)=>{if(n)for(let e=parseInt(n);e>=0;e--)r.push(";");else r.push(t.toLowerCase());return""});if(n)throw Error(`leftovers: ${JSON.stringify(n)}`);return a(a(r,";"),":")}t.decode=o,t.decodeOwl=function(e){return(0,n.assertArgument)("0"===e[0],"unsupported auwl data","data",e),o(e.substring(1+2*s.length),e.substring(1,1+2*s.length))}},89962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},90047:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;let n=r(7528);class s extends n.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=s},90259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;let n=r(43814),s=r(90583);class i{#el;#e4;#e3;#e5;#e6;#e8;constructor(e){this.#el=e,this.#e4=null,this.#e3=this.#e7.bind(this),this.#e5=!1,this.#e6=null,this.#e8=!1}_subscribe(e){throw Error("subclasses must override this")}_emitResults(e,t){throw Error("subclasses must override this")}_recover(e){throw Error("subclasses must override this")}async #e7(e){try{null==this.#e4&&(this.#e4=this._subscribe(this.#el));let e=null;try{e=await this.#e4}catch(e){if(!(0,n.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e){this.#e4=null,this.#el._recoverSubscriber(this,this._recover(this.#el));return}let t=await this.#el.getNetwork();if(this.#e6||(this.#e6=t),this.#e6.chainId!==t.chainId)throw Error("chaid changed");if(this.#e8)return;let r=await this.#el.send("eth_getFilterChanges",[e]);await this._emitResults(this.#el,r)}catch(e){console.log("@TODO",e)}this.#el.once("block",this.#e3)}#e9(){let e=this.#e4;e&&(this.#e4=null,e.then(e=>{this.#el.destroyed||this.#el.send("eth_uninstallFilter",[e])}))}start(){this.#e5||(this.#e5=!0,this.#e7(-2))}stop(){this.#e5&&(this.#e5=!1,this.#e8=!0,this.#e9(),this.#el.off("block",this.#e3))}pause(e){e&&this.#e9(),this.#el.off("block",this.#e3)}resume(){this.start()}}t.FilterIdSubscriber=i;class a extends i{#te;constructor(e,t){super(e),this.#te=JSON.parse(JSON.stringify(t))}_recover(e){return new s.PollingEventSubscriber(e,this.#te)}async _subscribe(e){return await e.send("eth_newFilter",[this.#te])}async _emitResults(e,t){for(let r of t)e.emit(this.#te,e._wrapLog(r,e._network))}}t.FilterIdEventSubscriber=a;class o extends i{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(let r of t)e.emit("pending",r)}}t.FilterIdPendingSubscriber=o},90583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;let n=r(43814);function s(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new i(e):(0,n.isHexString)(t,32)?new l(e,t):void(0,n.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class i{#el;#e3;#tt;#tr;constructor(e){this.#el=e,this.#e3=null,this.#tt=4e3,this.#tr=-2}get pollingInterval(){return this.#tt}set pollingInterval(e){this.#tt=e}async #e7(){try{let e=await this.#el.getBlockNumber();if(-2===this.#tr){this.#tr=e;return}if(e!==this.#tr){for(let t=this.#tr+1;t<=e;t++){if(null==this.#e3)return;await this.#el.emit("block",t)}this.#tr=e}}catch(e){}null!=this.#e3&&(this.#e3=this.#el._setTimeout(this.#e7.bind(this),this.#tt))}start(){this.#e3||(this.#e3=this.#el._setTimeout(this.#e7.bind(this),this.#tt),this.#e7())}stop(){this.#e3&&(this.#el._clearTimeout(this.#e3),this.#e3=null)}pause(e){this.stop(),e&&(this.#tr=-2)}resume(){this.start()}}t.PollingBlockSubscriber=i;class a{#el;#e7;#e5;constructor(e){this.#el=e,this.#e5=!1,this.#e7=e=>{this._poll(e,this.#el)}}async _poll(e,t){throw Error("sub-classes must override this")}start(){this.#e5||(this.#e5=!0,this.#e7(-2),this.#el.on("block",this.#e7))}stop(){this.#e5&&(this.#e5=!1,this.#el.off("block",this.#e7))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=a;class o extends a{#tn;#ts;constructor(e,t){super(e),this.#tn=t,this.#ts=-2}pause(e){e&&(this.#ts=-2),super.pause(e)}async _poll(e,t){let r=await t.getBlock(this.#tn);null!=r&&(-2===this.#ts?this.#ts=r.number:r.number>
40this.#ts&&(t.emit(this.#tn,r.number),this.#ts=r.number))}}t.PollingBlockTagSubscriber=o;class c extends a{#eu;constructor(e,t){super(e),this.#eu=s(t)}async _poll(e,t){throw Error("@TODO")}}t.PollingOrphanSubscriber=c;class l extends a{#ti;constructor(e,t){super(e),this.#ti=t}async _poll(e,t){let r=await t.getTransactionReceipt(this.#ti);r&&t.emit(this.#ti,r)}}t.PollingTransactionSubscriber=l;class u{#el;#eu;#e3;#e5;#tr;constructor(e,t){this.#el=e,this.#eu=s(t),this.#e3=this.#e7.bind(this),this.#e5=!1,this.#tr=-2}async #e7(e){if(-2===this.#tr)return;let t=s(this.#eu);t.fromBlock=this.#tr+1,t.toBlock=e;let r=await this.#el.getLogs(t);if(0===r.length){this.#tr<e-60&&(this.#tr=e-60);return}for(let e of r)this.#el.emit(this.#eu,e),this.#tr=e.blockNumber}start(){this.#e5||(this.#e5=!0,-2===this.#tr&&this.#el.getBlockNumber().then(e=>{this.#tr=e}),this.#el.on("block",this.#e3))}stop(){this.#e5&&(this.#e5=!1,this.#el.off("block",this.#e3))}pause(e){this.stop(),e&&(this.#tr=-2)}resume(){this.start()}}t.PollingEventSubscriber=u},90954:(e,t,r)=>{e.exports=function(){let e=r(55827),t=r(78694),n=new(r(85857)),s=r(41327),i="trace.js: ",a=this,o=[],c=5e3,l=-1,u=0,d=0,f=[],h=null,p=null,g=null,b=[],m=[],y=`<span class="${t.CLASS_LINEEND}">•</span>`,x=`<span class="${t.CLASS_LINEEND}">…</span>`,A=`<span class="${t.CLASS_EMPTY}">𝜺</span>`,w=function(){let e=function(e){b[s.ALT]=e,b[s.CAT]=e,b[s.REP]=e,b[s.TLS]=e,b[s.TBS]=e,b[s.TRG]=e,b[s.AND]=e,b[s.NOT]=e,b[s.BKR]=e,b[s.BKA]=e,b[s.BKN]=e,b[s.ABG]=e,b[s.AEN]=e},t=0;for(let e in a.filter.operators)t+=1;if(0===t)return void e(!1);for(let t in a.filter.operators){let r=t.toUpperCase();if("<ALL>"===r)return void e(!0);if("<NONE>"===r)return void e(!1)}for(let t in e(!1),a.filter.operators){let e=t.toUpperCase();if("ALT"===e)b[s.ALT]=!0===a.filter.operators[t];else if("CAT"===e)b[s.CAT]=!0===a.filter.operators[t];else if("REP"===e)b[s.REP]=!0===a.filter.operators[t];else if("AND"===e)b[s.AND]=!0===a.filter.operators[t];else if("NOT"===e)b[s.NOT]=!0===a.filter.operators[t];else if("TLS"===e)b[s.TLS]=!0===a.filter.operators[t];else if("TBS"===e)b[s.TBS]=!0===a.filter.operators[t];else if("TRG"===e)b[s.TRG]=!0===a.filter.operators[t];else if("BKR"===e)b[s.BKR]=!0===a.filter.operators[t];else if("BKA"===e)b[s.BKA]=!0===a.filter.operators[t];else if("BKN"===e)b[s.BKN]=!0===a.filter.operators[t];else if("ABG"===e)b[s.ABG]=!0===a.filter.operators[t];else if("AEN"===e)b[s.AEN]=!0===a.filter.operators[t];else throw Error(`${i}initOpratorFilter: '${t}' not a valid operator name. Must be <all>, <none>, alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn`)}},v=function(){let e,t,r=function(e){b[s.RNM]=e,b[s.UDT]=e;let t=p.length+g.length;m.length=0;for(let r=0;r<t;r+=1)m.push(e)},n=[];for(t=0;t<p.length;t+=1)n.push(p[t].lower);for(t=0;t<g.length;t+=1)n.push(g[t].lower);for(let t in m.length=0,e=0,a.filter.rules)e+=1;if(0===e)return void r(!0);for(let e in a.filter.rules){let t=e.toLowerCase();if("<all>"===t)return void r(!0);if("<none>"===t)return void r(!1)}for(let e in r(!1),b[s.RNM]=!0,b[s.UDT]=!0,a.filter.rules){let r=e.toLowerCase();if((t=n.indexOf(r))<0)throw Error(`${i}initRuleFilter: '${e}' not a valid rule or udt name`);m[t]=!0===a.filter.rules[e]}};this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){if(l=-1,"number"==typeof e&&e>0)c=Math.ceil(e);else{c=0;return}"number"==typeof t&&(l=Math.floor(t))<0&&(l=-1)},this.getMaxRecords=function(){return c},this.getLastRecord=function(){return l},this.init=function(e,t,r){o.length=0,f.length=0,u=0,d=0,h=r,p=e,g=t,w(),v(),n.init(c)};let E=function(e){return e.type===s.RNM?!!b[e.type]&&!!m[e.index]:e.type===s.UDT?!!b[e.type]&&!!m[p.length+e.index]:b[e.type]},P=function(e){return -1===l||!!(e<=l)};this.down=function(e,t,r,s,i,a){P(u)&&E(e)&&(f.push(u),o[n.increment()]={dirUp:!1,depth:d,thisLine:u,thatLine:void 0,opcode:e,state:t,phraseIndex:r,phraseLength:s,lookAnchor:i,lookAround:a},u+=1,d+=1)},this.up=function(e,t,r,s,i,a){if(P(u)&&E(e)){let c=u,l=f.pop(),h=n.getListIndex(l);-1!==h&&(o[h].thatLine=c),d-=1,o[n.increment()]={dirUp:!0,depth:d,thisLine:c,thatLine:l,opcode:e,state:t,phraseIndex:r,phraseLength:s,lookAnchor:i,lookAround:a},u+=1}};let k=function(){let t,r,i,a;function c(t,r){let n,i,a;
40if(r)switch(t.op={id:r.type,name:e.opcodeToString(r.type)},t.opData=void 0,r.type){case s.RNM:t.opData=p[r.index].name;break;case s.UDT:t.opData=g[r.index].name;break;case s.BKR:n=r.index<p.length?p[r.index].name:g[r.index-p.length].name,i=r.bkrCase===s.BKR_MODE_CI?"%i":"%s",a=r.bkrMode===s.BKR_MODE_UM?"%u":"%p",t.opData=`\\\\${i}${a}${n}`;break;case s.TLS:t.opData=[];for(let e=0;e<r.string.length;e+=1)t.opData.push(r.string[e]);break;case s.TBS:t.opData=[];for(let e=0;e<r.string.length;e+=1)t.opData.push(r.string[e]);break;case s.TRG:case s.REP:t.opData=[r.min,r.max];break;default:throw Error("unrecognized opcode")}else t.op={id:void 0,name:void 0},t.opData=void 0}function l(e,t,r){return e===s.MATCH?{index:t,length:r}:e===s.NOMATCH||e===s.EMPTY?{index:t,length:0}:null}let u=-1;function f(t,r,n){let s={id:u++,branch:-1,parent:t,up:!1,down:!1,depth:n,children:[]};return r?(s.down=!0,s.state={id:r.state,name:e.stateToString(r.state)},s.phrase=null,c(s,r.opcode)):(s.state={id:void 0,name:void 0},s.phrase=l(),c(s,void 0)),s}function b(t,r){r&&(t.up=!0,t.state={id:r.state,name:e.stateToString(r.state)},t.phrase=l(r.state,r.phraseIndex,r.phraseLength),t.down||c(t,r.opcode))}let m=0,y=-1,x=1,A=[],w=!0,v=f(null,null,-1);for(A.push(v),r=v,n.forEach(e=>{if(a=o[e],w&&(w=!1,a.depth>0)){let e=a.dirUp?a.depth+1:a.depth;for(let t=0;t<e;t+=1)i=r,r=f(r,null,t),A.push(r),i.children.push(r)}a.dirUp?(b(r=A.pop(),a),r=A[A.length-1]):(i=r,r=f(r,a,a.depth),A.push(r),i.children.push(r))});A.length>1;)b(r=A.pop(),null);if(0===v.children.length)throw Error("trace.toTree(): parse tree has no nodes");if(0===A.length)throw Error("trace.toTree(): integrity check: dummy root node disappeared?");let E=t=v.children[0];for(;t&&!t.down&&!t.up;)E=t,t=t.children[0];(t=E).leftMost=!0,t.rightMost=!0,function e(t){if(y+=1,t.branch=x,y>d&&(d=y),0===t.children.length)m+=1;else for(let r=0;r<t.children.length;r+=1)r>0&&(x+=1),t.children[r].leftMost=!1,t.children[r].rightMost=!1,t.leftMost&&(t.children[r].leftMost=0===r),t.rightMost&&(t.children[r].rightMost=r===t.children.length-1),e(t.children[r]);y-=1}(t),t.branch=0;let P={};P.string=[];for(let e=0;e<h.length;e+=1)P.string[e]=h[e];P.rules=[];for(let e=0;e<p.length;e+=1)P.rules[e]=p[e].name;P.udts=[];for(let e=0;e<g.length;e+=1)P.udts[e]=g[e].name;return P.id={},P.id.ALT={id:s.ALT,name:"ALT"},P.id.CAT={id:s.CAT,name:"CAT"},P.id.REP={id:s.REP,name:"REP"},P.id.RNM={id:s.RNM,name:"RNM"},P.id.TLS={id:s.TLS,name:"TLS"},P.id.TBS={id:s.TBS,name:"TBS"},P.id.TRG={id:s.TRG,name:"TRG"},P.id.UDT={id:s.UDT,name:"UDT"},P.id.AND={id:s.AND,name:"AND"},P.id.NOT={id:s.NOT,name:"NOT"},P.id.BKR={id:s.BKR,name:"BKR"},P.id.BKA={id:s.BKA,name:"BKA"},P.id.BKN={id:s.BKN,name:"BKN"},P.id.ABG={id:s.ABG,name:"ABG"},P.id.AEN={id:s.AEN,name:"AEN"},P.id.ACTIVE={id:s.ACTIVE,name:"ACTIVE"},P.id.MATCH={id:s.MATCH,name:"MATCH"},P.id.EMPTY={id:s.EMPTY,name:"EMPTY"},P.id.NOMATCH={id:s.NOMATCH,name:"NOMATCH"},P.treeDepth=d,P.leafNodes=m,P.branchesIncomplete=t.down?t.up?"none":"right":t.up?"left":"both",P.tree=function e(t,r){let n,s={};if(s.id=t.id,s.branch=t.branch,s.leftMost=t.leftMost,s.rightMost=t.rightMost,n=t.state.name?t.state.name:"ACTIVE",s.state={id:t.state.id,name:n},n=t.op.name?t.op.name:"?",s.op={id:t.op.id,name:n},"string"==typeof t.opData)s.opData=t.opData;else if(Array.isArray(t.opData)){s.opData=[];for(let e=0;e<t.opData.length;e+=1)s.opData[e]=t.opData[e]}else s.opData=void 0;t.phrase?s.phrase={index:t.phrase.index,length:t.phrase.length}:s.phrase=null,s.depth=t.depth,s.children=[];for(let n=0;n<t.children.length;n+=1){let i=n!==t.children.length-1;s.children[n]=e(t.children[n],r,i)}return s}(t,t.depth,!1),P};this.toTree=function(e){let t=k();return e?JSON.stringify(t):t},this.toHtmlPage=function(t,r,n){return e.htmlToPage(this.toHtml(t,r),n)};let O=function(e,r){let n;switch(e){case 16:n="hexadecimal";break;case 10:n="decimal";break;case 8:n="ASCII";break;case 32:n="UNICODE";break;default:throw Error(`${i}htmlHeader: unrecognized mode: ${e}`)}let s="";return s+=`<p>display mode: ${n}</p> 41<table class="${t.CLASS_TRACE}"> 42`,"string"==typeof r&&(s+=`<caption>${r}</caption>`),s},T=function(){let e="";return e+`</table> 43<p class="${t.CLASS_MONOSPACE}">legend:<br> 44(a) - line number<br> 45(b) - matching line number<br> 46(c) - phrase offset<br> 47(d) - phrase length<br> 48(e) - tree depth<br> 49(f) - operator state<br> 50 - <span class="${t.CLASS_ACTIVE}">↓</span> phrase opened<br> 51 - <span class="${t.CLASS_MATCH}">↑M</span> phrase matched<br> 52 - <span class="${t.CLASS_EMPTY}">↑E</span> empty phrase matched<br> 53 - <span class="${t.CLASS_NOMATCH}">↑N</span> phrase not matched<br> 54operator - ALT, CAT, REP, RNM, TRG, TLS, TBS<sup>†</sup>, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN<sup>‡</sup><br> 55phrase - up to 80 characters of the phrase being matched<br> 56 - <span class="${t.CLASS_MATCH}">matched characters</span><br> 57 - <span class="${t.CLASS_LOOKAHEAD}">matched characters in look ahead mode</span><br> 58 - <span class="${t.CLASS_LOOKBEHIND}">matched characters in look behind mode</span><br> 59 - <span class="${t.CLASS_REMAINDER}">remainder characters(not yet examined by parser)</span><br> 60 - <span class="${t.CLASS_CTRLCHAR}">control characters, TAB, LF, CR, etc. (ASCII mode only)</span><br> 61 - ${A} empty string<br> 62 - ${y} end of input string<br> 63 - ${x} input string display truncated<br> 64</p> 65<p class="${t.CLASS_MONOSPACE}"> 66<sup>†</sup>original ABNF operators:<br> 67ALT - alternation<br> 68CAT - concatenation<br> 69REP - repetition<br> 70RNM - rule name<br> 71TRG - terminal range<br> 72TLS - terminal literal string (case insensitive)<br> 73TBS - terminal binary string (case sensitive)<br> 74<br> 75<sup>‡</sup>super set SABNF operators:<br> 76UDT - user-defined terminal<br> 77AND - positive look ahead<br> 78NOT - negative look ahead<br> 79BKA - positive look behind<br> 80BKN - negative look behind<br> 81BKR - back reference<br> 82ABG - anchor - begin of input string<br> 83AEN - anchor - end of input string<br> 84</p> 85`};this.indent=function(e){let t="";for(let r=0;r<e;r+=1)t+=".";return t};let B=function(e,t){let r="";if(t.type===s.TRG)if(16===e||32===e){let n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n=`0${n}`),r+=16===e?"%x":"U+",r+=n,(n=t.max.toString(16).toUpperCase()).length%2!=0&&(n=`0${n}`),r+=`–${n}`}else r=`%d${t.min.toString(10)}–${t.max.toString(10)}`;return r},S=function(e,t){let r="";if(t.type===s.REP)if(16===e){let e=t.min.toString(16).toUpperCase();e.length%2!=0&&(e=`0${e}`),r=`x${e}`,t.max<1/0?(e=t.max.toString(16).toUpperCase()).length%2!=0&&(e=`0${e}`):e="inf",r+=`–${e}`}else r=t.max<1/0?`${t.min.toString(10)}–${t.max.toString(10)}`:`${t.min.toString(10)}–inf`;return r},C=function(e,t){let r="";if(t.type===s.TBS){let n=Math.min(t.string.length,10);if(16===e||32===e){r+=16===e?"%x":"U+";for(let e=0;e<n;e+=1){let n;e>0&&(r+="."),(n=t.string[e].toString(16).toUpperCase()).length%2!=0&&(n=`0${n}`),r+=n}}else{r="%d";for(let e=0;e<n;e+=1)e>0&&(r+="."),r+=t.string[e].toString(10)}n<t.string.length&&(r+=x)}return r},N=function(t,r){let n="";if(r.type===s.TLS){let s=Math.min(r.string.length,5);if(16===t||10===t){let e,i,a;16===t?(n="%x",a=16):(n="%d",a=10);for(let t=0;t<s;t+=1)t>0&&(n+="."),(i=r.string[t])>=97&&i<=122?(e=i-32,n+=`${e.toString(a)}/${i.toString(a)}`.toUpperCase()):i>=65&&i<=90?(e=i,i+=32,n+=`${e.toString(a)}/${i.toString(a)}`.toUpperCase()):n+=i.toString(a).toUpperCase();
85s<r.string.length&&(n+=x)}else{n='"';for(let t=0;t<s;t+=1)n+=e.asciiChars[r.string[t]];s<r.string.length&&(n+=x),n+='"'}}return n},I=function(t,r,n,s,i){if(0===s)return"";let a="",o=i?",":"";switch(t){case 16:a=o+e.charsToHex(r,n,s);break;case 10:if(i)return`,${e.charsToDec(r,n,s)}`;a=o+e.charsToDec(r,n,s);break;case 32:a=e.charsToUnicode(r,n,s);break;default:a=e.charsToAsciiHtml(r,n,s)}return a},R=function(e,r,n,i,a,o){let c,l,u,d,f="",h=y,p=`<span class="${t.CLASS_LOOKBEHIND}">`,g=`<span class="${t.CLASS_REMAINDER}">`,b="</span>",m=!1;switch(n){case s.EMPTY:f+=A;case s.NOMATCH:case s.MATCH:case s.ACTIVE:l=o-(c=i-a),u=o,d=r.length-u;break;default:throw Error("unrecognized state")}return h=y,l>80?(l=80,h=x,d=0):l+d>80&&(h=x,d=80-l),l>0&&(f+=p,f+=I(e,r,c,l,m),f+=b,m=!0),d>0&&(f+=g,f+=I(e,r,u,d,m),f+=b),f+h},L=function(e,r,n,i,a,o){let c,l,u,d,f="",h=y,p=`<span class="${t.CLASS_REMAINDER}">`,g="</span>",b=!1;switch(n){case s.EMPTY:f+=A;case s.NOMATCH:case s.ACTIVE:c=i,l=0,u=i,d=r.length-u;break;case s.MATCH:c=i,u=i+(l=a),d=r.length-u;break;default:throw Error("unrecognized state")}return h=y,l>80?(l=80,h=x,d=0):l+d>80&&(h=x,d=80-l),l>0&&(f+=o,f+=I(e,r,c,l,b),f+=g,b=!0),d>0&&(f+=p,f+=I(e,r,u,d,b),f+=g),f+h},M=function(r){let i,c,l,u,d,f;if(null===p)return"";let b="";return b+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",b+="<th>operator</th><th>phrase</th></tr>\n",n.forEach(n=>{var m,y,x,A;let w=o[n];switch(i=w.thisLine,c=void 0!==w.thatLine?w.thatLine:"--",l=!1,u=!1,d=!1,w.lookAround===s.LOOKAROUND_AHEAD&&(l=!0,d=!0,f=w.lookAnchor),(w.opcode.type===s.AND||w.opcode.type===s.NOT)&&(l=!0,d=!0,f=w.phraseIndex),w.lookAround===s.LOOKAROUND_BEHIND&&(u=!0,d=!0,f=w.lookAnchor),(w.opcode.type===s.BKA||w.opcode.type===s.BKN)&&(u=!0,d=!0,f=w.phraseIndex),b+="<tr>",b+=`<td>${i}</td><td>${c}</td>`,b+=`<td>${w.phraseIndex}</td>`,b+=`<td>${w.phraseLength}</td>`,b+=`<td>${w.depth}</td>`,b+="<td>",w.state){case s.ACTIVE:b+=`<span class="${t.CLASS_ACTIVE}">↓ </span>`;break;case s.MATCH:b+=`<span class="${t.CLASS_MATCH}">↑M</span>`;break;case s.NOMATCH:b+=`<span class="${t.CLASS_NOMATCH}">↑N</span>`;break;case s.EMPTY:b+=`<span class="${t.CLASS_EMPTY}">↑E</span>`;break;default:b+=`<span class="${t.CLASS_ACTIVE}">--</span>`}if(b+="</td>",b+="<td>",b+=a.indent(w.depth),l?b+=`<span class="${t.CLASS_LOOKAHEAD}">`:u&&(b+=`<span class="${t.CLASS_LOOKBEHIND}">`),b+=e.opcodeToString(w.opcode.type),w.opcode.type===s.RNM&&(b+=`(${p[w.opcode.index].name}) `),w.opcode.type===s.BKR){let e=w.opcode.bkrCase===s.BKR_MODE_CI?"%i":"%s",t=w.opcode.bkrMode===s.BKR_MODE_UM?"%u":"%p";b+=`(\\${e}${t}${p[w.opcode.index].name}) `}(w.opcode.type===s.UDT&&(b+=`(${g[w.opcode.index].name}) `),w.opcode.type===s.TRG&&(b+=`(${B(r,w.opcode)}) `),w.opcode.type===s.TBS&&(b+=`(${C(r,w.opcode)}) `),w.opcode.type===s.TLS&&(b+=`(${N(r,w.opcode)}) `),w.opcode.type===s.REP&&(b+=`(${S(r,w.opcode)}) `),d&&(b+="</span>"),b+="</td>",b+="<td>",u)?b+=R(r,h,w.state,w.phraseIndex,w.phraseLength,f):l?b+=(m=h,y=w.state,L(r,m,y,w.phraseIndex,w.phraseLength,`<span class="${t.CLASS_LOOKAHEAD}">`)):b+=(x=h,A=w.state,L(r,x,A,w.phraseIndex,w.phraseLength,`<span class="${t.CLASS_MATCH}">`)),b+="</td></tr>\n"}),b+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",b+="<th>operator</th><th>phrase</th></tr>\n",b+="</table>\n"};this.toHtml=function(e,t){let r=8;if("string"==typeof e&&e.length>=3){let t=e.toLowerCase().slice(0,3);"hex"===t?r=16:"dec"===t?r=10:"uni"===t&&(r=32)}let n="";return n+=O(r,t),n+=M(r),n+=T()}}},91237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;let n=r(88221),s=r(8651),i=r(36866),a=r(43814),o=r(48275),c=BigInt(0);function l(e){return e&&"function"==typeof e.call}function u(e){return e&&"function"==typeof e.estimateGas}function d(e){return e&&"function"==typeof e.resolveName}function f(e){return e&&"function"==typeof e.sendTransaction}function h(e){if(null!=e){if(d(e))return e;if(e.provider)return e.provider}}class p{#eu;fragment;constructor(e,t,r){if((0,a.defineProperties)(this,{fragment:t}
85),t.inputs.length<r.length)throw Error("too many arguments");let n=g(e.runner,"resolveName"),i=d(n)?n:null;this.#eu=async function(){let n=await Promise.all(t.inputs.map((e,t)=>null==r[t]?null:e.walkAsync(r[t],(e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map(e=>(0,s.resolveAddress)(e,i))):(0,s.resolveAddress)(t,i):t)));return e.interface.encodeFilterTopics(t,n)}()}getTopicFilter(){return this.#eu}}function g(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function b(e){return null==e?null:e.provider||null}async function m(e,t){let r=n.Typed.dereference(e,"overrides");(0,a.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",e);let s=(0,i.copyRequest)(r);return(0,a.assertArgument)(null==s.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",s.to),(0,a.assertArgument)(null==s.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",s.data),s.from&&(s.from=s.from),s}async function y(e,t,r){let i=g(e,"resolveName"),a=d(i)?i:null;return await Promise.all(t.map((e,t)=>e.walkAsync(r[t],(e,t)=>(t=n.Typed.dereference(t,e),"address"===e)?(0,s.resolveAddress)(t,a):t)))}t.copyOverrides=m,t.resolveArgs=y;let x=Symbol.for("_ethersInternal_contract"),A=new WeakMap;function w(e){return A.get(e[x])}async function v(e,t){let r,n=null;if(Array.isArray(t)){let n=function(t){if((0,a.isHexString)(t,32))return t;let r=e.interface.getEvent(t);return(0,a.assertArgument)(r,"unknown fragment","name",t),r.topicHash};r=t.map(e=>null==e?null:Array.isArray(e)?e.map(n):n(e))}else if("*"===t)r=[null];else if("string"==typeof t)(0,a.isHexString)(t,32)?r=[t]:(n=e.interface.getEvent(t),(0,a.assertArgument)(n,"unknown fragment","event",t),r=[n.topicHash]);else t&&"object"==typeof t&&"getTopicFilter"in t&&"function"==typeof t.getTopicFilter&&t.fragment?r=await t.getTopicFilter():"fragment"in t?r=[(n=t.fragment).topicHash]:(0,a.assertArgument)(!1,"unknown event name","event",t);return{fragment:n,tag:(r=r.map(e=>{if(null==e)return null;if(Array.isArray(e)){let t=Array.from(new Set(e.map(e=>e.toLowerCase())).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})).map(e=>null==e?"null":Array.isArray(e)?e.join("|"):e).join("&"),topics:r}}async function E(e,t){let{subs:r}=w(e);return r.get((await v(e,t)).tag)||null}async function P(e,t,r){let n=b(e.runner);(0,a.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:s,tag:i,topics:c}=await v(e,r),{addr:l,subs:u}=w(e),d=u.get(i);if(!d){let t={address:l||e,topics:c},a=t=>{let n=s;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){let i=n,a=s?e.interface.decodeEventLog(s,t.data,t.topics):[];T(e,r,a,n=>new o.ContractEventPayload(e,n,r,i,t))}else T(e,r,[],n=>new o.ContractUnknownEventPayload(e,n,r,t))},f=[];d={tag:i,listeners:[],start:()=>{f.length||f.push(n.on(t,a))},stop:async()=>{if(0==f.length)return;let e=f;f=[],await Promise.all(e),n.off(t,a)}},u.set(i,d)}return d}let k=Promise.resolve();async function O(e,t,r,n){await k;let s=await E(e,t);if(!s)return!1;let i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:t,once:s})=>{let i=Array.from(r);n&&i.push(n(s?null:t));try{t.call(e,...i)}catch(e){}return!s}),0===s.listeners.length&&(s.stop(),w(e).subs.delete(s.tag)),i>0}async function T(e,t,r,n){try{await k}catch(e){}let s=O(e,t,r,n);return k=s,await s}let B=["then"];class S{target;interface;runner;filters;[x];fallback;
85constructor(e,t,r,i){var p;let y;(0,a.assertArgument)("string"==typeof e||(0,s.isAddressable)(e),"invalid value for Contract target","target",e),null==r&&(r=null);let v=n.Interface.from(t);(0,a.defineProperties)(this,{target:e,runner:r,interface:v}),Object.defineProperty(this,x,{value:{}});let E=null,P=null;if(i){let e=b(r);P=new o.ContractTransactionResponse(this.interface,e,i)}let k=new Map;if("string"==typeof e)if((0,a.isHexString)(e))E=e,y=Promise.resolve(e);else{let t=g(r,"resolveName");if(!d(t))throw(0,a.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});y=t.resolveName(e).then(t=>{if(null==t)throw(0,a.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return w(this).addr=t,t})}else y=e.getAddress().then(e=>{if(null==e)throw Error("TODO");return w(this).addr=e,e});p={addrPromise:y,addr:E,deployTx:P,subs:k},A.set(this[x],p);let O=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||B.indexOf(t)>=0)return Reflect.get(e,t,r);try{return this.getEvent(t)}catch(e){if(!(0,a.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>B.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,a.defineProperties)(this,{filters:O}),(0,a.defineProperties)(this,{fallback:v.receive||v.fallback?function(e){let t=async function(t){let r=await m(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await (0,s.resolveAddress)(r.from,h(e.runner)));let n=e.interface,i=(0,a.getBigInt)(r.value||c,"overrides.value")===c,o="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||o||i||(0,a.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,a.assertArgument)(n.fallback||o,"cannot send data to receive-only contract","overrides.data",r.data);let l=n.receive||n.fallback&&n.fallback.payable;return(0,a.assertArgument)(l||i,"cannot send value to non-payable fallback","overrides.value",r.value),(0,a.assertArgument)(n.fallback||o,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){let n=g(e.runner,"call");(0,a.assert)(l(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let s=await t(r);try{return await n.call(s)}catch(t){if((0,a.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,s);throw t}},n=async function(r){let n=e.runner;(0,a.assert)(f(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let s=await n.sendTransaction(await t(r)),i=b(e.runner);return new o.ContractTransactionResponse(e.interface,i,s)},i=async function(r){let n=g(e.runner,"estimateGas");return(0,a.assert)(u(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},d=async e=>await n(e);return(0,a.defineProperties)(d,{_contract:e,estimateGas:i,populateTransaction:t,send:n,staticCall:r}),d}(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||B.indexOf(t)>=0)return Reflect.get(e,t,r);try{return e.getFunction(t)}catch(e){if(!(0,a.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||B.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new S(this.target,this.interface,e)}attach(e){return new S(e,this.interface,this.runner)}async getAddress(){return await w(this).addrPromise}async getDeployedCode(){let e=b(this.runner);(0,a.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){let e=this.deploymentTransaction();
85if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;let t=b(this.runner);return(0,a.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((e,r)=>{let n=async()=>{try{let r=await this.getDeployedCode();if(null!=r)return e(this);t.once("block",n)}catch(e){r(e)}};n()})}deploymentTransaction(){return w(this).deployTx}getFunction(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getFunction(t,r);return(0,a.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=async function(...t){let n=r(...t),i={};if(n.inputs.length+1===t.length&&(i=await m(t.pop())).from&&(i.from=await (0,s.resolveAddress)(i.from,h(e.runner))),n.inputs.length!==t.length)throw Error("internal error: fragment inputs doesn't match arguments; should not happen");let o=await y(e.runner,n.inputs,t);return Object.assign({},i,await (0,a.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(n,o)}))},i=async function(...e){let t=await p(...e);return 1===t.length?t[0]:t},c=async function(...t){let r=e.runner;(0,a.assert)(f(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let s=await r.sendTransaction(await n(...t)),i=b(e.runner);return new o.ContractTransactionResponse(e.interface,i,s)},d=async function(...t){let r=g(e.runner,"estimateGas");return(0,a.assert)(u(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},p=async function(...t){let s=g(e.runner,"call");(0,a.assert)(l(s),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let i=await n(...t),o="0x";try{o=await s.call(i)}catch(t){if((0,a.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,i);throw t}let c=r(...t);return e.interface.decodeFunctionResult(c,o)},x=async(...e)=>r(...e).constant?await i(...e):await c(...e);return(0,a.defineProperties)(x,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:d,populateTransaction:n,send:c,staticCall:i,staticCallResult:p}),Object.defineProperty(x,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getFunction(t);return(0,a.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),x}(this,e)}getEvent(e){"string"!=typeof e&&(e=e.format());var t=this,r=e;let n=function(...e){let n=t.interface.getEvent(r,e);return(0,a.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:r,args:e}}),n},s=function(...e){return new p(t,n(...e),e)};return(0,a.defineProperties)(s,{name:t.interface.getEventName(r),_contract:t,_key:r,getFragment:n}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{let e=t.interface.getEvent(r);return(0,a.assert)(e,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:r}}),e}}),s}async queryTransaction(e){throw Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");let{addr:n,addrPromise:s}=w(this),c=n||await s,{fragment:l,topics:u}=await v(this,e),d={address:c,topics:u,fromBlock:t,toBlock:r},f=b(this.runner);return(0,a.assert)(f,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await f.getLogs(d)).map(e=>{let t=l;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new o.EventLog(e,this.interface,t)}catch(t){return new o.UndecodedEventLog(e,t)}return new i.Log(e,f)})}async on(e,t){let r=await P(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){let r=await P(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await T(this,e,t,null)}async listenerCount(e){if(e){let t=await E(this,e);return t?t.listeners.length:0}let{subs:t}=w(this),r=0;for(let{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){let t=await E(this,e);return t?t.listeners.map(({listener:e})=>e):[]}let{subs:t}=w(this),r=[];for(let{listeners:e}of t.values())r=r.concat(e.map(({listener:e})=>e));return r}async off(e,t){let r=await E(this,e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return(null==t||0===r.listeners.length)&&(r.stop(),w(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){let t=await E(this,e);if(!t)return this;t.stop(),w(this).subs.delete(t.tag)}else{let{subs:e}=w(this);for(let{tag:t,stop:r}of e.values())r(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends S{constructor(t,r=null){super(t,e,r)}}return t}static from(e,t,r){return null==r&&(r=null),new this(e,t,r)}}function C(){return S}t.BaseContract=S;class N extends C(){}t.Contract=N},91880:(e,t,r)=>{"use strict";
85Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;let n=r(70721),s=r(66522);class i extends n.WordlistOwl{#ta;constructor(e,t,r,n){super(e,t,n),this.#ta=r}get _accent(){return this.#ta}_decodeWords(){return(0,s.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=i},91939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;let n=r(43814),s=r(93061),i=r(16887),a=BigInt("1"),o=BigInt("2");function c(){return new Date().getTime()}function l(e){return JSON.stringify(e,(e,t)=>"bigint"==typeof t?{type:"bigint",value:t.toString()}:t)}let u={stallTimeout:400,priority:1,weight:1},d={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function f(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{let t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=c()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}function h(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(h).join(",")+"]";if("object"==typeof e&&"function"==typeof e.toJSON)return h(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{"+t.map(t=>`${JSON.stringify(t)}:${h(e[t])}`).join(",")+"}"}}throw console.log("Could not serialize",e),Error("Hmm...")}function p(e,t){if("error"in t){let e=t.error;return{tag:(0,n.isError)(e,"CALL_EXCEPTION")?h(Object.assign({},e,{shortMessage:void 0,reason:void 0,info:void 0})):h(e),value:e}}let r=t.result;return{tag:h(r),value:r}}function g(e,t){let r=new Map;for(let{value:e,tag:n,weight:s}of t){let t=r.get(n)||{value:e,weight:0};t.weight+=s,r.set(n,t)}let n=null;for(let t of r.values())t.weight>=e&&(!n||t.weight>n.weight)&&(n=t);if(n)return n.value}function b(e,t){let r=0,n=new Map,s=null,i=[];for(let{value:e,tag:a,weight:o}of t)if(e instanceof Error){let t=n.get(a)||{value:e,weight:0};t.weight+=o,n.set(a,t),(null==s||t.weight>s.weight)&&(s=t)}else i.push(BigInt(e)),r+=o;if(r<e)return s&&s.weight>=e?s.value:void 0;i.sort((e,t)=>e<t?-1:+(t>e));let c=Math.floor(i.length/2);return i.length%2?i[c]:(i[c-1]+i[c]+a)/o}function m(e,t){let r=g(e,t);if(void 0!==r)return r;for(let e of t)if(e.value)return e.value}class y extends s.AbstractProvider{quorum;eventQuorum;eventWorkers;#to;#tc;#tl;constructor(e,t,r){super(t,r),this.#to=e.map(e=>e instanceof s.AbstractProvider?Object.assign({provider:e},u,d):Object.assign({},u,e,d)),this.#tc=-2,this.#tl=null,r&&null!=r.quorum?this.quorum=r.quorum:this.quorum=Math.ceil(this.#to.reduce((e,t)=>e+=t.weight,0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,n.assertArgument)(this.quorum<=this.#to.reduce((e,t)=>e+t.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return this.#to.map(e=>{let t=Object.assign({},e);for(let e in t)"_"===e[0]&&delete t[e];return t})}async _detectNetwork(){return i.Network.from((0,n.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{let r="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(r,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}#tu(e){let t=Array.from(e).map(e=>e.config),r=this.#to.slice();for(let e=r.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}for(let e of(r.sort((e,t)=>
85e.priority-t.priority),r))if(!e._lastFatalError&&-1===t.indexOf(e))return e;return null}#td(e,t){let r=this.#tu(e);if(null==r)return null;let n={config:r,result:null,didBump:!1,perform:null,staller:null},s=c();return n.perform=(async()=>{try{r.requests++,n.result={result:await this._translatePerform(r.provider,t)}}catch(e){r.errorResponses++,n.result={error:e}}let e=c()-s;r._totalTime+=e,r.rollingDuration=.95*r.rollingDuration+.05*e,n.perform=null})(),n.staller=(async()=>{var e;await (e=r.stallTimeout,new Promise(t=>{setTimeout(t,e)})),n.staller=null})(),e.add(n),n}async #tf(){let e=this.#tl;if(!e){let t=[];this.#to.forEach(e=>{t.push((async()=>{await f(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())}),this.#tl=e=(async()=>{await Promise.all(t);let e=null;for(let t of this.#to){if(t._lastFatalError)continue;let r=t._network;null==e?e=r.chainId:r.chainId!==e&&(0,n.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await e}async #th(e,t){let r=[];for(let n of e)if(null!=n.result){let{tag:e,value:s}=p(t.method,n.result);r.push({tag:e,value:s,weight:n.config.weight})}if(!(r.reduce((e,t)=>e+t.weight,0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===this.#tc&&(this.#tc=Math.ceil((0,n.getNumber)(b(this.quorum,this.#to.filter(e=>!e._lastFatalError).map(e=>({value:e.blockNumber,tag:(0,n.getNumber)(e.blockNumber).toString(),weight:e.weight}))))));let e=function(e,t){let r;if(1===e)return(0,n.getNumber)(b(e,t),"%internal");let s=new Map,i=(e,t)=>{let r=s.get(e)||{result:e,weight:0};r.weight+=t,s.set(e,r)};for(let{weight:e,value:r}of t){let t=(0,n.getNumber)(r);i(t-1,e),i(t,e),i(t+1,e)}let a=0;for(let{weight:t,result:n}of s.values())t>=e&&(t>a||null!=r&&t===a&&n>r)&&(a=t,r=n);return r}(this.quorum,r);if(void 0===e)return;return e>this.#tc&&(this.#tc=e),this.#tc}case"getGasPrice":case"getPriorityFee":case"estimateGas":return b(this.quorum,r);case"getBlock":if("blockTag"in t&&"pending"===t.blockTag)return m(this.quorum,r);return g(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return g(this.quorum,r);case"broadcastTransaction":return m(this.quorum,r)}(0,n.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${l(t.method)})`})}}async #tp(e,t){if(0===e.size)throw Error("no runners?!");let r=[],s=0;for(let t of e){if(t.perform&&r.push(t.perform),t.staller){r.push(t.staller);continue}!t.didBump&&(t.didBump=!0,s++)}let i=await this.#th(e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let r=0;r<s;r++)this.#td(e,t);return(0,n.assert)(r.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map(e=>l(e.result))}}),await Promise.race(r),await this.#tp(e,t)}async _perform(e){if("broadcastTransaction"===e.method){let t=this.#to.map(e=>null),r=this.#to.map(async({provider:r,weight:n},s)=>{try{let i=await r._perform(e);t[s]=Object.assign(p(e.method,{result:i}),{weight:n})}catch(r){t[s]=Object.assign(p(e.method,{error:r}),{weight:n})}});for(;;){for(let{value:e}of t.filter(e=>null!=e))if(!(e instanceof Error))return e;let e=g(this.quorum,t.filter(e=>null!=e));if((0,n.isError)(e,"INSUFFICIENT_FUNDS"))throw e;let s=r.filter((e,r)=>null==t[r]);if(0===s.length)break;await Promise.race(s)}let s=m(this.quorum,t);if((0,n.assert)(void 0!==s,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(l)}}),s instanceof Error)throw s;return s}await this.#tf();let t=new Set,r=0;for(;;){let n=this.#td(t,e);if(null==n||(r+=n.config.weight)>=this.quorum)break}let s=await this.#tp(t,e);for(let e of t)e.perform&&null==e.result&&e.config.lateResponses++;return s}async destroy(){for(let{provider:e}of this.#to)e.destroy();super.destroy()}}t.FallbackProvider=y},92055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;let r=BigInt(0),n=BigInt(1),s=BigInt(2),i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t}function o(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function c(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,s=Number.parseInt(e.slice(n,n+2),16);if(Number.isNaN(s)||s<0)throw Error("Invalid byte sequence");r[t]=s}return r}function u(e,t){return l(e.toString(16).padStart(2*t,"0"))}function d(...e){let t=new Uint8Array(e.reduce((e,t)=>
85e+t.length,0)),r=0;return e.forEach(e=>{if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}t.bytesToHex=a,t.numberToHexUnpadded=o,t.hexToNumber=c,t.hexToBytes=l,t.bytesToNumberBE=function(e){return c(a(e))},t.bytesToNumberLE=function(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");return c(a(Uint8Array.from(e).reverse()))},t.numberToBytesBE=u,t.numberToBytesLE=function(e,t){return u(e,t).reverse()},t.numberToVarBytesBE=function(e){return l(o(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(t instanceof Uint8Array)n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let s=n.length;if("number"==typeof r&&s!==r)throw Error(`${e} expected ${r} bytes, got ${s}`);return n},t.concatBytes=d,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.utf8ToBytes=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=(e,t,s)=>e|(s?n:r)<<BigInt(t),t.bitMask=e=>(s<<BigInt(e-1))-n;let f=e=>new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=f(e),s=f(e),i=0,a=()=>{n.fill(1),s.fill(0),i=0},o=(...e)=>r(s,n,...e),c=(e=f())=>{s=o(h([0]),e),n=o(),0!==e.length&&(s=o(h([1]),e),n=o())},l=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=o()).slice();r.push(t),e+=n.length}return d(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(l()));)c();return a(),r}};let p={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let s=p[r];if("function"!=typeof s)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!s(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},92111:function(e,t){"use strict";var r,n,s,i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},a=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r};Object.defineProperty(t,"__esModule",{value:!0}),t.AES=void 0;let o={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,23
851,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],f=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0,0x2cc1eded,0x60402020,0x1fe3fcf
85c,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x830b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],h=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0
85xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],p=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],g=[0x51f4a750,0x7e416553,0x1a17a4c3,0x3a275e96,0x3bab6bcb,0x1f9d45f1,0xacfa58ab,0x4be30393,0x2030fa55,0xad766df6,0x88cc7691,0xf5024c25,0x4fe5d7fc,0xc52acbd7,0x26354480,0xb562a38f,0xdeb15a49,0x25ba1b67,0x45ea0e98,0x5dfec0e1,0xc32f7502,0x814cf012,0x8d4697a3,0x6bd3f9c6,0x38f5fe7,0x15929c95,0xbf6d7aeb,0x955259da,0xd4be832d,0x587421d3,0x49e06929,0x8ec9c844,0x75c2896a,0xf48e7978,0x99583e6b,0x27b971dd,0xbee14fb6,0xf088ad17,0xc920ac66,0x7dce3ab4,0x63df4a18,0xe51a3182,0x97513360,0x62537f45,0xb16477e0,0xbb6bae84,0xfe81a01c,0xf9082b94,0x70486858,0x8f45fd19,0x94de6c87,0x527bf8b7,0xab73d323,0x724b02e2,0xe31f8f57,0x6655ab2a,0xb2eb2807,0x2fb5c203,0x86c57b9a,0xd33708a5,0x302887f2,0x23bfa5b2,0x2036aba,0xed16825c,0x8acf1c2b,0xa779b492,0xf307f2f0,0x4e69e2a1,0x65daf4cd,0x605bed5,0xd134621f,0xc4a6fe8a,0x342e539d,0xa2f355a0,0x58ae132,0xa4f6eb75,0xb83ec39,0x4060efaa,0x5e719f06,0xbd6e1051,0x3e218af9,0x96dd063d,0xdd3e05ae,0x4de6bd46,0x91548db5,0x71c45d05,0x406d46f,0x605015ff,0x1998fb24,0xd6bde997,0x894043cc,0x67d99e77,0xb0e842bd,0x7898b88,0xe7195b38,0x79c8eedb,0xa17c0a47,0x7c420fe9,0xf8841ec9,0,0x9808683,0x322bed48,0x1e1170ac,0x6c5a724e,0xfd0efffb,0xf853856,0x3daed51e,0x362d3927,0xa0fd964,0x685ca621,0x9b5b54d1,0x24362e3a,0xc0a67b1,0x9357e70f,0xb4ee9
856d2,0x1b9b919e,0x80c0c54f,0x61dc20a2,0x5a774b69,0x1c121a16,0xe293ba0a,0xc0a02ae5,0x3c22e043,0x121b171d,0xe090d0b,0xf28bc7ad,0x2db6a8b9,0x141ea9c8,0x57f11985,0xaf75074c,0xee99ddbb,0xa37f60fd,0xf701269f,0x5c72f5bc,0x44663bc5,0x5bfb7e34,0x8b432976,0xcb23c6dc,0xb6edfc68,0xb8e4f163,0xd731dcca,0x42638510,0x13972240,0x84c61120,0x854a247d,0xd2bb3df8,0xaef93211,0xc729a16d,0x1d9e2f4b,0xdcb230f3,0xd8652ec,0x77c1e3d0,0x2bb3166c,0xa970b999,0x119448fa,0x47e96422,0xa8fc8cc4,0xa0f03f1a,0x567d2cd8,0x223390ef,0x87494ec7,0xd938d1c1,0x8ccaa2fe,0x98d40b36,0xa6f581cf,0xa57ade28,0xdab78e26,0x3fadbfa4,0x2c3a9de4,0x5078920d,0x6a5fcc9b,0x547e4662,0xf68d13c2,0x90d8b8e8,0x2e39f75e,0x82c3aff5,0x9f5d80be,0x69d0937c,0x6fd52da9,0xcf2512b3,0xc8ac993b,0x10187da7,0xe89c636e,0xdb3bbb7b,0xcd267809,0x6e5918f4,0xec9ab701,0x834f9aa8,0xe6956e65,0xaaffe67e,0x21bccf08,0xef15e8e6,0xbae79bd9,0x4a6f36ce,0xea9f09d4,0x29b07cd6,0x31a4b2af,0x2a3f2331,0xc6a59430,0x35a266c0,0x744ebc37,0xfc82caa6,0xe090d0b0,0x33a7d815,0xf104984a,0x41ecdaf7,0x7fcd500e,0x1791f62f,0x764dd68d,0x43efb04d,0xccaa4d54,0xe49604df,0x9ed1b5e3,0x4c6a881b,0xc12c1fb8,0x4665517f,0x9d5eea04,0x18c355d,0xfa877473,0xfb0b412e,0xb3671d5a,0x92dbd252,0xe9105633,0x6dd64713,0x9ad7618c,0x37a10c7a,0x59f8148e,0xeb133c89,0xcea927ee,0xb761c935,0xe11ce5ed,0x7a47b13c,0x9cd2df59,0x55f2733f,0x1814ce79,0x73c737bf,0x53f7cdea,0x5ffdaa5b,0xdf3d6f14,0x7844db86,0xcaaff381,0xb968c43e,0x3824342c,0xc2a3405f,0x161dc372,0xbce2250c,0x283c498b,0xff0d9541,0x39a80171,0x80cb3de,0xd8b4e49c,0x6456c190,0x7bcb8461,0xd532b670,0x486c5c74,0xd0b85742],b=[0x5051f4a7,0x537e4165,0xc31a17a4,0x963a275e,0xcb3bab6b,0xf11f9d45,0xabacfa58,0x934be303,0x552030fa,0xf6ad766d,0x9188cc76,0x25f5024c,0xfc4fe5d7,0xd7c52acb,0x80263544,0x8fb562a3,0x49deb15a,0x6725ba1b,0x9845ea0e,0xe15dfec0,0x2c32f75,0x12814cf0,0xa38d4697,0xc66bd3f9,0xe7038f5f,0x9515929c,0xebbf6d7a,0xda955259,0x2dd4be83,0xd3587421,0x2949e069,0x448ec9c8,0x6a75c289,0x78f48e79,0x6b99583e,0xdd27b971,0xb6bee14f,0x17f088ad,0x66c920ac,0xb47dce3a,0x1863df4a,0x82e51a31,0x60975133,0x4562537f,0xe0b16477,0x84bb6bae,0x1cfe81a0,0x94f9082b,0x58704868,0x198f45fd,0x8794de6c,0xb7527bf8,0x23ab73d3,0xe2724b02,0x57e31f8f,0x2a6655ab,0x7b2eb28,0x32fb5c2,0x9a86c57b,0xa5d33708,0xf2302887,0xb223bfa5,0xba02036a,0x5ced1682,0x2b8acf1c,0x92a779b4,0xf0f307f2,0xa14e69e2,0xcd65daf4,0xd50605be,0x1fd13462,0x8ac4a6fe,0x9d342e53,0xa0a2f355,0x32058ae1,0x75a4f6eb,0x390b83ec,0xaa4060ef,0x65e719f,0x51bd6e10,0xf93e218a,0x3d96dd06,0xaedd3e05,0x464de6bd,0xb591548d,0x571c45d,0x6f0406d4,0xff605015,0x241998fb,0x97d6bde9,0xcc894043,0x7767d99e,0xbdb0e842,0x8807898b,0x38e7195b,0xdb79c8ee,0x47a17c0a,0xe97c420f,0xc9f8841e,0,0x83098086,0x48322bed,0xac1e1170,0x4e6c5a72,0xfbfd0eff,0x560f8538,0x1e3daed5,0x27362d39,0x640a0fd9,0x21685ca6,0xd19b5b54,0x3a24362e,0xb10c0a67,0xf9357e7,0xd2b4ee96,0x9e1b9b91,0x4f80c0c5,0xa261dc20,0x695a774b,0x161c121a,0xae293ba,0xe5c0a02a,0x433c22e0,0x1d121b17,0xb0e090d,0xadf28bc7,0xb92db6a8,0xc8141ea9,0x8557f119,0x4caf7507,0xbbee99dd,0xfda37f60,0x9ff70126,0xbc5c72f5,0xc544663b,0x345bfb7e,0x768b4329,0xdccb23c6,0x68b6edfc,0x63b8e4f1,0xcad731dc,0x10426385,0x40139722,0x2084c611,0x7d854a24,0xf8d2bb3d,0x11aef932,0x6dc729a1,0x4b1d9e2f,0xf3dcb230,0xec0d8652,0xd077c1e3,0x6c2bb316,0x99a970b9,0xfa119448,0x2247e964,0xc4a8fc8c,0x1aa0f03f,0xd8567d2c,0xef223390,0xc787494e,0xc1d938d1,0xfe8ccaa2,0x3698d40b,0xcfa6f581,0x28a57ade,0x26dab78e,0xa43fadbf,0xe42c3a9d,0xd507892,0x9b6a5fcc,0x62547e46,0xc2f68d13,0xe890d8b8,0x5e2e39f7,0xf582c3af,0xbe9f5d80,0x7c69d093,0xa96fd52d,0xb3cf2512,0x3bc8ac99,0xa710187d,0x6ee89c63,0x7bdb3bbb,0x9cd2678,0xf46e5918,0x1ec9ab7,0xa8834f9a,0x65e6956e,0x7eaaffe6,0x821bccf,0xe6ef15e8,0xd9bae79b,0xce4a6f36,0xd4ea9f09,0xd629b07c,0xaf31a4b2,0x312a3f23,0x30c6a594,0xc035a266,0x37744ebc,0xa6fc82ca,0xb0e090d0,0x1533a7d8,0x4af10498,0xf741ecda,0xe7fcd50,0x2f1791f6,0x8d764dd6,0x4d43efb0,0x54ccaa4d,0xdfe49604,0xe39ed1b5,0x1b4c6a88,0xb8c12c1f,0x7f466551,0x49d5eea,0x5d018c35,0x73fa8774,0x2efb0b41,0x5ab3671d,0x5292dbd2,0x33e91056,0x136dd647,0x8c9ad761,0x7a37a10c,0x8e59f814,0x89eb133c,0xeecea927,0x35b761c9,0xede11ce5,0x3c7a47b1,0x599cd2df,0x3f55f273,0x791814ce,0xbf73c737,0xea53f7cd,0x5b5ffdaa,0x14df3d6f,0x867844db,0x81caaff3,0x3eb968c4,0x2c382434,0x5fc2a340,0x72161dc3,0xcbce225,0x8b283c49,0x41ff0d95,0x7139a801,0xde080cb3,0x9cd8b4e4,0x906456c1,
850x617bcb84,0x70d532b6,0x74486c5c,0x42d0b857],m=[0xa75051f4,0x65537e41,0xa4c31a17,0x5e963a27,0x6bcb3bab,0x45f11f9d,0x58abacfa,0x3934be3,0xfa552030,0x6df6ad76,0x769188cc,0x4c25f502,0xd7fc4fe5,0xcbd7c52a,0x44802635,0xa38fb562,0x5a49deb1,0x1b6725ba,0xe9845ea,0xc0e15dfe,0x7502c32f,0xf012814c,0x97a38d46,0xf9c66bd3,0x5fe7038f,0x9c951592,0x7aebbf6d,0x59da9552,0x832dd4be,0x21d35874,0x692949e0,0xc8448ec9,0x896a75c2,0x7978f48e,1047239e3,0x71dd27b9,0x4fb6bee1,0xad17f088,0xac66c920,0x3ab47dce,0x4a1863df,0x3182e51a,0x33609751,0x7f456253,0x77e0b164,0xae84bb6b,0xa01cfe81,0x2b94f908,0x68587048,0xfd198f45,0x6c8794de,0xf8b7527b,0xd323ab73,0x2e2724b,0x8f57e31f,0xab2a6655,0x2807b2eb,0xc2032fb5,0x7b9a86c5,0x8a5d337,0x87f23028,0xa5b223bf,0x6aba0203,0x825ced16,0x1c2b8acf,0xb492a779,0xf2f0f307,0xe2a14e69,0xf4cd65da,0xbed50605,0x621fd134,0xfe8ac4a6,0x539d342e,0x55a0a2f3,0xe132058a,0xeb75a4f6,0xec390b83,0xefaa4060,0x9f065e71,0x1051bd6e,0x8af93e21,0x63d96dd,0x5aedd3e,0xbd464de6,0x8db59154,0x5d0571c4,0xd46f0406,0x15ff6050,0xfb241998,0xe997d6bd,0x43cc8940,0x9e7767d9,0x42bdb0e8,0x8b880789,0x5b38e719,0xeedb79c8,0xa47a17c,0xfe97c42,0x1ec9f884,0,0x86830980,0xed48322b,0x70ac1e11,0x724e6c5a,0xfffbfd0e,0x38560f85,0xd51e3dae,0x3927362d,0xd9640a0f,0xa621685c,0x54d19b5b,0x2e3a2436,0x67b10c0a,0xe70f9357,0x96d2b4ee,0x919e1b9b,0xc54f80c0,0x20a261dc,0x4b695a77,0x1a161c12,0xba0ae293,0x2ae5c0a0,0xe0433c22,0x171d121b,0xd0b0e09,0xc7adf28b,0xa8b92db6,0xa9c8141e,0x198557f1,0x74caf75,0xddbbee99,0x60fda37f,0x269ff701,0xf5bc5c72,0x3bc54466,0x7e345bfb,0x29768b43,0xc6dccb23,0xfc68b6ed,0xf163b8e4,0xdccad731,0x85104263,0x22401397,0x112084c6,0x247d854a,0x3df8d2bb,0x3211aef9,0xa16dc729,0x2f4b1d9e,0x30f3dcb2,0x52ec0d86,0xe3d077c1,0x166c2bb3,0xb999a970,0x48fa1194,0x642247e9,0x8cc4a8fc,0x3f1aa0f0,0x2cd8567d,0x90ef2233,0x4ec78749,0xd1c1d938,0xa2fe8cca,0xb3698d4,0x81cfa6f5,0xde28a57a,0x8e26dab7,0xbfa43fad,0x9de42c3a,0x920d5078,0xcc9b6a5f,0x4662547e,0x13c2f68d,0xb8e890d8,0xf75e2e39,0xaff582c3,0x80be9f5d,0x937c69d0,0x2da96fd5,0x12b3cf25,0x993bc8ac,0x7da71018,0x636ee89c,0xbb7bdb3b,0x7809cd26,0x18f46e59,0xb701ec9a,0x9aa8834f,0x6e65e695,0xe67eaaff,0xcf0821bc,0xe8e6ef15,0x9bd9bae7,0x36ce4a6f,0x9d4ea9f,0x7cd629b0,0xb2af31a4,0x23312a3f,0x9430c6a5,0x66c035a2,0xbc37744e,0xcaa6fc82,0xd0b0e090,0xd81533a7,0x984af104,0xdaf741ec,0x500e7fcd,0xf62f1791,0xd68d764d,0xb04d43ef,0x4d54ccaa,0x4dfe496,0xb5e39ed1,0x881b4c6a,0x1fb8c12c,0x517f4665,0xea049d5e,0x355d018c,0x7473fa87,0x412efb0b,0x1d5ab367,0xd25292db,0x5633e910,0x47136dd6,0x618c9ad7,0xc7a37a1,0x148e59f8,0x3c89eb13,0x27eecea9,0xc935b761,0xe5ede11c,0xb13c7a47,0xdf599cd2,0x733f55f2,0xce791814,0x37bf73c7,0xcdea53f7,0xaa5b5ffd,0x6f14df3d,0xdb867844,0xf381caaf,0xc43eb968,0x342c3824,0x405fc2a3,0xc372161d,0x250cbce2,0x498b283c,0x9541ff0d,0x17139a8,0xb3de080c,0xe49cd8b4,0xc1906456,0x84617bcb,0xb670d532,0x5c74486c,0x5742d0b8],y=[0xf4a75051,0x4165537e,0x17a4c31a,0x275e963a,0xab6bcb3b,0x9d45f11f,0xfa58abac,0xe303934b,0x30fa5520,0x766df6ad,0xcc769188,0x24c25f5,0xe5d7fc4f,0x2acbd7c5,0x35448026,0x62a38fb5,0xb15a49de,0xba1b6725,0xea0e9845,0xfec0e15d,0x2f7502c3,0x4cf01281,0x4697a38d,0xd3f9c66b,0x8f5fe703,0x929c9515,0x6d7aebbf,0x5259da95,0xbe832dd4,0x7421d358,0xe0692949,0xc9c8448e,0xc2896a75,0x8e7978f4,0x583e6b99,0xb971dd27,0xe14fb6be,0x88ad17f0,0x20ac66c9,0xce3ab47d,0xdf4a1863,0x1a3182e5,0x51336097,0x537f4562,0x6477e0b1,0x6bae84bb,0x81a01cfe,0x82b94f9,0x48685870,0x45fd198f,0xde6c8794,0x7bf8b752,0x73d323ab,0x4b02e272,0x1f8f57e3,0x55ab2a66,0xeb2807b2,0xb5c2032f,0xc57b9a86,0x3708a5d3,679998e3,0xbfa5b223,0x36aba02,0x16825ced,0xcf1c2b8a,0x79b492a7,0x7f2f0f3,0x69e2a14e,0xdaf4cd65,0x5bed506,0x34621fd1,0xa6fe8ac4,0x2e539d34,0xf355a0a2,0x8ae13205,0xf6eb75a4,0x83ec390b,0x60efaa40,0x719f065e,0x6e1051bd,0x218af93e,0xdd063d96,0x3e05aedd,0xe6bd464d,0x548db591,0xc45d0571,0x6d46f04,0x5015ff60,0x98fb2419,0xbde997d6,0x4043cc89,0xd99e7767,0xe842bdb0,0x898b8807,0x195b38e7,0xc8eedb79,0x7c0a47a1,0x420fe97c,0x841ec9f8,0,0x80868309,0x2bed4832,0x1170ac1e,0x5a724e6c,0xefffbfd,0x8538560f,0xaed51e3d,0x2d392736,0xfd9640a,0x5ca62168,0x5b54d19b,0x362e3a24,0xa67b10c,0x57e70f93,0xee96d2b4,0x9b919e1b,0xc0c54f80,0xdc20a261,0x774b695a,0x121a161c,0x93ba0ae2,0xa02ae5c0,0x22e0433c,0x1b171d12,0x90d0b0e,0x8bc7adf2,0xb6a8b92d,0x1ea9c814,0xf1198557,0x75074caf,0x99ddbbee,0x7f60fda3,0x1269ff7,0x72f5bc5c,0x663bc544,0xfb7e345b,0x4329768b,0x23c6dccb,0xedfc68b6,0xe4f163b8,0x31dccad7,0x63851042,0x97224013,0xc6112084,0x4a247d85,0xbb3df8d2,0xf93211ae,0x29a16dc7,0x9e2f4b1d,0xb230f3dc,0x8652ec0d,0xc1e3d077,0xb3166c2b,0x70b999a9,0x9448fa11,0xe9642247,0xfc8cc4a8,0xf03f1a
85a0,0x7d2cd856,0x3390ef22,0x494ec787,0x38d1c1d9,0xcaa2fe8c,0xd40b3698,0xf581cfa6,0x7ade28a5,0xb78e26da,0xadbfa43f,0x3a9de42c,0x78920d50,0x5fcc9b6a,0x7e466254,0x8d13c2f6,0xd8b8e890,0x39f75e2e,0xc3aff582,0x5d80be9f,0xd0937c69,0xd52da96f,0x2512b3cf,0xac993bc8,0x187da710,0x9c636ee8,0x3bbb7bdb,0x267809cd,0x5918f46e,0x9ab701ec,0x4f9aa883,0x956e65e6,0xffe67eaa,0xbccf0821,0x15e8e6ef,0xe79bd9ba,0x6f36ce4a,0x9f09d4ea,0xb07cd629,0xa4b2af31,0x3f23312a,0xa59430c6,0xa266c035,0x4ebc3774,0x82caa6fc,0x90d0b0e0,0xa7d81533,0x4984af1,0xecdaf741,0xcd500e7f,0x91f62f17,0x4dd68d76,0xefb04d43,0xaa4d54cc,0x9604dfe4,0xd1b5e39e,0x6a881b4c,0x2c1fb8c1,0x65517f46,0x5eea049d,0x8c355d01,0x877473fa,0xb412efb,0x671d5ab3,0xdbd25292,0x105633e9,0xd647136d,0xd7618c9a,0xa10c7a37,0xf8148e59,0x133c89eb,0xa927eece,0x61c935b7,0x1ce5ede1,0x47b13c7a,0xd2df599c,0xf2733f55,0x14ce7918,0xc737bf73,0xf7cdea53,0xfdaa5b5f,0x3d6f14df,0x44db8678,0xaff381ca,0x68c43eb9,0x24342c38,0xa3405fc2,0x1dc37216,0xe2250cbc,0x3c498b28,0xd9541ff,0xa8017139,0xcb3de08,0xb4e49cd8,0x56c19064,0xcb84617b,0x32b670d5,0x6c5c7448,0xb85742d0],x=[0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],A=[0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0
85x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,0xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],w=[0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,1047239e3,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],v=[0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0
85x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,679998e3,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0
85x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];function E(e){let t=[];for(let r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}class P{get key(){return i(this,r,"f").slice()}constructor(e){let t;if(r.set(this,void 0),n.set(this,void 0),s.set(this,void 0),!(this instanceof P))throw Error("AES must be instanitated with `new`");a(this,r,new Uint8Array(e),"f");let u=o[this.key.length];if(null==u)throw TypeError("invalid key size (must be 16, 24 or 32 bytes)");a(this,s,[],"f"),a(this,n,[],"f");for(let e=0;e<=u;e++)i(this,s,"f").push([0,0,0,0]),i(this,n,"f").push([0,0,0,0]);let d=(u+1)*4,f=this.key.length/4,h=E(this.key);for(let e=0;e<f;e++)t=e>>2,i(this,s,"f")[t][e%4]=h[e],i(this,n,"f")[u-t][e%4]=h[e];let p=0,g=f,b;for(;g<d;){if(b=h[f-1],h[0]^=l[b>>16&255]<<24^l[b>>8&255]<<16^l[255&b]<<8^l[b>>24&255]^c[p]<<24,p+=1,8!=f)for(let e=1;e<f;e++)h[e]^=h[e-1];else{for(let e=1;e<f/2;e++)h[e]^=h[e-1];b=h[f/2-1],h[f/2]^=l[255&b]^l[b>>8&255]<<8^l[b>>16&255]<<16^l[b>>24&255]<<24;for(let e=f/2+1;e<f;e++)h[e]^=h[e-1]}let e=0,t,r;for(;e<f&&g<d;)t=g>>2,r=g%4,i(this,s,"f")[t][r]=h[e],i(this,n,"f")[u-t][r]=h[e++],g++}for(let e=1;e<u;e++)for(let t=0;t<4;t++)b=i(this,n,"f")[e][t],i(this,n,"f")[e][t]=x[b>>24&255]^A[b>>16&255]^w[b>>8&255]^v[255&b]}encrypt(e){if(16!=e.length)throw TypeError("invalid plaintext size (must be 16 bytes)");let t=i(this,s,"f").length-1,r=[0,0,0,0],n=E(e);for(let e=0;e<4;e++)n[e]^=i(this,s,"f")[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=d[n[t]>>24&255]^f[n[(t+1)%4]>>16&255]^h[n[(t+2)%4]>>8&255]^p[255&n[(t+3)%4]]^i(this,s,"f")[e][t];n=r.slice()}let a=new Uint8Array(16),o=0;for(let e=0;e<4;e++)o=i(this,s,"f")[t][e],a[4*e]=(l[n[e]>>24&255]^o>>24)&255,a[4*e+1]=(l[n[(e+1)%4]>>16&255]^o>>16)&255,a[4*e+2]=(l[n[(e+2)%4]>>8&255]^o>>8)&255,a[4*e+3]=(l[255&n[(e+3)%4]]^o)&255;return a}decrypt(e){if(16!=e.length)throw TypeError("invalid ciphertext size (must be 16 bytes)");let t=i(this,n,"f").length-1,r=[0,0,0,0],s=E(e);for(let e=0;e<4;e++)s[e]^=i(this,n,"f")[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=g[s[t]>>24&255]^b[s[(t+3)%4]>>16&255]^m[s[(t+2)%4]>>8&255]^y[255&s[(t+1)%4]]^i(this,n,"f")[e][t];s=r.slice()}let a=new Uint8Array(16),o=0;for(let e=0;e<4;e++)o=i(this,n,"f")[t][e],a[4*e]=(u[s[e]>>24&255]^o>>24)&255,a[4*e+1]=(u[s[(e+3)%4]>>16&255]^o>>16)&255,a[4*e+2]=(u[s[(e+2)%4]>>8&255]^o>>8)&255,a[4*e+3]=(u[255&s[(e+1)%4]]^o)&255;return a}}t.AES=P,r=new WeakMap,n=new WeakMap,s=new WeakMap},93061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;let n=r(8651),s=r(80114),i=r(46685),a=r(47071),o=r(21287),c=r(43814),l=r(17518),u=r(31140),d=r(16887),f=r(36866),h=r(90583),p=BigInt(2);function g(e){return e&&"function"==typeof e.then}function b(e,t){return e+":"+JSON.stringify(t,(e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){let e=Object.keys(t);return e.sort(),e.reduce((e,r)=>(e[r]=t[r],e),{})}return t})}class m{name;constructor(e){(0,c.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}
85function y(e){return(e=Array.from(new Set(e).values())).sort(),e}async function x(e,t){if(null==e)throw Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,c.isHexString)(e,32)){let t=e.toLowerCase();return{type:"transaction",tag:b("tx",{hash:t}),hash:t}}if(e.orphan){let t=e;return{type:"orphan",tag:b("orphan",t),filter:JSON.parse(JSON.stringify(t))}}if(e.address||e.topics){let r=e,s={topics:(r.topics||[]).map(e=>null==e?null:Array.isArray(e)?y(e.map(e=>e.toLowerCase())):e.toLowerCase())};if(r.address){let e=[],i=[],a=r=>{(0,c.isHexString)(r)?e.push(r):i.push((async()=>{e.push(await (0,n.resolveAddress)(r,t))})())};Array.isArray(r.address)?r.address.forEach(a):a(r.address),i.length&&await Promise.all(i),s.address=y(e.map(e=>e.toLowerCase()))}return{filter:s,tag:b("event",s),type:"event"}}(0,c.assertArgument)(!1,"unknown ProviderEvent","event",e)}function A(){return new Date().getTime()}t.UnmanagedSubscriber=m;let w={cacheTimeout:250,pollingInterval:4e3};class v{#eb;#b;#tg;#tb;#tm;#ty;#tx;#tA;#tw;#tv;#tE;#eE;constructor(e,t){if(this.#eE=Object.assign({},w,t||{}),"any"===e)this.#ty=!0,this.#tm=null;else if(e){let t=d.Network.from(e);this.#ty=!1,this.#tm=Promise.resolve(t),setTimeout(()=>{this.emit("network",t,null)},0)}else this.#ty=!1,this.#tm=null;this.#tA=-1,this.#tx=new Map,this.#eb=new Map,this.#b=new Map,this.#tg=null,this.#tb=!1,this.#tw=1,this.#tv=new Map,this.#tE=!1}get pollingInterval(){return this.#eE.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#b.values())}attachPlugin(e){if(this.#b.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#b.set(e.name,e.connect(this)),this}getPlugin(e){return this.#b.get(e)||null}get disableCcipRead(){return this.#tE}set disableCcipRead(e){this.#tE=!!e}async #tP(e){let t=this.#eE.cacheTimeout;if(t<0)return await this._perform(e);let r=b(e.method,e),n=this.#tx.get(r);return n||(n=this._perform(e),this.#tx.set(r,n),setTimeout(()=>{this.#tx.get(r)===n&&this.#tx.delete(r)},t)),await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;let n=e.to.toLowerCase(),s=t.toLowerCase(),i=[];for(let t=0;t<r.length;t++){let a,o=r[t],l=o.replace("{sender}",n).replace("{data}",s),u=new c.FetchRequest(l);-1===o.indexOf("{data}")&&(u.body={data:s,sender:n}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:u,index:t,urls:r});let d="unknown error";try{a=await u.send()}catch(e){i.push(e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:{error:e}});continue}try{let e=a.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:u,result:e}),e.data;e.message&&(d=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:e})}catch(e){}(0,c.assert)(a.statusCode<400||a.statusCode>=500,`response not found during CCIP fetch: ${d}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:o,errorMessage:d}}),i.push(d)}(0,c.assert)(!1,`error encountered during CCIP fetch: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:i}})}_wrapBlock(e,t){return new f.Block((0,u.formatBlock)(e),this)}_wrapLog(e,t){return new f.Log((0,u.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new f.TransactionReceipt((0,u.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new f.TransactionResponse((0,u.formatTransactionResponse)(e),this)}_detectNetwork(){(0,c.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,c.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){let e=(0,c.getNumber)(await this.#tP({method:"getBlockNumber"}),"%response");return this.#tA>=0&&(this.#tA=e),e}_getAddress(e){return(0,n.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,c.isHexString)(e)?(0,c.isHexString)(e,32)?e:(0,c.toQuantity)(e):("bigint"==typeof e&&(e=(0,c.getNumber)(e,"blockTag")),"number"==typeof e)?e>=0?(0,c.toQuantity)(e):this.#tA>=0?(0,c.toQuantity)(this.#tA+e):this.getBlockNumber().then(t=>(0,c.toQuantity)(t+e)):void(0,c.assertArgument)(!1,"invalid blockTag","blockTag",e)}_getFilter(e){let t,r,n=(e.topics||[]).map(e=>null==e?null:Array.isArray(e)?y(e.map(e=>e.toLowerCase())):e.toLowerCase()),s="blockHash"in e?e.blockHash:void 0,i=(e,t,r)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(s&&(null!=t||null!=r))throw Error("invalid filter");let a={};return i&&(a.address=i),n.length&&(a.topics=n),t&&(a.fromBlock=t),r&&(a.toBlock=r),s&&(a.blockHash=s),a},a=[];if(e.address)if(Array.isArray(e.address))for(let t of e.address)a.push(this._getAddress(t));else a.push(this._getAddress(e.address));return"fromBlock"in e&&(t=this._getBlockTag(e.fromBlock)),("toBlock"in e&&(r=this._getBlockTag(e.toBlock)),a.filter(e=>"string"!=typeof e).length||null!=t&&"string"!=typeof t||null!=r&&"string"!=typeof r)?Promise.all([Promise.all(a),t,r]).then(e=>i(e[0],e[1],e[2])):i(a,t,r)}_getTransactionRequest(e){let t=(0,f.copyRequest)(e),r=[];
85if(["to","from"].forEach(e=>{if(null==t[e])return;let s=(0,n.resolveAddress)(t[e],this);g(s)?r.push(async function(){t[e]=await s}()):t[e]=s}),null!=t.blockTag){let e=this._getBlockTag(t.blockTag);g(e)?r.push(async function(){t.blockTag=await e}()):t.blockTag=e}return r.length?async function(){return await Promise.all(r),t}():t}async getNetwork(){if(null==this.#tm){let e=(async()=>{try{let e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#tm===e&&(this.#tm=null),t}})();return this.#tm=e,(await e).clone()}let e=this.#tm,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#ty?(this.emit("network",r,t),this.#tm===e&&(this.#tm=Promise.resolve(r))):(0,c.assert)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){let e=await this.getNetwork(),t=async()=>{let{_block:t,gasPrice:r,priorityFee:n}=await (0,c.resolveProperties)({_block:this.#tk("latest",!1),gasPrice:(async()=>{try{let e=await this.#tP({method:"getGasPrice"});return(0,c.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{let e=await this.#tP({method:"getPriorityFee"});return(0,c.getBigInt)(e,"%response")}catch(e){}return null})()}),s=null,i=null,a=this._wrapBlock(t,e);return a&&a.baseFeePerGas&&(i=null!=n?n:BigInt("1000000000"),s=a.baseFeePerGas*p+i),new f.FeeData(r,s,i)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){let e=new c.FetchRequest(r.url),n=await r.processFunc(t,this,e);return new f.FeeData(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return g(t)&&(t=await t),(0,c.getBigInt)(await this.#tP({method:"estimateGas",transaction:t}),"%response")}async #tO(e,t,r){(0,c.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});let s=(0,f.copyRequest)(e);try{return(0,c.hexlify)(await this._perform({method:"call",transaction:s,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,c.isCallException)(e)&&e.data&&r>=0&&"latest"===t&&null!=s.to&&"0x556f1830"===(0,c.dataSlice)(e.data,0,4)){let i,a=e.data,o=await (0,n.resolveAddress)(s.to,this);try{i=function(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,c.assert)((0,c.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=(0,c.dataSlice)(e,0,32);(0,c.assert)((0,c.dataSlice)(r,0,12)===(0,c.dataSlice)(O,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,c.dataSlice)(r,12);try{let r=[],n=(0,c.getNumber)((0,c.dataSlice)(e,32,64)),s=(0,c.getNumber)((0,c.dataSlice)(e,n,n+32)),i=(0,c.dataSlice)(e,n+32);for(let e=0;e<s;e++){let t=function(e,t){try{let r=E(e,t);if(r)return(0,c.toUtf8String)(r)}catch(e){}return null}(i,32*e);if(null==t)throw Error("abort");r.push(t)}t.urls=r}catch(e){(0,c.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{let r=E(e,64);if(null==r)throw Error("abort");t.calldata=r}catch(e){(0,c.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,c.assert)((0,c.dataSlice)(e,100,128)===(0,c.dataSlice)(O,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,c.dataSlice)(e,96,100);try{let r=E(e,128);if(null==r)throw Error("abort");t.extraData=r}catch(e){(0,c.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(e=>t[e]),t}((0,c.dataSlice)(e.data,4))}catch(e){(0,c.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:a}})}(0,c.assert)(i.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});let l=await this.ccipReadFetch(s,i.calldata,i.urls);(0,c.assert)(null!=l,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:e.data,errorArgs:i.errorArgs}});let u={to:o,data:(0,c.concat)([i.selector,function(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(k),r+=32;for(let n=0;n<e.length;n++){let s=(0,c.getBytes)(e[n]);t[n]=P(r),t.push(P(s.length)),t.push(function(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}(s)),r+=32+32*Math.ceil(s.length/32)}return(0,c.concat)(t)}([l,i.extraData])])};
85this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{let e=await this.#tO(u,t,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:e}),e}}throw e}}async #tT(e){let{value:t}=await (0,c.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){let{tx:t,blockTag:r}=await (0,c.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#tT(this.#tO(t,r,e.enableCcipRead?0:-1))}async #tB(e,t,r){let n=this._getAddress(t),s=this._getBlockTag(r);return("string"!=typeof n||"string"!=typeof s)&&([n,s]=await Promise.all([n,s])),await this.#tT(this.#tP(Object.assign(e,{address:n,blockTag:s})))}async getBalance(e,t){return(0,c.getBigInt)(await this.#tB({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,c.getNumber)(await this.#tB({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,c.hexlify)(await this.#tB({method:"getCode"},e,t))}async getStorage(e,t,r){let n=(0,c.getBigInt)(t,"position");return(0,c.hexlify)(await this.#tB({method:"getStorage",position:n},e,r))}async broadcastTransaction(e){let{blockNumber:t,hash:r,network:n}=await (0,c.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),s=o.Transaction.from(e);if(s.hash!==r)throw Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(s,n).replaceableTransaction(t)}async #tk(e,t){if((0,c.isHexString)(e,32))return await this.#tP({method:"getBlock",blockHash:e,includeTransactions:t});let r=this._getBlockTag(e);return"string"!=typeof r&&(r=await r),await this.#tP({method:"getBlock",blockTag:r,includeTransactions:t})}async getBlock(e,t){let{network:r,params:n}=await (0,c.resolveProperties)({network:this.getNetwork(),params:this.#tk(e,!!t)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(e){let{network:t,params:r}=await (0,c.resolveProperties)({network:this.getNetwork(),params:this.#tP({method:"getTransaction",hash:e})});return null==r?null:this._wrapTransactionResponse(r,t)}async getTransactionReceipt(e){let{network:t,params:r}=await (0,c.resolveProperties)({network:this.getNetwork(),params:this.#tP({method:"getTransactionReceipt",hash:e})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){let t=await this.#tP({method:"getTransaction",hash:e});if(null==t)throw Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(r,t)}async getTransactionResult(e){let{result:t}=await (0,c.resolveProperties)({network:this.getNetwork(),result:this.#tP({method:"getTransactionResult",hash:e})});return null==t?null:(0,c.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);g(t)&&(t=await t);let{network:r,params:n}=await (0,c.resolveProperties)({network:this.getNetwork(),params:this.#tP({method:"getLogs",filter:t})});return n.map(e=>this._wrapLog(e,r))}_getProvider(e){(0,c.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await l.EnsResolver.fromName(this,e)}async getAvatar(e){let t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){let t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,n.getAddress)(e);let t=(0,a.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{let r=await l.EnsResolver.getEnsAddress(this),n=new i.Contract(r,["function resolver(bytes32) view returns (address)"],this),a=await n.resolver(t);if(null==a||a===s.ZeroAddress)return null;let o=new i.Contract(a,["function name(bytes32) view returns (string)"],this),c=await o.name(t);if(await this.resolveName(c)!==e)return null;return c}catch(e){if((0,c.isError)(e,"BAD_DATA")&&"0x"===e.value||(0,c.isError)(e,"CALL_EXCEPTION"))return null;throw e}}async waitForTransaction(e,t,r){let n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise(async(t,s)=>{let i=null,a=async r=>{try{let s=await this.getTransactionReceipt(e);
85if(null!=s&&r-s.blockNumber+1>=n){t(s),i&&(clearTimeout(i),i=null);return}}catch(e){console.log("EEE",e)}this.once("block",a)};null!=r&&(i=setTimeout(()=>{null!=i&&(i=null,this.off("block",a),s((0,c.makeError)("timeout","TIMEOUT",{reason:"timeout"})))},r)),a(await this.getBlockNumber())})}async waitForBlock(e){(0,c.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){let t=this.#tv.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#tv.delete(e))}_setTimeout(e,t){null==t&&(t=0);let r=this.#tw++,n=()=>{this.#tv.delete(r),e()};if(this.paused)this.#tv.set(r,{timer:null,func:n,time:t});else{let e=setTimeout(n,t);this.#tv.set(r,{timer:e,func:n,time:A()})}return r}_forEachSubscriber(e){for(let t of this.#eb.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new m(e.type);case"block":{let e=new h.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new h.PollingBlockTagSubscriber(this,e.type);case"event":return new h.PollingEventSubscriber(this,e.filter);case"transaction":return new h.PollingTransactionSubscriber(this,e.hash);case"orphan":return new h.PollingOrphanSubscriber(this,e.filter)}throw Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(let r of this.#eb.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#tg&&t.pause(this.#tg);break}}async #tS(e,t){let r=await x(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await x({orphan:"drop-log",log:t[0]},this)),this.#eb.get(r.tag)||null}async #tC(e){let t=await x(e,this),r=t.tag,n=this.#eb.get(r);if(!n){let e=this._getSubscriber(t);n={subscriber:e,tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#eb.set(r,n)}return n}async on(e,t){let r=await this.#tC(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#tg&&r.subscriber.pause(this.#tg)),this}async once(e,t){let r=await this.#tC(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#tg&&r.subscriber.pause(this.#tg)),this}async emit(e,...t){let r=await this.#tS(e,t);if(!r||0===r.listeners.length)return!1;let n=r.listeners.length;return r.listeners=r.listeners.filter(({listener:r,once:n})=>{let s=new c.EventPayload(this,n?null:r,e);try{r.call(this,...t,s)}catch(e){}return!n}),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#eb.delete(r.tag)),n>0}async listenerCount(e){if(e){let t=await this.#tS(e);return t?t.listeners.length:0}let t=0;for(let{listeners:e}of this.#eb.values())t+=e.length;return t}async listeners(e){if(e){let t=await this.#tS(e);return t?t.listeners.map(({listener:e})=>e):[]}let t=[];for(let{listeners:e}of this.#eb.values())t=t.concat(e.map(({listener:e})=>e));return t}async off(e,t){let r=await this.#tS(e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return t&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#eb.delete(r.tag)),this}async removeAllListeners(e){if(e){let{tag:t,started:r,subscriber:n}=await this.#tC(e);r&&n.stop(),this.#eb.delete(t)}else for(let[e,{started:t,subscriber:r}]of this.#eb)t&&r.stop(),this.#eb.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#tb}destroy(){for(let e of(this.removeAllListeners(),this.#tv.keys()))this._clearTimeout(e);this.#tb=!0}get paused(){return null!=this.#tg}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#tA=-1,null!=this.#tg){if(!!e==this.#tg)return;(0,c.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}for(let t of(this._forEachSubscriber(t=>t.pause(e)),this.#tg=!!e,this.#tv.values()))t.timer&&clearTimeout(t.timer),t.time=A()-t.time}resume(){if(null!=this.#tg)for(let e of(this._forEachSubscriber(e=>
85e.resume()),this.#tg=null,this.#tv.values())){let t=e.time;t<0&&(t=0),e.time=A(),setTimeout(e.func,t)}}}function E(e,t){if("0x"===e)return null;try{let r=(0,c.getNumber)((0,c.dataSlice)(e,t,t+32)),n=(0,c.getNumber)((0,c.dataSlice)(e,r,r+32));return(0,c.dataSlice)(e,r+32,r+32+n)}catch(e){}return null}function P(e){let t=(0,c.toBeArray)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}t.AbstractProvider=v;let k=new Uint8Array([]),O="0x0000000000000000000000000000000000000000000000000000000000000000"},94185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;let r=BigInt(0x100000000-1),n=BigInt(32);function s(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:o}=s(e[i],t);[r[i],n[i]]=[a,o]}return[r,n]}t.fromBig=s,t.split=i;let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;let o=(e,t,r)=>e>>>r;t.shrSH=o;let c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;let l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;let u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;let d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;let f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;let h=(e,t)=>t;t.rotr32H=h;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;let b=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=b;let m=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=m;let y=(e,t,r)=>e<<r-32|t>>>64-r;function x(e,t,r,n){let s=(t>>>0)+(n>>>0);return{h:e+r+(s/0x100000000|0)|0,l:0|s}}t.rotlBL=y,t.add=x;let A=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=A;let w=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;t.add3H=w;let v=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=v;let E=(e,t,r,n,s)=>t+r+n+s+(e/0x100000000|0)|0;t.add4H=E;let P=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);t.add5L=P;let k=(e,t,r,n,s,i)=>t+r+n+s+i+(e/0x100000000|0)|0;t.add5H=k,t.default={fromBig:s,split:i,toBig:a,shrSH:o,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:b,rotlBH:m,rotlBL:y,add:x,add3L:A,add3H:w,add4L:v,add4H:E,add5H:k,add5L:P}},96645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;let n=r(47964),s=r(43814),i=!1,a=!1,o=async function(e,t,r,s,i,a,o){return await (0,n.scryptAsync)(e,t,{N:r,r:s,p:i,dkLen:a,onProgress:o})},c=function(e,t,r,s,i,a){return(0,n.scrypt)(e,t,{N:r,r:s,p:i,dkLen:a})},l=o,u=c;async function d(e,t,r,n,i,a,o){let c=(0,s.getBytes)(e,"passwd"),u=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(await l(c,u,r,n,i,a,o))}function f(e,t,r,n,i,a){let o=(0,s.getBytes)(e,"passwd"),c=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(u(o,c,r,n,i,a))}t.scrypt=d,d._=o,d.lock=function(){a=!0},d.register=function(e){if(a)throw Error("scrypt is locked");l=e},Object.freeze(d),t.scryptSync=f,f._=c,f.lock=function(){i=!0},f.register=function(e){if(i)throw Error("scryptSync is locked");u=e},Object.freeze(f)},96673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;let n=r(51930),s=r(25265),i=BigInt(0),a=BigInt(1);function o(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,s.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,s.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){(0,s.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,s.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function c(e,t){let r=o(e,t);return(0,s.assert)(r>=i,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}t.fromTwos=function(e,t){let r=c(e,"value"),n=BigInt(d(t,"width"));return((0,s.assert)(r>>n===i,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-a)?-((~r&(a<<n)-a)+a):r},t.toTwos=function(e,t){let r=o(e,"value"),n=BigInt(d(t,"width")),c=a<<n-a;return r<i?(r=-r,(0,s.assert)(r<=c,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),(~r&(a<<n)-a)+a):((0,s.assert)(r<c,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r)},t.mask=function(e,t){return c(e,"value")&(a<<BigInt(d(t,"bits")))-a},t.getBigInt=o,t.getUint=c;
85let l="0123456789abcdef";function u(e){if(e instanceof Uint8Array){let t="0x0";for(let r of e)t+=l[r>>4],t+=l[15&r];return BigInt(t)}return o(e)}function d(e,t){switch(typeof e){case"bigint":return(0,s.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),Number(e);case"number":return(0,s.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,s.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return d(BigInt(e),t)}catch(r){(0,s.assertArgument)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,s.assertArgument)(!1,"invalid numeric value",t||"value",e)}function f(e,t){let r=c(e,"value");if(r===i)return new Uint8Array(null!=t?d(t,"width"):0);let n=r.toString(16);if(n.length%2&&(n="0"+n),null!=t){let r=d(t,"width");for(;n.length<2*r;)n="00"+n;(0,s.assert)(2*r===n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeArray",fault:"overflow",value:e})}let a=new Uint8Array(n.length/2);for(let e=0;e<a.length;e++){let t=2*e;a[e]=parseInt(n.substring(t,t+2),16)}return a}t.toBigInt=u,t.getNumber=d,t.toNumber=function(e){return d(u(e))},t.toBeHex=function(e,t){let r=c(e,"value"),n=r.toString(16);if(null==t)n.length%2&&(n="0"+n);else{let a=d(t,"width");if(0===a&&r===i)return"0x";for((0,s.assert)(2*a>=n.length,`value exceeds width (${a} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*a;)n="0"+n}return"0x"+n},t.toBeArray=f,t.toQuantity=function(e){let t=(0,n.hexlify)((0,n.isBytesLike)(e)?e:f(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},96854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;let n=r(88221),s=r(8651),i=r(47071),a=r(21287),o=r(43814),c=r(93061),l=r(84482),u=r(16887),d=r(90259),f=r(90583),h="bigint,boolean,function,number,string,symbol".split(/,/g);function p(e){if(null==e||h.indexOf(typeof e)>=0||"function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(p);if("object"==typeof e)return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw Error(`should not happen: ${e} (${typeof e})`)}function g(e){return e?e.toLowerCase():e}function b(e){return e&&"number"==typeof e.pollingInterval}let m={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1048576,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class y extends l.AbstractSigner{address;constructor(e,t){super(e),t=(0,s.getAddress)(t),(0,o.defineProperties)(this,{address:t})}connect(e){(0,o.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){let t=p(e),r=[];if(t.from){let n=t.from;r.push((async()=>{let r=await (0,s.resolveAddress)(n,this.provider);(0,o.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r})())}else t.from=this.address;if(null==t.gasLimit&&r.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){let e=t.to;r.push((async()=>{t.to=await (0,s.resolveAddress)(e,this.provider)})())}r.length&&await Promise.all(r);let n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){let t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise((e,n)=>{let s=[1e3,100],i=0,a=async()=>{try{let n=await this.provider.getTransaction(r);if(null!=n)return void e(n.replaceableTransaction(t))}catch(e){if((0,o.isError)(e,"CANCELLED")||(0,o.isError)(e,"BAD_DATA")||(0,o.isError)(e,"NETWORK_ERROR")||(0,o.isError)(e,"UNSUPPORTED_OPERATION")){null==e.info&&(e.info={}),e.info.sendTransactionHash=r,n(e);return}if((0,o.isError)(e,"INVALID_ARGUMENT")&&(i++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,i>10))return void n(e);this.provider.emit("error",(0,o.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout(()=>{a()},s.pop()||4e3)};a()})}async signTransaction(e){let t=p(e);if(t.from){let r=await (0,s.resolveAddress)(t.from,this.provider);(0,o.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r}else t.from=this.address;let r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){let t="string"==typeof e?(0,o.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,o.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,r){let n=p(r),a=await i.TypedDataEncoder.resolveNames(e,t,n,async e=>{let t=await (0,s.resolveAddress)(e);return(0,o.assertArgument)(null!=t,"TypedData does not support null address","value",e),t});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(i.TypedDataEncoder.getPayload(a.domain,t,a.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){let t="string"==typeof e?(0,o.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,o.hexlify)(t)])}}t.JsonRpcSigner=y;class x extends c.AbstractProvider{#eE;#tN;#tI;#tR;#tL;#e6;#tM;#tU(){if(this.#tR)return;let e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#tR=setTimeout(()=>{this.#tR=null;let e=this.#tI;for(this.#tI=[];e.length;){let t=[e.shift()];for(;e.length&&t.length!==this.#eE.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map(e=>e.payload)).length>this.#eE.batchMaxSize){e.unshift(t.pop());break}(async()=>{let e=1===t.length?t[0].payload:t.map(e=>e.payload);
85this.emit("debug",{action:"sendRpcPayload",payload:e});try{let r=await this._send(e);for(let{resolve:e,reject:n,payload:s}of(this.emit("debug",{action:"receiveRpcResult",result:r}),t)){if(this.destroyed){n((0,o.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:s.method}));continue}let t=r.filter(e=>e.id===s.id)[0];if(null==t){let e=(0,o.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:s}});this.emit("error",e),n(e);continue}if("error"in t){n(this.getRpcError(s,t));continue}e(t.result)}}catch(e){for(let{reject:r}of(this.emit("debug",{action:"receiveRpcError",error:e}),t))r(e)}})()}},e)}constructor(e,t){super(e,t),this.#tN=1,this.#eE=Object.assign({},m,t||{}),this.#tI=[],this.#tR=null,this.#e6=null,this.#tM=null;{let e=null,t=new Promise(t=>{e=t});this.#tL={promise:t,resolve:e}}let r=this._getOption("staticNetwork");"boolean"==typeof r?((0,o.assertArgument)(!r||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),r&&null!=e&&(this.#e6=u.Network.from(e))):r&&((0,o.assertArgument)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#e6=r)}_getOption(e){return this.#eE[e]}get _network(){return(0,o.assert)(this.#e6,"network is not available yet","NETWORK_ERROR"),this.#e6}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,o.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}let t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){let e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;else if(this.#e6)return this.#e6}return this.#tM||(this.ready?this.#tM=(async()=>{try{let e=u.Network.from((0,o.getBigInt)(await this.send("eth_chainId",[])));return this.#tM=null,e}catch(e){throw this.#tM=null,e}})():this.#tM=(async()=>{let e,t={id:this.#tN++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#tM=null}catch(e){throw this.#tM=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}
85if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return u.Network.from((0,o.getBigInt)(e.result));throw this.getRpcError(t,e)})()),await this.#tM}_start(){null!=this.#tL&&null!=this.#tL.resolve&&(this.#tL.resolve(),this.#tL=null,(async()=>{for(;null==this.#e6&&!this.destroyed;)try{this.#e6=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,o.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await new Promise(e=>{setTimeout(e,1e3)})}this.#tU()})())}async _waitUntilReady(){if(null!=this.#tL)return await this.#tL.promise}_getSubscriber(e){return"pending"===e.type?new d.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new f.PollingEventSubscriber(this,e.filter):new d.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new c.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#tL}getRpcTransaction(e){let t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(null==e[r])return;let n=r;"gasLimit"===r&&(n="gas"),t[n]=(0,o.toQuantity)((0,o.getBigInt)(e[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{null!=e[r]&&(t[r]=(0,o.hexlify)(e[r]))}),e.accessList&&(t.accessList=(0,a.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map(e=>e.toLowerCase())),e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>{let t=(0,a.authorizationify)(e);return{address:t.address,nonce:(0,o.toQuantity)(t.nonce),chainId:(0,o.toQuantity)(t.chainId),yParity:(0,o.toQuantity)(t.signature.yParity),r:(0,o.toQuantity)(t.signature.r),s:(0,o.toQuantity)(t.signature.s)}})),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[g(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(g):e.filter.address=g(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){let{method:r}=e,{error:s}=t;if("eth_estimateGas"===r&&s.message){let t=s.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,o.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:s}});if(t.match(/nonce/i)&&t.match(/too low/i))return(0,o.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:e.params[0],info:{payload:e,error:s}})}if("eth_call"===r||"eth_estimateGas"===r){let t=function e(t){if(null==t)return null;if("string"==typeof t.message&&t.message.match(/revert/i)&&(0,o.isHexString)(t.data))return{message:t.message,data:t.data};if("object"==typeof t){for(let r in t){let n=e(t[r]);if(n)return n}return null}if("string"==typeof t)try{return e(JSON.parse(t))}catch(e){}return null}(s),i=n.AbiCoder.getBuiltinCallException("eth_call"===r?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:s,payload:e},i}let i=JSON.stringify(function(e){let t=[];return!function e(t,r){if(null!=t){if("string"==typeof t.message&&r.push(t.message),"object"==typeof t)for(let n in t)e(t[n],r);if("string"==typeof t)try{return e(JSON.parse(t),r)}catch(e){}}}(e,t),t}(s));if("string"==typeof s.message&&s.message.match(/user denied|ethers-user-denied/i))return(0,o.makeError)("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[r]||"unknown",reason:"rejected",info:{payload:e,error:s}});if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){let t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,o.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:s}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,o.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:s}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,o.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:s}});if(i.match(/only replay-protected/i))return(0,o.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:t,info:{error:s}}})}let a=!!i.match(/the method .* does not exist/i);return(!a&&s&&s.details&&s.details.startsWith("Unauthorized method:")&&(a=!0),a)?(0,o.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:s,payload:e}}
85):(0,o.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:s,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,o.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));let r=this.#tN++,n=new Promise((n,s)=>{this.#tI.push({resolve:n,reject:s,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})});return this.#tU(),n}async getSigner(e){null==e&&(e=0);let t=this.send("eth_accounts",[]);if("number"==typeof e){let r=await t;if(e>=r.length)throw Error("no such account");return new y(this,r[e])}let{accounts:r}=await (0,o.resolveProperties)({network:this.getNetwork(),accounts:t});for(let t of(e=(0,s.getAddress)(e),r))if((0,s.getAddress)(t)===e)return new y(this,e);throw Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new y(this,e))}destroy(){for(let{payload:e,reject:t}of(this.#tR&&(clearTimeout(this.#tR),this.#tR=null),this.#tI))t((0,o.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#tI=[],super.destroy()}}t.JsonRpcApiProvider=x;class A extends x{#tF;constructor(e,t){super(e,t);let r=this._getOption("pollingInterval");null==r&&(r=m.pollingInterval),this.#tF=r}_getSubscriber(e){let t=super._getSubscriber(e);return b(t)&&(t.pollingInterval=this.#tF),t}get pollingInterval(){return this.#tF}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw Error("invalid interval");this.#tF=e,this._forEachSubscriber(e=>{b(e)&&(e.pollingInterval=this.#tF)})}}t.JsonRpcApiPollingProvider=A;class w extends A{#eW;constructor(e,t,r){null==e&&(e="http://localhost:8545"),super(t,r),"string"==typeof e?this.#eW=new o.FetchRequest(e):this.#eW=e.clone()}_getConnection(){return this.#eW.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){let t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");let r=await t.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}t.JsonRpcProvider=w},97762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(5676),s=r(9490),i=r(89962);function a(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){let r=a(4,e),n=(0,s.readUint32LE)(r);return(0,i.wipe)(r),n};let o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=o,n=t.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let s="",l=r.length,u=256-256%l;for(;e>0;){let t=a(Math.ceil(256*e/u),n);for(let n=0;n<t.length&&e>0;n++){let i=t[n];i<u&&(s+=r.charAt(i%l),e--)}(0,i.wipe)(t)}return s}t.randomString=c,t.randomStringForEntropy=function(e,r=o,n=t.defaultRandomSource){return c(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},98211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;let n=r(11558),s=r(43814),i=!1,a=function(e,t,r,s,i){return(0,n.pbkdf2Sync)(e,t,r,s,i)},o=a;function c(e,t,r,n,i){let a=(0,s.getBytes)(e,"password"),c=(0,s.getBytes)(t,"salt");return(0,s.hexlify)(o(a,c,r,n,i))}t.pbkdf2=c,c._=a,c.lock=function(){i=!0},c.register=function(e){if(i)throw Error("pbkdf2 is locked");o=e},Object.freeze(c)},99008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;let n=r(80114),s=r(43814),i=BigInt(0),a=BigInt(1),o=BigInt(2),c=BigInt(27),l=BigInt(28),u=BigInt(35),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=d/o,h=Symbol.for("nodejs.util.inspect.custom"),p={};function g(e){return(0,s.zeroPadValue)((0,s.toBeArray)(e),32)}class b{#tD;#t_;#tj;#tH;get r(){return this.#tD}set r(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid r","value",e),this.#tD=(0,s.hexlify)(e)}get s(){return(0,s.assertArgument)(8>parseInt(this.#t_.substring(0,3)),"non-canonical s; use ._s","s",this.#t_),this.#t_}set s(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid s","value",e),this.#t_=(0,s.hexlify)(e)}get _s(){return this.#t_}isValid(){return BigInt(this.#t_)<=f}get v(){return this.#tj}set v(e){let t=(0,s.getNumber)(e,"value");
85(0,s.assertArgument)(27===t||28===t,"invalid v","v",e),this.#tj=t}get networkV(){return this.#tH}get legacyChainId(){let e=this.networkV;return null==e?null:b.getChainId(e)}get yParity(){return+(27!==this.v)}get yParityAndS(){let e=(0,s.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,s.hexlify)(e)}get compactSerialized(){return(0,s.concat)([this.r,this.yParityAndS])}get serialized(){return(0,s.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(0,s.assertPrivate)(e,p,"Signature"),this.#tD=t,this.#t_=r,this.#tj=n,this.#tH=null}getCanonical(){if(this.isValid())return this;let e=d-BigInt(this._s),t=55-this.v,r=new b(p,this.r,g(e),t);return this.networkV&&(r.#tH=this.networkV),r}clone(){let e=new b(p,this.r,this._s,this.v);return this.networkV&&(e.#tH=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[h](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){let t=(0,s.getBigInt)(e,"v");return t==c||t==l?i:((0,s.assertArgument)(t>=u,"invalid EIP-155 v","v",e),(t-u)/o)}static getChainIdV(e,t){return(0,s.getBigInt)(e)*o+BigInt(35+t-27)}static getNormalizedV(e){let t=(0,s.getBigInt)(e);return t===i||t===c?27:t===a||t===l?28:((0,s.assertArgument)(t>=u,"invalid v","v",e),t&a?27:28)}static from(e){function t(t,r){(0,s.assertArgument)(t,r,"signature",e)}if(null==e)return new b(p,n.ZeroHash,n.ZeroHash,27);if("string"==typeof e){let r=(0,s.getBytes)(e,"signature");if(64===r.length){let e=(0,s.hexlify)(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new b(p,e,(0,s.hexlify)(t),n)}if(65===r.length){let e=(0,s.hexlify)(r.slice(0,32)),t=(0,s.hexlify)(r.slice(32,64)),n=b.getNormalizedV(r[64]);return new b(p,e,t,n)}t(!1,"invalid raw signature length")}if(e instanceof b)return e.clone();let r=e.r;t(null!=r,"missing r");let i=g(r),a=function(e,r){if(null!=e)return g(e);if(null!=r){t((0,s.isHexString)(r,32),"invalid yParityAndS");let e=(0,s.getBytes)(r);return e[0]&=127,(0,s.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:o,v:c}=function(e,r,n){if(null!=e){let t=(0,s.getBigInt)(e);return{networkV:t>=u?t:void 0,v:b.getNormalizedV(t)}}if(null!=r)return t((0,s.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,s.getBytes)(r)[0]?28:27};if(null!=n){switch((0,s.getNumber)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),l=new b(p,i,a,c);return o&&(l.#tH=o),t(null==e.yParity||(0,s.getNumber)(e.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}t.Signature=b},99866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.