1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="395c369d-e274-52f6-ab65-eeb0dd104f80")}catch(e){}}(); 3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,189991,e=>{"use strict";function t(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}e.s(["parseAccount",()=>t])},285973,e=>{"use strict";e.s(["formatEther",()=>n]);var t=e.i(855723),r=e.i(644616);function n(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,r.formatUnits)(e,t.etherUnits[n])}},393702,e=>{"use strict";e.s(["InvalidLegacyVError",()=>i,"InvalidSerializableTransactionError",()=>o,"InvalidSerializedTransactionError",()=>c,"InvalidSerializedTransactionTypeError",()=>s,"InvalidStorageKeySizeError",()=>f,"TransactionExecutionError",()=>u,"TransactionNotFoundError",()=>l,"TransactionReceiptNotFoundError",()=>d,"TransactionReceiptRevertedError",()=>b,"WaitForTransactionReceiptTimeoutError",()=>p,"prettyPrint",()=>a]);var t=e.i(285973),r=e.i(976486),n=e.i(569934);function a(e){let t=Object.entries(e).map(e=>{let[t,r]=e;return void 0===r||!1===r?null:[t,r]}).filter(Boolean),r=t.reduce((e,t)=>{let[r]=t;return Math.max(e,r.length)},0);return t.map(e=>{let[t,n]=e;return" ".concat("".concat(t,":").padEnd(r+1)," ").concat(n)}).join("\n")}n.BaseError;class i extends n.BaseError{constructor({v:e}){super('Invalid `v` value "'.concat(e,'". Expected 27 or 28.'),{name:"InvalidLegacyVError"})}}class o extends n.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class s extends n.BaseError{constructor({serializedType:e}){super('Serialized transaction type "'.concat(e,'" is invalid.'),{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class c extends n.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){let n=Object.entries(e).map(e=>{let[t,r]=e;return void 0===r?t:void 0}).filter(Boolean);super('Invalid serialized transaction of type "'.concat(r,'" was provided.'),{metaMessages:['Serialized Transaction: "'.concat(t,'"'),n.length>0?"Missing Attributes: ".concat(n.join(", ")):""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}class f extends n.BaseError{constructor({storageKey:e}){super('Size for storage key "'.concat(e,'" is invalid. Expected 32 bytes. Got ').concat(Math.floor((e.length-2)/2)," bytes."),{name:"InvalidStorageKeySizeError"})}}class u extends n.BaseError{constructor(e,{account:n,docsPath:i,chain:o,data:s,gas:c,gasPrice:f,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:d,to:b,value:p}){var y;super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",a({chain:o&&"".concat(null==o?void 0:o.name," (id: ").concat(null==o?void 0:o.id,")"),from:null==n?void 0:n.address,to:b,value:void 0!==p&&"".concat((0,t.formatEther)(p)," ").concat((null==o||null==(y=o.nativeCurrency)?void 0:y.symbol)||"ETH"),data:s,gas:c,gasPrice:void 0!==f&&"".concat((0,r.formatGwei)(f)," gwei"),maxFeePerGas:void 0!==u&&"".concat((0,r.formatGwei)(u)," gwei"),maxPriorityFeePerGas:void 0!==l&&"".concat((0,r.formatGwei)(l)," gwei"),nonce:d}
3)].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class l extends n.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:a}){let i="Transaction";r&&void 0!==a&&(i='Transaction at block time "'.concat(r,'" at index "').concat(a,'"')),e&&void 0!==a&&(i='Transaction at block hash "'.concat(e,'" at index "').concat(a,'"')),t&&void 0!==a&&(i='Transaction at block number "'.concat(t,'" at index "').concat(a,'"')),n&&(i='Transaction with hash "'.concat(n,'"')),super("".concat(i," could not be found."),{name:"TransactionNotFoundError"})}}class d extends n.BaseError{constructor({hash:e}){super('Transaction receipt with hash "'.concat(e,'" could not be found. The Transaction may not be processed on a block yet.'),{name:"TransactionReceiptNotFoundError"})}}class b extends n.BaseError{constructor({receipt:e}){super('Transaction with hash "'.concat(e.transactionHash,'" reverted.'),{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class p extends n.BaseError{constructor({hash:e}){super('Timed out while waiting for transaction with hash "'.concat(e,'" to be confirmed.'),{name:"WaitForTransactionReceiptTimeoutError"})}}},467078,e=>{"use strict";e.s(["getNodeError",()=>n]);var t=e.i(569934),r=e.i(853532);function n(e,n){let a=(e.details||"").toLowerCase(),i=e instanceof t.BaseError?e.walk(e=>(null==e?void 0:e.code)===r.ExecutionRevertedError.code):e;return i instanceof t.BaseError?new r.ExecutionRevertedError({cause:e,message:i.details}):r.ExecutionRevertedError.nodeMessage.test(a)?new r.ExecutionRevertedError({cause:e,message:e.details}):r.FeeCapTooHighError.nodeMessage.test(a)?new r.FeeCapTooHighError({cause:e,maxFeePerGas:null==n?void 0:n.maxFeePerGas}):r.FeeCapTooLowError.nodeMessage.test(a)?new r.FeeCapTooLowError({cause:e,maxFeePerGas:null==n?void 0:n.maxFeePerGas}):r.NonceTooHighError.nodeMessage.test(a)?new r.NonceTooHighError({cause:e,nonce:null==n?void 0:n.nonce}):r.NonceTooLowError.nodeMessage.test(a)?new r.NonceTooLowError({cause:e,nonce:null==n?void 0:n.nonce}):r.NonceMaxValueError.nodeMessage.test(a)?new r.NonceMaxValueError({cause:e,nonce:null==n?void 0:n.nonce}):r.InsufficientFundsError.nodeMessage.test(a)?new r.InsufficientFundsError({cause:e}):r.IntrinsicGasTooHighError.nodeMessage.test(a)?new r.IntrinsicGasTooHighError({cause:e,gas:null==n?void 0:n.gas}):r.IntrinsicGasTooLowError.nodeMessage.test(a)?new r.IntrinsicGasTooLowError({cause:e,gas:null==n?void 0:n.gas}):r.TransactionTypeNotSupportedError.nodeMessage.test(a)?new r.TransactionTypeNotSupportedError({cause:e}):r.TipAboveFeeCapError.nodeMessage.test(a)?new r.TipAboveFeeCapError({cause:e,maxFeePerGas:null==n?void 0:n.maxFeePerGas,maxPriorityFeePerGas:null==n?void 0:n.maxPriorityFeePerGas}):new r.UnknownNodeError({cause:e})}e.i(1299),e.i(383856)},264404,445024,190521,e=>{"use strict";function t(e,t){let{format:r}=t;if(!r)return{};let n={};return!function t(r){for(let a of Object.keys(r))a in e&&(n[a]=e[a]),r[a]&&"object"==typeof r[a]&&!Array.isArray(r[a])&&t(r[a])}(r(e||{})),n}e.s(["extract",()=>t],264404),e.s(["defineTransactionRequest",()=>o,"formatTransactionRequest",()=>i],190521);var r=e.i(675107);function n(e,t){return r=>{let{exclude:n,format:a}=r;return{exclude:n,format:(e,r)=>{let i=t(e,r);if(n)for(let e of n)delete i[e];return{...i,...a(e,r)}},type:e}}}e.s(["defineFormatter",()=>n],445024);let a={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function i(e,t){let n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,r.numberToHex)(BigInt(e.s)):e.s,chainId:(0,r.numberToHex)(e.chainId),nonce:(0,r.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>(0,r.bytesToHex)(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=(0,r.numberToHex)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.numberToHex)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=a[e.type]),void 0!==e.value&&(n.value=(0,r.numberToHex)(e.value)),n}let o=n("transactionRequest",i)},353464,674768,e=>{"use strict";e.s(["assertRequest",()=>s],353464);var t=e.i(189991);e.s(["maxUint16",()=>r,"maxUint256",()=>n],674768);let r=2n**16n-1n,n=2n**256n-1n;var a=e.i(608861),i=e.i(853532),o=e.i(796516);function s(e){let{account:r,maxFeePerGas:s,maxPriorityFeePerGas:c,to:f}=e,u=r?(0,t.parseAccount)(r):void 0;if(u&&!(0,o.isAddress)(u.address))throw new a.InvalidAddressError({address:u.address});if(f&&!(0,o.isAddress)(f))throw new a.InvalidAddressError({address:f});if(s&&s>n)throw new i.FeeCapTooHighError({maxFeePerGas:s});if(c&&s&&c>s)throw new i.TipAboveFeeCapError({maxFeePerGas:s,maxPriorityFeePerGas:c})}}
3,289169,e=>{"use strict";e.s(["encodeDeployData",()=>i]);var t=e.i(70204),r=e.i(147526),n=e.i(704434);let a="/docs/contract/encodeDeployData";function i(e){let{abi:i,args:o,bytecode:s}=e;if(!o||0===o.length)return s;let c=i.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new t.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new t.AbiConstructorParamsNotFoundError({docsPath:a});let f=(0,n.encodeAbiParameters)(c.inputs,o);return(0,r.concatHex)([s,f])}},795,493429,e=>{"use strict";e.s(["createCursor",()=>o],795),e.s(["NegativeOffsetError",()=>r,"PositionOutOfBoundsError",()=>n,"RecursiveReadLimitExceededError",()=>a],493429);var t=e.i(569934);class r extends t.BaseError{constructor({offset:e}){super("Offset `".concat(e,"` cannot be negative."),{name:"NegativeOffsetError"})}}class n extends t.BaseError{constructor({length:e,position:t}){super("Position `".concat(t,"` is out of bounds (`0 < position < ").concat(e,"`)."),{name:"PositionOutOfBoundsError"})}}class a extends t.BaseError{constructor({count:e,limit:t}){super("Recursive read limit of `".concat(t,"` exceeded (recursive read count: `").concat(e,"`)."),{name:"RecursiveReadLimitExceededError"})}}let i={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 a({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r({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 r({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=null!=e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=null!=t?t:this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=null!=e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=null!=e?e:this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=null!=e?e:this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=null!=e?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+=null!=t?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 o(e){var t;let{recursiveReadLimit:r=8192}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.create(i);return n.bytes=e,n.dataView=new DataView(null!=(t=e.buffer)?t:e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=r,n}},505880,e=>{"use strict";e.s(["ChainDoesNotSupportContract",()=>r,"ChainMismatchError",()=>n,"ChainNotFoundError",()=>
3a,"ClientChainNotConfiguredError",()=>i,"InvalidChainIdError",()=>o]);var t=e.i(569934);class r extends t.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super('Chain "'.concat(t.name,'" does not support contract "').concat(r.name,'".'),{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?['- The contract "'.concat(r.name,'" was not deployed until block ').concat(r.blockCreated," (current block ").concat(e,").")]:['- The chain does not have the contract "'.concat(r.name,'" configured.')]],name:"ChainDoesNotSupportContract"})}}class n extends t.BaseError{constructor({chain:e,currentChainId:t}){super("The current chain of the wallet (id: ".concat(t,") does not match the target chain for the transaction (id: ").concat(e.id," â ").concat(e.name,")."),{metaMessages:["Current Chain ID: ".concat(t),"Expected Chain ID: ".concat(e.id," â ").concat(e.name)],name:"ChainMismatchError"})}}class a extends t.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class i extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class o extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?'Chain ID "'.concat(e,'" is invalid.'):"Chain ID is invali
3d.",{name:"InvalidChainIdError"})}}},62570,e=>{"use strict";e.s(["AccountStateConflictError",()=>r,"StateAssignmentConflictError",()=>n,"prettyStateOverride",()=>i]);var t=e.i(569934);class r extends t.BaseError{constructor({address:e}){super('State for account "'.concat(e,'" is set multiple times.'),{name:"AccountStateConflictError"})}}class n extends t.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,t)=>{let{slot:r,value:n}=t;return"".concat(e," ").concat(r,": ").concat(n,"\n")},"")}function i(e){return e.reduce((e,t)=>{let{address:r,...n}=t,i="".concat(e," ").concat(r,":\n");return n.nonce&&(i+=" nonce: ".concat(n.nonce,"\n")),n.balance&&(i+=" balance: ".concat(n.balance,"\n")),n.code&&(i+=" code: ".concat(n.code,"\n")),n.state&&(i+=" state:\n",i+=a(n.state)),n.stateDiff&&(i+=" stateDiff:\n",i+=a(n.stateDiff)),i}," State Override:\n").slice(0,-1)}},826051,e=>{"use strict";e.s(["serializeStateOverride",()=>s]);var t=e.i(608861),r=e.i(587286),n=e.i(62570),a=e.i(796516),i=e.i(675107);function o(e){if(e&&0!==e.length)return e.reduce((e,t)=>{let{slot:n,value:a}=t;if(66!==n.length)throw new r.InvalidBytesLengthError({size:n.length,targetSize:66,type:"hex"});if(66!==a.length)throw new r.InvalidBytesLengthError({size:a.length,targetSize:66,type:"hex"});return e[n]=a,e},{})}function s(e){if(!e)return;let r={};for(let{address:s,...c}of e){if(!(0,a.isAddress)(s,{strict:!1}))throw new t.InvalidAddressError({address:s});if(r[s])throw new n.AccountStateConflictError({address:s});r[s]=function(e){let{balance:t,nonce:r,state:a,stateDiff:s,code:c}=e,f={};if(void 0!==c&&(f.code=c),void 0!==t&&(f.balance=(0,i.numberToHex)(t)),void 0!==r&&(f.nonce=(0,i.numberToHex)(r)),void 0!==a&&(f.state=o(a)),void 0!==s){if(f.state)throw new n.StateAssignmentConflictError;f.stateDiff=o(s)}return f}(c)}return r}},806685,e=>{"use strict";e.s(["isAddressEqual",()=>n]);var t=e.i(608861),r=e.i(796516);function n(e,n){if(!(0,r.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});if(!(0,r.isAddress)(n,{strict:!1}))throw new t.InvalidAddressError({address:n});return e.toLowerCase()===n.toLowerCase()}},727343,e=>{"use strict";e.s(["panicReasons",()=>t,"solidityError",()=>r,"solidityPanic",()=>n]);let t={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."},r={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},n={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},249311,e=>{"use strict";e.s(["decodeAbiParameters",()=>b],249311);var t=e.i(70204),r=e.i(823838),n=e.i(795),a=e.i(401319),i=e.i(790063),o=e.i(8406),s=e.i(400564),c=e.i(450323),f=e.i(675107);function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==t.size&&(0,c.assertSize)(e,{size:t.size});let r=(0,f.bytesToHex)(e,t);return(0,c.hexToNumber)(r,t)}var l=e.i(769936),d=e.i(704434);function b(e,b){let y="string"==typeof b?(0,l.hexToBytes)(b):b,m=(0,n.createCursor)(y);if(0===(0,a.size)(y)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,a.size)(b)&&32>(0,a.size)(b))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof b?b:(0,f.bytesToHex)(b),params:e,size:(0,a.size)(b)});let h=0,g=[];for(let n=0;n<e.length;++n){let a=e[n];m.setPosition(h);let[l,b]=function e(n,a,l){let{staticPosition:b}=l,y=(0,d.getArrayComponents)(a.type);if(y){let[t,r]=y;return function(t,r,n){let{length:a,staticPosition:i}=n;if(!a){let n=i+u(t.readBytes(32)),a=n+32;t.setPosition(n);let o=u(t.readBytes(32)),s=p(r),c=0,f=[];for(let n=0;n<o;++n){t.setPosition(a+(s?32*n:c));let[i,o]=e(t,r,{staticPosition:a});c+=o,f.push(i)}return t.setPosition(i+32),[f,32]}if(p(r)){let n=i+u(t.readBytes(32)),o=[];for(let i=0;i<a;++i){t.setPosition(n+32*i);let[a]=e(t,r,{staticPosition:n});o.push(a)}return t.setPosition(i+32),[o,32]}let o=0,s=[];for(let n=0;n<a;++n){let[n,a]=e(t,r,{staticPosition:i+o});o+=a,s.push(n)}return[s,o]}(n,{...a,type:r},{length:t,staticPosition:b})}if("tuple"===a.type)return function(t,r,n){let{staticPosition:a}=n,i=0===r.components.length||r.components.some(e=>{let{name:t}=e;return!t}),o=i?[]:{},s=0;if(p(r)){let n=a+u(t.readBytes(32));for(let a=0;a<r.components.length;++a){let c=r.components[a];t.setPosition(n+s);let[f,u]=e(t,c,{staticPosition:n});s+=u,o[i?a:null==c?void 0:c.name]=f}return t.setPosition(a+32),[o,32]}for(let n=0;n<r.components.length;++n){let c=r.components[n],[f,u]=e(t,c,{staticPosition:a});o[i?n:null==c?void 0:c.name]=f,s+=u}return[o,s]}(n,a,{staticPosition:b});if("address"===a.type){var m=n;let e=m.readBytes(32);return[(0,r.checksumAddress)((0,f.bytesToHex)((0,i.sliceBytes)(e,-20))),32]}if("bool"===a.type)return[function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(void 0!==t.size&&((0,c.assertSize)(r,{size:t.size}),r=(0,o.trim)(r)),r.length>1||r[0]>1)throw new s.InvalidBytesBooleanError(r);return!!r[0]}(n.readBytes(32),{size:32}),32];if(a.type.startsWith("bytes"))return function(e,t,r){let{staticPosition:n}=r,[a,i]=t.type.split("bytes");if(!i){let t=u(e.readBytes(32));e.setPosition(n+t);let r=u(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let a=e.readBytes(r);return e.setPosition(n+32),[(0,f.bytesToHex)(a),32]}return[(0,f.bytesToHex)(e.readBytes(Number.parseInt(i,10),32)),32]}(n,a,{staticPosition:b});if(a.type.startsWith("uint")||a.type.startsWith("int")){var h=n,g=a;let e=g.type.startsWith("int"),t=Number.parseInt(g.type.split("int")[1]||"256",10),r=h.readBytes(32);return[t>48?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==t.size&&(0,c.assertSize)(e,{size:t.size});let r=(0,f.bytesToHex)(e,t);return(0,c.hexToBigInt)(r,t)}(r,{signed:e}):u(r,{signed:e}),32]}if("string"===a.type)return function(e,t){let{staticPosition:r}=t,n=u(e.readBytes(32));e.setPosition(r+n);let a=u(e.readBytes(32));if(0===a)return e.setPosition(r+32),["",32];let i=e.readBytes(a,32),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;return void 0!==t.size&&((0,c.assertSize)(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}((0,o.trim)(i));return e.setPosition(r+32),[s,32]}(n,{staticPosition:b});throw new t.InvalidAbiDecodingTypeError(a.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,a,{staticPosition:0});h+=b,g.push(l)}return g}function p(e){var t;let{type:r}=e;if("string"===r||"bytes"===r||r.endsWith("[]"))return!0;
3if("tuple"===r)return null==(t=e.components)?void 0:t.some(p);let n=(0,d.getArrayComponents)(e.type);return!!(n&&p({...e,type:n[1]}))}},959953,461295,e=>{"use strict";e.s(["decodeErrorResult",()=>s],959953);var t=e.i(727343),r=e.i(70204),n=e.i(790063),a=e.i(879617),i=e.i(249311),o=e.i(332881);function s(e){let{abi:s,data:c,cause:f}=e,u=(0,n.slice)(c,0,4);if("0x"===u)throw new r.AbiDecodingZeroDataError({cause:f});let l=[...s||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&u===(0,a.toFunctionSelector)((0,o.formatAbiItem)(e)));if(!l)throw new r.AbiErrorSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeErrorResult",cause:f});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,i.decodeAbiParameters)(l.inputs,(0,n.slice)(c,4)):void 0,errorName:l.name}}e.s(["formatAbiItemWithArgs",()=>f],461295);var c=e.i(34888);function f(e){let{abiItem:t,args:r,includeFunctionName:n=!0,includeName:a=!1}=e;if("name"in t&&"inputs"in t&&t.inputs)return"".concat(n?t.name:"","(").concat(t.inputs.map((e,t)=>"".concat(a&&e.name?"".concat(e.name,": "):"").concat("object"==typeof r[t]?(0,c.stringify)(r[t]):r[t])).join(", "),")")}},878023,e=>{"use strict";e.s(["CallExecutionError",()=>p,"ContractFunctionExecutionError",()=>y,"ContractFunctionRevertedError",()=>m,"ContractFunctionZeroDataError",()=>h,"CounterfactualDeploymentFailedError",()=>g,"RawContractError",()=>v]);var t=e.i(189991),r=e.i(727343),n=e.i(959953),a=e.i(332881),i=e.i(461295),o=e.i(627173),s=e.i(285973),c=e.i(976486),f=e.i(70204),u=e.i(569934),l=e.i(62570),d=e.i(393702),b=e.i(363710);class p extends u.BaseError{constructor(e,{account:r,docsPath:n,chain:a,data:i,gas:o,gasPrice:f,maxFeePerGas:u,maxPriorityFeePerGas:b,nonce:p,to:y,value:m,stateOverride:h}){var g;let v=r?(0,t.parseAccount)(r):void 0,w=(0,d.prettyPrint)({from:null==v?void 0:v.address,to:y,value:void 0!==m&&"".concat((0,s.formatEther)(m)," ").concat((null==a||null==(g=a.nativeCurrency)?void 0:g.symbol)||"ETH"),data:i,gas:o,gasPrice:void 0!==f&&"".concat((0,c.formatGwei)(f)," gwei"),maxFeePerGas:void 0!==u&&"".concat((0,c.formatGwei)(u)," gwei"),maxPriorityFeePerGas:void 0!==b&&"".concat((0,c.formatGwei)(b)," gwei"),nonce:p});h&&(w+="\n".concat((0,l.prettyStateOverride)(h))),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class y extends u.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:s,functionName:c,sender:f}){var u;let l=(0,o.getAbiItem)({abi:t,args:r,name:c}),p=l?(0,i.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,y=l?(0,a.formatAbiItem)(l,{includeName:!0}):void 0,m=(0,d.prettyPrint)({address:n&&(0,b.getContractAddress)(n),function:y,args:p&&"()"!==p&&"".concat([...Array(null!=(u=null==c?void 0:c.length)?u:0).keys()].map(()=>" ").join("")).concat(p),sender:f});super(e.shortMessage||'An unknown error occurred while executing the contract function "'.concat(c,'".'),{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],m&&"Contract Call:",m].filter(Boolean),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=c,this.sender=f}}class m extends u.BaseError{constructor({abi:e,data:t,functionName:o,message:s,cause:c}){let u,l,d,b,p;if(t&&"0x"!==t)try{let{abiItem:o,errorName:s,args:f}=l=(0,n.decodeErrorResult)({abi:e,data:t,cause:c});if("Error"===s)b=f[0];else if("Panic"===s){let[e]=f;b=r.panicReasons[e]}else{var y;let e=o?(0,a.formatAbiItem)(o,{includeName:!0}):void 0,t=o&&f?(0,i.formatAbiItemWithArgs)({abiItem:o,args:f,includeFunctionName:!1,includeName:!1}):void 0;d=[e?"Error: ".concat(e):"",t&&"()"!==t?" ".concat([...Array(null!=(y=null==s?void 0:s.length)?y:0).keys()].map(()=>" ").join("")).concat(t):""]}}catch(e){u=e}else s&&(b=s);u instanceof f.AbiErrorSignatureNotFoundError&&(p=u.signature,d=['Unable to decode signature "'.concat(p,'" 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://4byte.sourcify.dev/?q=".concat(p,".")]),super(b&&"execution reverted"!==b||p?['The contract function "'.concat(o,'" reverted with the following ').concat(p?"signature":"reason",":"),b||p].join("\n"):'The contract function "'.concat(o,'" reverted.'),{cause:null!=u?u:c,metaMessages:d,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=l,this.raw=t,this.reason=b,this.signature=p}}class h extends u.BaseError{constructor({functionName:e,cause:t}){super('The contract function "'.concat(e,'" returned no data ("0x").'),{metaMessages:["This could be due to any of the following:",' - The contract does not have the function "'.concat(e,'",')," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}class g extends u.BaseError{constructor({factory:e}){super("Deployment for counterfactual contract call failed".concat(e?' for factory "'.concat(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 v extends u.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}}},752012,e=>{"use strict";e.s(["addressResolverAbi",()=>s,"batchGatewayAbi",()=>r,"erc1271Abi",()=>c,"erc20Abi",()=>u,"erc6492SignatureValidatorAbi",()=>f,"multicall3Abi",()=>t,"textResolverAbi",()=>o,"universalResolverResolveAbi",()=>a,"universalResolverReverseAbi",()=>i]);let t=[{inputs:[{components:[{name:"target",type:"address"}
3,{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"}],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:"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"}],a=[...n,{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"}]}],i=[...n,{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"}]}],o=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],s=[{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"}]}],c=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],f=[{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"}],u=[{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"}]}]},600547,e=>{"use strict";e.s(["decodeFunctionResult",()=>i]);var t=e.i(70204),r=e.i(249311),n=e.i(627173);let a="/docs/contract/decodeFunctionResult";function i(e){let{abi:i,args:o,functionName:s,data:c}=e,f=i[0];if(s){let e=(0,n.getAbiItem)({abi:i,args:o,name:s});if(!e)throw new t.AbiFunctionNotFoundError(s,{docsPath:a});f=e}if("function"!==f.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!f.outputs)throw new t.AbiFunctionOutputsNotFoundError(f.name,{docsPath:a});let u=(0,r.decodeAbiParameters)(f.outputs,c);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},404195,e=>{"use strict";e.s(["getChainContractAddress",()=>r]);var t=e.i(505880);function r(e){var r;let{blockNumber:n,chain:a,contract:i}=e,o=null==a||null==(r=a.contracts)?void 0:r[i];if(!o)throw new t.ChainDoesNotSupportContract({chain:a,contract:{name:i}});if(n&&o.blockCreated&&o.blockCreated>n)throw new t.ChainDoesNotSupportContract({blockNumber:n,chain:a,contract:{name:i,blockCreated:o.blockCreated}});return o.address}},461147,316819,e=>{"use strict";e.s(["localBatchGatewayRequest",()=>m,"localBatchGatewayUrl",()=>y],461147);var t=e.i(752012),r=e.i(727343);e.s(["decodeFunctionData",()=>c],316819);var n=e.i(70204),a=e.i(790063),i=e.i(879617),o=e.i(249311),s=e.i(332881);function c(e){let{abi:t,data:r}=e,c=(0,a.slice)(r,0,4),f=t.find(e=>"function"===e.type&&c===(0,i.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!f)throw new n.AbiFunctionSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeFunctionData"});
3return{functionName:f.name,args:"inputs"in f&&f.inputs&&f.inputs.length>0?(0,o.decodeAbiParameters)(f.inputs,(0,a.slice)(r,4)):void 0}}var f=e.i(147526),u=e.i(704434),l=e.i(627173);let d="/docs/contract/encodeErrorResult";function b(e){let{abi:t,errorName:r,args:a}=e,o=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,args:a,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:d});o=e}if("error"!==o.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:d});let c=(0,s.formatAbiItem)(o),b=(0,i.toFunctionSelector)(c),p="0x";if(a&&a.length>0){if(!o.inputs)throw new n.AbiErrorInputsNotFoundError(o.name,{docsPath:d});p=(0,u.encodeAbiParameters)(o.inputs,a)}return(0,f.concatHex)([b,p])}let p="/docs/contract/encodeFunctionResult",y="x-batch-gateway:true";async function m(e){let{data:a,ccipRequest:i}=e,{args:[o]}=c({abi:t.batchGatewayAbi,data:a}),s=[],f=[];return await Promise.all(o.map(async(e,n)=>{try{f[n]=e.urls.includes(y)?await m({data:e.data,ccipRequest:i}):await i(e),s[n]=!1}catch(e){var a;s[n]=!0,f[n]="HttpRequestError"===(a=e).name&&a.status?b({abi:t.batchGatewayAbi,errorName:"HttpError",args:[a.status,a.shortMessage]}):b({abi:[r.solidityError],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}})),function(e){let{abi:t,functionName:r,result:a}=e,i=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:p});i=e}if("function"!==i.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:p});if(!i.outputs)throw new n.AbiFunctionOutputsNotFoundError(i.name,{docsPath:p});let o=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[a];if(Array.isArray(a))return a;throw new n.InvalidArrayError(a)})();return(0,u.encodeAbiParameters)(i.outputs,o)}({abi:t.batchGatewayAbi,functionName:"query",result:[s,f]})}},137195,61460,815373,589513,88776,902094,698996,602376,382721,759384,284251,944318,e=>{"use strict";e.s(["parseAbi",()=>Y],137195),e.s(["eventModifiers",()=>A,"execConstructorSignature",()=>m,"execErrorSignature",()=>a,"execEventSignature",()=>s,"execFallbackSignature",()=>v,"execFunctionSignature",()=>u,"execStructSignature",()=>b,"functionModifiers",()=>P,"isConstructorSignature",()=>y,"isErrorSignature",()=>n,"isEventSignature",()=>o,"isFallbackSignature",()=>g,"isFunctionSignature",()=>f,"isReceiveSignature",()=>E,"isStructSignature",()=>d,"modifiers",()=>x],61460);var t=e.i(788035);let r=RegExp("^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$");function n(e){return r.test(e)}function a(e){return(0,t.execTyped)(r,e)}let i=RegExp("^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$");function o(e){return i.test(e)}function s(e){return(0,t.execTyped)(i,e)}let c=RegExp("^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?<returns>.*?)\\))?$");function f(e){return c.test(e)}function u(e){return(0,t.execTyped)(c,e)}let l=RegExp("^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?<properties>.*?)\\}$");function d(e){return l.test(e)}function b(e){return(0,t.execTyped)(l,e)}let p=RegExp("^constructor\\((?<parameters>.*?)\\)(?:\\s(?<stateMutability>payable{1}))?$");function y(e){return p.test(e)}function m(e){return(0,t.execTyped)(p,e)}let h=RegExp("^fallback\\(\\) external(?:\\s(?<stateMutability>payable{1}))?$");function g(e){return h.test(e)}function v(e){return(0,t.execTyped)(h,e)}let w=/^receive\(\) external payable$/;function E(e){return w.test(e)}let x=new Set(["memory","indexed","storage","calldata"]),A=new Set(["indexed"]),P=new Set(["calldata","memory","storage"]);e.s(["parseStructs",()=>K],902094),e.s(["InvalidAbiItemError",()=>B,"UnknownSolidityTypeError",()=>I,"UnknownTypeError",()=>S],815373);class T extends Error{constructor(e,t={}){var r;let n=t.cause instanceof T?t.cause.details:(null==(r=t.cause)?void 0:r.message)?t.cause.message:t.details,a=t.cause instanceof T&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?["Docs: https://abitype.dev".concat(a)]:[],...n?["Details: ".concat(n)]:[],"Version: abitype@".concat("1.2.3")].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=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}class B extends T{constructor({signature:e}){super("Failed to parse ABI item.",{details:"parseAbiItem(".concat(JSON.stringify(e,null,2),")"),docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class S extends T{constructor({type:e}){super("Unknown type.",{metaMessages:['Type "'.concat(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 I extends T{constructor({type:e}){super("Unknown type.",{metaMessages:['Type "'.concat(e,'" is not a valid ABI type.')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}e.s(["InvalidAbiParametersError",()=>C,"InvalidAbiTypeParameterError",()=>F,"InvalidFunctionModifierError",()=>M,"InvalidModifierError",()=>z,"InvalidParameterError",()=>O,"SolidityProtectedKeywordError",()=>R],589513);class C extends T{constructor({params:e}){super("Failed to parse ABI parameters.",{details:"parseAbiParameters(".concat(JSON.stringify(e,null,2),")"),docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class O extends T{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class R extends T{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:['"'.concat(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 z extends T{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:['Modifier "'.concat(r,'" not allowed').concat(t?' in "'.concat(t,'" type'):"",".")]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class M extends T{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:['Modifier "'.concat(r,'" not allowed').concat(t?' in "'.concat(t,'" type'):"","."),'Data location can only be specified for array, struct, or mapping types, but "'.concat(r,'" was given.')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class F extends T{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
3d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class N extends T{constructor({signature:e,type:t}){super("Invalid ".concat(t," signature."),{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class j extends T{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class U extends T{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 H extends T{constructor({type:e}){super("Circular reference detected.",{metaMessages:['Struct "'.concat(e,'" is a circular reference.')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}e.s(["isSolidityType",()=>Z,"parseAbiParameter",()=>$,"parseSignature",()=>L,"splitParameters",()=>q],88776);class D extends T{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:['"'.concat(e.trim(),'" has too many ').concat(t>0?"opening":"closing"," parentheses.")],details:'Depth "'.concat(t,'"')}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let k=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}]]);function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(e))return function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=u(e);if(!n)throw new N({signature:e,type:"function"});let a=q(n.parameters),i=[],o=a.length;for(let e=0;e<o;e++)i.push($(a[e],{modifiers:P,structs:r,type:"function"}));let s=[];if(n.returns){let e=q(n.returns),t=e.length;for(let n=0;n<t;n++)s.push($(e[n],{modifiers:P,structs:r,type:"function"}))}return{name:n.name,type:"function",stateMutability:null!=(t=n.stateMutability)?t:"nonpayable",inputs:i,outputs:s}}(e,t);if(o(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=s(e);if(!r)throw new N({signature:e,type:"event"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push($(n[e],{modifiers:A,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}(e,t);if(n(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(e);if(!r)throw new N({signature:e,type:"error"});let n=q(r.parameters),i=[],o=n.length;for(let e=0;e<o;e++)i.push($(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}(e,t);if(y(e))return function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(e);if(!n)throw new N({signature:e,type:"constructor"});let a=q(n.parameters),i=[],o=a.length;for(let e=0;e<o;e++)i.push($(a[e],{structs:r,type:"constructor"}));return{type:"constructor",stateMutability:null!=(t=n.stateMutability)?t:"nonpayable",inputs:i}}(e,t);if(g(e)){var r,i=e;let t=v(i);if(!t)throw new N({signature:i,type:"fallback"});return{type:"fallback",stateMutability:null!=(r=t.stateMutability)?r:"nonpayable"}}if(E(e))return{type:"receive",stateMutability:"payable"};throw new j({signature:e})}
3let G=RegExp("^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$"),_=RegExp("^\\((?<type>.+?)\\)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$"),V=/^u?int$/;function $(e,r){var n,a,i,o,s,c;let f,u=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+="[".concat(r.type).concat(r.name?":".concat(r.name):"","]");n+="(".concat(e[0],"{").concat(t,"})")}return t?"".concat(t,":").concat(e).concat(n):"".concat(e).concat(n)}(e,null==r?void 0:r.type,null==r?void 0:r.structs);if(k.has(u))return k.get(u);let l=t.isTupleRegex.test(e),d=(0,t.execTyped)(l?_:G,e);if(!d)throw new O({param:e});if(d.name&&("address"===(s=d.name)||"bool"===s||"function"===s||"string"===s||"tuple"===s||t.bytesRegex.test(s)||t.integerRegex.test(s)||W.test(s)))throw new R({param:e,name:d.name});let b=d.name?{name:d.name}:{},p="indexed"===d.modifier?{indexed:!0}:{},y=null!=(n=null==r?void 0:r.structs)?n:{},m={};if(l){f="tuple";let e=q(d.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push($(e[n],{structs:y}));m={components:t}}else if(d.type in y)f="tuple",m={components:y[d.type]};else if(V.test(d.type))f="".concat(d.type,"256");else if("address payable"===d.type)f="address";else if(f=d.type,(null==r?void 0:r.type)!=="struct"&&!Z(f))throw new I({type:f});if(d.modifier){if(!(null==r||null==(i=r.modifiers)||null==(a=i.has)?void 0:a.call(i,d.modifier)))throw new z({param:e,type:null==r?void 0:r.type,modifier:d.modifier});if(P.has(d.modifier)&&(c=f,!d.array&&"bytes"!==c&&"string"!==c&&"tuple"!==c))throw new M({param:e,type:null==r?void 0:r.type,modifier:d.modifier})}let h={type:"".concat(f).concat(null!=(o=d.array)?o:""),...b,...p,...m};return k.set(u,h),h}function q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=e.trim().length;for(let i=0;i<a;i++){let a=e[i],o=e.slice(i+1);switch(a){case",":return 0===n?q(o,[...t,r.trim()]):q(o,t,"".concat(r).concat(a),n);case"(":return q(o,t,"".concat(r).concat(a),n+1);case")":return q(o,t,"".concat(r).concat(a),n-1);default:return q(o,t,"".concat(r).concat(a),n)}}if(""===r)return t;if(0!==n)throw new D({current:r,depth:n});return t.push(r.trim()),t}function Z(e){return"address"===e||"bool"===e||"function"===e||"string"===e||t.bytesRegex.test(e)||t.integerRegex.test(e)}let W=/^(?: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)$/;function K(e){let r={},n=e.length;for(let t=0;t<n;t++){let n=e[t];if(!d(n))continue;let a=b(n);if(!a)throw new N({signature:n,type:"struct"});let i=a.properties.split(";"),o=[],s=i.length;for(let e=0;e<s;e++){let t=i[e].trim();if(!t)continue;let r=$(t,{type:"struct"});o.push(r)}if(!o.length)throw new U({signature:n});r[a.name]=o}let a={},i=Object.entries(r),o=i.length;for(let e=0;e<o;e++){let[n,o]=i[e];a[n]=function e(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=[],o=r.length;for(let s=0;s<o;s++){let o=r[s];if(t.isTupleRegex.test(o.type))i.push(o);else{let r=(0,t.execTyped)(J,o.type);if(!(null==r?void 0:r.type))throw new F({abiParameter:o});let{array:s,type:c}=r;if(c in n){if(a.has(c))throw new H({type:c});i.push({...o,type:"tuple".concat(null!=s?s:""),components:e(n[c],n,new Set([...a,c]))})}else if(Z(c))i.push(o);else throw new S({type:c})}}return i}(o,r)}return a}let J=RegExp("^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?$");function Y(e){let t=K(e),r=[],n=e.length;for(let a=0;a<n;a++){let n=e[a];d(n)||r.push(L(n,t))}return r}e.s(["toRpc",()=>tz],944318),e.s(["IntegerOutOfRangeError",()=>tP,"InvalidLengthError",()=>
3tS,"SizeExceedsPaddingSizeError",()=>tO,"SizeOverflowError",()=>tI,"SliceOffsetOutOfBoundsError",()=>tC,"assert",()=>to,"concat",()=>ts,"from",()=>tc,"fromBoolean",()=>tf,"fromBytes",()=>tu,"fromNumber",()=>tl,"fromString",()=>td,"padLeft",()=>tb,"padRight",()=>tp,"random",()=>ty,"size",()=>th,"slice",()=>tm,"toBigInt",()=>tv,"toBytes",()=>tw,"toNumber",()=>tE,"toString",()=>tx,"trimLeft",()=>tg,"validate",()=>tA],284251),e.s(["aInRange",()=>eE,"abool",()=>er,"abytes",()=>et,"bitLen",()=>ex,"bitMask",()=>eA,"bytesToHex",()=>es,"bytesToNumberBE",()=>el,"bytesToNumberLE",()=>ed,"concatBytes",()=>em,"createHmacDrbg",()=>eB,"ensureBytes",()=>ey,"equalBytes",()=>eh,"hexToBytes",()=>eu,"inRange",()=>ew,"isBytes",()=>ee,"memoized",()=>eC,"numberToBytesBE",()=>eb,"numberToBytesLE",()=>ep,"numberToHexUnpadded",()=>en,"utf8ToBytes",()=>eg,"validateObject",()=>eI],698996);let X=BigInt(0),Q=BigInt(1);function ee(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function et(e){if(!ee(e))throw Error("Uint8Array expected")}function er(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function en(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function ea(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?X:BigInt("0x"+e)}let ei="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,eo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function es(e){if(et(e),ei)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=eo[e[r]];return t}let ec={_0:48,_9:57,A:65,F:70,a:97,f:102};function ef(e){return e>=ec._0&&e<=ec._9?e-ec._0:e>=ec.A&&e<=ec.F?e-(ec.A-10):e>=ec.a&&e<=ec.f?e-(ec.a-10):void 0}function eu(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(ei)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t<r;t++,a+=2){let r=ef(e.charCodeAt(a)),i=ef(e.charCodeAt(a+1));if(void 0===r||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[a]+e[a+1])+'" at index '+a);n[t]=16*r+i}return n}function el(e){return ea(es(e))}function ed(e){return et(e),ea(es(Uint8Array.from(e).reverse()))}function eb(e,t){return eu(e.toString(16).padStart(2*t,"0"))}function ep(e,t){return eb(e,t).reverse()}function ey(e,t,r){let n;if("string"==typeof t)try{n=eu(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(ee(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let a=n.length;if("number"==typeof r&&a!==r)throw Error(e+" of length "+r+" expected, got "+a);return n}function em(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=0;for(let e=0;e<t.length;e++){let r=t[e];et(r),n+=r.length}let a=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){let n=t[e];a.set(n,r),r+=n.length}return a}function eh(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}function eg(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}let ev=e=>"bigint"==typeof e&&X<=e;function ew(e,t,r){return ev(e)&&ev(t)&&ev(r)&&t<=e&&e<r}function eE(e,t,r,n){if(!ew(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function ex(e){let t;for(t=0;e>X;e>>=Q,t+=1);return t}let eA=e=>(Q<<BigInt(e))-Q,eP=e=>new Uint8Array(e),eT=e=>Uint8Array.from(e);function eB(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=eP(e),a=eP(e),i=0,o=()=>{n.fill(1),a.fill(0),i=0},s=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return r(a,n,...t)},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eP(0);a=s(eT([0]),e),n=s(),0!==e.length&&(a=s(eT([1]),e),n=s())},f=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return em(...r)};return(e,t)=>{let r;for(o(),c(e);!(r=t(f()));)c();return o(),r}}let eS={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||ee(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function eI(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(t,r,n)=>{let a=eS[r];if("function"!=typeof a)throw Error("invalid validator function");let i=e[t];if((!n||void 0!==i)&&!a(i,e))throw Error("param "+String(t)+" is invali
3d. Expected "+r+", got "+i)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}function eC(e){let t=new WeakMap;return function(r){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];let o=t.get(r);if(void 0!==o)return o;let s=e(r,...a);return t.set(r,s),s}}e.s(["InvalidBytesBooleanError",()=>e7,"InvalidBytesTypeError",()=>te,"SizeExceedsPaddingSizeError",()=>tn,"SizeOverflowError",()=>tt,"SliceOffsetOutOfBoundsError",()=>tr,"assert",()=>eL,"concat",()=>eG,"from",()=>e_,"fromArray",()=>eV,"fromBoolean",()=>e$,"fromHex",()=>eq,"fromNumber",()=>eZ,"fromString",()=>eW,"isEqual",()=>eK,"padLeft",()=>eJ,"padRight",()=>eY,"random",()=>eX,"size",()=>eQ,"slice",()=>e0,"toBigInt",()=>e1,"toBoolean",()=>e6,"toHex",()=>e5,"toNumber",()=>e8,"toString",()=>e2,"trimLeft",()=>e9,"trimRight",()=>e3,"validate",()=>e4],759384),e.s(["BaseError",()=>eO],602376);class eO extends Error{static setStaticOptions(e){eO.prototype.docsOrigin=e.docsOrigin,eO.prototype.showVersion=e.showVersion,eO.prototype.version=e.version}walk(e){return function e(t,r){return(null==r?void 0:r(t))?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}constructor(e,t={}){var r,n,a;let i=(()=>{var e;if(t.cause instanceof eO){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:(null==(e=t.cause)?void 0:e.message)?t.cause.message:t.details})(),o=t.cause instanceof eO&&t.cause.docsPath||t.docsPath,s=null!=(r=t.docsOrigin)?r:eO.prototype.docsOrigin,c="".concat(s).concat(null!=o?o:""),f=!!(null!=(n=t.version)?n:eO.prototype.showVersion),u=null!=(a=t.version)?a:eO.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...i||o||f?["",i?"Details: ".concat(i):void 0,o?"See: ".concat(c):void 0,f?"Version: ".concat(u):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,"docsOrigin",{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,"showVersion",{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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=i,this.docs=c,this.docsOrigin=s,this.docsPath=o,this.shortMessage=e,this.showVersion=f,this.version=u}}function eR(e,t){if(eQ(e)>t)throw new tt({givenSize:eQ(e),maxSize:t})}Object.defineProperty(eO,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"ox@".concat("0.1.1")}}),eO.setStaticOptions(eO.defaultStaticOptions);let ez={zero:48,nine:57,A:65,F:70,a:97,f:102};function eM(e){return e>=ez.zero&&e<=ez.nine?e-ez.zero:e>=ez.A&&e<=ez.F?e-(ez.A-10):e>=ez.a&&e<=ez.f?e-(ez.a-10):void 0}function eF(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dir:r,size:n=32}=t;if(0===n)return e;if(e.length>n)throw new tn({size:e.length,targetSize:n,type:"Bytes"});let a=new Uint8Array(n);for(let t=0;t<n;t++){let i="right"===r;a[i?t:n-t-1]=e[i?t:e.length-t-1]}return a}function eN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dir:r="left"}=t,n=e,a=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())a++;else break;return"left"===r?n.slice(a):n.slice(0,n.length-a)}function ej(e,t){if(th(e)>t)throw new tI({givenSize:th(e),maxSize:t})}function eU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dir:r,size:n=32}=t;if(0===n)return e;let a=e.replace("0x","");if(a.length>2*n)throw new tO({size:Math.ceil(a.length/2),targetSize:n,type:"Hex"});return"0x".concat(a["right"===r?"padEnd":"padStart"](2*n,"0"))}function eH(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}e.s(["stringify",()=>eH],382721);let eD=new TextDecoder,ek=new TextEncoder;function eL(e){if(!(e instanceof Uint8Array)&&(!e||"object"!=typeof e||!("BYTES_PER_ELEMENT"in e)||1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name))throw new te(e)}function eG(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=0;for(let e of t)n+=e.length;let a=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){let n=t[e];a.set(n,r),r+=n.length}return a}function e_(e){return e instanceof Uint8Array?e:"string"==typeof e?eq(e):eV(e)}function eV(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function e$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t,n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof r)?(eR(n,r),eJ(n,r)):n}function eq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t,n=e;r&&(ej(e,r),n=tp(e,r));let a=n.slice(2);a.length%2&&(a="0".concat(a));let i=a.length/2,o=new Uint8Array(i);for(let e=0,t=0;e<i;
3e++){let r=eM(a.charCodeAt(t++)),n=eM(a.charCodeAt(t++));if(void 0===r||void 0===n)throw new eO('Invalid byte sequence ("'.concat(a[t-2]).concat(a[t-1],'" in "').concat(a,'").'));o[e]=r<<4|n}return o}function eZ(e,t){return eq(tl(e,t))}function eW(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t,n=ek.encode(e);return"number"==typeof r?(eR(n,r),eY(n,r)):n}function eK(e,t){return eh(e,t)}function eJ(e,t){return eF(e,{dir:"left",size:t})}function eY(e,t){return eF(e,{dir:"right",size:t})}function eX(e){return crypto.getRandomValues(new Uint8Array(e))}function eQ(e){return e.length}function e0(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{strict:a}=n;if("number"==typeof t&&t>0&&t>eQ(e)-1)throw new tr({offset:t,position:"start",size:eQ(e)});let i=e.slice(t,r);return a&&function(e,t,r){if("number"==typeof t&&"number"==typeof r&&eQ(e)!==r-t)throw new tr({offset:r,position:"end",size:eQ(e)})}(i,t,r),i}function e1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t;return void 0!==r&&eR(e,r),tv(tu(e,t),t)}function e6(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t,n=e;if(void 0!==r&&(eR(n,r),n=e9(n)),n.length>1||n[0]>1)throw new e7(n);return!!n[0]}function e5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tu(e,t)}function e8(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t;return void 0!==r&&eR(e,r),tE(tu(e,t),t)}function e2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t,n=e;return void 0!==r&&(eR(n,r),n=e3(n)),eD.decode(n)}function e9(e){return eN(e,{dir:"left"})}function e3(e){return eN(e,{dir:"right"})}function e4(e){try{return eL(e),!0}catch(e){return!1}}class e7 extends eO{constructor(e){super("Bytes value `".concat(e,"` is not a valid boolean."),{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class te extends eO{constructor(e){super("Value `".concat("object"==typeof e?eH(e):e,"` of type `").concat(typeof e,"` is an invalid Bytes value."),{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class tt extends eO{constructor({givenSize:e,maxSize:t}){super("Size cannot exceed `".concat(t,"` bytes. Given size: `").concat(e,"` bytes.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class tr extends eO{constructor({offset:e,position:t,size:r}){super("Slice ".concat("start"===t?"starting":"ending"," at offset `").concat(e,"` is out-of-bounds (size: `").concat(r,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}class tn extends eO{constructor({size:e,targetSize:t,type:r}){super("".concat(r.charAt(0).toUpperCase()).concat(r.slice(1).toLowerCase()," size (`").concat(e,"`) exceeds padding size (`").concat(t,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}let ta=new TextEncoder,ti=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function to(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new tT(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new tB(e)}function ts(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"0x".concat(t.reduce((e,t)=>e+t.replace("0x",""),""))}function tc(e){return e instanceof Uint8Array?tu(e):Array.isArray(e)?tu(new Uint8Array(e)):e}function tf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="0x".concat(Number(e));return"number"==typeof t.size?(ej(r,t.size),tb(r,t.size)):r}function tu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="";for(let t=0;t<e.length;t++)r+=ti[e[t]];let n="0x".concat(r);return"number"==typeof t.size?(ej(n,t.size),tp(n,t.size)):n}function tl(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{signed:n,size:a}=r,i=BigInt(e);
3a?t=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(t=BigInt(Number.MAX_SAFE_INTEGER));let o="bigint"==typeof t&&n?-t-1n:0;if(t&&i>t||i<o){let r="bigint"==typeof e?"n":"";throw new tP({max:t?"".concat(t).concat(r):void 0,min:"".concat(o).concat(r),signed:n,size:a,value:"".concat(e).concat(r)})}let s=(n&&i<0?BigInt.asUintN(8*a,BigInt(i)):i).toString(16),c="0x".concat(s);return a?tb(c,a):c}function td(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tu(ta.encode(e),t)}function tb(e,t){return eU(e,{dir:"left",size:t})}function tp(e,t){return eU(e,{dir:"right",size:t})}function ty(e){return tu(eX(e))}function tm(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{strict:a}=n;if("number"==typeof t&&t>0&&t>th(e)-1)throw new tC({offset:t,position:"start",size:th(e)});let i="0x".concat(e.replace("0x","").slice((null!=t?t:0)*2,(null!=r?r:e.length)*2));return a&&function(e,t,r){if("number"==typeof t&&"number"==typeof r&&th(e)!==r-t)throw new tC({offset:r,position:"end",size:th(e)})}(i,t,r),i}function th(e){return Math.ceil((e.length-2)/2)}function tg(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dir:r="left"}=t,n=e.replace("0x",""),a=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())a++;else break;return"0"===(n="left"===r?n.slice(a):n.slice(0,n.length-a))?"0x":"right"===r&&n.length%2==1?"0x".concat(n,"0"):"0x".concat(n)}(e,{dir:"left"})}function tv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{signed:r}=t;t.size&&ej(e,t.size);let n=BigInt(e);if(!r)return n;let a=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=a>>1n?n:n-a-1n}function tw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return eq(e,t)}function tE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{signed:r,size:n}=t;return r||n?Number(tv(e,t)):Number(e)}function tx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:r}=t,n=eq(e);return r&&(eR(n,r),n=e3(n)),new TextDecoder().decode(n)}function tA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{strict:r=!1}=t;try{return to(e,{strict:r}),!0}catch(e){return!1}}class tP extends eO{constructor({max:e,min:t,signed:r,size:n,value:a}){super("Number `".concat(a,"` is not in safe").concat(n?" ".concat(8*n,"-bit"):"").concat(r?" signed":" unsigned"," integer range ").concat(e?"(`".concat(t,"` to `").concat(e,"`)"):"(above `".concat(t,"`)"))),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class tT extends eO{constructor(e){super("Value `".concat("object"==typeof e?eH(e):e,"` of type `").concat(typeof e,"` is an invalid hex type."),{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class tB extends eO{constructor(e){super("Value `".concat(e,"` is an invalid hex value."),{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class tS extends eO{constructor(e){super('Hex value `"'.concat(e,'"` is an odd length (').concat(e.length-2," nibbles)."),{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class tI extends eO{constructor({givenSize:e,maxSize:t}){super("Size cannot exceed `".concat(t,"` bytes. Given size: `").concat(e,"` bytes.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class tC extends eO{constructor({offset:e,position:t,size:r}){super("Slice ".concat("start"===t?"starting":"ending"," at offset `").concat(e,"` is out-of-bounds (size: `").concat(r,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class tO extends eO{constructor({size:e,targetSize:t,type:r}){super("".concat(r.charAt(0).toUpperCase()).concat(r.slice(1).toLowerCase()," size (`").concat(e,"`) exceeds padding size (`").concat(t,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function tR(e){return{address:e.address,amount:tl(e.amount),index:tl(e.index),validatorIndex:tl(e.validatorIndex)}}function tz(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:tl(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:tl(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient}
3,..."bigint"==typeof e.gasLimit&&{gasLimit:tl(e.gasLimit)},..."bigint"==typeof e.number&&{number:tl(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:tl(e.prevRandao)},..."bigint"==typeof e.time&&{time:tl(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(tR)}}}},904119,472503,e=>{"use strict";e.s(["aggregate3Signature",()=>t],904119);let t="0x82ad56cb";e.s(["deploylessCallViaBytecodeBytecode",()=>r,"deploylessCallViaFactoryBytecode",()=>n,"erc6492SignatureValidatorByteCode",()=>a,"multicall3Bytecode",()=>i],472503);let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",n="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",a="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b8152
360206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848
3603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",i="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
3150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},779690,e=>{"use strict";e.s(["getCallError",()=>a]);var t=e.i(878023),r=e.i(853532),n=e.i(467078);function a(e,a){let{docsPath:i,...o}=a,s=(()=>{let t=(0,n.getNodeError)(e,o);return t instanceof r.UnknownNodeError?e:t})();return new t.CallExecutionError(s,{docsPath:i,...o})}},989509,e=>{"use strict";e.s(["call",()=>E]);var t=e.i(137195),r=e.i(944318),n=e.i(189991),a=e.i(752012),i=e.i(904119),o=e.i(472503),s=e.i(569934),c=e.i(505880),f=e.i(878023),u=e.i(600547),l=e.i(289169),d=e.i(656679),b=e.i(404195),p=e.i(675107),y=e.i(779690),m=e.i(264404),h=e.i(190521),g=e.i(871706),v=e.i(826051),w=e.i(353464);async function E(a,u){var d,b,g,E,P;
vendor: 3,592 bytes, line 3
3let{account:T=a.account,authorizationList:B,batch:S=!!(null==(d=a.batch)?void 0:d.multicall),blockNumber:I,blockTag:C=null!=(b=a.experimental_blockTag)?b:"latest",accessList:O,blobs:R,blockOverrides:z,code:M,data:F,factory:N,factoryData:j,gas:U,gasPrice:H,maxFeePerBlobGas:D,maxFeePerGas:k,maxPriorityFeePerGas:L,nonce:G,to:_,value:V,stateOverride:$,...q}=u,Z=T?(0,n.parseAccount)(T):void 0;if(M&&(N||j))throw new s.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(M&&_)throw new s.BaseError("Cannot provide both `code` & `to` as parameters.");let W=M&&F,K=N&&j&&_&&F,J=W||K,Y=W?A({code:M,data:F}):K?function(e){let{data:r,factory:n,factoryData:a,to:i}=e;return(0,l.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:o.deploylessCallViaFactoryBytecode,args:[i,r,n,a]})}({data:F,factory:N,factoryData:j,to:_}):F;try{(0,w.assertRequest)(u);let e=("bigint"==typeof I?(0,p.numberToHex)(I):void 0)||C,t=z?r.toRpc(z):void 0,n=(0,v.serializeStateOverride)($),o=null==(P=a.chain)||null==(E=P.formatters)||null==(g=E.transactionRequest)?void 0:g.format,s=(o||h.formatTransactionRequest)({...(0,m.extract)(q,{format:o}),accessList:O,account:Z,authorizationList:B,blobs:R,data:Y,gas:U,gasPrice:H,maxFeePerBlobGas:D,maxFeePerGas:k,maxPriorityFeePerGas:L,nonce:G,to:J?void 0:_,value:V},"call");if(S&&function(e){let{request:t}=e,{data:r,to:n,...a}=t;return!(!r||r.startsWith(i.aggregate3Signature))&&!!n&&!(Object.values(a).filter(e=>void 0!==e).length>0)}({request:s})&&!n&&!t)try{return await x(a,{...s,blockNumber:I,blockTag:C})}catch(e){if(!(e instanceof c.ClientChainNotConfiguredError)&&!(e instanceof c.ChainDoesNotSupportContract))throw e}let f=(()=>{let r=[s,e];return n&&t?[...r,n,t]:n?[...r,n]:t?[...r,{},t]:r})(),l=await a.request({method:"eth_call",params:f});if("0x"===l)return{data:void 0};return{data:l}}catch(i){let t=function(e){var t;if(!(e instanceof s.BaseError))return;let r=e.walk();return"object"==typeof(null==r?void 0:r.data)?null==(t=r.data)?void 0:t.data:r.data}(i),{offchainLookup:r,offchainLookupSignature:n}=await e.A(101139);if(!1!==a.ccipRead&&(null==t?void 0:t.slice(0,10))===n&&_)return{data:await r(a,{data:t,to:_})};if(J&&(null==t?void 0:t.slice(0,10))==="0x101bb98d")throw new f.CounterfactualDeploymentFailedError({factory:N});throw(0,y.getCallError)(i,{...u,account:Z,chain:a.chain})}}async function x(e,t){var r,n;let{batchSize:i=1024,deployless:s=!1,wait:l=0}="object"==typeof(null==(r=e.batch)?void 0:r.multicall)?e.batch.multicall:{},{blockNumber:y,blockTag:m=null!=(n=e.experimental_blockTag)?n:"latest",data:h,to:v}=t,w=(()=>{if(s)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,b.getChainContractAddress)({blockNumber:y,chain:e.chain,contract:"multicall3"});throw new c.ClientChainNotConfiguredError})(),E=("bigint"==typeof y?(0,p.numberToHex)(y):void 0)||m,{schedule:x}=(0,g.createBatchScheduler)({id:"".concat(e.uid,".").concat(E),wait:l,shouldSplitBatch:e=>e.reduce((e,t)=>{let{data:r}=t;return e+(r.length-2)},0)>2*i,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,d.encodeFunctionData)({abi:a.multicall3Abi,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===w?{data:A({code:o.multicall3Bytecode,data:n})}:{to:w,data:n}},E]});return(0,u.decodeFunctionResult)({abi:a.multicall3Abi,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:P,success:T}]=await x({data:h,to:v});if(!T)throw new f.RawContractError({data:P});return"0x"===P?{data:void 0}:{data:P}}
3function A(e){let{code:r,data:n}=e;return(0,l.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(bytes, bytes)"]),bytecode:o.deploylessCallViaBytecodeBytecode,args:[r,n]})}}]); 4 5//# sourceMappingURL=40f6e8254144a1d9.js.map 6//# debugId=395c369d-e274-52f6-ab65-eeb0dd104f80
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.