1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,695331,e=>{"use strict";var r=e.i(557265),t=e.i(606624);e.s(["createTransport",0,function({key:e,methods:o,name:n,request:a,retryCount:s=3,retryDelay:i=150,timeout:c,type:u},d){let l=(0,t.uid)();return{config:{key:e,methods:o,name:n,request:a,retryCount:s,retryDelay:i,timeout:c,type:u},request:(0,r.buildRequest)(a,{methods:o,retryCount:s,retryDelay:i,uid:l}),value:d}}])},110163,e=>{"use strict";var r=e.i(95767),t=e.i(588134),o=e.i(871706),n=e.i(468368),a=e.i(695331);let s=0,i=new WeakMap;e.s(["http",0,function(e,c={}){let{batch:u,fetchFn:d,fetchOptions:l,key:p="http",maxResponseBodySize:b,methods:m,name:h="HTTP JSON-RPC",onFetchRequest:y,onFetchResponse:f,retryDelay:g,raw:w}=c;return({chain:E,retryCount:v,timeout:R})=>{let{batchSize:x=1e3,wait:P=0}="object"==typeof u?u:{},M=c.retryCount??v,T=R??c.timeout??1e4,j=e||E?.rpcUrls.default.http[0];if(!j)throw new t.UrlRequiredError;let O=(0,n.getHttpRpcClient)(j,{fetchFn:d,fetchOptions:l,maxResponseBodySize:b,onRequest:y,onResponse:f,timeout:T});return(0,a.createTransport)({key:p,methods:m,name:h,async request({method:e,params:t},n){let a={method:e,params:t},c=n?.signal?{signal:n.signal}:void 0,{schedule:d}=(0,o.createBatchScheduler)({id:`${j}.${function(e){if(!e)return"default";let r=i.get(e);if(void 0!==r)return r;let t=s++;return i.set(e,t),t}(n?.signal)}`,wait:P,shouldSplitBatch:e=>e.length>x,fn:e=>O.request({body:e,fetchOptions:c}),sort:(e,r)=>e.id-r.id}),l=async e=>u?d(e):[await O.request({body:e,fetchOptions:c})],[{error:p,result:b}]=await l(a);if(w)return{error:p,result:b};if(p)throw new r.RpcRequestError({body:a,error:p,url:j});return b},retryCount:M,retryDelay:g,timeout:T,type:"http"},{fetchOptions:l,url:j})}}])},752012,e=>{"use strict";let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],t=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],o=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],n=[...o,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...o,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}];e.s(["addressResolverAbi",0,[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],"batchGatewayAbi",0,t,"erc1271Abi",0,[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}
1],"erc20Abi",0,[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],"erc6492SignatureValidatorAbi",0,[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],"multicall3Abi",0,r,"textResolverAbi",0,[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],"universalResolverResolveAbi",0,n,"universalResolverReverseAbi",0,a])},853532,e=>{"use strict";var r=e.i(976486),t=e.i(569934);class o extends t.BaseError{constructor({cause:e,message:r}={}){const t=r?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${t?`with reason: ${t}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class n extends t.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends t.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class s extends t.BaseError{constructor({cause:e,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class i extends t.BaseError{constructor({cause:e,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is lower than the current nonce of the account. 2Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends t.BaseError{constructor({cause:e,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class u extends t.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends t.BaseError{constructor({cause:e,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class l extends t.BaseError{constructor({cause:e,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends t.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends t.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:o}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${(0,r.formatGwei)(o)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends t.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}e.s(["ExecutionRevertedError",0,o,"FeeCapTooHighError",0,n,"FeeCapTooLowError",0,a,"InsufficientFundsError",0,u,"IntrinsicGasTooHighError",0,d,"IntrinsicGasTooLowError",0,l,"NonceMaxValueError",0,c,"NonceTooHighError",0,s,"NonceTooLowError",0,i,"TipAboveFeeCapError",0,b,"TransactionTypeNotSupportedError",0,p,"UnknownNodeError",0,m])},95767,e=>{"use strict";var r=e.i(34888),t=e.i(569934),o=e.i(363710);
2class n extends t.BaseError{constructor({body:e,cause:t,details:n,headers:a,status:s,url:i}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,o.getUrl)(i)}`,e&&`Request body: ${(0,r.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=a,this.status=s,this.url=i}}class a extends t.BaseError{constructor({maxSize:e,size:r}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${e} bytes`,`Received: ${r} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e,this.size=r}}t.BaseError;class s extends t.BaseError{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.getUrl)(n)}`,`Request body: ${(0,r.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}t.BaseError;class i extends t.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.getUrl)(t)}`,`Request body: ${(0,r.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}e.s(["HttpRequestError",0,n,"ResponseBodyTooLargeError",0,a,"RpcRequestError",0,s,"TimeoutError",0,i])},383856,588233,204202,e=>{"use strict";var r=e.i(569934),t=e.i(95767);class o extends r.BaseError{constructor(e,{code:r,docsPath:o,metaMessages:n,name:a,shortMessage:s}){super(s,{cause:e,docsPath:o,metaMessages:n||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof t.RpcRequestError?e.code:r??-1}}class n extends o{constructor(e,r){super(e,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class a extends o{constructor(e){super(e,{code:a.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class s extends o{constructor(e){super(e,{code:s.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class i extends o{constructor(e,{method:r}={}){super(e,{code:i.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class c extends o{constructor(e){super(e,{code:c.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class u extends o{constructor(e){super(e,{code:u.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends o{constructor(e){super(e,{code:d.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class l extends o{constructor(e){super(e,{code:l.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends o{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e,{method:r}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});
2class h extends o{constructor(e){super(e,{code:h.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class y extends o{constructor(e){super(e,{code:y.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class f extends n{constructor(e){super(e,{code:f.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class g extends n{constructor(e){super(e,{code:g.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class w extends n{constructor(e,{method:r}={}){super(e,{code:w.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends n{constructor(e){super(e,{code:E.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class v extends n{constructor(e){super(e,{code:v.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class R extends n{constructor(e){super(e,{code:R.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class x extends n{constructor(e){super(e,{code:x.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class P extends n{constructor(e){super(e,{code:P.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class M extends n{constructor(e){super(e,{code:M.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class T extends n{constructor(e){super(e,{code:T.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class j extends n{constructor(e){super(e,{code:j.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class O extends n{constructor(e){super(e,{code:O.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class U extends n{constructor(e){super(e,{code:U.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(U,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class I extends n{constructor(e){super(e,{code:I.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3}),e.s(["AtomicReadyWalletRejectedUpgradeError",0,O,"AtomicityNotSupportedError",0,U,"BundleTooLargeError",0,j,"ChainDisconnectedError",0,v,"DuplicateIdError",0,M,"InternalRpcError",0,u,"InvalidInputRpcError",0,d,"InvalidParamsRpcError",0,c,"InvalidRequestRpcError",0,s,"JsonRpcVersionUnsupportedError",0,y,"LimitExceededRpcError",0,h,"MethodNotFoundRpcError",0,i,"MethodNotSupportedRpcError",0,m,"ParseRpcError",0,a,"ProviderDisconnectedError",0,E,"ResourceNotFoundRpcError",0,l,"ResourceUnavailableRpcError",0,p,"SwitchChainError",0,R,"TransactionRejectedRpcError",0,b,"UnauthorizedProviderError",0,g,"UnknownBundleIdError",0,T,"UnknownRpcError",0,class extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}},"UnsupportedChainIdError",0,P,"UnsupportedNonOptionalCapabilityError",0,x,"UnsupportedProviderMethodError",0,w,"UserRejectedRequestError",0,f,"WalletConnectSessionSettlementError",0,I],383856);var N=e.i(363710);async function S(e,{signal:r}={}){return new Promise((t,o)=>{if(r?.aborted)return void o((0,N.getAbortError)(r));let n=()=>r?.removeEventListener("abort",s),a=setTimeout(()=>{n(),t()},e),s=()=>{clearTimeout(a),n(),o((0,N.getAbortError)(r))};r?.addEventListener("abort",s,{once:!0})})}e.s(["wait",0,S],588233),e.s(["withRetry",0,function(e,{delay:r=100,retryCount:t=2,shouldRetry:o=()=>!0,signal:n}={}){return new Promise((a,s)=>{let i=async({count:c=0}={})=>
2{if(n?.aborted)return void s((0,N.getAbortError)(n));let u=async({error:e})=>{let t="function"==typeof r?r({count:c,error:e}):r;if(t)try{await S(t,{signal:n})}catch(e){s(e);return}i({count:c+1})};try{let r=await e();a(r)}catch(e){if(n?.aborted)return void s((0,N.getAbortError)(n));if((0,N.isAbortError)(e))return void s(e);if(c<t&&await o({count:c,error:e}))return u({error:e});s(e)}};i()})}],204202)},588134,468368,e=>{"use strict";var r=e.i(569934);class t extends r.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}e.s(["UrlRequiredError",0,t],588134);var o=e.i(95767),n=e.i(363710),a=e.i(34888);let s={current:0,take(){return this.current++},reset(){this.current=0}};async function i(e,{maxResponseBodySize:r}){if(!1===r)return e.text();let t=e.headers.get("Content-Length");if(t){let e=Number(t);if(e>r)throw new o.ResponseBodyTooLargeError({maxSize:r,size:e})}if(!e.body){let t=await e.text(),n=new TextEncoder().encode(t).length;if(n>r)throw new o.ResponseBodyTooLargeError({maxSize:r,size:n});return t}let n=e.body.getReader(),a=new TextDecoder,s="",c=0;try{for(;;){let{done:e,value:t}=await n.read();if(e)break;if((c+=t.byteLength)>r)throw await n.cancel(),new o.ResponseBodyTooLargeError({maxSize:r,size:c});s+=a.decode(t,{stream:!0})}return s+=a.decode()}finally{n.releaseLock()}}e.s(["getHttpRpcClient",0,function(e,r={}){let{url:t,headers:c}=function(e){try{let r=new URL(e),t=(()=>{if(r.username){let e=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;return r.username="",r.password="",{url:r.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:r.toString(),...t}}catch{return{url:e}}}(e);return{async request(e){let{body:u,fetchFn:d=r.fetchFn??fetch,maxResponseBodySize:l=r.maxResponseBodySize??0xa00000,onRequest:p=r.onRequest,onResponse:b=r.onResponse,timeout:m=r.timeout??1e4}=e,h={...r.fetchOptions??{},...e.fetchOptions??{}},{headers:y,method:f,signal:g}=h;try{let e,r=await function(e,{errorInstance:r=Error("timed out"),timeout:t,signal:o}){return new Promise((a,s)=>{(async()=>{let i,c=new AbortController;try{t>0&&(i=setTimeout(()=>{o?c.abort():s(r)},t)),a(await e({signal:c?.signal||null}))}catch(e){if(c?.signal.aborted&&(0,n.isAbortError)(e))return void s(r);s(e)}finally{clearTimeout(i)}})()})}(async({signal:e})=>{let r={...h,body:Array.isArray(u)?(0,a.stringify)(u.map(e=>({jsonrpc:"2.0",id:e.id??s.take(),...e}))):(0,a.stringify)({jsonrpc:"2.0",id:u.id??s.take(),...u}),headers:{...c,"Content-Type":"application/json",...y},method:f||"POST",signal:g||(m>0?e:null)},o=new Request(t,r),n=await p?.(o,r)??{...r,url:t};return await d(n.url??t,n)},{errorInstance:new o.TimeoutError({body:u,url:t}),timeout:m,signal:!0});b&&await b(r);let w=await i(r,{maxResponseBodySize:l});if(r.headers.get("Content-Type")?.startsWith("application/json"))e=JSON.parse(w);else{e=w;try{e=JSON.parse(e||"{}")}catch(t){if(r.ok)throw t;e={error:e}}}if(!r.ok){if("number"==typeof e.error?.code&&"string"==typeof e.error?.message)return e;throw new o.HttpRequestError({body:u,details:(0,a.stringify)(e.error)||r.statusText,headers:r.headers,status:r.status,url:t})}return e}catch(e){if(g?.aborted)throw(0,n.getAbortError)(g);if((0,n.isAbortError)(e)||e instanceof o.HttpRequestError||e instanceof o.ResponseBodyTooLargeError||e instanceof o.TimeoutError)throw e;throw new o.HttpRequestError({body:u,cause:e,url:t})}}}}],468368)},363710,e=>{"use strict";e.s(["getAbortError",0,function(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let r=Error("This operation was aborted");return r.name="AbortError",r},"getContractAddress",0,e=>e,"getUrl",0,e=>{try{let r=new URL(e);if(!r.username&&!r.password)return e;return r.username="",r.password="",r.toString()}catch{return e}},"isAbortError",0,function(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}])},557265,e=>{"use strict";var r=e.i(569934),t=e.i(95767),o=e.i(383856),n=e.i(363710);let a=new(e.i(976677)).LruMap(8192);var s=e.i(204202),i=e.i(34888);
2e.s(["buildRequest",0,function(e,c={}){return async(u,d={})=>{let{dedupe:l=!1,methods:p,retryDelay:b=150,retryCount:m=3,signal:h,uid:y}={...c,...d},{method:f}=u;if(p?.exclude?.includes(f)||p?.include&&!p.include.includes(f))throw new o.MethodNotSupportedRpcError(Error("method not supported"),{method:f});if(h?.aborted)throw(0,n.getAbortError)(h);let g=l?function(e,r=0){let t=0xdeadbeef^r,o=0x41c6ce57^r;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t=Math.imul(t^n,0x9e3779b1),o=Math.imul(o^n,0x5f356495)}return t=Math.imul(t^t>>>16,0x85ebca6b)^Math.imul(o^o>>>16,0xc2b2ae35),(0x100000000*(2097151&(o=Math.imul(o^o>>>16,0x85ebca6b)^Math.imul(t^t>>>16,0xc2b2ae35)))+(t>>>0)).toString(36)}(`${y}.${(0,i.stringify)(u)}`):void 0;return function(e,{enabled:r=!0,id:t}){if(!r||!t)return e();if(a.get(t))return a.get(t);let o=e().finally(()=>a.delete(t));return a.set(t,o),o}(()=>(0,s.withRetry)(async()=>{try{return await e(u,h?{signal:h}:void 0)}catch(e){if(h?.aborted)throw(0,n.getAbortError)(h);if((0,n.isAbortError)(e))throw e;switch(e.code){case o.ParseRpcError.code:throw new o.ParseRpcError(e);case o.InvalidRequestRpcError.code:throw new o.InvalidRequestRpcError(e);case o.MethodNotFoundRpcError.code:throw new o.MethodNotFoundRpcError(e,{method:u.method});case o.InvalidParamsRpcError.code:throw new o.InvalidParamsRpcError(e);case o.InternalRpcError.code:throw new o.InternalRpcError(e);case o.InvalidInputRpcError.code:throw new o.InvalidInputRpcError(e);case o.ResourceNotFoundRpcError.code:throw new o.ResourceNotFoundRpcError(e);case o.ResourceUnavailableRpcError.code:throw new o.ResourceUnavailableRpcError(e);case o.TransactionRejectedRpcError.code:throw new o.TransactionRejectedRpcError(e);case o.MethodNotSupportedRpcError.code:throw new o.MethodNotSupportedRpcError(e,{method:u.method});case o.LimitExceededRpcError.code:throw new o.LimitExceededRpcError(e);case o.JsonRpcVersionUnsupportedError.code:throw new o.JsonRpcVersionUnsupportedError(e);case o.UserRejectedRequestError.code:throw new o.UserRejectedRequestError(e);case o.UnauthorizedProviderError.code:throw new o.UnauthorizedProviderError(e);case o.UnsupportedProviderMethodError.code:throw new o.UnsupportedProviderMethodError(e);case o.ProviderDisconnectedError.code:throw new o.ProviderDisconnectedError(e);case o.ChainDisconnectedError.code:throw new o.ChainDisconnectedError(e);case o.SwitchChainError.code:throw new o.SwitchChainError(e);case o.UnsupportedNonOptionalCapabilityError.code:throw new o.UnsupportedNonOptionalCapabilityError(e);case o.UnsupportedChainIdError.code:throw new o.UnsupportedChainIdError(e);case o.DuplicateIdError.code:throw new o.DuplicateIdError(e);case o.UnknownBundleIdError.code:throw new o.UnknownBundleIdError(e);case o.BundleTooLargeError.code:throw new o.BundleTooLargeError(e);case o.AtomicReadyWalletRejectedUpgradeError.code:throw new o.AtomicReadyWalletRejectedUpgradeError(e);case o.AtomicityNotSupportedError.code:throw new o.AtomicityNotSupportedError(e);case 5e3:throw new o.UserRejectedRequestError(e);case o.WalletConnectSessionSettlementError.code:throw new o.WalletConnectSessionSettlementError(e);default:if(e instanceof r.BaseError)throw e;throw new o.UnknownRpcError(e)}}},{delay:({count:e,error:r})=>{if(r&&r instanceof t.HttpRequestError){let e=r?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*b},retryCount:m,signal:h,shouldRetry:({error:e})=>{var r;return r=e,!(0,n.isAbortError)(r)&&("code"in r&&"number"==typeof r.code?-1===r.code||r.code===o.LimitExceededRpcError.code||r.code===o.InternalRpcError.code||429===r.code:!(r instanceof t.HttpRequestError)||!r.status||403===r.status||408===r.status||413===r.status||429===r.status||500===r.status||502===r.status||503===r.status||504===r.status||!1)}}),{enabled:l,id:g})}}],557265)},871706,509486,e=>{"use strict";function r(){let e=()=>void 0,r=()=>void 0;return{promise:new Promise((t,o)=>{e=t,r=o}),resolve:e,reject:r}}e.s(["withResolvers",0,r],509486);let t=new Map;e.s(["createBatchScheduler",0,function({fn:e,id:o,shouldSplitBatch:n,wait:a=0,sort:s}){let i=async()=>{let r=u();c();let t=r.map(({args:e})=>e);0!==t.length&&e(t).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let t=0;t<r.length;t++){let{resolve:o}=r[t];o?.([e[t],e])}}).catch(e=>{for(let t=0;t<r.length;t++){let{reject:o}=r[t];o?.(e)}})},c=()=>t.delete(o),u=()=>t.get(o)||[],d=e=>t.set(o,[...u(),e]);return{flush:c,async schedule(e){let{promise:t,resolve:o,reject:s}=r();return(n?.([...u().map(({args:e})=>e),e])&&i(),u().length>0)?d({args:e,resolve:o,reject:s}):(d({args:e,resolve:o,reject:s}),setTimeout(i,a)),t}}}],871706)},34888,e=>{"use strict";e.s(["stringify",0,(e,r,t)=>JSON.stringify(e,(e,t)=>{let o="bigint"==typeof t?t.toString():t;return"function"==typeof r?r(e,o):o},t)])},606624,e=>{"use strict";let r,t=256;
2e.s(["uid",0,function(e=11){if(!r||t+e>512){r="",t=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(t,t+++e)}])},657256,e=>{"use strict";let r={wei:0,gwei:9,szabo:12,finney:15,ether:18};function t(e,r=0){if(!Number.isInteger(r)||r<0)throw new a({decimals:r});let o=e.toString(),n=o.startsWith("-");n&&(o=o.slice(1));let[s,i]=[(o=o.padStart(r,"0")).slice(0,o.length-r),o.slice(o.length-r)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`}function o(e,r=0){if(!Number.isInteger(r)||r<0)throw new a({decimals:r});if(!/^-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)$/.test(e))throw new n({value:e});let[t="",s="0"]=e.split("."),i=t.startsWith("-");if(i&&(t=t.slice(1)),""===t&&(t="0"),s=s.replace(/(0+)$/,""),0===r)s.length>0&&Number.parseInt(s[0],10)>=5&&(t=`${BigInt(t)+1n}`),s="";else if(s.length>r){let e=s.slice(0,r);if(Number.parseInt(s.slice(r,r+1),10)>=5){let o=function(e){let r=e.split(""),t=r.length-1;for(;t>=0;){let e=Number.parseInt(r[t],10)+1;if(e<10)return r[t]=String(e),r.join("");r[t]="0",t--}return`1${r.join("")}`}(e);o.length>r?(s=o.slice(1),t=`${BigInt(t)+1n}`):s=o}else s=e}else s=s.padEnd(r,"0");return BigInt(`${i?"-":""}${t}${s}`)}class n extends Error{constructor({value:e}){super(`Value \`${e}\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}class a extends Error{constructor({decimals:e}){super(`\`decimals\` must be a non-negative integer. Got \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalsError"})}}e.s(["format",0,t,"formatEther",0,function(e,o="wei"){return t(e,r.ether-r[o])},"formatGwei",0,function(e,o="wei"){return t(e,r.gwei-r[o])},"from",0,o,"fromEther",0,function(e,t="wei"){return o(e,r.ether-r[t])},"fromGwei",0,function(e,t="wei"){return o(e,r.gwei-r[t])}])},976486,e=>{"use strict";var r=e.i(657256);e.s(["formatGwei",0,function(e,t="wei"){return r.formatGwei(e,t)}])},644616,e=>{"use strict";var r=e.i(657256);e.s(["formatUnits",0,function(e,t){return r.format(e,t)}])}]);
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.