1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="9c1e276f-2acd-c1eb-107e-3d966c3f0c7c")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,189991,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}])},70204,332881,e=>{"use strict";function t(e,{includeName:r=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new C(e.type);return`${e.name}(${n(e.inputs,{includeName:r})})`}function n(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${n(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}e.s(["AbiConstructorNotFoundError",()=>o,"AbiConstructorParamsNotFoundError",()=>s,"AbiDecodingDataSizeInvalidError",()=>a,"AbiDecodingDataSizeTooSmallError",()=>c,"AbiDecodingZeroDataError",()=>u,"AbiEncodingArrayLengthMismatchError",()=>d,"AbiEncodingBytesSizeMismatchError",()=>l,"AbiEncodingLengthMismatchError",()=>m,"AbiErrorInputsNotFoundError",()=>p,"AbiErrorNotFoundError",()=>h,"AbiErrorSignatureNotFoundError",()=>f,"AbiEventNotFoundError",()=>g,"AbiEventSignatureEmptyTopicsError",()=>b,"AbiEventSignatureNotFoundError",()=>y,"AbiFunctionNotFoundError",()=>v,"AbiFunctionOutputsNotFoundError",()=>E,"AbiFunctionSignatureNotFoundError",()=>x,"AbiItemAmbiguityError",()=>w,"BytesSizeMismatchError",()=>I,"DecodeLogDataMismatch",()=>$,"DecodeLogTopicsMismatch",()=>A,"InvalidAbiDecodingTypeError",()=>P,"InvalidAbiEncodingTypeError",()=>T,"InvalidArrayError",()=>B,"InvalidDefinitionTypeError",()=>C,"UnsupportedPackedAbiType",()=>F],70204),e.s(["formatAbiItem",()=>t,"formatAbiParams",()=>n],332881);var r=e.i(401319),i=e.i(569934);class o extends i.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends i.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class a extends i.BaseError{constructor({data:e,size:t}){super(`Data size of ${t}
2 bytes is invalid. 3Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}class c extends i.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${n(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends i.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class d extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 4Expected length: ${e} 5Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class l extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,r.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class m extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 6Expected length (params): ${e} 7Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class p extends i.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 8Cannot encode error result without knowing what the parameter types are. 9Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class h extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 10Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class f extends i.BaseError{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI. 11Make sure you are using the correct ABI and that the error exists on it. 12You 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 b extends i.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 13Make sure you are using the correct ABI and that the event exists on it. 14You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class g extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 15Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class v extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 16Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class E extends i.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 17Cannot decode function result without knowing what the parameter types are. 18Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class x extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 19Make sure you are using the correct ABI and that the function exists on it. 20You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class w extends i.BaseError{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${t(e.abiItem)}\`, and`,`\`${n.type}\` in \`${t(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class I extends i.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class $ extends i.BaseError{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${n(r,{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=r,this.size=i}}class A extends i.BaseError{constructor({abiItem:e,param:n}){super(`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${t(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class T extends i.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 21Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class P extends i.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 22Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class B extends i.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class C extends i.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 23Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class F extends i.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},795,493429,e=>{"use strict";var t=e.i(569934);class n extends t.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r extends t.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class i extends t.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",0,n,"PositionOutOfBoundsError",0,r,"RecursiveReadLimitExceededError",0,i],493429);let o={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 i({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n({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 n({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++}};e.s(["createCursor",0,function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(o);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}],795)},790063,e=>{"use strict";var t=e.i(587286),n=e.i(880841),r=e.i(401319);function i(e,n){if("number"==typeof n&&n>0&&n>(0,r.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:n,position:"start",size:(0,r.size)(e)})}function o(e,n,i){if("number"==typeof n&&"number"==typeof i&&(0,r.size)(e)!==i-n)throw new t.SliceOffsetOutOfBoundsError({offset:i,position:"end",size:(0,r.size)(e)})}function s(e,t,n,{strict:r}={}){i(e,t);let a=e.slice(t,n);return r&&o(a,t,n),a}function a(e,t,n,{strict:r}={}){i(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&o(s,t,n),s}e.s(["slice",0,function(e,t,r,{strict:i}={}){return(0,n.isHex)(e,{strict:!1})?a(e,t,r,{strict:i}):s(e,t,r,{strict:i})},"sliceBytes",0,s,"sliceHex",0,a])},394125,e=>{"use strict";var t=e.i(400564),n=e.i(8406),r=e.i(450323),i=e.i(675107);function o(e,t={}){void 0!==t.size&&(0,r.assertSize)(e,{size:t.size});let n=(0,i.bytesToHex)(e,t);return(0,r.hexToBigInt)(n,t)}function s(e,i={}){let o=e;if(void 0!==i.size&&((0,r.assertSize)(o,{size:i.size}),o=(0,n.trim)(o)),o.length>1||o[0]>1)throw new t.InvalidBytesBooleanError(o);return!!o[0]}function a(e,t={}){void 0!==t.size&&(0,r.assertSize)(e,{size:t.size});let n=(0,i.bytesToHex)(e,t);return(0,r.hexToNumber)(n,t)}function c(e,t={}){let i=e;return void 0!==t.size&&((0,r.assertSize)(i,{size:t.size}),i=(0,n.trim)(i,{dir:"right"})),new TextDecoder().decode(i)}e.s(["bytesToBigInt",0,o,"bytesToBool",0,s,"bytesToNumber",0,a,"bytesToString",0,c,"fromBytes",0,function(e,t){let n="string"==typeof t?{to:t}:t,r=n.to;return"number"===r?a(e,n):"bigint"===r?o(e,n):"boolean"===r?s(e,n
23):"string"===r?c(e,n):(0,i.bytesToHex)(e,n)}])},147526,e=>{"use strict";function t(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}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",0,function(e){return"string"==typeof e[0]?n(e):t(e)},"concatBytes",0,t,"concatHex",0,n])},704434,342692,e=>{"use strict";var t=e.i(70204),n=e.i(608861),r=e.i(569934),i=e.i(400564),o=e.i(796516),s=e.i(147526),a=e.i(22411),c=e.i(401319),u=e.i(790063),d=e.i(675107);let l=/^(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)?$/;e.s(["arrayRegex",0,/^(.*)\[([0-9]*)\]$/,"bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,l],342692);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,c.size)(i)}let n=[],r=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:s,encoded:a}=e[o];s?(n.push((0,d.numberToHex)(t+i,{size:32})),r.push(a),i+=(0,c.size)(a)):n.push(a)}return(0,s.concat)([...n,...r])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,h){if(e.length!==h.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:h.length});let f=m(function({params:e,values:h}){let f=[];for(let b=0;b<e.length;b++)f.push(function e({param:h,value:f}){let b=p(h.type);if(b){let[n,r]=b;return function(n,{length:r,param:i}){let o=null===r;if(!Array.isArray(n))throw new t.InvalidArrayError(n);if(!o&&n.length!==r)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:r,givenLength:n.length,type:`${i.type}[${r}]`});let a=!1,c=[];for(let t=0;t<n.length;t++){let r=e({param:i,value:n[t]});r.dynamic&&(a=!0),c.push(r)}if(o||a){let e=m(c);if(o){let t=(0,d.numberToHex)(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?(0,s.concat)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.concat)(c.map(({encoded:e})=>e))}}(f,{length:n,param:{...h,type:r}})}if("tuple"===h.type)return function(t,{param:n}){let r=!1,i=[];for(let o=0;o<n.components.length;o++){let s=n.components[o],a=Array.isArray(t)?o:s.name,c=e({param:s,value:t[a]});i.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(i):(0,s.concat)(i.map(({encoded:e})=>e))}}(f,{param:h});if("address"===h.type){var y=f;if(!(0,o.isAddress)(y))throw new n.InvalidAddressError({address:y});return{dynamic:!1,encoded:(0,a.padHex)(y.toLowerCase())}}if("bool"===h.type){var g=f;if("boolean"!=typeof g)throw new r.BaseError(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,a.padHex)((0,d.boolToHex)(g))}}if(h.type.startsWith("uint")||h.type.startsWith("int")){let e=h.type.startsWith("int"),[,,t="256"]=l.exec(h.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new i.IntegerOutOfRangeError({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,d.numberToHex)(e,{size:32,signed:t})}}(f,{signed:e,size:Number(t)})}if(h.type.startsWith("bytes"))return function(e,{param:n}){let[,r]=n.type.split("bytes"),i=(0,c.size)(e);if(!r){let t=e;return i%32!=0&&(t=(0,a.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.concat)([(0,a.padHex)((0,d.numberToHex)(i,{size:32})),t])}}if(i!==Number.parseInt(r,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,a.padHex)(e,{dir:"right"})}}(f,{param:h});if("string"===h.type){var v=f;let e=(0,d.stringToHex)(v),t=Math.ceil((0,c.size)(e)/32),n=[];for(let r=0;r<t;r++)n.push((0,a.padHex)((0,u.slice)(e,32*r,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.concat)([(0,a.padHex)((0,d.numberToHex)((0,c.size)(e),{size:32})),...n])}}throw new t.InvalidAbiEncodingTypeError(h.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[b],value:h[b]}));return f}({params:e,values:h}));return 0===f.length?"0x":f},"getArrayComponents",0,p],704434)},249311,e=>{"use strict";var t=e.i(70204),n=e.i(823838),r=e.i(795),i=e.i(401319),o=e.i(790063),s=e.i(8406),a=e.i(394125),c=e.i(769936),u=e.i(675107),d=e.i(704434);function l(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
23if("tuple"===t)return e.components?.some(l);let n=(0,d.getArrayComponents)(e.type);return!!(n&&l({...e,type:n[1]}))}e.s(["decodeAbiParameters",0,function(e,m){let p="string"==typeof m?(0,c.hexToBytes)(m):m,h=(0,r.createCursor)(p);if(0===(0,i.size)(p)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,i.size)(m)&&32>(0,i.size)(m))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof m?m:(0,u.bytesToHex)(m),params:e,size:(0,i.size)(m)});let f=0,b=[];for(let r=0;r<e.length;++r){let i=e[r];h.setPosition(f);let[c,m]=function e(r,i,{staticPosition:c}){var m,p,h;let f=(0,d.getArrayComponents)(i.type);if(f){let[t,n]=f;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+(0,a.bytesToNumber)(t.readBytes(32)),o=r+32;t.setPosition(r);let s=(0,a.bytesToNumber)(t.readBytes(32)),c=l(n),u=0,d=[];for(let r=0;r<s;++r){t.setPosition(o+(c?32*r:u));let[i,s]=e(t,n,{staticPosition:o});u+=s,d.push(i)}return t.setPosition(i+32),[d,32]}if(l(n)){let o=i+(0,a.bytesToNumber)(t.readBytes(32)),s=[];for(let i=0;i<r;++i){t.setPosition(o+32*i);let[r]=e(t,n,{staticPosition:o});s.push(r)}return t.setPosition(i+32),[s,32]}let o=0,s=[];for(let a=0;a<r;++a){let[r,a]=e(t,n,{staticPosition:i+o});o+=a,s.push(r)}return[s,o]}(r,{...i,type:n},{length:t,staticPosition:c})}if("tuple"===i.type)return function(t,n,{staticPosition:r}){let i=0===n.components.length||n.components.some(({name:e})=>!e),o=i?[]:{},s=0;if(l(n)){let c=r+(0,a.bytesToNumber)(t.readBytes(32));for(let r=0;r<n.components.length;++r){let a=n.components[r];t.setPosition(c+s);let[u,d]=e(t,a,{staticPosition:c});s+=d,o[i?r:a?.name]=u}return t.setPosition(r+32),[o,32]}for(let a=0;a<n.components.length;++a){let c=n.components[a],[u,d]=e(t,c,{staticPosition:r});o[i?a:c?.name]=u,s+=d}return[o,s]}(r,i,{staticPosition:c});if("address"===i.type){let e;return e=r.readBytes(32),[(0,n.checksumAddress)((0,u.bytesToHex)((0,o.sliceBytes)(e,-20))),32]}if("bool"===i.type){return m=r,[(0,a.bytesToBool)(m.readBytes(32),{size:32}),32]}if(i.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=(0,a.bytesToNumber)(e.readBytes(32));e.setPosition(n+t);let r=(0,a.bytesToNumber)(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[(0,u.bytesToHex)(i),32]}return[(0,u.bytesToHex)(e.readBytes(Number.parseInt(i,10),32)),32]}(r,i,{staticPosition:c});if(i.type.startsWith("uint")||i.type.startsWith("int")){let e,t,n;return p=r,e=(h=i).type.startsWith("int"),t=Number.parseInt(h.type.split("int")[1]||"256",10),n=p.readBytes(32),[t>48?(0,a.bytesToBigInt)(n,{signed:e}):(0,a.bytesToNumber)(n,{signed:e}),32]}if("string"===i.type)return function(e,{staticPosition:t}){let n=(0,a.bytesToNumber)(e.readBytes(32));e.setPosition(t+n);let r=(0,a.bytesToNumber)(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),o=(0,a.bytesToString)((0,s.trim)(i));return e.setPosition(t+32),[o,32]}(r,{staticPosition:c});throw new t.InvalidAbiDecodingTypeError(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(h,i,{staticPosition:0});f+=m,b.push(c)}return b}])},395312,e=>{"use strict";var t=e.i(769936),n=e.i(831095);e.s(["hashSignature",0,function(e){return(0,n.keccak256)((0,t.toBytes)(e))}])},655330,e=>{"use strict";e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,function(e,t){let n=e.exec(t);return n?.groups},"integerRegex",0,/^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)?$/,"isTupleRegex",0,/^\(.+?\).*?$/])},926336,685185,e=>{"use strict";var t=e.i(395312),n=e.i(655330);let r=/^tuple(?<array>(\[(\d*)\])*)$/;function i(e){let t="",i=e.length;for(let o=0;o<i;o++)t+=function e(t){let i=t.type;if(r.test(t.type)&&"components"in t){i="(";let o=t.components.length;for(let n=0;n<o;n++)i+=e(t.components[n]),n<o-1&&(i+=", ");let s=(0,n.execTyped)(r,t.type);return i+=`)${s?.array||""}`,e({...t,type:i})}return("indexed"in t&&t.indexed&&(i=`${i}
23 indexed`),t.name)?`${i} ${t.name}`:i}(e[o]),o!==i-1&&(t+=", ");return t}var o=e.i(569934);let s=e=>(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.BaseError("Unable to normalize signature.");return i})((()=>"string"==typeof e?e:"function"===e.type?`function ${e.name}(${i(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${i(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${i(e.inputs)})`:"error"===e.type?`error ${e.name}(${i(e.inputs)})`:"constructor"===e.type?`constructor(${i(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable")());e.s(["toSignature",0,s],685185),e.s(["toSignatureHash",0,function(e){return(0,t.hashSignature)(s(e))}],926336)},774620,e=>{"use strict";let t=e.i(926336).toSignatureHash;e.s(["toEventSelector",0,t])},879617,e=>{"use strict";var t=e.i(790063),n=e.i(926336);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,n.toSignatureHash)(e),0,4)])},627173,e=>{"use strict";var t=e.i(70204),n=e.i(880841),r=e.i(796516),i=e.i(774620),o=e.i(879617);e.s(["getAbiItem",0,function(e){let s,{abi:a,args:c=[],name:u}=e,d=(0,n.isHex)(u,{strict:!1}),l=a.filter(e=>d?"function"===e.type?(0,o.toFunctionSelector)(e)===u:"event"===e.type&&(0,i.toEventSelector)(e)===u:"name"in e&&e.name===u);if(0!==l.length){if(1===l.length)return l[0];for(let e of l){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 i="inputs"in e&&e.inputs[n];return!!i&&function e(t,n){let i=typeof t,o=n.type;switch(o){case"address":return(0,r.isAddress)(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===o&&"components"in n)return Object.values(n.components).every((n,r)=>"object"===i&&e(Object.values(t)[r],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(o))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===i||t instanceof Uint8Array;
vendor: 1,943 bytes, line 23
23if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)})){if(s&&"inputs"in s&&s.inputs){let n=function e(t,n,i){for(let o in t){let s=t[o],a=n[o];if("tuple"===s.type&&"tuple"===a.type&&"components"in s&&"components"in a)return e(s.components,a.components,i[o]);let c=[s.type,a.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,r.isAddress)(i[o],{strict:!1}))return c}}(e.inputs,s.inputs,c);if(n)throw new t.AbiItemAmbiguityError({abiItem:e,type:n[0]},{abiItem:s,type:n[1]})}s=e}}}return s||l[0]}}])},505880,e=>{"use strict";var t=e.i(569934);class n extends t.BaseError{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 r extends t.BaseError{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 i 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 o extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
23" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}e.s(["ChainDoesNotSupportContract",0,n,"ChainMismatchError",0,r,"ChainNotFoundError",0,i,"ClientChainNotConfiguredError",0,o,"InvalidChainIdError",0,s])},727343,e=>{"use strict";e.s(["panicReasons",0,{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."},"solidityError",0,{inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},"solidityPanic",0,{inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}])},959953,461295,e=>{"use strict";var t=e.i(727343),n=e.i(70204),r=e.i(790063),i=e.i(879617),o=e.i(249311),s=e.i(332881);e.s(["decodeErrorResult",0,function(e){let{abi:a,data:c,cause:u}=e,d=(0,r.slice)(c,0,4);if("0x"===d)throw new n.AbiDecodingZeroDataError({cause:u});let l=[...a||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&d===(0,i.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!l)throw new n.AbiErrorSignatureNotFoundError(d,{docsPath:"/docs/contract/decodeErrorResult",cause:u});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,o.decodeAbiParameters)(l.inputs,(0,r.slice)(c,4)):void 0,errorName:l.name}}],959953);var a=e.i(34888);e.s(["formatAbiItemWithArgs",0,function({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.stringify)(t[n]):t[n]}`).join(", ")})`}],461295)},285973,e=>{"use strict";var t=e.i(855723),n=e.i(644616);e.s(["formatEther",0,function(e,r="wei"){return(0,n.formatUnits)(e,t.etherUnits[r])}])},62570,e=>{"use strict";var t=e.i(569934);class n extends t.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class r extends t.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function i(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n} 24`,"")}e.s(["AccountStateConflictError",0,n,"StateAssignmentConflictError",0,r,"prettyStateOverride",0,function(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}: 25`;return n.nonce&&(r+=` nonce: ${n.nonce} 26`),n.balance&&(r+=` balance: ${n.balance} 27`),n.code&&(r+=` code: ${n.code} 28`),n.state&&(r+=" state:\n",r+=i(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=i(n.stateDiff)),r}," State Override:\n").slice(0,-1)}])},393702,e=>{"use strict";var t=e.i(285973),n=e.i(976486),r=e.i(569934);function i(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")}class o extends r.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class s extends r.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class a extends r.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i(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 c extends r.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}
28" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class u extends r.BaseError{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 r.BaseError{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 l extends r.BaseError{constructor(e,{account:r,docsPath:o,chain:s,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:m,to:p,value:h}){const f=i({chain:s&&`${s?.name} (id: ${s?.id})`,from:r?.address,to:p,value:void 0!==h&&`${(0,t.formatEther)(h)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:c,gasPrice:void 0!==u&&`${(0,n.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==d&&`${(0,n.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,n.formatGwei)(l)} gwei`,nonce:m});super(e.shortMessage,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",f].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class m extends r.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let o="Transaction";n&&void 0!==i&&(o=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),r&&(o=`Transaction with hash "${r}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class p extends r.BaseError{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 h extends r.BaseError{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 f extends r.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["FeeConflictError",0,o,"InvalidLegacyVError",0,s,"InvalidSerializableTransactionError",0,a,"InvalidSerializedTransactionError",0,u,"InvalidSerializedTransactionTypeError",0,c,"InvalidStorageKeySizeError",0,d,"TransactionExecutionError",0,l,"TransactionNotFoundError",0,m,"TransactionReceiptNotFoundError",0,p,"TransactionReceiptRevertedError",0,h,"WaitForTransactionReceiptTimeoutError",0,f,"prettyPrint",0,i])},878023,467078,e=>{"use strict";var t=e.i(189991),n=e.i(727343),r=e.i(959953),i=e.i(332881),o=e.i(461295),s=e.i(627173),a=e.i(285973),c=e.i(976486),u=e.i(70204),d=e.i(569934),l=e.i(62570),m=e.i(393702),p=e.i(363710);class h extends d.BaseError{constructor(e,{account:n,docsPath:r,chain:i,data:o,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:f,value:b,stateOverride:y}){const g=n?(0,t.parseAccount)(n):void 0;let v=(0,m.prettyPrint)({from:g?.address,to:f,value:void 0!==b&&`${(0,a.formatEther)(b)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:s,gasPrice:void 0!==u&&`${(0,c.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==d&&`${(0,c.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==p&&`${(0,c.formatGwei)(p)} gwei`,nonce:h});
28y&&(v+=` 29${(0,l.prettyStateOverride)(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class f extends d.BaseError{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:a,functionName:c,sender:u}){const d=(0,s.getAbiItem)({abi:t,args:n,name:c}),l=d?(0,o.formatAbiItemWithArgs)({abiItem:d,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=d?(0,i.formatAbiItem)(d,{includeName:!0}):void 0,f=(0,m.prettyPrint)({address:r&&(0,p.getContractAddress)(r),function:h,args:l&&"()"!==l&&`${[...Array(c?.length??0).keys()].map(()=>" ").join("")}${l}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],f&&"Contract Call:",f].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=c,this.sender=u}}class b extends d.BaseError{constructor({abi:e,data:t,functionName:s,message:a,cause:c}){let d,l,m,p,h;if(t&&"0x"!==t)try{const{abiItem:s,errorName:a,args:u}=l=(0,r.decodeErrorResult)({abi:e,data:t,cause:c});if("Error"===a)p=u[0];else if("Panic"===a){const[e]=u;p=n.panicReasons[e]}else{const e=s?(0,i.formatAbiItem)(s,{includeName:!0}):void 0,t=s&&u?(0,o.formatAbiItemWithArgs)({abiItem:s,args:u,includeFunctionName:!1,includeName:!1}):void 0;m=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){d=e}else a&&(p=a);d instanceof u.AbiErrorSignatureNotFoundError&&(h=d.signature,m=[`Unable to decode signature "${h}" 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=${h}.`]),super(p&&"execution reverted"!==p||h?[`The contract function "${s}" reverted with the following ${h?"signature":"reason"}:`,p||h].join("\n"):`The contract function "${s}" reverted.`,{cause:d??c,metaMessages:m,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=h}}class y extends d.BaseError{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 g extends d.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class v extends d.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}e.s(["CallExecutionError",0,h,"ContractFunctionExecutionError",0,f,"ContractFunctionRevertedError",0,b,"ContractFunctionZeroDataError",0,y,"CounterfactualDeploymentFailedError",0,g,"RawContractError",0,v],878023);var E=e.i(853532);e.s(["getNodeError",0,function(e,t){let n=(e.details||"").toLowerCase(),r=e instanceof d.BaseError?e.walk(e=>e?.code===E.ExecutionRevertedError.code):e;return r instanceof d.BaseError?new E.ExecutionRevertedError({cause:e,message:r.details}):E.ExecutionRevertedError.nodeMessage.test(n)?new E.ExecutionRevertedError({cause:e,message:e.details}):E.FeeCapTooHighError.nodeMessage.test(n)?new E.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):E.FeeCapTooLowError.nodeMessage.test(n)?new E.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):E.NonceTooHighError.nodeMessage.test(n)?new E.NonceTooHighError({cause:e,nonce:t?.nonce}):E.NonceTooLowError.nodeMessage.test(n)?new E.NonceTooLowError({cause:e,nonce:t?.nonce}):E.NonceMaxValueError.nodeMessage.test(n)?new E.NonceMaxValueError({cause:e,nonce:t?.nonce}):E.InsufficientFundsError.nodeMessage.test(n)?new E.InsufficientFundsError({cause:e}):E.IntrinsicGasTooHighError.nodeMessage.test(n)?new E.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):E.IntrinsicGasTooLowError.nodeMessage.test(n)?new E.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):E.TransactionTypeNotSupportedError.nodeMessage.test(n)?new E.TransactionTypeNotSupportedError({cause:e}):E.TipAboveFeeCapError.nodeMessage.test(n)?new E.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new E.UnknownNodeError({cause:e})}],467078)},779690,e=>{"use strict";var t=e.i(878023),n=e.i(853532),r=e.i(467078);e.s(["getCallError",0,function(e,{docsPath:i,...o}){let s,a=(s=(0,r.getNodeError)(e,o))instanceof n.UnknownNodeError?e:s;return new t.CallExecutionError(a,{docsPath:i,...o})}])},264404,e=>{"use strict";e.s(["extract",0,function(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[
29i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}])},445024,e=>{"use strict";e.s(["defineFormatter",0,function(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,i)=>{let o=t(e,i);if(n)for(let e of n)delete o[e];return{...o,...r(e,i)}},type:e})}])},190521,e=>{"use strict";var t=e.i(675107),n=e.i(445024);let r={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function i(e,n){let i={};return void 0!==e.authorizationList&&(i.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,t.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,t.numberToHex)(BigInt(e.s)):e.s,chainId:(0,t.numberToHex)(e.chainId),nonce:(0,t.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,t.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,t.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(i.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(i.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?i.blobs=e.blobs.map(e=>(0,t.bytesToHex)(e)):i.blobs=e.blobs),void 0!==e.data&&(i.data=e.data),e.account&&(i.from=e.account.address),void 0!==e.from&&(i.from=e.from),void 0!==e.gas&&(i.gas=(0,t.numberToHex)(e.gas)),void 0!==e.gasPrice&&(i.gasPrice=(0,t.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(i.maxFeePerBlobGas=(0,t.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(i.maxFeePerGas=(0,t.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(i.maxPriorityFeePerGas=(0,t.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(i.nonce=(0,t.numberToHex)(e.nonce)),void 0!==e.to&&(i.to=e.to),void 0!==e.type&&(i.type=r[e.type]),void 0!==e.value&&(i.value=(0,t.numberToHex)(e.value)),i}let o=(0,n.defineFormatter)("transactionRequest",i);e.s(["defineTransactionRequest",0,o,"formatTransactionRequest",0,i,"rpcTransactionType",0,r])},674768,e=>{"use strict";e.s(["maxInt104",0,2n**(104n-1n)-1n,"maxInt112",0,2n**(112n-1n)-1n,"maxInt120",0,2n**(120n-1n)-1n,"maxInt128",0,2n**(128n-1n)-1n,"maxInt136",0,2n**(136n-1n)-1n,"maxInt144",0,2n**(144n-1n)-1n,"maxInt152",0,2n**(152n-1n)-1n,"maxInt16",0,2n**(16n-1n)-1n,"maxInt160",0,2n**(160n-1n)-1n,"maxInt168",0,2n**(168n-1n)-1n,"maxInt176",0,2n**(176n-1n)-1n,"maxInt184",0,2n**(184n-1n)-1n,"maxInt192",0,2n**(192n-1n)-1n,"maxInt200",0,2n**(200n-1n)-1n,"maxInt208",0,2n**(208n-1n)-1n,"maxInt216",0,2n**(216n-1n)-1n,"maxInt224",0,2n**(224n-1n)-1n,"maxInt232",0,2n**(232n-1n)-1n,"maxInt24",0,2n**(24n-1n)-1n,"maxInt240",0,2n**(240n-1n)-1n,"maxInt248",0,2n**(248n-1n)-1n,"maxInt256",0,2n**(256n-1n)-1n,"maxInt32",0,2n**(32n-1n)-1n,"maxInt40",0,2n**(40n-1n)-1n,"maxInt48",0,2n**(48n-1n)-1n,"maxInt56",0,2n**(56n-1n)-1n,"maxInt64",0,2n**(64n-1n)-1n,"maxInt72",0,2n**(72n-1n)-1n,"maxInt8",0,2n**(8n-1n)-1n,"maxInt80",0,2n**(80n-1n)-1n,"maxInt88",0,2n**(88n-1n)-1n,"maxInt96",0,2n**(96n-1n)-1n,"maxUint104",0,2n**104n-1n,"maxUint112",0,2n**112n-1n,"maxUint120",0,2n**120n-1n,"maxUint128",0,2n**128n-1n,"maxUint136",0,2n**136n-1n,"maxUint144",0,2n**144n-1n,"maxUint152",0,2n**152n-1n,"maxUint16",0,2n**16n-1n,"maxUint160",0,2n**160n-1n,"maxUint168",0,2n**168n-1n,"maxUint176",0,2n**176n-1n,"maxUint184",0,2n**184n-1n,"maxUint192",0,2n**192n-1n,"maxUint200",0,2n**200n-1n,"maxUint208",0,2n**208n-1n,"maxUint216",0,2n**216n-1n,"maxUint224",0,2n**224n-1n,"maxUint232",0,2n**232n-1n,"maxUint24",0,2n**24n-1n,"maxUint240",0,2n**240n-1n,"maxUint248",0,2n**248n-1n,"maxUint256",0,2n**256n-1n,"maxUint32",0,2n**32n-1n,"maxUint40",0,2n**40n-1n,"maxUint48",0,2n**48n-1n,"maxUint56",0,2n**56n-1n,"maxUint64",0,2n**64n-1n,"maxUint72",0,2n**72n-1n,"maxUint8",0,2n**8n-1n,"maxUint80",0,2n**80n-1n,"maxUint88",0,2n**88n-1n,"maxUint96",0,2n**96n-1n,"minInt104",0,-(2n**(104n-1n)),"minInt112",0,-(2n**(112n-1n)),"minInt120",0,-(2n**(120n-1n)),"minInt128",0,-(2n**(128n-1n)),"minInt136",0,-(2n**(136n-1n)),"minInt144",0,-(2n**(144n-1n)),"minInt152",0,-(2n**(152n-1n)),"minInt16",0,-(2n**(16n-1n)),"minInt160",0,-(2n**(160n-1n)),"minInt168",0,-(2n**(168n-1n)),"minInt176",0,-(2n**(176n-1n)),"minInt184",0,-(2n**(184n-1n)),"minInt192",0,-(2n**(192n-1n)),"minInt200",0,-(2n**(200n-1n)),"minInt208",0,-(2n**(208n-1n)),"minInt216",0,-(2n**(216n-1n)),"minInt224",0,-(2n**(224n-1n)),"minInt232",0,-(2n**(232n-1n)),"minInt24",0,-(2n**(24n-1n)),"minInt240",0,-(2n**(240n-1n)),"minInt248",0,-(2n**(248n-1n)),"minInt256",0,-(2n**(256n-1n)),"minInt32",0,-(2n**(32n-1n)),"minInt40",0,-(2n**(40n-1n)),"minInt48",0,-(2n**(48n-1n)),"minInt56",0,-(2n**(56n-1n)),"minInt64",0,-(2n**(64n-1n)),"minInt72",0,-(2n**(72n-1n)),"minInt8",0,-(2n**(8n-1n)),"minInt80",0,-(2n**(80n-1n)),"minInt88",0,-(2n**(88n-1n)),"minInt96",0,-(2n**(96n-1n))])},353464,e=>{"use strict";var t=e.i(189991),n=e.i(674768),r=e.i(608861),i=e.i(853532),o=e.i(796516);e.s(["assertRequest",0,function(e){let{account:s,maxFeePerGas:a,maxPriorityFeePerGas:c,to:u}=e,d=s?(0,t.parseAccount)(s):void 0;if(d&&!(0,o.isAddress)(d.address))throw new r.InvalidAddressError({address:d.address});if(u&&!(0,o.isAddress)(u))throw new r.InvalidAddressError({address:u});if(a&&a>n.maxUint256)throw new i.FeeCapTooHighError({maxFeePerGas:a});if(c&&a&&c>a)throw new i.TipAboveFeeCapError({maxFeePerGas:a,maxPriorityFeePerGas:c})}])}]); 30 31//# debugId=9c1e276f-2acd-c1eb-107e-3d966c3f0c7c
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.