PageSourceSearch

https://ens.domains/_next/static/chunks/0-zy-783a-5l2.js

js ens.domains collected 2026-09-24 08:06:38 UTC 80,643 bytes, 25 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,905283,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}])},126267,e=>{"use strict";let t="2.29.2",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};class n extends Error{constructor(e,s={}){const i=s.cause instanceof n?s.cause.details:s.cause?.message?s.cause.message:s.details,o=s.cause instanceof n&&s.cause.docsPath||s.docsPath,a=r.getDocsUrl?.({...s,docsPath:o});super([e||"An error occurred.","",...s.metaMessages?[...s.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...i?[`Details: ${i}`]:[],...r.version?[`Version: ${r.version}`]:[]].join("\n"),s.cause?{cause:s.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=o,this.metaMessages=s.metaMessages,this.name=s.name??this.name,this.shortMessage=e,this.version=t}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}e.s(["BaseError",0,n],126267)},440259,525344,470209,e=>{"use strict";function t(e,t){let r=e.exec(t);return r?.groups}let r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,n=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,s=/^\(.+?\).*?$/;e.s(["bytesRegex",0,r,"execTyped",0,t,"integerRegex",0,n,"isTupleRegex",0,s],525344);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,u=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,c=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,l=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,d=/^receive\(\) external payable$/,f=new Set(["indexed"]),p=new Set(["calldata","memory","storage"]);
vendor: 10,667 bytes, line 1
1class h extends Error{constructor(e,t={}){const r=t.cause instanceof h?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof h&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class b extends h{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class y extends h{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class m extends h{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class g extends h{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class w extends h{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class v extends h{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class $ extends h{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class x extends h{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class E extends h{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class A extends h{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class P extends h{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class B extends h{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let I=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),M=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,O=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,z=/^u?int$/;function F(e,i){var o,a;let u,c=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:e}(e,i?.type,i?.structs);if(I.has(c))return I.get(c);let l=s.test(e),d=t(l?O:M,e);if(!d)throw new m({param:e});if(d.name&&("address"===(o=d.name)||"bool"===o||"function"===o||"string"===o||"tuple"===o||r.test(o)||n.test(o)||C.test(o)))throw new g({param:e,name:d.name});let f=d.name?{name:d.name}:{},h="indexed"===d.modifier?{indexed:!0}:{},b=i?.structs??{},$={};if(l){u="tuple";let e=k(d.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(F(e[n],{structs:b}));$={components:t}}else if(d.type in b)u="tuple",$={components:b[d.type]};else if(z.test(d.type))u=`${d.type}256`;else if(u=d.type,i?.type!=="struct"&&!T(u))throw new y({type:u});if(d.modifier){if(!i?.modifiers?.has?.(d.modifier))throw new w({param:e,type:i?.type,modifier:d.modifier});if(p.has(d.modifier)&&(a=u,!d.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new v({param:e,type:i?.type,modifier:d.modifier})}let x={type:`${u}${d.array??""}`,...f,...h,...$};return I.set(c,x),x}function k(e,t=[],r="",n=0){let s=e.trim().length;for(let i=0;i<s;i++){let s=e[i],o=e.slice(i+1);switch(s){case",":return 0===n?k(o,[...t,r.trim()]):k(o,t,`${r}${s}`,n);case"(":return k(o,t,`${r}${s}`,n+1);case")":return k(o,t,`${r}${s}`,n-1);default:return k(o,t,`${r}${s}`,n)}}if(""===r)return t;if(0!==n)throw new B({current:r,depth:n});return t.push(r.trim()),t}function T(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.test(e)||n.test(e)}let C=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,j=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseAbi",0,function(e){let r=function(e){let r={},n=e.length;for(let s=0;s<n;s++){let n=e[s];if(!u.test(n))continue;let i=t(u,n);if(!i)throw new x({signature:n,type:"struct"});let o=i.properties.split(";"),a=[],c=o.length;for(let e=0;e<c;e++){let t=o[e].trim();if(!t)continue;let r=F(t,{type:"struct"});a.push(r)}if(!a.length)throw new A({signature:n});r[i.name]=a}let i={},o=Object.entries(r),a=o.length;for(let e=0;e<a;e++){let[n,a]=o[e];i[n]=function e(r,n,i=new Set){let o=[],a=r.length;for(let u=0;u<a;u++){let a=r[u];if(s.test(a.type))o.push(a);else{let r=t(j,a.type);if(!r?.type)throw new $({abiParameter:a});let{array:s,type:u}=r;if(u in n){if(i.has(u))throw new P({type:u});o.push({...a,type:`tuple${s??""}`,components:e(n[u]??[],n,new Set([...i,u]))})}else if(T(u))o.push(a);else throw new b({type:u})}}return o}(a,r)}return i}(e),n=[],h=e.length;for(let s=0;s<h;s++){let h=e[s];u.test(h)||n.push(function(e,r={}){if(a.test(e))return function(e,r={}){let n=t(a,e);if(!n)throw new x({signature:e,type:"function"});let s=k(n.parameters),i=[],o=s.length;for(let e=0;e<o;e++)i.push(F(s[e],{modifiers:p,structs:r,type:"function"}));let u=[];if(n.returns){let e=k(n.returns),t=e.length;for(let n=0;n<t;n++)u.push(F(e[n],{modifiers:p,structs:r,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:u}}(e,r);if(o.test(e))return function(e,r={}){let n=t(o,e);if(!n)throw new x({signature:e,type:"event"});let s=k(n.parameters),i=[],a=s.length;for(let e=0;e<a;e++)i.push(F(s[e],{modifiers:f,structs:r,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,r);if(i.test(e))return function(e,r={}){let n=t(i,e);if(!n)throw new x({signature:e,type:"error"});let s=k(n.parameters),o=[],a=s.length;for(let e=0;e<a;e++)o.push(F(s[e],{structs:r,type:"error"}));return{name:n.name,type:"error",inputs:o}}(e,r);if(c.test(e))return function(e,r={}){let n=t(c,e);if(!n)throw new x({signature:e,type:"constructor"});let s=k(n.parameters),i=[],o=s.length;for(let e=0;e<o;e++)i.push(F(s[e],{structs:r,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}(e,r);if(l.test(e))return function(e){let r=t(l,e);if(!r)throw new x({signature:e,type:"fallback"});return{type:"fallback",stateMutability:r.stateMutability??"nonpayable"}}(e);if(d.test(e))return{type:"receive",stateMutability:"payable"};throw new E({signature:e})}(h,r))}return n}],440259);
1class R extends Error{constructor(e,t={}){const r=(()=>{if(t.cause instanceof R){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof R&&t.cause.docsPath||t.docsPath,s=`https://oxlib.sh${n??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n?["",r?`Details: ${r}`:void 0,n?`See: ${s}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=r,this.docs=s,this.docsPath=n,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}function S(e,t={}){var r;let n,{signed:s,size:i}=t,o=BigInt(e);i?n=s?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof n&&s?-n-1n:0;if(n&&o>n||o<a){let t="bigint"==typeof e?"n":"";throw new N({max:n?`${n}${t}`:void 0,min:`${a}${t}`,signed:s,size:i,value:`${e}${t}`})}let u=(s&&o<0?(1n<<BigInt(8*i))+BigInt(o):o).toString(16),c=`0x${u}`;return i?(r=c,function(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;let s=e.replace("0x","");if(s.length>2*n)throw new L({size:Math.ceil(s.length/2),targetSize:n,type:"Hex"});return`0x${s["right"===r?"padEnd":"padStart"](2*n,"0")}`}(r,{dir:"left",size:i})):c}class N extends R{constructor({max:e,min:t,signed:r,size:n,value:s}){super(`Number \`${s}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class L extends R{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function U(e){return{address:e.address,amount:S(e.amount),index:S(e.index),validatorIndex:S(e.validatorIndex)}}e.s(["toRpc",0,function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:S(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:S(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:S(e.gasLimit)},..."bigint"==typeof e.number&&{number:S(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:S(e.prevRandao)},..."bigint"==typeof e.time&&{time:S(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(U)}}}],470209)},95333,938108,282600,e=>{"use strict";let t=[{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"}],r=[{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"}]}],n=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}];[...n],[...n],e.s(["batchGatewayAbi",0,r,"multicall3Abi",0,t],95333),e.s(["aggregate3Signature",0,"0x82ad56cb"],938108),e.s(["deploylessCallViaBytecodeBytecode",0,"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
1602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe","deploylessCallViaFactoryBytecode",0,"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe"],282600)},893319,38406,602487,194029,653265,503666,916426,958817,137849,304534,703654,733686,822165,847491,803398,79138,173432,240865,886536,665825,440212,327493,824492,176488,641042,615257,51165,368761,227731,82063,e=>{"use strict";let t,r;var n,s=e.i(440259),i=e.i(470209),o=e.i(905283),a=e.i(95333),u=e.i(938108),c=e.i(282600),l=e.i(126267),d=l;class f extends d.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}d.BaseError,d.BaseError;class p extends d.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}d.BaseError;let h={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},b={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"}
1,y={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function m(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new L(e.type);return`${e.name}(${g(e.inputs,{includeName:t})})`}function g(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${g(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}function w(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function v(e){return w(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}e.s(["panicReasons",0,h,"solidityError",0,b,"solidityPanic",0,y],38406),e.s(["AbiConstructorNotFoundError",()=>x,"AbiConstructorParamsNotFoundError",()=>E,"AbiDecodingDataSizeTooSmallError",()=>A,"AbiDecodingZeroDataError",()=>P,"AbiEncodingArrayLengthMismatchError",()=>B,"AbiEncodingBytesSizeMismatchError",()=>I,"AbiEncodingLengthMismatchError",()=>M,"AbiErrorInputsNotFoundError",()=>O,"AbiErrorNotFoundError",()=>z,"AbiErrorSignatureNotFoundError",()=>F,"AbiFunctionNotFoundError",()=>k,"AbiFunctionOutputsNotFoundError",()=>T,"AbiFunctionSignatureNotFoundError",()=>C,"AbiItemAmbiguityError",()=>j,"InvalidAbiDecodingTypeError",()=>S,"InvalidAbiEncodingTypeError",()=>R,"InvalidArrayError",()=>N,"InvalidDefinitionTypeError",()=>L],653265),e.s(["formatAbiItem",()=>m,"formatAbiParams",()=>g],602487),e.s(["isHex",0,w],194029);var $=l;class x extends $.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class E extends $.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}$.BaseError;class A extends $.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${g(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class P extends $.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class B extends $.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
2Expected length: ${e}
3Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class I extends $.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${v(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class M extends $.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
4Expected length (params): ${e}
5Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class O extends $.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
6Cannot encode error result without knowing what the parameter types are.
7Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class z extends $.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
8Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class F extends $.BaseError{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
9Make sure you are using the correct ABI and that the error exists on it.
10You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}$.BaseError,$.BaseError,$.BaseError;class k extends $.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
11Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class T extends $.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
12Cannot decode function result without knowing what the parameter types are.
13Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class C extends $.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
14Make sure you are using the correct ABI and that the function exists on it.
15You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class j extends $.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${m(e.abiItem)}\`, and`,`\`${t.type}\` in \`${m(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}$.BaseError,$.BaseError,$.BaseError;class R extends $.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
16Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class S extends $.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
17Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class N extends $.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class L extends $.BaseError{constructor(e){super(`"${e}" is not a valid definition type.
18Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}$.BaseError;var U=l;class D extends U.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class G extends U.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class H extends U.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}function _(e,t,r,{strict:n}={}){return w(e,{strict:!1})?function(e,t,r,{strict:n}={}){q(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&V(s,t,r),s}(e,t,r,{strict:n}):Z(e,t,r,{strict:n})}function q(e,t){if("number"==typeof t&&t>0&&t>v(e)-1)throw new D({offset:t,position:"start",size:v(e)})}function V(e,t,r){if("number"==typeof t&&"number"==typeof r&&v(e)!==r-t)throw new D({offset:r,position:"end",size:v(e)})}function Z(e,t,r,{strict:n}={}){q(e,t);let s=e.slice(t,r);return n&&V(s,t,r),s}function W(e,{dir:t,size:r=32}={}){return"string"==typeof e?X(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new G({size:e.length,targetSize:r,type:"bytes"});let n=new Uint8Array(r);for(let s=0;s<r;s++){let i="right"===t;n[i?s:r-s-1]=e[i?s:e.length-s-1]}return n}(e,{dir:t,size:r})}function X(e,{dir:t,size:r=32}={}){if(null===r)return e;let n=e.replace("0x","");if(n.length>2*r)throw new G({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n["right"===t?"padEnd":"padStart"](2*r,"0")}`}e.s(["slice",0,_,"sliceBytes",0,Z],503666),e.s(["hexToBytes",()=>eb,"stringToBytes",()=>ey,"toBytes",()=>ep],304534),e.s(["assertSize",()=>et,"hexToBigInt",()=>er,"hexToNumber",()=>en,"hexToString",()=>es],958817);var J=l;class K extends J.BaseError{constructor({max:e,min:t,signed:r,size:n,value:s}){super(`Number "${s}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class Y extends J.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}J.BaseError,J.BaseError;class Q extends J.BaseError{constructor({givenSize:e,maxSize:t}
18){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ee(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())n++;else break;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}function et(e,{size:t}){if(v(e)>t)throw new Q({givenSize:v(e),maxSize:t})}function er(e,t={}){let{signed:r}=t;t.size&&et(e,{size:t.size});let n=BigInt(e);if(!r)return n;let s=(e.length-2)/2;return n<=(1n<<8n*BigInt(s)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*s,"f")}`)-1n}function en(e,t={}){return Number(er(e,t))}function es(e,t={}){let r=eb(e);return t.size&&(et(r,{size:t.size}),r=ee(r,{dir:"right"})),new TextDecoder().decode(r)}e.s(["trim",0,ee],916426),e.s(["boolToHex",()=>ea,"bytesToHex",()=>eu,"numberToHex",()=>ec,"stringToHex",()=>ed,"toHex",()=>eo],137849);let ei=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function eo(e,t={}){return"number"==typeof e||"bigint"==typeof e?ec(e,t):"string"==typeof e?ed(e,t):"boolean"==typeof e?ea(e,t):eu(e,t)}function ea(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(et(r,{size:t.size}),W(r,{size:t.size})):r}function eu(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=ei[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(et(n,{size:t.size}),W(n,{dir:"right",size:t.size})):n}function ec(e,t={}){let r,{signed:n,size:s}=t,i=BigInt(e);s?r=n?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let o="bigint"==typeof r&&n?-r-1n:0;if(r&&i>r||i<o){let t="bigint"==typeof e?"n":"";throw new K({max:r?`${r}${t}`:void 0,min:`${o}${t}`,signed:n,size:s,value:`${e}${t}`})}let a=`0x${(n&&i<0?(1n<<BigInt(8*s))+BigInt(i):i).toString(16)}`;return s?W(a,{size:s}):a}let el=new TextEncoder;function ed(e,t={}){return eu(el.encode(e),t)}let ef=new TextEncoder;function ep(e,t={}){return"number"==typeof e||"bigint"==typeof e?eb(ec(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?(et(r,{size:t.size}),W(r,{size:t.size})):r}(e,t):w(e)?eb(e,t):ey(e,t)}function eh(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function eb(e,t={}){let r=e;t.size&&(et(r,{size:t.size}),r=W(r,{dir:"right",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);let s=n.length/2,i=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=eh(n.charCodeAt(t++)),s=eh(n.charCodeAt(t++));if(void 0===r||void 0===s)throw new l.BaseError(`Invalid byte sequence ("${n[t-2]}${n[t-1]}" in "${n}").`);i[e]=16*r+s}return i}function ey(e,t={}){let r=ef.encode(e);return"number"==typeof t.size?(et(r,{size:t.size}),W(r,{dir:"right",size:t.size})):r}function em(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function eg(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function ew(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")}let ev=BigInt(0x100000000-1),e$=BigInt(32),ex=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0];function eE(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}}function eA(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),eg(e),e}"function"==typeof Uint8Array.from([]).toHex&&Uint8Array.fromHex;class eP{clone(){return this._cloneInto()}}let eB=[],eI=[],eM=[],eO=BigInt(0),ez=BigInt(1),eF=BigInt(2),ek=BigInt(7),eT=BigInt(256),eC=BigInt(113);for(let e=0,t=ez,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],eB.push(2*(5*n+r)),eI.push((e+1)*(e+2)/2%64);let s=eO;for(let e=0;e<7;e++)(t=(t<<ez^(t>>ek)*eC)%eT)&eF&&(s^=ez<<(ez<<BigInt(e))-ez);eM.push(s)}let[ej,eR]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let s=0;s<e.length;s++){let{h:i,l:o}=function(e,t=!1){return t?{h:Number(e&ev),l:Number(e>>e$&ev)}:{h:0|Number(e>>e$&ev),l:0|Number(e&ev)}}(e[s],t);[r[s],n[s]]=[i,o]}return[r,n]}(eM,!0),eS=(e,t,r)=>r>32?t<<r-32|e>>>64-r:e<<r|t>>>32-r,eN=(e,t,r)=>r>32?e<<r-32|t>>>64-r:t<<r|e>>>32-r;class eL extends eP{constructor(e,t,r,n=!1,s=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=s,em(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}(this.state)}keccak(){ex||eE(this.state32),function(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],o=r[s+1],a=eS(i,o,1)^r[n],u=eN(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],s=e[3];for(let r=0;r<24;r++){let n=eI[r],i=eS(t,s,n),o=eN(t,s,n),a=eB[r];t=e[a],s=e[a+1],e[a]=i,e[a+1]=o}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]^=ej[n],e[1]^=eR[n]}r.fill(0)}(this.state32,this.rounds),ex||eE(this.state32),this.posOut=0,this.pos=0}update(e){ew(this);let{blockLen:t,state:r}=this,n=(e=eA(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){ew(this,!1),eg(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 em(e),this.xofInto(new Uint8Array(e))}digestInto(e){eg(e);let t=this.outputLen;if(e.length<t)throw Error("digestInto() expects output buffer of length at least "+t);if(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 eL(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}}let eU=(n=()=>new eL(136,1,32),(t=e=>n().update(eA(e)).digest()).outputLen=(r=n()).outputLen,t.blockLen=r.blockLen,t.create=()=>n(),t);function eD(e,t){let r=eU(w(e,{strict:!1})?ep(e):e);return"bytes"===(t||"hex")?r:eo(r)}e.s(["keccak256",0,eD],703654);var eG=e.i(525344);let eH=/^tuple(?<array>(\[(\d*)\])*)$/;function e_(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(eH.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let s=0;s<n;s++)r+=e(t.components[s]),s<n-1&&(r+=", ");let s=(0,eG.execTyped)(eH,t.type);return r+=`)${s?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
18 indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}function eq(e){return eD(ep(function(e){let t=!0,r="",n=0,s="",i=!1;for(let o=0;o<e.length;o++){let a=e[o];if(["(",")",","].includes(a)&&(t=!0),"("===a&&n++,")"===a&&n--,t){if(0===n){if(" "===a&&["event","function",""].includes(s))s="";else if(s+=a,")"===a){i=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}s+=a,r+=a}}if(!i)throw new l.BaseError("Unable to normalize signature.");return s}((()=>"string"==typeof e?e:"function"===e.type?`function ${e.name}(${e_(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${e_(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${e_(e.inputs)})`:"error"===e.type?`error ${e.name}(${e_(e.inputs)})`:"constructor"===e.type?`constructor(${e_(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable")())))}let eV=e=>_(eq(e),0,4);e.s(["toFunctionSelector",0,eV],733686),e.s(["checksumAddress",()=>e0,"getAddress",()=>e1],79138);var eZ=l;class eW extends eZ.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,eW],822165);class eX extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}e.s(["LruMap",0,eX],847491),e.s(["isAddress",()=>eY],803398);let eJ=/^0x[a-fA-F0-9]{40}$/,eK=new eX(8192);function eY(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(eK.has(n))return eK.get(n);let s=!!eJ.test(e)&&(e.toLowerCase()===e||!r||e0(e)===e);return eK.set(n,s),s}let eQ=new eX(8192);function e0(e,t){if(eQ.has(`${e}.${t}`))return eQ.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=eD(ey(r),"bytes"),s=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&n[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let i=`0x${s.join("")}`;return eQ.set(`${e}.${t}`,i),i}function e1(e,t){if(!eY(e,{strict:!1}))throw new eW({address:e});return e0(e,t)}var e2=l;class e6 extends e2.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class e5 extends e2.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class e8 extends e2.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}let e3={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new e8({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new e5({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new e6({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new e6({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function e4(e,t={}){return void 0!==t.size&&et(e,{size:t.size}),er(eu(e,t),t)}function e9(e,t={}){let r=e;if(void 0!==t.size&&(et(r,{size:t.size}),r=ee(r)),r.length>1||r[0]>1)throw new Y(r);return!!r[0]}function e7(e,t={}){return void 0!==t.size&&et(e,{size:t.size}),en(eu(e,t),t)}function te(e,t={}){let r=e;return void 0!==t.size&&(et(r,{size:t.size}),r=ee(r,{dir:"right"})),new TextDecoder().decode(r)}function tt(e){return"string"==typeof e[0]?tr(e):function(e){let t=0;
18for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function tr(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["bytesToBigInt",0,e4,"bytesToBool",0,e9,"bytesToNumber",0,e7,"bytesToString",0,te],173432),e.s(["concat",0,tt,"concatHex",0,tr],240865);let tn=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function ts(e,t){if(e.length!==t.length)throw new M({expectedLength:e.length,givenLength:t.length});let r=ti(function({params:e,values:t}){let r=[];for(let n=0;n<e.length;n++)r.push(function e({param:t,value:r}){let n=to(t.type);if(n){let[s,i]=n;return function(t,{length:r,param:n}){let s=null===r;if(!Array.isArray(t))throw new N(t);if(!s&&t.length!==r)throw new B({expectedLength:r,givenLength:t.length,type:`${n.type}[${r}]`});let i=!1,o=[];for(let r=0;r<t.length;r++){let s=e({param:n,value:t[r]});s.dynamic&&(i=!0),o.push(s)}if(s||i){let e=ti(o);if(s){let t=ec(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?tt([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:tt(o.map(({encoded:e})=>e))}}(r,{length:s,param:{...t,type:i}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,s=[];for(let i=0;i<r.components.length;i++){let o=r.components[i],a=Array.isArray(t)?i:o.name,u=e({param:o,value:t[a]});s.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?ti(s):tt(s.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type){var s=r;if(!eY(s))throw new eW({address:s});return{dynamic:!1,encoded:X(s.toLowerCase())}}if("bool"===t.type){var i=r;if("boolean"!=typeof i)throw new l.BaseError(`Invalid boolean value: "${i}" (type: ${typeof i}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:X(ea(i))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=tn.exec(t.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-n-1n:0n;if(e>n||e<s)throw new K({max:n.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:ec(e,{size:32,signed:t})}}(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),n=v(e);if(!r){let t=e;return n%32!=0&&(t=X(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:tt([X(ec(n,{size:32})),t])}}if(n!==Number.parseInt(r))throw new I({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:X(e,{dir:"right"})}}(r,{param:t});if("string"===t.type){var o=r;let e=ed(o),t=Math.ceil(v(e)/32),n=[];for(let r=0;r<t;r++)n.push(X(_(e,32*r,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:tt([X(ec(v(e),{size:32})),...n])}}throw new R(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[n],value:t[n]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function ti(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:s}=e[r];n?t+=32:t+=v(s)}let r=[],n=[],s=0;for(let i=0;i<e.length;i++){let{dynamic:o,encoded:a}=e[i];o?(r.push(ec(t+s,{size:32})),n.push(a),s+=v(a)):r.push(a)}return tt([...r,...n])}function to(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function ta(e,t){let r="string"==typeof t?eb(t):t,n=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(e3);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}(r);if(0===v(r)&&e.length>0)throw new P;if(v(t)&&32>v(t))throw new A({data:"string"==typeof t?t:eu(t),params:e,size:v(t)});let s=0,i=[];for(let t=0;t<e.length;++t){let r=e[t];n.setPosition(s);let[o,a]=function e(t,r,{staticPosition:n}){let s=to(r.type);if(s){let[i,o]=s;return function(t,r,{length:n,staticPosition:s}){if(!n){let n=s+e7(t.readBytes(32)),i=n+32;t.setPosition(n);let o=e7(t.readBytes(32)),a=tu(r),u=0,c=[];for(let n=0;n<o;++n){t.setPosition(i+(a?32*n:u));let[s,o]=e(t,r,{staticPosition:i});u+=o,c.push(s)}return t.setPosition(s+32),[c,32]}if(tu(r)){let i=s+e7(t.readBytes(32)),o=[];for(let s=0;s<n;++s){t.setPosition(i+32*s);let[n]=e(t,r,{staticPosition:i});o.push(n)}return t.setPosition(s+32),[o,32]}let i=0,o=[];for(let a=0;a<n;++a){let[n,a]=e(t,r,{staticPosition:s+i});i+=a,o.push(n)}return[o,i]}(t,{...r,type:o},{length:i,staticPosition:n})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let s=0===r.components.length||r.components.some(({name:e})=>!e),i=s?[]:{},o=0;if(tu(r)){let a=n+e7(t.readBytes(32));for(let n=0;n<r.components.length;++n){let u=r.components[n];t.setPosition(a+o);let[c,l]=e(t,u,{staticPosition:a});o+=l,i[s?n:u?.name]=c}return t.setPosition(n+32),[i,32]}for(let a=0;a<r.components.length;++a){let u=r.components[a],[c,l]=e(t,u,{staticPosition:n});i[s?a:u?.name]=c,o+=l}return[i,o]}(t,r,{staticPosition:n});if("address"===r.type)return[e0(eu(Z(t.readBytes(32),-20))),32];if("bool"===r.type)return[e9(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,s]=t.type.split("bytes");if(!s){let t=e7(e.readBytes(32));e.setPosition(r+t);let n=e7(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let s=e.readBytes(n);return e.setPosition(r+32),[eu(s),32]}return[eu(e.readBytes(Number.parseInt(s),32)),32]}(t,r,{staticPosition:n});if(r.type.startsWith("uint")||r.type.startsWith("int")){var i,o;let e,n,s;return i=t,e=(o=r).type.startsWith("int"),n=Number.parseInt(o.type.split("int")[1]||"256"),s=i.readBytes(32),[n>48?e4(s,{signed:e}):e7(s,{signed:e}),32]}if("string"===r.type)return function(e,{staticPosition:t}){let r=e7(e.readBytes(32));e.setPosition(t+r);let n=e7(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let s=te(ee(e.readBytes(n,32)));return e.setPosition(t+32),[s,32]}(t,{staticPosition:n});throw new S(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(n,r,{staticPosition:0});s+=a,i.push(o)}return i}function tu(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
18if("tuple"===t)return e.components?.some(tu);let r=to(e.type);return!!(r&&tu({...e,type:r[1]}))}function tc(e){let{abi:t,data:r}=e,n=_(r,0,4);if("0x"===n)throw new P;let s=[...t||[],b,y].find(e=>"error"===e.type&&n===eV(m(e)));if(!s)throw new F(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:s,args:"inputs"in s&&s.inputs&&s.inputs.length>0?ta(s.inputs,_(r,4)):void 0,errorName:s.name}}e.s(["encodeAbiParameters",0,ts,"getArrayComponents",0,to],886536),e.s(["decodeAbiParameters",0,ta],665825),e.s(["decodeErrorResult",0,tc],440212);let tl=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r);function td({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?tl(t[r]):t[r]}`).join(", ")})`}function tf(e){let t,{abi:r,args:n=[],name:s}=e,i=w(s,{strict:!1}),o=r.filter(e=>i?"function"===e.type?eV(e)===s:"event"===e.type&&eq(e)===s:"name"in e&&e.name===s);if(0!==o.length){if(1===o.length)return o[0];for(let e of o){if("inputs"in e){if(!n||0===n.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===n.length&&n.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,s=r.type;switch(s){case"address":return eY(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===s&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(s))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(s))return"string"===n||t instanceof Uint8Array;
18if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(s))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:s.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let s in t){let i=t[s],o=r[s];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return e(i.components,o.components,n[s]);let a=[i.type,o.type];if(a.includes("address")&&a.includes("bytes20")||(a.includes("address")&&a.includes("string")||a.includes("address")&&a.includes("bytes"))&&eY(n[s],{strict:!1}))return a}}(e.inputs,t.inputs,n);if(r)throw new j({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}}return t||o[0]}}e.s(["stringify",0,tl],327493),e.s(["getAbiItem",0,tf],824492);let tp={gwei:9,wei:18},th={ether:-9,wei:9};function tb(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[s,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`}function ty(e,t="wei"){return tb(e,th[t])}var tm=l,tg=l;class tw extends tg.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class tv extends tg.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function t$(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}
19`,"")}var tx=l;function tE(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class tA extends tx.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}tx.BaseError,tx.BaseError,tx.BaseError,tx.BaseError,tx.BaseError,tx.BaseError,tx.BaseError,tx.BaseError,tx.BaseError;let tP=e=>e;e.s(["getContractAddress",0,tP,"getUrl",0,e=>e],176488);class tB extends tm.BaseError{constructor(e,{account:t,docsPath:r,chain:n,data:s,gas:i,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:l,to:d,value:f,stateOverride:p}){const h=t?(0,o.parseAccount)(t):void 0;let b=tE({from:h?.address,to:d,value:void 0!==f&&`${function(e,t="wei"){return tb(e,tp[t])}(f)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:i,gasPrice:void 0!==a&&`${ty(a)} gwei`,maxFeePerGas:void 0!==u&&`${ty(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ty(c)} gwei`,nonce:l});p&&(b+=`
20${function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:
21`;return r.nonce&&(n+=`      nonce: ${r.nonce}
22`),r.balance&&(n+=`      balance: ${r.balance}
23`),r.code&&(n+=`      code: ${r.code}
24`),r.state&&(n+="      state:\n",n+=t$(r.state)),r.stateDiff&&(n+="      stateDiff:\n",n+=t$(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}(p)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class tI extends tm.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:s,functionName:i,sender:o}){const a=tf({abi:t,args:r,name:i}),u=a?td({abiItem:a,args:r,includeFunctionName:!1,includeName:!1}):void 0,c=a?m(a,{includeName:!0}):void 0,l=tE({address:n&&tP(n),function:c,args:u&&"()"!==u&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${u}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],l&&"Contract Call:",l].filter(
24Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=i,this.sender=o}}class tM extends tm.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let s,i,o,a,u;if(t&&"0x"!==t)try{const{abiItem:r,errorName:n,args:s}=u=tc({abi:e,data:t});if("Error"===n)o=s[0];else if("Panic"===n){const[e]=s;o=h[e]}else{const e=r?m(r,{includeName:!0}):void 0,t=r&&s?td({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;i=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else n&&(o=n);s instanceof F&&(a=s.signature,i=[`Unable to decode signature "${a}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${a}.`]),super(o&&"execution reverted"!==o||a?[`The contract function "${r}" reverted with the following ${a?"signature":"reason"}:`,o||a].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:i,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=t,this.reason=o,this.signature=a}}class tO extends tm.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class tz extends tm.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class tF extends tm.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}e.s(["CallExecutionError",0,tB,"ContractFunctionExecutionError",0,tI,"ContractFunctionRevertedError",0,tM,"ContractFunctionZeroDataError",0,tO,"CounterfactualDeploymentFailedError",0,tz,"RawContractError",0,tF],641042);let tk="/docs/contract/decodeFunctionResult";function tT(e){let{abi:t,args:r,functionName:n,data:s}=e,i=t[0];if(n){let e=tf({abi:t,args:r,name:n});if(!e)throw new k(n,{docsPath:tk});i=e}if("function"!==i.type)throw new k(void 0,{docsPath:tk});if(!i.outputs)throw new T(i.name,{docsPath:tk});let o=ta(i.outputs,s);return o&&o.length>1?o:o&&1===o.length?o[0]:void 0}e.s(["decodeFunctionResult",0,tT],615257);let tC="/docs/contract/encodeDeployData";function tj(e){let{abi:t,args:r,bytecode:n}=e;if(!r||0===r.length)return n;let s=t.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new x({docsPath:tC});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new E({docsPath:tC});return tr([n,ts(s.inputs,r)])}let tR="/docs/contract/encodeFunctionData";function tS(e){let{args:t}=e,{abi:r,functionName:n}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:n}=e,s=t[0];if(n){let e=tf({abi:t,args:r,name:n});if(!e)throw new k(n,{docsPath:tR});s=e}if("function"!==s.type)throw new k(void 0,{docsPath:tR});return{abi:[s],functionName:eV(m(s))}}(e),s=r[0];return tr([n,("inputs"in s&&s.inputs?ts(s.inputs,t??[]):void 0)??"0x"])}function tN({blockNumber:e,chain:t,contract:r}){let n=t?.contracts?.[r];if(!n)throw new f({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new f({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}e.s(["encodeFunctionData",0,tS],51165),e.s(["getChainContractAddress",0,tN],368761);var tL=l;class tU extends tL.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(tU,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(tU,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class tD extends tL.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${ty(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(tD,"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 tG extends tL.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${ty(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(tG,"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 tH extends tL.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(tH,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class t_ extends tL.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
25Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(t_,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class tq extends tL.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(tq,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class tV extends tL.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(tV,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class tZ extends tL.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(tZ,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class tW extends tL.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(tW,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class tX extends tL.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(tX,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class tJ extends tL.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${ty(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${ty(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(tJ,"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 tK extends tL.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}e.s(["ExecutionRevertedError",0,tU,"FeeCapTooHighError",0,tD,"FeeCapTooLowError",0,tG,"InsufficientFundsError",0,tV,"IntrinsicGasTooHighError",0,tZ,"IntrinsicGasTooLowError",0,tW,"NonceMaxValueError",0,tq,"NonceTooHighError",0,tH,"NonceTooLowError",0,t_,"TipAboveFeeCapError",0,tJ,"TransactionTypeNotSupportedError",0,tX,"UnknownNodeError",0,tK],227731);let tY={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},tQ=new Map;function t0({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:s}){let i=async()=>{let t=a();o();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},o=()=>tQ.delete(t),a=()=>tQ.get(t)||[],u=e=>tQ.set(t,[...a(),e]);return{flush:o,async schedule(e){let t,s,{promise:o,resolve:c,reject:l}=(t=()=>void 0,s=()=>void 0,{promise:new Promise((e,r)=>{t=e,s=r}),resolve:t,reject:s});return(r?.([...a().map(({args:e})=>e),e])&&i(),a().length>0)?u({args:e,resolve:c,reject:l}):(u({args:e,resolve:c,reject:l}),setTimeout(i,n)),o}}}function t1(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new H({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new H({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}e.s(["createBatchScheduler",0,t0],82063);let t2=2n**256n-1n;async function t6(t,r){let{account:n=t.account,batch:a=!!t.batch?.multicall,blockNumber:d,blockTag:h="latest",accessList:b,blobs:y,blockOverrides:m,code:g,data:w,factory:v,factoryData:$,gas:x,gasPrice:E,maxFeePerBlobGas:A,maxFeePerGas:P,maxPriorityFeePerGas:B,nonce:I,to:M,value:O,stateOverride:z,...F}=r,k=n?(0,o.parseAccount)(n):void 0;if(g&&(v||$))throw new l.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(g&&M)throw new l.BaseError("Cannot provide both `code` & `to` as parameters.");
25let T=g&&w,C=v&&$&&M&&w,j=T||C,R=T?function(e){let{code:t,data:r}=e;return tj({abi:(0,s.parseAbi)(["constructor(bytes, bytes)"]),bytecode:c.deploylessCallViaBytecodeBytecode,args:[t,r]})}({code:g,data:w}):C?function(e){let{data:t,factory:r,factoryData:n,to:i}=e;return tj({abi:(0,s.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:c.deploylessCallViaFactoryBytecode,args:[i,t,r,n]})}({data:w,factory:v,factoryData:$,to:M}):w;try{let e;!function(e){let{account:t,gasPrice:r,maxFeePerGas:n,maxPriorityFeePerGas:s,to:i}=e,a=t?(0,o.parseAccount)(t):void 0;if(a&&!eY(a.address))throw new eW({address:a.address});if(i&&!eY(i))throw new eW({address:i});if(void 0!==r&&(void 0!==n||void 0!==s))throw new tA;if(n&&n>t2)throw new tD({maxFeePerGas:n});if(s&&n&&s>n)throw new tJ({maxFeePerGas:n,maxPriorityFeePerGas:s})}(r);let n=("bigint"==typeof d?ec(d):void 0)||h,s=m?i.toRpc(m):void 0,c=function(e){if(!e)return;let t={};for(let{address:r,...n}of e){if(!eY(r,{strict:!1}))throw new eW({address:r});if(t[r])throw new tw({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:s,code:i}=e,o={};if(void 0!==i&&(o.code=i),void 0!==t&&(o.balance=ec(t)),void 0!==r&&(o.nonce=ec(r)),void 0!==n&&(o.state=t1(n)),void 0!==s){if(o.state)throw new tv;o.stateDiff=t1(s)}return o}(n)}return t}(z),l=t.chain?.formatters?.transactionRequest?.format,g=(l||function(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?ec(BigInt(e.r)):e.r,s:e.s?ec(BigInt(e.s)):e.s,chainId:ec(e.chainId),nonce:ec(e.nonce),...void 0!==e.yParity?{yParity:ec(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:ec(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>eu(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=ec(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=ec(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=ec(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=ec(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=ec(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=ec(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=tY[e.type]),void 0!==e.value&&(t.value=ec(e.value)),t})({...function(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let s of Object.keys(n))s in e&&(r[s]=e[s]),n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])&&t(n[s])}(t(e||{})),r}(F,{format:l}),from:k?.address,accessList:b,blobs:y,data:R,gas:x,gasPrice:E,maxFeePerBlobGas:A,maxFeePerGas:P,maxPriorityFeePerGas:B,nonce:I,to:j?void 0:M,value:O});if(a&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(u.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:g})&&!c&&!s)try{return await t5(t,{...g,blockNumber:d,blockTag:h})}catch(e){if(!(e instanceof p)&&!(e instanceof f))throw e}let w=(e=[g,n],c&&s?[...e,c,s]:c?[...e,c]:s?[...e,{},s]:e),v=await t.request({method:"eth_call",params:w});if("0x"===v)return{data:void 0};return{data:v}}catch(o){let n=function(e){if(!(e instanceof l.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:s,offchainLookupSignature:i}=await e.A(134997);if(!1!==t.ccipRead&&n?.slice(0,10)===i&&M)return{data:await s(t,{data:n,to:M})};if(j&&n?.slice(0,10)==="0x101bb98d")throw new tz({factory:v});throw function(e,{docsPath:t,...r}){let n,s,i;return new tB((n=(e.details||"").toLowerCase(),(i=(s=e instanceof l.BaseError?e.walk(e=>e?.code===tU.code):e)instanceof l.BaseError?new tU({cause:e,message:s.details}):tU.nodeMessage.test(n)?new tU({cause:e,message:e.details}):tD.nodeMessage.test(n)?new tD({cause:e,maxFeePerGas:r?.maxFeePerGas}):tG.nodeMessage.test(n)?new tG({cause:e,maxFeePerGas:r?.maxFeePerGas}):tH.nodeMessage.test(n)?new tH({cause:e,nonce:r?.nonce}):t_.nodeMessage.test(n)?new t_({cause:e,nonce:r?.nonce}):tq.nodeMessage.test(n)?new tq({cause:e,nonce:r?.nonce}):tV.nodeMessage.test(n)?new tV({cause:e}):tZ.nodeMessage.test(n)?new tZ({cause:e,gas:r?.gas}):tW.nodeMessage.test(n)?new tW({cause:e,gas:r?.gas}):tX.nodeMessage.test(n)?new tX({cause:e}):tJ.nodeMessage.test(n)?new tJ({cause:e,maxFeePerGas:r?.maxFeePerGas,maxPriorityFeePerGas:r?.maxPriorityFeePerGas}):new tK({cause:e}))instanceof tK?e:i),{docsPath:t,...r})}(o,{...r,account:k,chain:t.chain})}}async function t5(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:s,blockTag:i="latest",data:o,multicallAddress:u,to:c}=t,l=u;if(!l){if(!e.chain)throw new p;l=tN({blockNumber:s,chain:e.chain,contract:"multicall3"})}let d=("bigint"==typeof s?ec(s):void 0)||i,{schedule:f}=t0({id:`${e.uid}.${d}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>
25({allowFailure:!0,callData:e.data,target:e.to})),n=tS({abi:a.multicall3Abi,args:[r],functionName:"aggregate3"}),s=await e.request({method:"eth_call",params:[{data:n,to:l},d]});return tT({abi:a.multicall3Abi,args:[r],functionName:"aggregate3",data:s||"0x"})}}),[{returnData:h,success:b}]=await f({data:o,to:c});if(!b)throw new tF({data:h});return"0x"===h?{data:void 0}:{data:h}}e.s(["call",0,t6],893319)},195963,e=>{"use strict";var t=e.i(327493),r=e.i(126267),n=e.i(176488);class s extends r.BaseError{constructor({body:e,cause:r,details:s,headers:i,status:o,url:a}){super("HTTP request failed.",{cause:r,details:s,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,n.getUrl)(a)}`,e&&`Request body: ${(0,t.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=i,this.status=o,this.url=a}}r.BaseError;class i extends r.BaseError{constructor({body:e,error:r,url:s}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${(0,n.getUrl)(s)}`,`Request body: ${(0,t.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}),this.code=r.code,this.data=r.data}}r.BaseError;class o extends r.BaseError{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,n.getUrl)(r)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"})}}e.s(["HttpRequestError",0,s,"RpcRequestError",0,i,"TimeoutError",0,o])},253234,e=>{"use strict";var t=e.i(327493),r=e.i(126267),n=e.i(176488);class s extends r.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:s,sender:i,urls:o}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",o&&["  Gateway URL(s):",...o.map(e=>`    ${(0,n.getUrl)(e)}`)],`  Sender: ${i}`,`  Data: ${r}`,`  Callback selector: ${e}`,`  Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class i extends r.BaseError{constructor({result:e,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,n.getUrl)(r)}`,`Response: ${(0,t.stringify)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class o extends r.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}e.s(["OffchainLookupError",0,s,"OffchainLookupResponseMalformedError",0,i,"OffchainLookupSenderMismatchError",0,o])},453493,e=>{"use strict";var t=e.i(893319),r=e.i(253234),n=e.i(195963),s=e.i(440212),i=e.i(886536),o=e.i(822165),a=e.i(803398),u=e.i(240865),c=e.i(194029),l=e.i(95333),d=e.i(38406),f=e.i(653265),p=e.i(503666),h=e.i(733686),b=e.i(665825),y=e.i(602487),m=e.i(824492);let g="/docs/contract/encodeErrorResult";function w(e){let{abi:t,errorName:r,args:n}=e,s=t[0];if(r){let e=(0,m.getAbiItem)({abi:t,args:n,name:r});if(!e)throw new f.AbiErrorNotFoundError(r,{docsPath:g});s=e}if("error"!==s.type)throw new f.AbiErrorNotFoundError(void 0,{docsPath:g});let o=(0,y.formatAbiItem)(s),a=(0,h.toFunctionSelector)(o),c="0x";if(n&&n.length>0){if(!s.inputs)throw new f.AbiErrorInputsNotFoundError(s.name,{docsPath:g});c=(0,i.encodeAbiParameters)(s.inputs,n)}return(0,u.concatHex)([a,c])}let v="/docs/contract/encodeFunctionResult";async function $(e){let{data:t,ccipRequest:r}=e,{args:[n]}=function(e){let{abi:t,data:r}=e,n=(0,p.slice)(r,0,4),s=t.find(e=>"function"===e.type&&n===(0,h.toFunctionSelector)((0,y.formatAbiItem)(e)));if(!s)throw new f.AbiFunctionSignatureNotFoundError(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:s.name,args:"inputs"in s&&s.inputs&&s.inputs.length>0?(0,b.decodeAbiParameters)(s.inputs,(0,p.slice)(r,4)):void 0}}({abi:l.batchGatewayAbi,data:t}),s=[],o=[];return await Promise.all(n.map(async(e,t)=>{try{o[t]=await r(e),s[t]=!1}catch(e){var n;s[t]=!0,o[t]="HttpRequestError"===(n=e).name&&n.status?w({abi:l.batchGatewayAbi,errorName:"HttpError",args:[n.status,n.shortMessage]}):w({abi:[d.solidityError],errorName:"Error",args:["shortMessage"in n?n.shortMessage:n.message]})}})),function(e){let{abi:t,functionName:r,result:n}=e,s=t[0];if(r){let e=(0,m.getAbiItem)({abi:t,name:r});if(!e)throw new f.AbiFunctionNotFoundError(r,{docsPath:v});s=e}if("function"!==s.type)throw new f.AbiFunctionNotFoundError(void 0,{docsPath:v});if(!s.outputs)throw new f.AbiFunctionOutputsNotFoundError(s.name,{docsPath:v});let o=(()=>
25{if(0===s.outputs.length)return[];if(1===s.outputs.length)return[n];if(Array.isArray(n))return n;throw new f.InvalidArrayError(n)})();return(0,i.encodeAbiParameters)(s.outputs,o)}({abi:l.batchGatewayAbi,functionName:"query",result:[s,o]})}var x=e.i(327493);let E={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function A(e,{blockNumber:n,blockTag:c,data:l,to:d}){let{args:f}=(0,s.decodeErrorResult)({data:l,abi:[E]}),[p,h,b,y,m]=f,{ccipRead:g}=e,w=g&&"function"==typeof g?.request?g.request:P;try{if(!function(e,t){if(!(0,a.isAddress)(e,{strict:!1}))throw new o.InvalidAddressError({address:e});if(!(0,a.isAddress)(t,{strict:!1}))throw new o.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}(d,p))throw new r.OffchainLookupSenderMismatchError({sender:p,to:d});let s=h.includes("x-batch-gateway:true")?await $({data:b,ccipRequest:w}):await w({data:b,sender:p,urls:h}),{data:l}=await (0,t.call)(e,{blockNumber:n,blockTag:c,data:(0,u.concat)([y,(0,i.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[s,m])]),to:d});return l}catch(e){throw new r.OffchainLookupError({callbackSelector:y,cause:e,data:l,extraData:m,sender:p,urls:h})}}async function P({data:e,sender:t,urls:s}){let i=Error("An unknown error occurred.");for(let o=0;o<s.length;o++){let a=s[o],u=a.includes("{data}")?"GET":"POST",l="POST"===u?{data:e,sender:t}:void 0,d="POST"===u?{"Content-Type":"application/json"}:{};try{let s,o=await fetch(a.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(l),headers:d,method:u});if(s=o.headers.get("Content-Type")?.startsWith("application/json")?(await o.json()).data:await o.text(),!o.ok){i=new n.HttpRequestError({body:l,details:s?.error?(0,x.stringify)(s.error):o.statusText,headers:o.headers,status:o.status,url:a});continue}if(!(0,c.isHex)(s)){i=new r.OffchainLookupResponseMalformedError({result:s,url:a});continue}return s}catch(e){i=new n.HttpRequestError({body:l,details:e.message,url:a})}}throw i}e.s(["offchainLookup",0,A,"offchainLookupSignature",0,"0x556f1830"],453493)}]);

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.