1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1603],{4174:(e,t,n)=>{n.d(t,{A7:()=>s,BG:()=>o,Fo:()=>p,K0:()=>c,Oh:()=>u,RM:()=>g,jj:()=>a,k5:()=>d,lN:()=>m,lY:()=>h,uC:()=>f,vW:()=>l});var r=n(22160),i=n(66568);class s extends i.C{constructor({cause:e,message:t}={}){const n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class o extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 2Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class h extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class f extends i.C{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.Q)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},4879:(e,t,n)=>{n.d(t,{EH:()=>s,YE:()=>a,jF:()=>o,qD:()=>c,rj:()=>i});var r=n(66568);class i extends r.C{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class s extends r.C{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} â ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} â ${e.name}`],name:"ChainMismatchError"})}}class o extends r.C{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 a extends r.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class c extends r.C{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
2" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},8685:(e,t,n)=>{n.d(t,{h:()=>r});let r=n(27475).k},12515:(e,t,n)=>{n.d(t,{Hi:()=>i,ft:()=>s,uj:()=>a});var r=n(66568);class i extends r.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class s extends r.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n} 3`,"")}function a(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}: 4`;return n.nonce&&(r+=` nonce: ${n.nonce} 5`),n.balance&&(r+=` balance: ${n.balance} 6`),n.code&&(r+=` code: ${n.code} 7`),n.state&&(r+=" state:\n",r+=o(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=o(n.stateDiff)),r}," State Override:\n").slice(0,-1)}},12581:(e,t,n)=>{n.d(t,{B:()=>r});function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===t?e:n.length-e-1].toString())i++;else break;return(n="left"===t?n.slice(i):n.slice(0,n.length-i),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}},14870:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(41568);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 r.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.B4({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.B4({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},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 s(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},18267:(e,t,n)=>{n.d(t,{I:()=>i,R:()=>r});let r=e=>e,i=e=>e},18860:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(95042),i=n(89762),s=n(22106),o=n(84428);function a(e,t){let n=(0,r.lY)((0,i.q)(e,{strict:!1})?(0,s.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,o.nj)(n)}},22106:(e,t,n)=>{n.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>d});var r=n(66568),i=n(89762),s=n(89950),o=n(94747),a=n(84428);let c=new TextEncoder;function u(e,t={}){var n,r;return"number"==typeof e||"bigint"==typeof e?(n=e,r=t,d((0,a.cK)(n,r))):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,o.Sl)(n,{size:t.size}),(0,s.eV)(n,{size:t.size})):n}(e,t):(0,i.q)(e)?d(e,t):h(e,t)}function l(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function d(e,t={}){let n=e;t.size&&((0,o.Sl)(n,{size:t.size}),n=(0,s.eV)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,c=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let n=l(i.charCodeAt(t++)),s=l(i.charCodeAt(t++));if(void 0===n||void 0===s)throw new r.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);c[e]=16*n+s}return c}function h(e,t={}){let n=c.encode(e);return"number"==typeof t.size?((0,o.Sl)(n,{size:t.size}),(0,s.eV)(n,{dir:"right",size:t.size})):n}},22160:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(70378),i=n(49235);function s(e,t="wei"){return(0,i.J)(e,r.sz[t])}}
7,24029:(e,t,n)=>{n.d(t,{A:()=>s,B:()=>i});var r=n(80044);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.d_(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},27475:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(22106),i=n(18860),s=n(72422),o=n(66568);function a(e){var t;return t=function(e){let t=!0,n="",r=0,i="",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t){if(0===r){if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){s=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=a,n+=a}}if(!s)throw new o.C("Unable to normalize signature.");return i}("string"==typeof e?e:(0,s.B)(e)),(0,i.S)((0,r.ZJ)(t))}},28285:(e,t,n)=>{n.d(t,{Ao:()=>i,Au:()=>r});let r=2n**16n-1n,i=2n**256n-1n},29183:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(85124);let i=/^tuple(?<array>(\[(\d*)\])*)$/;function s(e){let t="",n=e.length;for(let s=0;s<n;s++)t+=function e(t){let n=t.type;if(i.test(t.type)&&"components"in t){n="(";let s=t.components.length;for(let r=0;r<s;r++)n+=e(t.components[r]),r<s-1&&(n+=", ");let o=(0,r.Yv)(i,t.type);return n+=`)${o?.array||""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
7 indexed`),t.name)?`${n} ${t.name}`:n}(e[s]),s!==n-1&&(t+=", ");return t}},31750:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(66568),i=n(4174);function s(e,t){let n=(e.details||"").toLowerCase(),s=e instanceof r.C?e.walk(e=>e?.code===i.A7.code):e;return s instanceof r.C?new i.A7({cause:e,message:s.details}):i.A7.nodeMessage.test(n)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(n)?new i.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.jj.nodeMessage.test(n)?new i.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.K0.nodeMessage.test(n)?new i.K0({cause:e,nonce:t?.nonce}):i.Oh.nodeMessage.test(n)?new i.Oh({cause:e,nonce:t?.nonce}):i.vW.nodeMessage.test(n)?new i.vW({cause:e,nonce:t?.nonce}):i.k5.nodeMessage.test(n)?new i.k5({cause:e}):i.lY.nodeMessage.test(n)?new i.lY({cause:e,gas:t?.gas}):i.Fo.nodeMessage.test(n)?new i.Fo({cause:e,gas:t?.gas}):i.uC.nodeMessage.test(n)?new i.uC({cause:e}):i.lN.nodeMessage.test(n)?new i.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.RM({cause:e})}},37826:(e,t,n)=>{n.d(t,{n:()=>m});var r=n(80044),i=n(96685),s=n(14870),o=n(45696),a=n(81693),c=n(12581),u=n(66347),l=n(94747),d=n(84428);function h(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,l.ME)(n,t)}var p=n(22106),f=n(44497);function m(e,t){let n="string"==typeof t?(0,p.aT)(t):t,m=(0,s.l)(n);if(0===(0,o.E)(n)&&e.length>0)throw new r.O;if((0,o.E)(t)&&32>(0,o.E)(t))throw new r.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,o.E)(t)});let b=0,y=[];for(let t=0;t<e.length;++t){let n=e[t];m.setPosition(b);let[s,o]=function e(t,n,{staticPosition:s}){let o=(0,f.k)(n.type);if(o){let[r,i]=o;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+h(t.readBytes(32)),s=r+32;t.setPosition(r);let o=h(t.readBytes(32)),a=g(n),c=0,u=[];for(let r=0;r<o;++r){t.setPosition(s+(a?32*r:c));let[i,o]=e(t,n,{staticPosition:s});c+=o,u.push(i)}return t.setPosition(i+32),[u,32]}if(g(n)){let s=i+h(t.readBytes(32)),o=[];for(let i=0;i<r;++i){t.setPosition(s+32*i);let[r]=e(t,n,{staticPosition:s});o.push(r)}return t.setPosition(i+32),[o,32]}let s=0,o=[];for(let a=0;a<r;++a){let[r,a]=e(t,n,{staticPosition:i+s});s+=a,o.push(r)}return[o,s]}(t,{...n,type:i},{length:r,staticPosition:s})}if("tuple"===n.type)return function(t,n,{staticPosition:r}){let i=0===n.components.length||n.components.some(({name:e})=>!e),s=i?[]:{},o=0;if(g(n)){let a=r+h(t.readBytes(32));for(let r=0;r<n.components.length;++r){let c=n.components[r];t.setPosition(a+o);let[u,l]=e(t,c,{staticPosition:a});o+=l,s[i?r:c?.name]=u}return t.setPosition(r+32),[s,32]}for(let a=0;a<n.components.length;++a){let c=n.components[a],[u,l]=e(t,c,{staticPosition:r});s[i?a:c?.name]=u,o+=l}return[s,o]}(t,n,{staticPosition:s});if("address"===n.type){let e;return e=t.readBytes(32),[(0,i.o)((0,d.My)((0,a.A1)(e,-20))),32]}if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Sl)(n,{size:t.size}),n=(0,c.B)(n)),n.length>1||n[0]>1)throw new u.xO(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=h(e.readBytes(32));e.setPosition(n+t);let r=h(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[(0,d.My)(i),32]}return[(0,d.My)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:s});if(n.type.startsWith("uint")||n.type.startsWith("int")){var p,m;let e,r,i;return p=t,e=(m=n).type.startsWith("int"),r=Number.parseInt(m.type.split("int")[1]||"256",10),i=p.readBytes(32),[r>48?function(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,l.uU)(n,t)}(i,{signed:e}):h(i,{signed:e}),32]}if("string"===n.type)return function(e,{staticPosition:t}){let n=h(e.readBytes(32));e.setPosition(t+n);let r=h(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),s=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Sl)(n,{size:t.size}),n=(0,c.B)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,c.B)(i));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new r.j(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,n,{staticPosition:0});b+=o,y.push(s)}return y}function g(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
vendor: 1,432 bytes, line 7
7if("tuple"===t)return e.components?.some(g);let n=(0,f.k)(e.type);return!!(n&&g({...e,type:n[1]}))}},41568:(e,t,n)=>{n.d(t,{B4:()=>i,SK:()=>s,hX:()=>o});var r=n(66568);class i extends r.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class s extends r.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},42330:(e,t,n)=>{n.d(t,{iY:()=>c});var r=n(80044),i=n(89762),s=n(80339),o=n(8685),a=n(56213);function c(e){let t,{abi:n,args:c=[],name:u}=e,l=(0,i.q)(u,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,a.V)(e)===u:"event"===e.type&&(0,o.h)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d){if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,s.P)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,i)=>
vendor: 5,560 bytes, line 7
7"object"===r&&e(Object.values(t)[i],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let i in t){let o=t[i],a=n[i];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,r[i]);let c=[o.type,a.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,s.P)(r[i],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(n)throw new r.nM({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}}return t||d[0]}}},44497:(e,t,n)=>{n.d(t,{h:()=>f,k:()=>g});var r=n(80044),i=n(71386),s=n(66568),o=n(66347),a=n(80339),c=n(76429),u=n(89950),l=n(45696),d=n(81693),h=n(84428),p=n(99015);function f(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});let n=m(function({params:e,values:t}){let n=[];for(let f=0;f<e.length;f++)n.push(function e({param:t,value:n}){let f=g(t.type);if(f){let[i,s]=f;return function(t,{length:n,param:i}){let s=null===n;if(!Array.isArray(t))throw new r.dm(t);if(!s&&t.length!==n)throw new r.Nc({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,a=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),a.push(r)}if(s||o){let e=m(a);if(s){let t=(0,h.cK)(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?(0,c.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.xW)(a.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let s=0;s<n.components.length;s++){let o=n.components[s],a=Array.isArray(t)?s:o.name,c=e({param:o,value:t[a]});i.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(i):(0,c.xW)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type){var b=n;if(!(0,a.P)(b))throw new i.M({address:b});return{dynamic:!1,encoded:(0,u.db)(b.toLowerCase())}}if("bool"===t.type){var y=n;if("boolean"!=typeof y)throw new s.C(`Invalid boolean value: "${y}" (type: ${typeof y}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.db)((0,h.$P)(y))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=p.Ge.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new o.Ty({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,h.cK)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,l.E)(e);if(!n){let t=e;return i%32!=0&&(t=(0,u.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.xW)([(0,u.db)((0,h.cK)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new r.gH({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,u.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type){var v=n;let e=(0,h.i3)(v),t=Math.ceil((0,l.E)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,u.db)((0,d.di)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,c.xW)([(0,u.db)((0,h.cK)((0,l.E)(e),{size:32})),...r])}}throw new r.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[f],value:t[f]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function m(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,l.E)(i)}let n=[],r=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(n.push((0,h.cK)(t+i,{size:32})),r.push(a),i+=(0,l.E)(a)):n.push(a)}return(0,c.xW)([...n,...r])}function g(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},44546:(e,t,n)=>{n.d(t,{Fl:()=>s,NV:()=>o,ii:()=>i});var r=n(66568);class i extends r.C{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class s extends r.C{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends r.C{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}},45696:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(89762);function i(e){return(0,r.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},49235:(e,t,n)=>{n.d(t,{J:()=>r});function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,s]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${s?`.${s}`:""}`}},51011:(e,t,n)=>{n.d(t,{J:()=>r});function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},52856:(e,t,n)=>{n.d(t,{W:()=>u});var r=n(95889),i=n(80044),s=n(81693),o=n(56213),a=n(37826),c=n(24029);function u(e){let{abi:t,data:n,cause:u}=e,l=(0,s.di)(n,0,4);if("0x"===l)throw new i.O({cause:u});let d=[...t||[],r.Mc,r.J9].find(e=>
7"error"===e.type&&l===(0,o.V)((0,c.B)(e)));if(!d)throw new i.Wq(l,{docsPath:"/docs/contract/decodeErrorResult",cause:u});return{abiItem:d,args:"inputs"in d&&d.inputs&&d.inputs.length>0?(0,a.n)(d.inputs,(0,s.di)(n,4)):void 0,errorName:d.name}}},56213:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(81693),i=n(27475);let s=e=>(0,r.di)((0,i.k)(e),0,4)},58637:(e,t,n)=>{n.d(t,{Bv:()=>o,bm:()=>a});var r=n(84428),i=n(70910);let s={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e,t){let n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.cK)(BigInt(e.r)):e.r,s:e.s?(0,r.cK)(BigInt(e.s)):e.s,chainId:(0,r.cK)(e.chainId),nonce:(0,r.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.cK)(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.My)(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.cK)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.cK)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=s[e.type]),void 0!==e.value&&(n.value=(0,r.cK)(e.value)),n}let a=(0,i.q)("transactionRequest",o)},66347:(e,t,n)=>{n.d(t,{G6:()=>a,H2:()=>o,Ty:()=>i,u:()=>c,xO:()=>s});var r=n(66568);class i extends r.C{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class s extends r.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends r.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends r.C{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}class c extends r.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},66568:(e,t,n)=>{n.d(t,{C:()=>s});let r="2.47.6",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};class s extends Error{constructor(e,t={}){const n=t.cause instanceof s?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof s&&t.cause.docsPath||t.docsPath,a=i.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...i.version?[`Version: ${i.version}`]:[]].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,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=r}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,n):n?null:t}(this,e)}}},70378:(e,t,n)=>{n.d(t,{eL:()=>r,pj:()=>s,sz:()=>i});let r={gwei:9,wei:18},i={ether:-9,wei:9},s={ether:-18,gwei:-9}},70536:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(70378),i=n(49235);function s(e,t="wei"){return(0,i.J)(e,r.eL[t])}},70910:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,i)=>{let s=t(e,i);if(n)for(let e of n)delete s[e];return{...s,...r(e,i)}},type:e})}},71386:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(66568);class i extends r.C{constructor({address:e}){super(`Address "${e}
7" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},72422:(e,t,n)=>{n.d(t,{B:()=>i});var r=n(29183);function i(e){return"function"===e.type?`function ${e.name}(${(0,r.Q)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,r.Q)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,r.Q)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,r.Q)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,r.Q)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},76429:(e,t,n)=>{function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{aP:()=>i,xW:()=>r})},78568:(e,t,n)=>{n.d(t,{zX:()=>b,bG:()=>y,M:()=>v,rR:()=>$,Po:()=>w,$S:()=>x});var r=n(51011),i=n(95889),s=n(52856),o=n(24029),a=n(91497);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,a.A)(t[n]):t[n]}`).join(", ")})`}var u=n(42330),l=n(70536),d=n(22160),h=n(80044),p=n(66568),f=n(12515),m=n(96002),g=n(18267);class b extends p.C{constructor(e,{account:t,docsPath:n,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:h,to:p,value:g,stateOverride:b}){const y=t?(0,r.J)(t):void 0;let v=(0,m.aO)({from:y?.address,to:p,value:void 0!==g&&`${(0,l.c)(g)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,d.Q)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.Q)(u)} gwei`,nonce:h});b&&(v+=` 8${(0,f.uj)(b)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
vendor: 11,125 bytes, lines 8-28
8Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class y extends p.C{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:s,sender:a}){const l=(0,u.iY)({abi:t,args:n,name:s}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=l?(0,o.B)(l,{includeName:!0}):void 0,p=(0,m.aO)({address:r&&(0,g.R)(r),function:h,args:d&&"()"!==d&&`${[...Array(s?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].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=n,this.cause=e,this.contractAddress=r,this.functionName=s,this.sender=a}}class v extends p.C{constructor({abi:e,data:t,functionName:n,message:r,cause:a}){let u,l,d,p,f;if(t&&"0x"!==t)try{const{abiItem:n,errorName:r,args:u}=l=(0,s.W)({abi:e,data:t,cause:a});if("Error"===r)p=u[0];else if("Panic"===r){const[e]=u;p=i.fD[e]}else{const e=n?(0,o.B)(n,{includeName:!0}):void 0,t=n&&u?c({abiItem:n,args:u,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else r&&(p=r);u instanceof h.Wq&&(f=u.signature,d=[`Unable to decode signature "${f}" 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=${f}.`]),super(p&&"execution reverted"!==p||f?[`The contract function "${n}" reverted with the following ${f?"signature":"reason"}:`,p||f].join("\n"):`The contract function "${n}" reverted.`,{cause:u??a,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=p,this.signature=f}}class $ extends p.C{constructor({functionName:e,cause:t}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}class w extends p.C{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class x extends p.C{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}}},80044:(e,t,n)=>{n.d(t,{BI:()=>P,EB:()=>w,Iy:()=>c,Iz:()=>v,MR:()=>$,M_:()=>y,Nc:()=>l,O:()=>u,Wl:()=>I,Wq:()=>m,YE:()=>h,YF:()=>a,YW:()=>o,ZP:()=>p,_z:()=>g,d_:()=>B,dm:()=>M,fo:()=>C,gH:()=>d,j:()=>z,kE:()=>b,l3:()=>E,nK:()=>A,nM:()=>x,yy:()=>f});var r=n(24029),i=n(45696),s=n(66568);class o extends s.C{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class a extends s.C{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}s.C;class c extends s.C{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.A)(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class u extends s.C{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class l extends s.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 9Expected length: ${e} 10Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends s.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends s.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 11Expected length (params): ${e} 12Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class p extends s.C{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 13Cannot encode error result without knowing what the parameter types are. 14Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class f extends s.C{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 15Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class m extends s.C{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI. 16Make sure you are using the correct ABI and that the error exists on it. 17You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:n}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class g extends s.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class b extends s.C{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 18Make sure you are using the correct ABI and that the event exists on it. 19You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class y extends s.C{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 20Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class v extends s.C{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 21Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class $ extends s.C{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 22Cannot decode function result without knowing what the parameter types are. 23Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class w extends s.C{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 24Make sure you are using the correct ABI and that the function exists on it. 25You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends s.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class P extends s.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class C extends s.C{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.A)(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=i}}class E extends s.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class A extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 26Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class z extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 27Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class M extends s.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class B extends s.C{constructor(e){super(`"${e}" is not a valid definition type. 28Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class I extends s.C{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}}
28,80339:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(86301),i=n(96685);let s=/^0x[a-fA-F0-9]{40}$/,o=new r.A(8192);function a(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(o.has(r))return o.get(r);let a=!!s.test(e)&&(e.toLowerCase()===e||!n||(0,i.o)(e)===e);return o.set(r,a),a}},81693:(e,t,n)=>{n.d(t,{A1:()=>u,di:()=>o,iN:()=>l});var r=n(44546),i=n(89762),s=n(45696);function o(e,t,n,{strict:r}={}){return(0,i.q)(e,{strict:!1})?l(e,t,n,{strict:r}):u(e,t,n,{strict:r})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,s.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,s.E)(e)})}function c(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,s.E)(e)})}function u(e,t,n,{strict:r}={}){a(e,t);let i=e.slice(t,n);return r&&c(i,t,n),i}function l(e,t,n,{strict:r}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&c(i,t,n),i}},84428:(e,t,n)=>{n.d(t,{$P:()=>c,My:()=>u,cK:()=>l,i3:()=>h,nj:()=>a});var r=n(66347),i=n(89950),s=n(94747);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?h(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,s.Sl)(n,{size:t.size}),(0,i.eV)(n,{size:t.size})):n}function u(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=o[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,s.Sl)(r,{size:t.size}),(0,i.eV)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n,{signed:s,size:o}=t,a=BigInt(e);o?n=s?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof n&&s?-n-1n:0;if(n&&a>n||a<c){let t="bigint"==typeof e?"n":"";throw new r.Ty({max:n?`${n}${t}`:void 0,min:`${c}${t}`,signed:s,size:o,value:`${e}${t}`})}let u=`0x${(s&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.eV)(u,{size:o}):u}let d=new TextEncoder;function h(e,t={}){return u(d.encode(e),t)}},85124:(e,t,n)=>{function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{BD:()=>i,Ge:()=>s,Yv:()=>r,wj:()=>o});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,o=/^\(.+?\).*?$/},86301:(e,t,n)=>{n.d(t,{A:()=>r});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}},89649:(e,t,n)=>{n.d(t,{o:()=>r});function r(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let i of Object.keys(r))i in e&&(n[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}},89762:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},89950:(e,t,n)=>{n.d(t,{db:()=>s,eV:()=>i});var r=n(44546);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?s(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.Fl({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let s="right"===t;i[s?r:n-r-1]=e[s?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function s(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.Fl({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},91497:(e,t,n)=>{n.d(t,{A:()=>r});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},94747:(e,t,n)=>{n.d(t,{IQ:()=>h,ME:()=>d,Nx:()=>l,Sl:()=>a,aD:()=>c,uU:()=>u});var r=n(66347),i=n(45696),s=n(12581),o=n(22106);function a(e,{size:t}){if((0,i.E)(e)>t)throw new r.u({givenSize:(0,i.E)(e),maxSize:t})}function c(e,t){let n="string"==typeof t?{to:t}:t,r=n.to;return"number"===r?d(e,n):"bigint"===r?u(e,n):"string"===r?h(e,n):"boolean"===r?l(e,n):(0,o.aT)(e,n)}function u(e,t={}){let{signed:n}=t;t.size&&a(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function l(e,t={}){let n=e;if(t.size&&(a(n,{size:t.size}),n=(0,s.B)(n)),"0x00"===(0,s.B)(n))return!1;if("0x01"===(0,s.B)(n))return!0;throw new r.H2(n)}function d(e,t={}){let n=u(e,t),i=Number(n);if(!Number.isSafeInteger(i))throw new r.Ty({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return i}function h(e,t={}){let n=(0,o.aT)(e);return t.size&&(a(n,{size:t.size}),n=(0,s.B)(n,{dir:"right"})),new TextDecoder().decode(n)}}
28,95889:(e,t,n)=>{n.d(t,{J9:()=>s,Mc:()=>i,fD:()=>r});let r={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."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},96002:(e,t,n)=>{n.d(t,{$s:()=>h,Kc:()=>f,Kz:()=>p,Sq:()=>m,UD:()=>l,Vg:()=>c,WA:()=>g,aO:()=>o,fZ:()=>d,gr:()=>u,zW:()=>a});var r=n(70536),i=n(22160),s=n(66568);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}s.C;class a extends s.C{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends s.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(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 u extends s.C{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class l extends s.C{constructor({attributes:e,serializedTransaction:t,type:n}){const r=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,r.length>0?`Missing Attributes: ${r.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=n}}class d extends s.C{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class h extends s.C{constructor(e,{account:t,docsPath:n,chain:s,data:a,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:p,value:f}){const m=o({chain:s&&`${s?.name} (id: ${s?.id})`,from:t?.address,to:p,value:void 0!==f&&`${(0,r.c)(f)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:c,gasPrice:void 0!==u&&`${(0,i.Q)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.Q)(d)} gwei`,nonce:h});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class p extends s.C{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let s="Transaction";n&&void 0!==i&&(s=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(s=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(s=`Transaction at block number "${t}" at index "${i}"`),r&&(s=`Transaction with hash "${r}"`),super(`${s} could not be found.`,{name:"TransactionNotFoundError"})}}class f extends s.C{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class m extends s.C{constructor({receipt:e}){super(`Transaction with hash "${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 g extends s.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}}
28,96462:(e,t,n)=>{n.d(t,{d:()=>o});var r=n(78568),i=n(4174),s=n(31750);function o(e,{docsPath:t,...n}){let o,a=(o=(0,s.l)(e,n))instanceof i.RM?e:o;return new r.zX(a,{docsPath:t,...n})}},96685:(e,t,n)=>{n.d(t,{b:()=>l,o:()=>u});var r=n(71386),i=n(22106),s=n(18860),o=n(86301),a=n(80339);let c=new o.A(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,s.S)((0,i.Af)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return c.set(`${e}.${t}`,a),a}function l(e,t){if(!(0,a.P)(e,{strict:!1}))throw new r.M({address:e});return u(e,t)}},97948:(e,t,n)=>{n.d(t,{c:()=>c});var r=n(51011),i=n(28285),s=n(71386),o=n(4174),a=n(80339);function c(e){let{account:t,maxFeePerGas:n,maxPriorityFeePerGas:c,to:u}=e,l=t?(0,r.J)(t):void 0;if(l&&!(0,a.P)(l.address))throw new s.M({address:l.address});if(u&&!(0,a.P)(u))throw new s.M({address:u});if(n&&n>i.Ao)throw new o.BG({maxFeePerGas:n});if(c&&n&&c>n)throw new o.lN({maxFeePerGas:n,maxPriorityFeePerGas:c})}},99015:(e,t,n)=>{n.d(t,{BD:()=>i,D5:()=>r,Ge:()=>s});let r=/^(.*)\[([0-9]*)\]$/,i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/}}]);
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.