@dcl/governance-site 2.1.1-21070875689.commit-17a78cb → 2.1.2-21396561927.commit-5f7c81e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/assets/{BlockOverrides-587dcf26.js → BlockOverrides-303f7e9f.js} +5 -5
  2. package/assets/{ConstantsUtil-8502dfc4.js → ConstantsUtil-a131dde8.js} +1 -1
  3. package/assets/ContentfulRichText-16284a17.js +1 -0
  4. package/assets/{ExchangeController-3fa8deb9.js → ExchangeController-a14191f2.js} +1 -1
  5. package/assets/{HelpersUtil-f4075fb8.js → HelpersUtil-2b99f8bd.js} +1 -1
  6. package/assets/{NetworkUtil-8af3c123.js → NetworkUtil-c907cd4d.js} +1 -1
  7. package/assets/{ReownAuthentication-1b1e1840.js → ReownAuthentication-b2c2d543.js} +1 -1
  8. package/assets/{SwapController-0db74c5b.js → SwapController-cd0f257b.js} +1 -1
  9. package/assets/{UserAvatar-9d53eb31.js → UserAvatar-fd309664.js} +1 -1
  10. package/assets/__vite-optional-peer-dep_lottie-react_decentraland-ui2-b25bb000.js +1 -0
  11. package/assets/{ccip-4ac071b6.js → ccip-44049d54.js} +1 -1
  12. package/assets/{data-capture-e0e0c9fe.js → data-capture-7e26f0ce.js} +1 -1
  13. package/assets/{email-c5d25039.js → email-8a377eee.js} +1 -1
  14. package/assets/{embedded-wallet-2d554e0b.js → embedded-wallet-0fb24cc2.js} +1 -1
  15. package/assets/features-7aff3cdd.js +1 -0
  16. package/assets/{fortmatic-0029ba7f.js → fortmatic-19aac1db.js} +1 -1
  17. package/assets/{if-defined-4df7702e.js → if-defined-5ecb5632.js} +1 -1
  18. package/assets/{index-536cacf7.js → index-02cebb5e.js} +208 -211
  19. package/assets/{index-605976d8.js → index-0687b660.js} +1 -1
  20. package/assets/{index-baf77de8.js → index-088190d3.js} +1 -1
  21. package/assets/{index-1ee685c9.js → index-12ec15f0.js} +1 -1
  22. package/assets/{index-daf4aed5.js → index-15da260e.js} +1 -1
  23. package/assets/{index-ad6b7373.js → index-1ef89fbf.js} +1 -1
  24. package/assets/{index-b53f2a1f.js → index-2428c92d.js} +1 -1
  25. package/assets/{index-f7c5a5f8.js → index-304c2025.js} +1 -1
  26. package/assets/{index-62359e66.js → index-45573641.js} +1 -1
  27. package/assets/{index-1ff782ff.js → index-4795bc6d.js} +1 -1
  28. package/assets/{index-4bd4ffe7.js → index-52bd0c54.js} +3 -2
  29. package/assets/{index-df735362.js → index-557ac282.js} +1 -1
  30. package/assets/{index-1592dd7d.js → index-5b7f5468.js} +1 -1
  31. package/assets/{index-5744e825.js → index-5db900d2.js} +1 -1
  32. package/assets/{index-68cc58aa.js → index-61219cbe.js} +46 -43
  33. package/assets/{index-5a6600b9.js → index-67af3d9f.js} +1 -1
  34. package/assets/{index-3b221013.js → index-6a478a1a.js} +1 -1
  35. package/assets/{index-b48e71f1.js → index-6aa35c4c.js} +1 -1
  36. package/assets/{index-21eb409d.js → index-6d67eda0.js} +1 -1
  37. package/assets/{index-051a3679.js → index-6efd5958.js} +1 -1
  38. package/assets/{index-00b3eb70.js → index-7cb264a1.js} +1 -1
  39. package/assets/index-863e8fd6.js +277 -0
  40. package/assets/{index-7cff9225.js → index-906aeedb.js} +39 -39
  41. package/assets/{index-d9054d4b.js → index-91e7b718.js} +1 -1
  42. package/assets/{index-28160b9c.js → index-9c5f86d3.js} +1 -1
  43. package/assets/{index-db2e4275.js → index-9ed03248.js} +1 -1
  44. package/assets/{index-ccc6e0b8.js → index-a30fd37b.js} +1 -1
  45. package/assets/index-b249573f.js +43 -0
  46. package/assets/{index-450beee4.js → index-b612aba6.js} +1 -1
  47. package/assets/{index-9dc35dce.css → index-bad2d6e3.css} +4 -4
  48. package/assets/{index-3aa4135b.js → index-bfa1b0b2.js} +1 -1
  49. package/assets/{index-eba69511.js → index-bfcb1eaf.js} +2 -2
  50. package/assets/{index-9b2afd4a.js → index-cdede9c1.js} +1 -1
  51. package/assets/{index-55d1b743.js → index-d4cf6fd5.js} +1 -1
  52. package/assets/{index-ab074e31.js → index-e0285d09.js} +1 -1
  53. package/assets/{index-1297522a.js → index-e82b1bf2.js} +1 -1
  54. package/assets/networks-f92d44f1.js +1 -0
  55. package/assets/{onramp-db91d9aa.js → onramp-531cac52.js} +1 -1
  56. package/assets/{pay-with-exchange-3e3d0d35.js → pay-with-exchange-7c86030c.js} +1 -1
  57. package/assets/{receive-6879401e.js → receive-168aa468.js} +1 -1
  58. package/assets/{ref-e4743dbb.js → ref-f07b284a.js} +1 -1
  59. package/assets/rich-text-react-renderer_decentraland-ui2-b25bb000.js +1 -0
  60. package/assets/{send-a5df6aaa.js → send-d84e8cd4.js} +28 -28
  61. package/assets/{socials-a60879eb.js → socials-a7521156.js} +1 -1
  62. package/assets/{swaps-9ed4074e.js → swaps-35bf1db5.js} +1 -1
  63. package/assets/{transactions-9d6d419c.js → transactions-ffdabf4e.js} +1 -1
  64. package/assets/{tslib.es6-623dc20e.js → tslib.es6-f2b18d1b.js} +1 -1
  65. package/assets/{w3m-modal-6538b1d4.js → w3m-modal-c647dc65.js} +1 -1
  66. package/assets/zoraTestnet-bea7fe0f.js +36 -0
  67. package/index.html +4 -4
  68. package/package.json +3 -3
  69. package/assets/features-4b165d70.js +0 -1
  70. package/assets/index-2ba9f922.js +0 -277
  71. package/assets/index-acb70d3d.js +0 -43
  72. package/assets/networks-c2850a5d.js +0 -1
  73. package/assets/zoraTestnet-6a3d065c.js +0 -36
@@ -1,43 +0,0 @@
1
- import{r as op,b as zt,c as nn,d as ap,e as nm,f as ip,g as Ds,i as sp,j as om,k as cp,l as Kc,m as am,n as up}from"./BlockOverrides-587dcf26.js";import{n as td,a as dp}from"./index-536cacf7.js";var Cc={},Xt={},Hn={},rd;function te(){if(rd)return Hn;rd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.getAction=e;function e(r,n,t){const i=r[n.name];if(typeof i=="function")return i;const s=r[t];return typeof s=="function"?s:a=>n(r,a)}return Hn}var xn={},$n={},Z={},wr={},nd;function ot(){if(nd)return wr;nd=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.formatAbiItem=r,wr.formatAbiParams=n;const e=se();function r(i,{includeName:s=!1}={}){if(i.type!=="function"&&i.type!=="event"&&i.type!=="error")throw new e.InvalidDefinitionTypeError(i.type);return`${i.name}(${n(i.inputs,{includeName:s})})`}function n(i,{includeName:s=!1}={}){return i?i.map(a=>t(a,{includeName:s})).join(s?", ":","):""}function t(i,{includeName:s}){return i.type.startsWith("tuple")?`(${n(i.components,{includeName:s})})${i.type.slice(5)}`:i.type+(s&&i.name?` ${i.name}`:"")}return wr}var zn={},Dn={},od;function _e(){if(od)return Dn;od=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return Dn}var ad;function ve(){if(ad)return zn;ad=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.size=r;const e=_e();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return zn}var Qt={},Ar={},id;function fp(){return id||(id=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.version=void 0,Ar.version="2.43.3"),Ar}var sd;function Q(){if(sd)return Qt;sd=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.BaseError=void 0,Qt.setErrorConfig=n;const e=fp();let r={getDocsUrl:({docsBaseUrl:s,docsPath:a="",docsSlug:o})=>a?`${s??"https://viem.sh"}${a}${o?`#${o}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(a,o={}){var l;const c=(()=>{var p;return o.cause instanceof t?o.cause.details:(p=o.cause)!=null&&p.message?o.cause.message:o.details})(),u=(()=>o.cause instanceof t&&o.cause.docsPath||o.docsPath)(),f=(l=r.getDocsUrl)==null?void 0:l.call(r,{...o,docsPath:u}),d=[a||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
2
- `);super(d,o.cause?{cause:o.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=c,this.docsPath=u,this.metaMessages=o.metaMessages,this.name=o.name??this.name,this.shortMessage=a,this.version=e.version}walk(a){return i(this,a)}}Qt.BaseError=t;function i(s,a){return a!=null&&a(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?i(s.cause,a):a?null:s}return Qt}var cd;function se(){if(cd)return Z;cd=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.UnsupportedPackedAbiType=Z.InvalidDefinitionTypeError=Z.InvalidArrayError=Z.InvalidAbiDecodingTypeError=Z.InvalidAbiEncodingTypeError=Z.DecodeLogTopicsMismatch=Z.DecodeLogDataMismatch=Z.BytesSizeMismatchError=Z.AbiItemAmbiguityError=Z.AbiFunctionSignatureNotFoundError=Z.AbiFunctionOutputsNotFoundError=Z.AbiFunctionNotFoundError=Z.AbiEventNotFoundError=Z.AbiEventSignatureNotFoundError=Z.AbiEventSignatureEmptyTopicsError=Z.AbiErrorSignatureNotFoundError=Z.AbiErrorNotFoundError=Z.AbiErrorInputsNotFoundError=Z.AbiEncodingLengthMismatchError=Z.AbiEncodingBytesSizeMismatchError=Z.AbiEncodingArrayLengthMismatchError=Z.AbiDecodingZeroDataError=Z.AbiDecodingDataSizeTooSmallError=Z.AbiDecodingDataSizeInvalidError=Z.AbiConstructorParamsNotFoundError=Z.AbiConstructorNotFoundError=void 0;const e=ot(),r=ve(),n=Q();class t extends n.BaseError{constructor({docsPath:I}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
3
- `),{docsPath:I,name:"AbiConstructorNotFoundError"})}}Z.AbiConstructorNotFoundError=t;class i extends n.BaseError{constructor({docsPath:I}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
4
- `),{docsPath:I,name:"AbiConstructorParamsNotFoundError"})}}Z.AbiConstructorParamsNotFoundError=i;class s extends n.BaseError{constructor({data:I,size:q}){super([`Data size of ${q} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(`
5
- `),{metaMessages:[`Data: ${I} (${q} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}Z.AbiDecodingDataSizeInvalidError=s;class a extends n.BaseError{constructor({data:I,params:q,size:B}){super([`Data size of ${B} bytes is too small for given parameters.`].join(`
6
- `),{metaMessages:[`Params: (${(0,e.formatAbiParams)(q,{includeName:!0})})`,`Data: ${I} (${B} 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=I,this.params=q,this.size=B}}Z.AbiDecodingDataSizeTooSmallError=a;class o extends n.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}Z.AbiDecodingZeroDataError=o;class c extends n.BaseError{constructor({expectedLength:I,givenLength:q,type:B}){super([`ABI encoding array length mismatch for type ${B}.`,`Expected length: ${I}`,`Given length: ${q}`].join(`
7
- `),{name:"AbiEncodingArrayLengthMismatchError"})}}Z.AbiEncodingArrayLengthMismatchError=c;class u extends n.BaseError{constructor({expectedSize:I,value:q}){super(`Size of bytes "${q}" (bytes${(0,r.size)(q)}) does not match expected size (bytes${I}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}Z.AbiEncodingBytesSizeMismatchError=u;class f extends n.BaseError{constructor({expectedLength:I,givenLength:q}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${I}`,`Given length (values): ${q}`].join(`
8
- `),{name:"AbiEncodingLengthMismatchError"})}}Z.AbiEncodingLengthMismatchError=f;class d extends n.BaseError{constructor(I,{docsPath:q}){super([`Arguments (\`args\`) were provided to "${I}", but "${I}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
9
- `),{docsPath:q,name:"AbiErrorInputsNotFoundError"})}}Z.AbiErrorInputsNotFoundError=d;class l extends n.BaseError{constructor(I,{docsPath:q}={}){super([`Error ${I?`"${I}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
10
- `),{docsPath:q,name:"AbiErrorNotFoundError"})}}Z.AbiErrorNotFoundError=l;class p extends n.BaseError{constructor(I,{docsPath:q}){super([`Encoded error signature "${I}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${I}.`].join(`
11
- `),{docsPath:q,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=I}}Z.AbiErrorSignatureNotFoundError=p;class m extends n.BaseError{constructor({docsPath:I}){super("Cannot extract event signature from empty topics.",{docsPath:I,name:"AbiEventSignatureEmptyTopicsError"})}}Z.AbiEventSignatureEmptyTopicsError=m;class b extends n.BaseError{constructor(I,{docsPath:q}){super([`Encoded event signature "${I}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${I}.`].join(`
12
- `),{docsPath:q,name:"AbiEventSignatureNotFoundError"})}}Z.AbiEventSignatureNotFoundError=b;class y extends n.BaseError{constructor(I,{docsPath:q}={}){super([`Event ${I?`"${I}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
13
- `),{docsPath:q,name:"AbiEventNotFoundError"})}}Z.AbiEventNotFoundError=y;class E extends n.BaseError{constructor(I,{docsPath:q}={}){super([`Function ${I?`"${I}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
14
- `),{docsPath:q,name:"AbiFunctionNotFoundError"})}}Z.AbiFunctionNotFoundError=E;class P extends n.BaseError{constructor(I,{docsPath:q}){super([`Function "${I}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
15
- `),{docsPath:q,name:"AbiFunctionOutputsNotFoundError"})}}Z.AbiFunctionOutputsNotFoundError=P;class A extends n.BaseError{constructor(I,{docsPath:q}){super([`Encoded function signature "${I}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${I}.`].join(`
16
- `),{docsPath:q,name:"AbiFunctionSignatureNotFoundError"})}}Z.AbiFunctionSignatureNotFoundError=A;class h extends n.BaseError{constructor(I,q){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${I.type}\` in \`${(0,e.formatAbiItem)(I.abiItem)}\`, and`,`\`${q.type}\` in \`${(0,e.formatAbiItem)(q.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}Z.AbiItemAmbiguityError=h;class T extends n.BaseError{constructor({expectedSize:I,givenSize:q}){super(`Expected bytes${I}, got bytes${q}.`,{name:"BytesSizeMismatchError"})}}Z.BytesSizeMismatchError=T;class _ extends n.BaseError{constructor({abiItem:I,data:q,params:B,size:O}){super([`Data size of ${O} bytes is too small for non-indexed event parameters.`].join(`
17
- `),{metaMessages:[`Params: (${(0,e.formatAbiParams)(B,{includeName:!0})})`,`Data: ${q} (${O} 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=I,this.data=q,this.params=B,this.size=O}}Z.DecodeLogDataMismatch=_;class g extends n.BaseError{constructor({abiItem:I,param:q}){super([`Expected a topic for indexed event parameter${q.name?` "${q.name}"`:""} on event "${(0,e.formatAbiItem)(I,{includeName:!0})}".`].join(`
18
- `),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=I}}Z.DecodeLogTopicsMismatch=g;class v extends n.BaseError{constructor(I,{docsPath:q}){super([`Type "${I}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
19
- `),{docsPath:q,name:"InvalidAbiEncodingType"})}}Z.InvalidAbiEncodingTypeError=v;class j extends n.BaseError{constructor(I,{docsPath:q}){super([`Type "${I}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
20
- `),{docsPath:q,name:"InvalidAbiDecodingType"})}}Z.InvalidAbiDecodingTypeError=j;class w extends n.BaseError{constructor(I){super([`Value "${I}" is not a valid array.`].join(`
21
- `),{name:"InvalidArrayError"})}}Z.InvalidArrayError=w;class C extends n.BaseError{constructor(I){super([`"${I}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
22
- `),{name:"InvalidDefinitionTypeError"})}}Z.InvalidDefinitionTypeError=C;class S extends n.BaseError{constructor(I){super(`Type "${I}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}return Z.UnsupportedPackedAbiType=S,Z}var Rr={},ud;function im(){if(ud)return Rr;ud=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.FilterTypeNotSupportedError=void 0;const e=Q();class r extends e.BaseError{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}return Rr.FilterTypeNotSupportedError=r,Rr}var ft={},er={},Ke={},dd;function Us(){if(dd)return Ke;dd=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.InvalidBytesLengthError=Ke.SizeExceedsPaddingSizeError=Ke.SliceOffsetOutOfBoundsError=void 0;const e=Q();class r extends e.BaseError{constructor({offset:s,position:a,size:o}){super(`Slice ${a==="start"?"starting":"ending"} at offset "${s}" is out-of-bounds (size: ${o}).`,{name:"SliceOffsetOutOfBoundsError"})}}Ke.SliceOffsetOutOfBoundsError=r;class n extends e.BaseError{constructor({size:s,targetSize:a,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${s}) exceeds padding size (${a}).`,{name:"SizeExceedsPaddingSizeError"})}}Ke.SizeExceedsPaddingSizeError=n;class t extends e.BaseError{constructor({size:s,targetSize:a,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} is expected to be ${a} ${o} long, but is ${s} ${o} long.`,{name:"InvalidBytesLengthError"})}}return Ke.InvalidBytesLengthError=t,Ke}var fd;function pt(){if(fd)return er;fd=1,Object.defineProperty(er,"__esModule",{value:!0}),er.pad=r,er.padHex=n,er.padBytes=t;const e=Us();function r(i,{dir:s,size:a=32}={}){return typeof i=="string"?n(i,{dir:s,size:a}):t(i,{dir:s,size:a})}function n(i,{dir:s,size:a=32}={}){if(a===null)return i;const o=i.replace("0x","");if(o.length>a*2)throw new e.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:a,type:"hex"});return`0x${o[s==="right"?"padEnd":"padStart"](a*2,"0")}`}function t(i,{dir:s,size:a=32}={}){if(a===null)return i;if(i.length>a)throw new e.SizeExceedsPaddingSizeError({size:i.length,targetSize:a,type:"bytes"});const o=new Uint8Array(a);for(let c=0;c<a;c++){const u=s==="right";o[u?c:a-c-1]=i[u?c:i.length-c-1]}return o}return er}var Je={},Ie={},ld;function mr(){if(ld)return Ie;ld=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.SizeOverflowError=Ie.InvalidHexValueError=Ie.InvalidHexBooleanError=Ie.InvalidBytesBooleanError=Ie.IntegerOutOfRangeError=void 0;const e=Q();class r extends e.BaseError{constructor({max:o,min:c,signed:u,size:f,value:d}){super(`Number "${d}" is not in safe ${f?`${f*8}-bit ${u?"signed":"unsigned"} `:""}integer range ${o?`(${c} to ${o})`:`(above ${c})`}`,{name:"IntegerOutOfRangeError"})}}Ie.IntegerOutOfRangeError=r;class n extends e.BaseError{constructor(o){super(`Bytes value "${o}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}Ie.InvalidBytesBooleanError=n;class t extends e.BaseError{constructor(o){super(`Hex value "${o}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}Ie.InvalidHexBooleanError=t;class i extends e.BaseError{constructor(o){super(`Hex value "${o}" is an odd length (${o.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}Ie.InvalidHexValueError=i;class s extends e.BaseError{constructor({givenSize:o,maxSize:c}){super(`Size cannot exceed ${c} bytes. Given size: ${o} bytes.`,{name:"SizeOverflowError"})}}return Ie.SizeOverflowError=s,Ie}var Un={},bd;function at(){if(bd)return Un;bd=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.trim=e;function e(r,{dir:n="left"}={}){let t=typeof r=="string"?r.replace("0x",""):r,i=0;for(let s=0;s<t.length-1&&t[n==="left"?s:t.length-s-1].toString()==="0";s++)i++;return t=n==="left"?t.slice(i):t.slice(0,t.length-i),typeof r=="string"?(t.length===1&&n==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}return Un}var md;function ue(){if(md)return Je;md=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.assertSize=i,Je.fromHex=s,Je.hexToBigInt=a,Je.hexToBool=o,Je.hexToNumber=c,Je.hexToString=u;const e=mr(),r=ve(),n=at(),t=oe();function i(f,{size:d}){if((0,r.size)(f)>d)throw new e.SizeOverflowError({givenSize:(0,r.size)(f),maxSize:d})}function s(f,d){const l=typeof d=="string"?{to:d}:d,p=l.to;return p==="number"?c(f,l):p==="bigint"?a(f,l):p==="string"?u(f,l):p==="boolean"?o(f,l):(0,t.hexToBytes)(f,l)}function a(f,d={}){const{signed:l}=d;d.size&&i(f,{size:d.size});const p=BigInt(f);if(!l)return p;const m=(f.length-2)/2,b=(1n<<BigInt(m)*8n-1n)-1n;return p<=b?p:p-BigInt(`0x${"f".padStart(m*2,"f")}`)-1n}function o(f,d={}){let l=f;if(d.size&&(i(l,{size:d.size}),l=(0,n.trim)(l)),(0,n.trim)(l)==="0x00")return!1;if((0,n.trim)(l)==="0x01")return!0;throw new e.InvalidHexBooleanError(l)}function c(f,d={}){return Number(a(f,d))}function u(f,d={}){let l=(0,t.hexToBytes)(f);return d.size&&(i(l,{size:d.size}),l=(0,n.trim)(l,{dir:"right"})),new TextDecoder().decode(l)}return Je}var lt={},yd;function V(){if(yd)return lt;yd=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.toHex=i,lt.boolToHex=s,lt.bytesToHex=a,lt.numberToHex=o,lt.stringToHex=u;const e=mr(),r=pt(),n=ue(),t=Array.from({length:256},(f,d)=>d.toString(16).padStart(2,"0"));function i(f,d={}){return typeof f=="number"||typeof f=="bigint"?o(f,d):typeof f=="string"?u(f,d):typeof f=="boolean"?s(f,d):a(f,d)}function s(f,d={}){const l=`0x${Number(f)}`;return typeof d.size=="number"?((0,n.assertSize)(l,{size:d.size}),(0,r.pad)(l,{size:d.size})):l}function a(f,d={}){let l="";for(let m=0;m<f.length;m++)l+=t[f[m]];const p=`0x${l}`;return typeof d.size=="number"?((0,n.assertSize)(p,{size:d.size}),(0,r.pad)(p,{dir:"right",size:d.size})):p}function o(f,d={}){const{signed:l,size:p}=d,m=BigInt(f);let b;p?l?b=(1n<<BigInt(p)*8n-1n)-1n:b=2n**(BigInt(p)*8n)-1n:typeof f=="number"&&(b=BigInt(Number.MAX_SAFE_INTEGER));const y=typeof b=="bigint"&&l?-b-1n:0;if(b&&m>b||m<y){const P=typeof f=="bigint"?"n":"";throw new e.IntegerOutOfRangeError({max:b?`${b}${P}`:void 0,min:`${y}${P}`,signed:l,size:p,value:`${f}${P}`})}const E=`0x${(l&&m<0?(1n<<BigInt(p*8))+BigInt(m):m).toString(16)}`;return p?(0,r.pad)(E,{size:p}):E}const c=new TextEncoder;function u(f,d={}){const l=c.encode(f);return a(l,d)}return lt}var pd;function oe(){if(pd)return ft;pd=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.toBytes=a,ft.boolToBytes=o,ft.hexToBytes=f,ft.numberToBytes=d,ft.stringToBytes=l;const e=Q(),r=_e(),n=pt(),t=ue(),i=V(),s=new TextEncoder;function a(p,m={}){return typeof p=="number"||typeof p=="bigint"?d(p,m):typeof p=="boolean"?o(p,m):(0,r.isHex)(p)?f(p,m):l(p,m)}function o(p,m={}){const b=new Uint8Array(1);return b[0]=Number(p),typeof m.size=="number"?((0,t.assertSize)(b,{size:m.size}),(0,n.pad)(b,{size:m.size})):b}const c={zero:48,nine:57,A:65,F:70,a:97,f:102};function u(p){if(p>=c.zero&&p<=c.nine)return p-c.zero;if(p>=c.A&&p<=c.F)return p-(c.A-10);if(p>=c.a&&p<=c.f)return p-(c.a-10)}function f(p,m={}){let b=p;m.size&&((0,t.assertSize)(b,{size:m.size}),b=(0,n.pad)(b,{dir:"right",size:m.size}));let y=b.slice(2);y.length%2&&(y=`0${y}`);const E=y.length/2,P=new Uint8Array(E);for(let A=0,h=0;A<E;A++){const T=u(y.charCodeAt(h++)),_=u(y.charCodeAt(h++));if(T===void 0||_===void 0)throw new e.BaseError(`Invalid byte sequence ("${y[h-2]}${y[h-1]}" in "${y}").`);P[A]=T*16+_}return P}function d(p,m){const b=(0,i.numberToHex)(p,m);return f(b)}function l(p,m={}){const b=s.encode(p);return typeof m.size=="number"?((0,t.assertSize)(b,{size:m.size}),(0,n.pad)(b,{dir:"right",size:m.size})):b}return ft}var Ln={},gd;function je(){if(gd)return Ln;gd=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.keccak256=i;const e=op(),r=_e(),n=oe(),t=V();function i(s,a){const o=a||"hex",c=(0,e.keccak_256)((0,r.isHex)(s,{strict:!1})?(0,n.toBytes)(s):s);return o==="bytes"?c:(0,t.toHex)(c)}return Ln}var Ir={},Gn={},Vn={},hd;function lp(){if(hd)return Vn;hd=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.hashSignature=t;const e=oe(),r=je(),n=i=>(0,r.keccak256)((0,e.toBytes)(i));function t(i){return n(i)}return Vn}var Cr={},Wn={},_d;function bp(){if(_d)return Wn;_d=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.normalizeSignature=r;const e=Q();function r(n){let t=!0,i="",s=0,a="",o=!1;for(let c=0;c<n.length;c++){const u=n[c];if(["(",")",","].includes(u)&&(t=!0),u==="("&&s++,u===")"&&s--,!!t){if(s===0){if(u===" "&&["event","function",""].includes(a))a="";else if(a+=u,u===")"){o=!0;break}continue}if(u===" "){n[c-1]!==","&&i!==","&&i!==",("&&(i="",t=!1);continue}a+=u,i+=u}}if(!o)throw new e.BaseError("Unable to normalize signature.");return a}return Wn}var vd;function Jc(){if(vd)return Cr;vd=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.toSignature=void 0;const e=zt(),r=bp(),n=t=>{const i=(()=>typeof t=="string"?t:(0,e.formatAbiItem)(t))();return(0,r.normalizeSignature)(i)};return Cr.toSignature=n,Cr}var jd;function Ls(){if(jd)return Gn;jd=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.toSignatureHash=n;const e=lp(),r=Jc();function n(t){return(0,e.hashSignature)((0,r.toSignature)(t))}return Gn}var Ed;function yr(){if(Ed)return Ir;Ed=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.toEventSelector=void 0;const e=Ls();return Ir.toEventSelector=e.toSignatureHash,Ir}var Sr={},Or={},Pd;function ze(){if(Pd)return Or;Pd=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.InvalidAddressError=void 0;const e=Q();class r extends e.BaseError{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}return Or.InvalidAddressError=r,Or}var Sc={},Br={},Td;function Dt(){if(Td)return Br;Td=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.LruMap=void 0;class e extends Map{constructor(n){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=n}get(n){const t=super.get(n);return super.has(n)&&t!==void 0&&(this.delete(n),super.set(n,t)),t}set(n,t){if(super.set(n,t),this.maxSize&&this.size>this.maxSize){const i=this.keys().next().value;i&&this.delete(i)}return this}}return Br.LruMap=e,Br}var qr={},wd;function Be(){if(wd)return qr;wd=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.checksumAddress=a,qr.getAddress=o;const e=ze(),r=oe(),n=je(),t=Dt(),i=Ee(),s=new t.LruMap(8192);function a(c,u){if(s.has(`${c}.${u}`))return s.get(`${c}.${u}`);const f=u?`${u}${c.toLowerCase()}`:c.substring(2).toLowerCase(),d=(0,n.keccak256)((0,r.stringToBytes)(f),"bytes"),l=(u?f.substring(`${u}0x`.length):f).split("");for(let m=0;m<40;m+=2)d[m>>1]>>4>=8&&l[m]&&(l[m]=l[m].toUpperCase()),(d[m>>1]&15)>=8&&l[m+1]&&(l[m+1]=l[m+1].toUpperCase());const p=`0x${l.join("")}`;return s.set(`${c}.${u}`,p),p}function o(c,u){if(!(0,i.isAddress)(c,{strict:!1}))throw new e.InvalidAddressError({address:c});return a(c,u)}return qr}var Ad;function Ee(){return Ad||(Ad=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isAddressCache=void 0,e.isAddress=i;const r=Dt(),n=Be(),t=/^0x[a-fA-F0-9]{40}$/;e.isAddressCache=new r.LruMap(8192);function i(s,a){const{strict:o=!0}=a??{},c=`${s}.${o}`;if(e.isAddressCache.has(c))return e.isAddressCache.get(c);const u=(()=>t.test(s)?s.toLowerCase()===s?!0:o?(0,n.checksumAddress)(s)===s:!0:!1)();return e.isAddressCache.set(c,u),u}}(Sc)),Sc}var tr={},Rd;function le(){if(Rd)return tr;Rd=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.concat=e,tr.concatBytes=r,tr.concatHex=n;function e(t){return typeof t[0]=="string"?n(t):r(t)}function r(t){let i=0;for(const o of t)i+=o.length;const s=new Uint8Array(i);let a=0;for(const o of t)s.set(o,a),a+=o.length;return s}function n(t){return`0x${t.reduce((i,s)=>i+s.replace("0x",""),"")}`}return tr}var rr={},Id;function Me(){if(Id)return rr;Id=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.slice=t,rr.sliceBytes=a,rr.sliceHex=o;const e=Us(),r=_e(),n=ve();function t(c,u,f,{strict:d}={}){return(0,r.isHex)(c,{strict:!1})?o(c,u,f,{strict:d}):a(c,u,f,{strict:d})}function i(c,u){if(typeof u=="number"&&u>0&&u>(0,n.size)(c)-1)throw new e.SliceOffsetOutOfBoundsError({offset:u,position:"start",size:(0,n.size)(c)})}function s(c,u,f){if(typeof u=="number"&&typeof f=="number"&&(0,n.size)(c)!==f-u)throw new e.SliceOffsetOutOfBoundsError({offset:f,position:"end",size:(0,n.size)(c)})}function a(c,u,f,{strict:d}={}){i(c,u);const l=c.slice(u,f);return d&&s(l,u,f),l}function o(c,u,f,{strict:d}={}){i(c,u);const l=`0x${c.replace("0x","").slice((u??0)*2,(f??c.length)*2)}`;return d&&s(l,u,f),l}return rr}var Ze={},Cd;function Gs(){return Cd||(Cd=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.integerRegex=Ze.bytesRegex=Ze.arrayRegex=void 0,Ze.arrayRegex=/^(.*)\[([0-9]*)\]$/,Ze.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ze.integerRegex=/^(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)?$/),Ze}var Sd;function De(){if(Sd)return Sr;Sd=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.encodeAbiParameters=d,Sr.getArrayComponents=_;const e=se(),r=ze(),n=Q(),t=mr(),i=Ee(),s=le(),a=pt(),o=ve(),c=Me(),u=V(),f=Gs();function d(g,v){if(g.length!==v.length)throw new e.AbiEncodingLengthMismatchError({expectedLength:g.length,givenLength:v.length});const j=l({params:g,values:v}),w=m(j);return w.length===0?"0x":w}function l({params:g,values:v}){const j=[];for(let w=0;w<g.length;w++)j.push(p({param:g[w],value:v[w]}));return j}function p({param:g,value:v}){const j=_(g.type);if(j){const[w,C]=j;return y(v,{length:w,param:{...g,type:C}})}if(g.type==="tuple")return T(v,{param:g});if(g.type==="address")return b(v);if(g.type==="bool")return P(v);if(g.type.startsWith("uint")||g.type.startsWith("int")){const w=g.type.startsWith("int"),[,,C="256"]=f.integerRegex.exec(g.type)??[];return A(v,{signed:w,size:Number(C)})}if(g.type.startsWith("bytes"))return E(v,{param:g});if(g.type==="string")return h(v);throw new e.InvalidAbiEncodingTypeError(g.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function m(g){let v=0;for(let S=0;S<g.length;S++){const{dynamic:R,encoded:I}=g[S];R?v+=32:v+=(0,o.size)(I)}const j=[],w=[];let C=0;for(let S=0;S<g.length;S++){const{dynamic:R,encoded:I}=g[S];R?(j.push((0,u.numberToHex)(v+C,{size:32})),w.push(I),C+=(0,o.size)(I)):j.push(I)}return(0,s.concat)([...j,...w])}function b(g){if(!(0,i.isAddress)(g))throw new r.InvalidAddressError({address:g});return{dynamic:!1,encoded:(0,a.padHex)(g.toLowerCase())}}function y(g,{length:v,param:j}){const w=v===null;if(!Array.isArray(g))throw new e.InvalidArrayError(g);if(!w&&g.length!==v)throw new e.AbiEncodingArrayLengthMismatchError({expectedLength:v,givenLength:g.length,type:`${j.type}[${v}]`});let C=!1;const S=[];for(let R=0;R<g.length;R++){const I=p({param:j,value:g[R]});I.dynamic&&(C=!0),S.push(I)}if(w||C){const R=m(S);if(w){const I=(0,u.numberToHex)(S.length,{size:32});return{dynamic:!0,encoded:S.length>0?(0,s.concat)([I,R]):I}}if(C)return{dynamic:!0,encoded:R}}return{dynamic:!1,encoded:(0,s.concat)(S.map(({encoded:R})=>R))}}function E(g,{param:v}){const[,j]=v.type.split("bytes"),w=(0,o.size)(g);if(!j){let C=g;return w%32!==0&&(C=(0,a.padHex)(C,{dir:"right",size:Math.ceil((g.length-2)/2/32)*32})),{dynamic:!0,encoded:(0,s.concat)([(0,a.padHex)((0,u.numberToHex)(w,{size:32})),C])}}if(w!==Number.parseInt(j,10))throw new e.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(j,10),value:g});return{dynamic:!1,encoded:(0,a.padHex)(g,{dir:"right"})}}function P(g){if(typeof g!="boolean")throw new n.BaseError(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,a.padHex)((0,u.boolToHex)(g))}}function A(g,{signed:v,size:j=256}){if(typeof j=="number"){const w=2n**(BigInt(j)-(v?1n:0n))-1n,C=v?-w-1n:0n;if(g>w||g<C)throw new t.IntegerOutOfRangeError({max:w.toString(),min:C.toString(),signed:v,size:j/8,value:g.toString()})}return{dynamic:!1,encoded:(0,u.numberToHex)(g,{size:32,signed:v})}}function h(g){const v=(0,u.stringToHex)(g),j=Math.ceil((0,o.size)(v)/32),w=[];for(let C=0;C<j;C++)w.push((0,a.padHex)((0,c.slice)(v,C*32,(C+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.concat)([(0,a.padHex)((0,u.numberToHex)((0,o.size)(v),{size:32})),...w])}}function T(g,{param:v}){let j=!1;const w=[];for(let C=0;C<v.components.length;C++){const S=v.components[C],R=Array.isArray(g)?C:S.name,I=p({param:S,value:g[R]});w.push(I),I.dynamic&&(j=!0)}return{dynamic:j,encoded:j?m(w):(0,s.concat)(w.map(({encoded:C})=>C))}}function _(g){const v=g.match(/^(.*)\[(\d+)?\]$/);return v?[v[2]?Number(v[2]):null,v[1]]:void 0}return Sr}var nr={},Fr={},Od;function Ut(){if(Od)return Fr;Od=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.toFunctionSelector=void 0;const e=Me(),r=Ls(),n=t=>(0,e.slice)((0,r.toSignatureHash)(t),0,4);return Fr.toFunctionSelector=n,Fr}var Bd;function it(){if(Bd)return nr;Bd=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.getAbiItem=s,nr.isArgOfType=a,nr.getAmbiguousTypes=o;const e=se(),r=_e(),n=Ee(),t=yr(),i=Ut();function s(c){const{abi:u,args:f=[],name:d}=c,l=(0,r.isHex)(d,{strict:!1}),p=u.filter(b=>l?b.type==="function"?(0,i.toFunctionSelector)(b)===d:b.type==="event"?(0,t.toEventSelector)(b)===d:!1:"name"in b&&b.name===d);if(p.length===0)return;if(p.length===1)return p[0];let m;for(const b of p){if(!("inputs"in b))continue;if(!f||f.length===0){if(!b.inputs||b.inputs.length===0)return b;continue}if(!b.inputs||b.inputs.length===0||b.inputs.length!==f.length)continue;if(f.every((E,P)=>{const A="inputs"in b&&b.inputs[P];return A?a(E,A):!1})){if(m&&"inputs"in m&&m.inputs){const E=o(b.inputs,m.inputs,f);if(E)throw new e.AbiItemAmbiguityError({abiItem:b,type:E[0]},{abiItem:m,type:E[1]})}m=b}}return m||p[0]}function a(c,u){const f=typeof c,d=u.type;switch(d){case"address":return(0,n.isAddress)(c,{strict:!1});case"bool":return f==="boolean";case"function":return f==="string";case"string":return f==="string";default:return d==="tuple"&&"components"in u?Object.values(u.components).every((l,p)=>a(Object.values(c)[p],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)?$/.test(d)?f==="number"||f==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(d)?f==="string"||c instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(d)?Array.isArray(c)&&c.every(l=>a(l,{...u,type:d.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function o(c,u,f){for(const d in c){const l=c[d],p=u[d];if(l.type==="tuple"&&p.type==="tuple"&&"components"in l&&"components"in p)return o(l.components,p.components,f[d]);const m=[l.type,p.type];if((()=>m.includes("address")&&m.includes("bytes20")?!0:m.includes("address")&&m.includes("string")?(0,n.isAddress)(f[d],{strict:!1}):m.includes("address")&&m.includes("bytes")?(0,n.isAddress)(f[d],{strict:!1}):!1)())return m}}return nr}var qd;function Lt(){if(qd)return $n;qd=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.encodeEventTopics=u;const e=se(),r=im(),n=oe(),t=je(),i=yr(),s=De(),a=ot(),o=it(),c="/docs/contract/encodeEventTopics";function u(d){var A;const{abi:l,eventName:p,args:m}=d;let b=l[0];if(p){const h=(0,o.getAbiItem)({abi:l,name:p});if(!h)throw new e.AbiEventNotFoundError(p,{docsPath:c});b=h}if(b.type!=="event")throw new e.AbiEventNotFoundError(void 0,{docsPath:c});const y=(0,a.formatAbiItem)(b),E=(0,i.toEventSelector)(y);let P=[];if(m&&"inputs"in b){const h=(A=b.inputs)==null?void 0:A.filter(_=>"indexed"in _&&_.indexed),T=Array.isArray(m)?m:Object.values(m).length>0?(h==null?void 0:h.map(_=>m[_.name]))??[]:[];T.length>0&&(P=(h==null?void 0:h.map((_,g)=>Array.isArray(T[g])?T[g].map((v,j)=>f({param:_,value:T[g][j]})):typeof T[g]<"u"&&T[g]!==null?f({param:_,value:T[g]}):null))??[])}return[E,...P]}function f({param:d,value:l}){if(d.type==="string"||d.type==="bytes")return(0,t.keccak256)((0,n.toBytes)(l));if(d.type==="tuple"||d.type.match(/^(.*)\[(\d+)?\]$/))throw new r.FilterTypeNotSupportedError(d.type);return(0,s.encodeAbiParameters)([d],[l])}return $n}var Kn={},Fd;function Vs(){if(Fd)return Kn;Fd=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.createFilterRequestScope=e;function e(r,{method:n}){var i,s;const t={};return r.transport.type==="fallback"&&((s=(i=r.transport).onResponse)==null||s.call(i,({method:a,response:o,status:c,transport:u})=>{c==="success"&&n===a&&(t[o]=u.request)})),a=>t[a]||r.request}return Kn}var Md;function Zc(){if(Md)return xn;Md=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.createContractEventFilter=t;const e=Lt(),r=V(),n=Vs();async function t(i,s){const{address:a,abi:o,args:c,eventName:u,fromBlock:f,strict:d,toBlock:l}=s,p=(0,n.createFilterRequestScope)(i,{method:"eth_newFilter"}),m=u?(0,e.encodeEventTopics)({abi:o,args:c,eventName:u}):void 0,b=await i.request({method:"eth_newFilter",params:[{address:a,fromBlock:typeof f=="bigint"?(0,r.numberToHex)(f):f,toBlock:typeof l=="bigint"?(0,r.numberToHex)(l):l,topics:m}]});return{abi:o,args:c,eventName:u,id:b,request:p(b),strict:!!d,type:"event"}}return xn}var Jn={},Zn={},kd;function ce(){if(kd)return Zn;kd=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.parseAccount=e;function e(r){return typeof r=="string"?{address:r,type:"json-rpc"}:r}return Zn}var Yn={},Xn={},Nd;function sm(){if(Nd)return Xn;Nd=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.prepareEncodeFunctionData=s;const e=se(),r=Ut(),n=ot(),t=it(),i="/docs/contract/encodeFunctionData";function s(a){const{abi:o,args:c,functionName:u}=a;let f=o[0];if(u){const d=(0,t.getAbiItem)({abi:o,args:c,name:u});if(!d)throw new e.AbiFunctionNotFoundError(u,{docsPath:i});f=d}if(f.type!=="function")throw new e.AbiFunctionNotFoundError(void 0,{docsPath:i});return{abi:[f],functionName:(0,r.toFunctionSelector)((0,n.formatAbiItem)(f))}}return Xn}var Hd;function Pe(){if(Hd)return Yn;Hd=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.encodeFunctionData=t;const e=le(),r=De(),n=sm();function t(i){const{args:s}=i,{abi:a,functionName:o}=(()=>{var d;return i.abi.length===1&&((d=i.functionName)!=null&&d.startsWith("0x"))?i:(0,n.prepareEncodeFunctionData)(i)})(),c=a[0],u=o,f="inputs"in c&&c.inputs?(0,r.encodeAbiParameters)(c.inputs,s??[]):void 0;return(0,e.concatHex)([u,f??"0x"])}return Yn}var Qn={},ge={},Ye={},xd;function Yc(){return xd||(xd=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.solidityPanic=Ye.solidityError=Ye.panicReasons=void 0,Ye.panicReasons={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."},Ye.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Ye.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}),Ye}var eo={},to={},ro={},Xe={},$d;function cm(){if($d)return Xe;$d=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.RecursiveReadLimitExceededError=Xe.PositionOutOfBoundsError=Xe.NegativeOffsetError=void 0;const e=Q();class r extends e.BaseError{constructor({offset:s}){super(`Offset \`${s}\` cannot be negative.`,{name:"NegativeOffsetError"})}}Xe.NegativeOffsetError=r;class n extends e.BaseError{constructor({length:s,position:a}){super(`Position \`${a}\` is out of bounds (\`0 < position < ${s}\`).`,{name:"PositionOutOfBoundsError"})}}Xe.PositionOutOfBoundsError=n;class t extends e.BaseError{constructor({count:s,limit:a}){super(`Recursive read limit of \`${a}\` exceeded (recursive read count: \`${s}\`).`,{name:"RecursiveReadLimitExceededError"})}}return Xe.RecursiveReadLimitExceededError=t,Xe}var zd;function on(){if(zd)return ro;zd=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.createCursor=n;const e=cm(),r={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new e.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new e.PositionOutOfBoundsError({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new e.NegativeOffsetError({offset:t});const i=this.position-t;this.assertPosition(i),this.position=i},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new e.NegativeOffsetError({offset:t});const i=this.position+t;this.assertPosition(i),this.position=i},inspectByte(t){const i=t??this.position;return this.assertPosition(i),this.bytes[i]},inspectBytes(t,i){const s=i??this.position;return this.assertPosition(s+t-1),this.bytes.subarray(s,s+t)},inspectUint8(t){const i=t??this.position;return this.assertPosition(i),this.bytes[i]},inspectUint16(t){const i=t??this.position;return this.assertPosition(i+1),this.dataView.getUint16(i)},inspectUint24(t){const i=t??this.position;return this.assertPosition(i+2),(this.dataView.getUint16(i)<<8)+this.dataView.getUint8(i+2)},inspectUint32(t){const i=t??this.position;return this.assertPosition(i+3),this.dataView.getUint32(i)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,i){this.assertReadLimit(),this._touch();const s=this.inspectBytes(t);return this.position+=i??t,s},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const i=this.position;return this.assertPosition(t),this.position=t,()=>this.position=i},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function n(t,{recursiveReadLimit:i=8192}={}){const s=Object.create(r);return s.bytes=t,s.dataView=new DataView(t.buffer??t,t.byteOffset,t.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=i,s}return ro}var bt={},Dd;function Xc(){if(Dd)return bt;Dd=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.fromBytes=i,bt.bytesToBigInt=s,bt.bytesToBool=a,bt.bytesToNumber=o,bt.bytesToString=c;const e=mr(),r=at(),n=ue(),t=V();function i(u,f){const d=typeof f=="string"?{to:f}:f,l=d.to;return l==="number"?o(u,d):l==="bigint"?s(u,d):l==="boolean"?a(u,d):l==="string"?c(u,d):(0,t.bytesToHex)(u,d)}function s(u,f={}){typeof f.size<"u"&&(0,n.assertSize)(u,{size:f.size});const d=(0,t.bytesToHex)(u,f);return(0,n.hexToBigInt)(d,f)}function a(u,f={}){let d=u;if(typeof f.size<"u"&&((0,n.assertSize)(d,{size:f.size}),d=(0,r.trim)(d)),d.length>1||d[0]>1)throw new e.InvalidBytesBooleanError(d);return!!d[0]}function o(u,f={}){typeof f.size<"u"&&(0,n.assertSize)(u,{size:f.size});const d=(0,t.bytesToHex)(u,f);return(0,n.hexToNumber)(d,f)}function c(u,f={}){let d=u;return typeof f.size<"u"&&((0,n.assertSize)(d,{size:f.size}),d=(0,r.trim)(d,{dir:"right"})),new TextDecoder().decode(d)}return bt}var Ud;function gt(){if(Ud)return to;Ud=1,Object.defineProperty(to,"__esModule",{value:!0}),to.decodeAbiParameters=f;const e=se(),r=Be(),n=on(),t=ve(),i=Me(),s=at(),a=Xc(),o=oe(),c=V(),u=De();function f(_,g){const v=typeof g=="string"?(0,o.hexToBytes)(g):g,j=(0,n.createCursor)(v);if((0,t.size)(v)===0&&_.length>0)throw new e.AbiDecodingZeroDataError;if((0,t.size)(g)&&(0,t.size)(g)<32)throw new e.AbiDecodingDataSizeTooSmallError({data:typeof g=="string"?g:(0,c.bytesToHex)(g),params:_,size:(0,t.size)(g)});let w=0;const C=[];for(let S=0;S<_.length;++S){const R=_[S];j.setPosition(w);const[I,q]=d(j,R,{staticPosition:0});w+=q,C.push(I)}return C}function d(_,g,{staticPosition:v}){const j=(0,u.getArrayComponents)(g.type);if(j){const[w,C]=j;return b(_,{...g,type:C},{length:w,staticPosition:v})}if(g.type==="tuple")return A(_,g,{staticPosition:v});if(g.type==="address")return m(_);if(g.type==="bool")return y(_);if(g.type.startsWith("bytes"))return E(_,g,{staticPosition:v});if(g.type.startsWith("uint")||g.type.startsWith("int"))return P(_,g);if(g.type==="string")return h(_,{staticPosition:v});throw new e.InvalidAbiDecodingTypeError(g.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const l=32,p=32;function m(_){const g=_.readBytes(32);return[(0,r.checksumAddress)((0,c.bytesToHex)((0,i.sliceBytes)(g,-20))),32]}function b(_,g,{length:v,staticPosition:j}){if(!v){const S=(0,a.bytesToNumber)(_.readBytes(p)),R=j+S,I=R+l;_.setPosition(R);const q=(0,a.bytesToNumber)(_.readBytes(l)),B=T(g);let O=0;const M=[];for(let k=0;k<q;++k){_.setPosition(I+(B?k*32:O));const[$,z]=d(_,g,{staticPosition:I});O+=z,M.push($)}return _.setPosition(j+32),[M,32]}if(T(g)){const S=(0,a.bytesToNumber)(_.readBytes(p)),R=j+S,I=[];for(let q=0;q<v;++q){_.setPosition(R+q*32);const[B]=d(_,g,{staticPosition:R});I.push(B)}return _.setPosition(j+32),[I,32]}let w=0;const C=[];for(let S=0;S<v;++S){const[R,I]=d(_,g,{staticPosition:j+w});w+=I,C.push(R)}return[C,w]}function y(_){return[(0,a.bytesToBool)(_.readBytes(32),{size:32}),32]}function E(_,g,{staticPosition:v}){const[j,w]=g.type.split("bytes");if(!w){const S=(0,a.bytesToNumber)(_.readBytes(32));_.setPosition(v+S);const R=(0,a.bytesToNumber)(_.readBytes(32));if(R===0)return _.setPosition(v+32),["0x",32];const I=_.readBytes(R);return _.setPosition(v+32),[(0,c.bytesToHex)(I),32]}return[(0,c.bytesToHex)(_.readBytes(Number.parseInt(w,10),32)),32]}function P(_,g){const v=g.type.startsWith("int"),j=Number.parseInt(g.type.split("int")[1]||"256",10),w=_.readBytes(32);return[j>48?(0,a.bytesToBigInt)(w,{signed:v}):(0,a.bytesToNumber)(w,{signed:v}),32]}function A(_,g,{staticPosition:v}){const j=g.components.length===0||g.components.some(({name:S})=>!S),w=j?[]:{};let C=0;if(T(g)){const S=(0,a.bytesToNumber)(_.readBytes(p)),R=v+S;for(let I=0;I<g.components.length;++I){const q=g.components[I];_.setPosition(R+C);const[B,O]=d(_,q,{staticPosition:R});C+=O,w[j?I:q==null?void 0:q.name]=B}return _.setPosition(v+32),[w,32]}for(let S=0;S<g.components.length;++S){const R=g.components[S],[I,q]=d(_,R,{staticPosition:v});w[j?S:R==null?void 0:R.name]=I,C+=q}return[w,C]}function h(_,{staticPosition:g}){const v=(0,a.bytesToNumber)(_.readBytes(32)),j=g+v;_.setPosition(j);const w=(0,a.bytesToNumber)(_.readBytes(32));if(w===0)return _.setPosition(g+32),["",32];const C=_.readBytes(w,32),S=(0,a.bytesToString)((0,s.trim)(C));return _.setPosition(g+32),[S,32]}function T(_){var j;const{type:g}=_;if(g==="string"||g==="bytes"||g.endsWith("[]"))return!0;if(g==="tuple")return(j=_.components)==null?void 0:j.some(T);const v=(0,u.getArrayComponents)(_.type);return!!(v&&T({..._,type:v[1]}))}return to}var Ld;function Ws(){if(Ld)return eo;Ld=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.decodeErrorResult=a;const e=Yc(),r=se(),n=Me(),t=Ut(),i=gt(),s=ot();function a(o){const{abi:c,data:u}=o,f=(0,n.slice)(u,0,4);if(f==="0x")throw new r.AbiDecodingZeroDataError;const l=[...c||[],e.solidityError,e.solidityPanic].find(p=>p.type==="error"&&f===(0,t.toFunctionSelector)((0,s.formatAbiItem)(p)));if(!l)throw new r.AbiErrorSignatureNotFoundError(f,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,i.decodeAbiParameters)(l.inputs,(0,n.slice)(u,4)):void 0,errorName:l.name}}return eo}var no={},Mr={},Gd;function me(){if(Gd)return Mr;Gd=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.stringify=void 0;const e=(r,n,t)=>JSON.stringify(r,(i,s)=>{const a=typeof s=="bigint"?s.toString():s;return typeof n=="function"?n(i,a):a},t);return Mr.stringify=e,Mr}var Vd;function um(){if(Vd)return no;Vd=1,Object.defineProperty(no,"__esModule",{value:!0}),no.formatAbiItemWithArgs=r;const e=me();function r({abiItem:n,args:t,includeFunctionName:i=!0,includeName:s=!1}){if("name"in n&&"inputs"in n&&n.inputs)return`${i?n.name:""}(${n.inputs.map((a,o)=>`${s&&a.name?`${a.name}: `:""}${typeof t[o]=="object"?(0,e.stringify)(t[o]):t[o]}`).join(", ")})`}return no}var oo={},Qe={},Wd;function an(){return Wd||(Wd=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.weiUnits=Qe.gweiUnits=Qe.etherUnits=void 0,Qe.etherUnits={gwei:9,wei:18},Qe.gweiUnits={ether:-9,wei:9},Qe.weiUnits={ether:-18,gwei:-9}),Qe}var ao={},Kd;function Ks(){if(Kd)return ao;Kd=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.formatUnits=e;function e(r,n){let t=r.toString();const i=t.startsWith("-");i&&(t=t.slice(1)),t=t.padStart(n,"0");let[s,a]=[t.slice(0,t.length-n),t.slice(t.length-n)];return a=a.replace(/(0+)$/,""),`${i?"-":""}${s||"0"}${a?`.${a}`:""}`}return ao}var Jd;function sn(){if(Jd)return oo;Jd=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.formatEther=n;const e=an(),r=Ks();function n(t,i="wei"){return(0,r.formatUnits)(t,e.etherUnits[i])}return oo}var io={},Zd;function Gt(){if(Zd)return io;Zd=1,Object.defineProperty(io,"__esModule",{value:!0}),io.formatGwei=n;const e=an(),r=Ks();function n(t,i="wei"){return(0,r.formatUnits)(t,e.gweiUnits[i])}return io}var et={},Yd;function Qc(){if(Yd)return et;Yd=1,Object.defineProperty(et,"__esModule",{value:!0}),et.StateAssignmentConflictError=et.AccountStateConflictError=void 0,et.prettyStateMapping=t,et.prettyStateOverride=i;const e=Q();class r extends e.BaseError{constructor({address:a}){super(`State for account "${a}" is set multiple times.`,{name:"AccountStateConflictError"})}}et.AccountStateConflictError=r;class n extends e.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}et.StateAssignmentConflictError=n;function t(s){return s.reduce((a,{slot:o,value:c})=>`${a} ${o}: ${c}
23
- `,"")}function i(s){return s.reduce((a,{address:o,...c})=>{let u=`${a} ${o}:
24
- `;return c.nonce&&(u+=` nonce: ${c.nonce}
25
- `),c.balance&&(u+=` balance: ${c.balance}
26
- `),c.code&&(u+=` code: ${c.code}
27
- `),c.state&&(u+=` state:
28
- `,u+=t(c.state)),c.stateDiff&&(u+=` stateDiff:
29
- `,u+=t(c.stateDiff)),u},` State Override:
30
- `).slice(0,-1)}return et}var ie={},Xd;function Te(){if(Xd)return ie;Xd=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.WaitForTransactionReceiptTimeoutError=ie.TransactionReceiptRevertedError=ie.TransactionReceiptNotFoundError=ie.TransactionNotFoundError=ie.TransactionExecutionError=ie.InvalidStorageKeySizeError=ie.InvalidSerializedTransactionError=ie.InvalidSerializedTransactionTypeError=ie.InvalidSerializableTransactionError=ie.InvalidLegacyVError=ie.FeeConflictError=void 0,ie.prettyPrint=t;const e=sn(),r=Gt(),n=Q();function t(b){const y=Object.entries(b).map(([P,A])=>A===void 0||A===!1?null:[P,A]).filter(Boolean),E=y.reduce((P,[A])=>Math.max(P,A.length),0);return y.map(([P,A])=>` ${`${P}:`.padEnd(E+1)} ${A}`).join(`
31
- `)}class i extends n.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
32
- `),{name:"FeeConflictError"})}}ie.FeeConflictError=i;class s extends n.BaseError{constructor({v:y}){super(`Invalid \`v\` value "${y}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}ie.InvalidLegacyVError=s;class a extends n.BaseError{constructor({transaction:y}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",t(y),"}","","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"})}}ie.InvalidSerializableTransactionError=a;class o extends n.BaseError{constructor({serializedType:y}){super(`Serialized transaction type "${y}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=y}}ie.InvalidSerializedTransactionTypeError=o;class c extends n.BaseError{constructor({attributes:y,serializedTransaction:E,type:P}){const A=Object.entries(y).map(([h,T])=>typeof T>"u"?h:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${P}" was provided.`,{metaMessages:[`Serialized Transaction: "${E}"`,A.length>0?`Missing Attributes: ${A.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=E,this.type=P}}ie.InvalidSerializedTransactionError=c;class u extends n.BaseError{constructor({storageKey:y}){super(`Size for storage key "${y}" is invalid. Expected 32 bytes. Got ${Math.floor((y.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}ie.InvalidStorageKeySizeError=u;class f extends n.BaseError{constructor(y,{account:E,docsPath:P,chain:A,data:h,gas:T,gasPrice:_,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:j,to:w,value:C}){var R;const S=t({chain:A&&`${A==null?void 0:A.name} (id: ${A==null?void 0:A.id})`,from:E==null?void 0:E.address,to:w,value:typeof C<"u"&&`${(0,e.formatEther)(C)} ${((R=A==null?void 0:A.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:h,gas:T,gasPrice:typeof _<"u"&&`${(0,r.formatGwei)(_)} gwei`,maxFeePerGas:typeof g<"u"&&`${(0,r.formatGwei)(g)} gwei`,maxPriorityFeePerGas:typeof v<"u"&&`${(0,r.formatGwei)(v)} gwei`,nonce:j});super(y.shortMessage,{cause:y,docsPath:P,metaMessages:[...y.metaMessages?[...y.metaMessages," "]:[],"Request Arguments:",S].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=y}}ie.TransactionExecutionError=f;class d extends n.BaseError{constructor({blockHash:y,blockNumber:E,blockTag:P,hash:A,index:h}){let T="Transaction";P&&h!==void 0&&(T=`Transaction at block time "${P}" at index "${h}"`),y&&h!==void 0&&(T=`Transaction at block hash "${y}" at index "${h}"`),E&&h!==void 0&&(T=`Transaction at block number "${E}" at index "${h}"`),A&&(T=`Transaction with hash "${A}"`),super(`${T} could not be found.`,{name:"TransactionNotFoundError"})}}ie.TransactionNotFoundError=d;class l extends n.BaseError{constructor({hash:y}){super(`Transaction receipt with hash "${y}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}ie.TransactionReceiptNotFoundError=l;class p extends n.BaseError{constructor({receipt:y}){super(`Transaction with hash "${y.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=y}}ie.TransactionReceiptRevertedError=p;class m extends n.BaseError{constructor({hash:y}){super(`Timed out while waiting for transaction with hash "${y}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}return ie.WaitForTransactionReceiptTimeoutError=m,ie}var Ft={},Qd;function eu(){if(Qd)return Ft;Qd=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.getUrl=Ft.getContractAddress=void 0;const e=n=>n;Ft.getContractAddress=e;const r=n=>n;return Ft.getUrl=r,Ft}var ef;function ht(){if(ef)return ge;ef=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.RawContractError=ge.CounterfactualDeploymentFailedError=ge.ContractFunctionZeroDataError=ge.ContractFunctionRevertedError=ge.ContractFunctionExecutionError=ge.CallExecutionError=void 0;const e=ce(),r=Yc(),n=Ws(),t=ot(),i=um(),s=it(),a=sn(),o=Gt(),c=se(),u=Q(),f=Qc(),d=Te(),l=eu();class p extends u.BaseError{constructor(h,{account:T,docsPath:_,chain:g,data:v,gas:j,gasPrice:w,maxFeePerGas:C,maxPriorityFeePerGas:S,nonce:R,to:I,value:q,stateOverride:B}){var k;const O=T?(0,e.parseAccount)(T):void 0;let M=(0,d.prettyPrint)({from:O==null?void 0:O.address,to:I,value:typeof q<"u"&&`${(0,a.formatEther)(q)} ${((k=g==null?void 0:g.nativeCurrency)==null?void 0:k.symbol)||"ETH"}`,data:v,gas:j,gasPrice:typeof w<"u"&&`${(0,o.formatGwei)(w)} gwei`,maxFeePerGas:typeof C<"u"&&`${(0,o.formatGwei)(C)} gwei`,maxPriorityFeePerGas:typeof S<"u"&&`${(0,o.formatGwei)(S)} gwei`,nonce:R});B&&(M+=`
33
- ${(0,f.prettyStateOverride)(B)}`),super(h.shortMessage,{cause:h,docsPath:_,metaMessages:[...h.metaMessages?[...h.metaMessages," "]:[],"Raw Call Arguments:",M].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=h}}ge.CallExecutionError=p;class m extends u.BaseError{constructor(h,{abi:T,args:_,contractAddress:g,docsPath:v,functionName:j,sender:w}){const C=(0,s.getAbiItem)({abi:T,args:_,name:j}),S=C?(0,i.formatAbiItemWithArgs)({abiItem:C,args:_,includeFunctionName:!1,includeName:!1}):void 0,R=C?(0,t.formatAbiItem)(C,{includeName:!0}):void 0,I=(0,d.prettyPrint)({address:g&&(0,l.getContractAddress)(g),function:R,args:S&&S!=="()"&&`${[...Array((j==null?void 0:j.length)??0).keys()].map(()=>" ").join("")}${S}`,sender:w});super(h.shortMessage||`An unknown error occurred while executing the contract function "${j}".`,{cause:h,docsPath:v,metaMessages:[...h.metaMessages?[...h.metaMessages," "]:[],I&&"Contract Call:",I].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=_,this.cause=h,this.contractAddress=g,this.functionName=j,this.sender=w}}ge.ContractFunctionExecutionError=m;class b extends u.BaseError{constructor({abi:h,data:T,functionName:_,message:g}){let v,j,w,C;if(T&&T!=="0x")try{j=(0,n.decodeErrorResult)({abi:h,data:T});const{abiItem:R,errorName:I,args:q}=j;if(I==="Error")C=q[0];else if(I==="Panic"){const[B]=q;C=r.panicReasons[B]}else{const B=R?(0,t.formatAbiItem)(R,{includeName:!0}):void 0,O=R&&q?(0,i.formatAbiItemWithArgs)({abiItem:R,args:q,includeFunctionName:!1,includeName:!1}):void 0;w=[B?`Error: ${B}`:"",O&&O!=="()"?` ${[...Array((I==null?void 0:I.length)??0).keys()].map(()=>" ").join("")}${O}`:""]}}catch(R){v=R}else g&&(C=g);let S;v instanceof c.AbiErrorSignatureNotFoundError&&(S=v.signature,w=[`Unable to decode signature "${S}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${S}.`]),super(C&&C!=="execution reverted"||S?[`The contract function "${_}" reverted with the following ${S?"signature":"reason"}:`,C||S].join(`
34
- `):`The contract function "${_}" reverted.`,{cause:v,metaMessages:w,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=j,this.raw=T,this.reason=C,this.signature=S}}ge.ContractFunctionRevertedError=b;class y extends u.BaseError{constructor({functionName:h}){super(`The contract function "${h}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${h}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}ge.ContractFunctionZeroDataError=y;class E extends u.BaseError{constructor({factory:h}){super(`Deployment for counterfactual contract call failed${h?` for factory "${h}".`:""}`,{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"})}}ge.CounterfactualDeploymentFailedError=E;class P extends u.BaseError{constructor({data:h,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=h}}return ge.RawContractError=P,ge}var Ce={},tf;function Ue(){if(tf)return Ce;tf=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.TimeoutError=Ce.SocketClosedError=Ce.RpcRequestError=Ce.WebSocketRequestError=Ce.HttpRequestError=void 0;const e=me(),r=Q(),n=eu();class t extends r.BaseError{constructor({body:u,cause:f,details:d,headers:l,status:p,url:m}){super("HTTP request failed.",{cause:f,details:d,metaMessages:[p&&`Status: ${p}`,`URL: ${(0,n.getUrl)(m)}`,u&&`Request body: ${(0,e.stringify)(u)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=u,this.headers=l,this.status=p,this.url=m}}Ce.HttpRequestError=t;class i extends r.BaseError{constructor({body:u,cause:f,details:d,url:l}){super("WebSocket request failed.",{cause:f,details:d,metaMessages:[`URL: ${(0,n.getUrl)(l)}`,u&&`Request body: ${(0,e.stringify)(u)}`].filter(Boolean),name:"WebSocketRequestError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=l}}Ce.WebSocketRequestError=i;class s extends r.BaseError{constructor({body:u,error:f,url:d}){super("RPC Request failed.",{cause:f,details:f.message,metaMessages:[`URL: ${(0,n.getUrl)(d)}`,`Request body: ${(0,e.stringify)(u)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=f.code,this.data=f.data,this.url=d}}Ce.RpcRequestError=s;class a extends r.BaseError{constructor({url:u}={}){super("The socket has been closed.",{metaMessages:[u&&`URL: ${(0,n.getUrl)(u)}`].filter(Boolean),name:"SocketClosedError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=u}}Ce.SocketClosedError=a;class o extends r.BaseError{constructor({body:u,url:f}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,n.getUrl)(f)}`,`Request body: ${(0,e.stringify)(u)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=f}}return Ce.TimeoutError=o,Ce}var K={},rf;function _t(){if(rf)return K;rf=1,Object.defineProperty(K,"__esModule",{value:!0}),K.UnknownRpcError=K.AtomicityNotSupportedError=K.AtomicReadyWalletRejectedUpgradeError=K.BundleTooLargeError=K.UnknownBundleIdError=K.DuplicateIdError=K.UnsupportedChainIdError=K.UnsupportedNonOptionalCapabilityError=K.SwitchChainError=K.ChainDisconnectedError=K.ProviderDisconnectedError=K.UnsupportedProviderMethodError=K.UnauthorizedProviderError=K.UserRejectedRequestError=K.JsonRpcVersionUnsupportedError=K.LimitExceededRpcError=K.MethodNotSupportedRpcError=K.TransactionRejectedRpcError=K.ResourceUnavailableRpcError=K.ResourceNotFoundRpcError=K.InvalidInputRpcError=K.InternalRpcError=K.InvalidParamsRpcError=K.MethodNotFoundRpcError=K.InvalidRequestRpcError=K.ParseRpcError=K.ProviderRpcError=K.RpcError=void 0;const e=Q(),r=Ue(),n=-1;class t extends e.BaseError{constructor(B,{code:O,docsPath:M,metaMessages:k,name:$,shortMessage:z}){super(z,{cause:B,docsPath:M,metaMessages:k||(B==null?void 0:B.metaMessages),name:$||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=$||B.name,this.code=B instanceof r.RpcRequestError?B.code:O??n}}K.RpcError=t;class i extends t{constructor(B,O){super(B,O),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=O.data}}K.ProviderRpcError=i;class s extends t{constructor(B){super(B,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}K.ParseRpcError=s,Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class a extends t{constructor(B){super(B,{code:a.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}K.InvalidRequestRpcError=a,Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class o extends t{constructor(B,{method:O}={}){super(B,{code:o.code,name:"MethodNotFoundRpcError",shortMessage:`The method${O?` "${O}"`:""} does not exist / is not available.`})}}K.MethodNotFoundRpcError=o,Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class c extends t{constructor(B){super(B,{code:c.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
35
- `)})}}K.InvalidParamsRpcError=c,Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class u extends t{constructor(B){super(B,{code:u.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}K.InternalRpcError=u,Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends t{constructor(B){super(B,{code:f.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
36
- `)})}}K.InvalidInputRpcError=f,Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class d extends t{constructor(B){super(B,{code:d.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}K.ResourceNotFoundRpcError=d,Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class l extends t{constructor(B){super(B,{code:l.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}K.ResourceUnavailableRpcError=l,Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class p extends t{constructor(B){super(B,{code:p.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}K.TransactionRejectedRpcError=p,Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends t{constructor(B,{method:O}={}){super(B,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${O?` "${O}"`:""} is not supported.`})}}K.MethodNotSupportedRpcError=m,Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends t{constructor(B){super(B,{code:b.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}K.LimitExceededRpcError=b,Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class y extends t{constructor(B){super(B,{code:y.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}K.JsonRpcVersionUnsupportedError=y,Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class E extends i{constructor(B){super(B,{code:E.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}K.UserRejectedRequestError=E,Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class P extends i{constructor(B){super(B,{code:P.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}K.UnauthorizedProviderError=P,Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class A extends i{constructor(B,{method:O}={}){super(B,{code:A.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${O?` " ${O}"`:""}.`})}}K.UnsupportedProviderMethodError=A,Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class h extends i{constructor(B){super(B,{code:h.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}K.ProviderDisconnectedError=h,Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class T extends i{constructor(B){super(B,{code:T.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}K.ChainDisconnectedError=T,Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class _ extends i{constructor(B){super(B,{code:_.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}K.SwitchChainError=_,Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class g extends i{constructor(B){super(B,{code:g.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}K.UnsupportedNonOptionalCapabilityError=g,Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class v extends i{constructor(B){super(B,{code:v.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}K.UnsupportedChainIdError=v,Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class j extends i{constructor(B){super(B,{code:j.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}K.DuplicateIdError=j,Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class w extends i{constructor(B){super(B,{code:w.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}K.UnknownBundleIdError=w,Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class C extends i{constructor(B){super(B,{code:C.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}K.BundleTooLargeError=C,Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class S extends i{constructor(B){super(B,{code:S.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}K.AtomicReadyWalletRejectedUpgradeError=S,Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class R extends i{constructor(B){super(B,{code:R.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}K.AtomicityNotSupportedError=R,Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class I extends t{constructor(B){super(B,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}return K.UnknownRpcError=I,K}var nf;function vt(){if(nf)return Qn;nf=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.getContractError=a;const e=se(),r=Q(),n=ht(),t=Ue(),i=_t(),s=3;function a(o,{abi:c,address:u,args:f,docsPath:d,functionName:l,sender:p}){const m=o instanceof n.RawContractError?o:o instanceof r.BaseError?o.walk(T=>"data"in T)||o.walk():{},{code:b,data:y,details:E,message:P,shortMessage:A}=m,h=(()=>o instanceof e.AbiDecodingZeroDataError?new n.ContractFunctionZeroDataError({functionName:l}):[s,i.InternalRpcError.code].includes(b)&&(y||E||P||A)||b===i.InvalidInputRpcError.code&&E==="execution reverted"&&y?new n.ContractFunctionRevertedError({abi:c,data:typeof y=="object"?y.data:y,functionName:l,message:m instanceof t.RpcRequestError?E:A??P}):o)();return new n.ContractFunctionExecutionError(h,{abi:c,args:f,contractAddress:u,docsPath:d,functionName:l,sender:p})}return Qn}var so={},co={},uo={},fo={},of;function dm(){if(of)return fo;of=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.publicKeyToAddress=n;const e=Be(),r=je();function n(t){const i=(0,r.keccak256)(`0x${t.substring(4)}`).substring(26);return(0,e.checksumAddress)(`0x${i}`)}return fo}var lo={},af;function tu(){if(af)return lo;af=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.recoverPublicKey=i;const e=_e(),r=ve(),n=ue(),t=V();async function i({hash:a,signature:o}){const c=(0,e.isHex)(a)?a:(0,t.toHex)(a),{secp256k1:u}=await Promise.resolve().then(()=>nn());return`0x${(()=>{if(typeof o=="object"&&"r"in o&&"s"in o){const{r:b,s:y,v:E,yParity:P}=o,A=Number(P??E),h=s(A);return new u.Signature((0,n.hexToBigInt)(b),(0,n.hexToBigInt)(y)).addRecoveryBit(h)}const l=(0,e.isHex)(o)?o:(0,t.toHex)(o);if((0,r.size)(l)!==65)throw new Error("invalid signature length");const p=(0,n.hexToNumber)(`0x${l.slice(130)}`),m=s(p);return u.Signature.fromCompact(l.substring(2,130)).addRecoveryBit(m)})().recoverPublicKey(c.substring(2)).toHex(!1)}`}function s(a){if(a===0||a===1)return a;if(a===27)return 0;if(a===28)return 1;throw new Error("Invalid yParityOrV value")}return lo}var sf;function jt(){if(sf)return uo;sf=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.recoverAddress=n;const e=dm(),r=tu();async function n({hash:t,signature:i}){return(0,e.publicKeyToAddress)(await(0,r.recoverPublicKey)({hash:t,signature:i}))}return uo}var bo={},or={},cf;function cn(){if(cf)return or;cf=1,Object.defineProperty(or,"__esModule",{value:!0}),or.toRlp=i,or.bytesToRlp=s,or.hexToRlp=a;const e=Q(),r=on(),n=oe(),t=V();function i(d,l="hex"){const p=o(d),m=(0,r.createCursor)(new Uint8Array(p.length));return p.encode(m),l==="hex"?(0,t.bytesToHex)(m.bytes):m.bytes}function s(d,l="bytes"){return i(d,l)}function a(d,l="hex"){return i(d,l)}function o(d){return Array.isArray(d)?c(d.map(l=>o(l))):u(d)}function c(d){const l=d.reduce((b,y)=>b+y.length,0),p=f(l);return{length:(()=>l<=55?1+l:1+p+l)(),encode(b){l<=55?b.pushByte(192+l):(b.pushByte(192+55+p),p===1?b.pushUint8(l):p===2?b.pushUint16(l):p===3?b.pushUint24(l):b.pushUint32(l));for(const{encode:y}of d)y(b)}}}function u(d){const l=typeof d=="string"?(0,n.hexToBytes)(d):d,p=f(l.length);return{length:(()=>l.length===1&&l[0]<128?1:l.length<=55?1+l.length:1+p+l.length)(),encode(b){l.length===1&&l[0]<128?b.pushBytes(l):l.length<=55?(b.pushByte(128+l.length),b.pushBytes(l)):(b.pushByte(128+55+p),p===1?b.pushUint8(l.length):p===2?b.pushUint16(l.length):p===3?b.pushUint24(l.length):b.pushUint32(l.length),b.pushBytes(l))}}}function f(d){if(d<2**8)return 1;if(d<2**16)return 2;if(d<2**24)return 3;if(d<2**32)return 4;throw new e.BaseError("Length is too large.")}return or}var uf;function fm(){if(uf)return bo;uf=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.hashAuthorization=s;const e=le(),r=oe(),n=V(),t=cn(),i=je();function s(a){const{chainId:o,nonce:c,to:u}=a,f=a.contractAddress??a.address,d=(0,i.keccak256)((0,e.concatHex)(["0x05",(0,t.toRlp)([o?(0,n.numberToHex)(o):"0x",f,c?(0,n.numberToHex)(c):"0x"])]));return u==="bytes"?(0,r.hexToBytes)(d):d}return bo}var df;function un(){if(df)return co;df=1,Object.defineProperty(co,"__esModule",{value:!0}),co.recoverAuthorizationAddress=n;const e=jt(),r=fm();async function n(t){const{authorization:i,signature:s}=t;return(0,e.recoverAddress)({hash:(0,r.hashAuthorization)(i),signature:s??i})}return co}var mo={},kr={},ff;function lm(){if(ff)return kr;ff=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.EstimateGasExecutionError=void 0;const e=sn(),r=Gt(),n=Q(),t=Te();class i extends n.BaseError{constructor(a,{account:o,docsPath:c,chain:u,data:f,gas:d,gasPrice:l,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:b,to:y,value:E}){var A;const P=(0,t.prettyPrint)({from:o==null?void 0:o.address,to:y,value:typeof E<"u"&&`${(0,e.formatEther)(E)} ${((A=u==null?void 0:u.nativeCurrency)==null?void 0:A.symbol)||"ETH"}`,data:f,gas:d,gasPrice:typeof l<"u"&&`${(0,r.formatGwei)(l)} gwei`,maxFeePerGas:typeof p<"u"&&`${(0,r.formatGwei)(p)} gwei`,maxPriorityFeePerGas:typeof m<"u"&&`${(0,r.formatGwei)(m)} gwei`,nonce:b});super(a.shortMessage,{cause:a,docsPath:c,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Estimate Gas Arguments:",P].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=a}}return kr.EstimateGasExecutionError=i,kr}var ne={},lf;function st(){if(lf)return ne;lf=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.UnknownNodeError=ne.TipAboveFeeCapError=ne.TransactionTypeNotSupportedError=ne.IntrinsicGasTooLowError=ne.IntrinsicGasTooHighError=ne.InsufficientFundsError=ne.NonceMaxValueError=ne.NonceTooLowError=ne.NonceTooHighError=ne.FeeCapTooLowError=ne.FeeCapTooHighError=ne.ExecutionRevertedError=void 0;const e=Gt(),r=Q();class n extends r.BaseError{constructor({cause:b,message:y}={}){var P;const E=(P=y==null?void 0:y.replace("execution reverted: ",""))==null?void 0:P.replace("execution reverted","");super(`Execution reverted ${E?`with reason: ${E}`:"for an unknown reason"}.`,{cause:b,name:"ExecutionRevertedError"})}}ne.ExecutionRevertedError=n,Object.defineProperty(n,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class t extends r.BaseError{constructor({cause:b,maxFeePerGas:y}={}){super(`The fee cap (\`maxFeePerGas\`${y?` = ${(0,e.formatGwei)(y)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:b,name:"FeeCapTooHighError"})}}ne.FeeCapTooHighError=t,Object.defineProperty(t,"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 i extends r.BaseError{constructor({cause:b,maxFeePerGas:y}={}){super(`The fee cap (\`maxFeePerGas\`${y?` = ${(0,e.formatGwei)(y)}`:""} gwei) cannot be lower than the block base fee.`,{cause:b,name:"FeeCapTooLowError"})}}ne.FeeCapTooLowError=i,Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class s extends r.BaseError{constructor({cause:b,nonce:y}={}){super(`Nonce provided for the transaction ${y?`(${y}) `:""}is higher than the next one expected.`,{cause:b,name:"NonceTooHighError"})}}ne.NonceTooHighError=s,Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class a extends r.BaseError{constructor({cause:b,nonce:y}={}){super([`Nonce provided for the transaction ${y?`(${y}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
37
- `),{cause:b,name:"NonceTooLowError"})}}ne.NonceTooLowError=a,Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class o extends r.BaseError{constructor({cause:b,nonce:y}={}){super(`Nonce provided for the transaction ${y?`(${y}) `:""}exceeds the maximum allowed nonce.`,{cause:b,name:"NonceMaxValueError"})}}ne.NonceMaxValueError=o,Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class c extends r.BaseError{constructor({cause:b}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
38
- `),{cause:b,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"})}}ne.InsufficientFundsError=c,Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class u extends r.BaseError{constructor({cause:b,gas:y}={}){super(`The amount of gas ${y?`(${y}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:b,name:"IntrinsicGasTooHighError"})}}ne.IntrinsicGasTooHighError=u,Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends r.BaseError{constructor({cause:b,gas:y}={}){super(`The amount of gas ${y?`(${y}) `:""}provided for the transaction is too low.`,{cause:b,name:"IntrinsicGasTooLowError"})}}ne.IntrinsicGasTooLowError=f,Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class d extends r.BaseError{constructor({cause:b}){super("The transaction type is not supported for this chain.",{cause:b,name:"TransactionTypeNotSupportedError"})}}ne.TransactionTypeNotSupportedError=d,Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class l extends r.BaseError{constructor({cause:b,maxPriorityFeePerGas:y,maxFeePerGas:E}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${y?` = ${(0,e.formatGwei)(y)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${E?` = ${(0,e.formatGwei)(E)} gwei`:""}).`].join(`
39
- `),{cause:b,name:"TipAboveFeeCapError"})}}ne.TipAboveFeeCapError=l,Object.defineProperty(l,"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 p extends r.BaseError{constructor({cause:b}){super(`An error occurred while executing: ${b==null?void 0:b.shortMessage}`,{cause:b,name:"UnknownNodeError"})}}return ne.UnknownNodeError=p,ne}var Nr={},bf;function dn(){if(bf)return Nr;bf=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.containsNodeError=i,Nr.getNodeError=s;const e=Q(),r=st(),n=Ue(),t=_t();function i(a){return a instanceof t.TransactionRejectedRpcError||a instanceof t.InvalidInputRpcError||a instanceof n.RpcRequestError&&a.code===r.ExecutionRevertedError.code}function s(a,o){const c=(a.details||"").toLowerCase(),u=a instanceof e.BaseError?a.walk(f=>(f==null?void 0:f.code)===r.ExecutionRevertedError.code):a;return u instanceof e.BaseError?new r.ExecutionRevertedError({cause:a,message:u.details}):r.ExecutionRevertedError.nodeMessage.test(c)?new r.ExecutionRevertedError({cause:a,message:a.details}):r.FeeCapTooHighError.nodeMessage.test(c)?new r.FeeCapTooHighError({cause:a,maxFeePerGas:o==null?void 0:o.maxFeePerGas}):r.FeeCapTooLowError.nodeMessage.test(c)?new r.FeeCapTooLowError({cause:a,maxFeePerGas:o==null?void 0:o.maxFeePerGas}):r.NonceTooHighError.nodeMessage.test(c)?new r.NonceTooHighError({cause:a,nonce:o==null?void 0:o.nonce}):r.NonceTooLowError.nodeMessage.test(c)?new r.NonceTooLowError({cause:a,nonce:o==null?void 0:o.nonce}):r.NonceMaxValueError.nodeMessage.test(c)?new r.NonceMaxValueError({cause:a,nonce:o==null?void 0:o.nonce}):r.InsufficientFundsError.nodeMessage.test(c)?new r.InsufficientFundsError({cause:a}):r.IntrinsicGasTooHighError.nodeMessage.test(c)?new r.IntrinsicGasTooHighError({cause:a,gas:o==null?void 0:o.gas}):r.IntrinsicGasTooLowError.nodeMessage.test(c)?new r.IntrinsicGasTooLowError({cause:a,gas:o==null?void 0:o.gas}):r.TransactionTypeNotSupportedError.nodeMessage.test(c)?new r.TransactionTypeNotSupportedError({cause:a}):r.TipAboveFeeCapError.nodeMessage.test(c)?new r.TipAboveFeeCapError({cause:a,maxFeePerGas:o==null?void 0:o.maxFeePerGas,maxPriorityFeePerGas:o==null?void 0:o.maxPriorityFeePerGas}):new r.UnknownNodeError({cause:a})}return Nr}var mf;function bm(){if(mf)return mo;mf=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.getEstimateGasError=t;const e=lm(),r=st(),n=dn();function t(i,{docsPath:s,...a}){const o=(()=>{const c=(0,n.getNodeError)(i,a);return c instanceof r.UnknownNodeError?i:c})();return new e.EstimateGasExecutionError(o,{docsPath:s,...a})}return mo}var yo={},yf;function Et(){if(yf)return yo;yf=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.extract=e;function e(r,{format:n}){if(!n)return{};const t={};function i(a){const o=Object.keys(a);for(const c of o)c in r&&(t[c]=r[c]),a[c]&&typeof a[c]=="object"&&!Array.isArray(a[c])&&i(a[c])}const s=n(r||{});return i(s),t}return yo}var Oc={},po={},pf;function fn(){if(pf)return po;pf=1,Object.defineProperty(po,"__esModule",{value:!0}),po.defineFormatter=e;function e(r,n){return({exclude:t,format:i})=>({exclude:t,format:(s,a)=>{const o=n(s,a);if(t)for(const c of t)delete o[c];return{...o,...i(s,a)}},type:r})}return po}var gf;function Le(){return gf||(gf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransactionRequest=e.rpcTransactionType=void 0,e.formatTransactionRequest=t;const r=V(),n=fn();e.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function t(s,a){const o={};return typeof s.authorizationList<"u"&&(o.authorizationList=i(s.authorizationList)),typeof s.accessList<"u"&&(o.accessList=s.accessList),typeof s.blobVersionedHashes<"u"&&(o.blobVersionedHashes=s.blobVersionedHashes),typeof s.blobs<"u"&&(typeof s.blobs[0]!="string"?o.blobs=s.blobs.map(c=>(0,r.bytesToHex)(c)):o.blobs=s.blobs),typeof s.data<"u"&&(o.data=s.data),s.account&&(o.from=s.account.address),typeof s.from<"u"&&(o.from=s.from),typeof s.gas<"u"&&(o.gas=(0,r.numberToHex)(s.gas)),typeof s.gasPrice<"u"&&(o.gasPrice=(0,r.numberToHex)(s.gasPrice)),typeof s.maxFeePerBlobGas<"u"&&(o.maxFeePerBlobGas=(0,r.numberToHex)(s.maxFeePerBlobGas)),typeof s.maxFeePerGas<"u"&&(o.maxFeePerGas=(0,r.numberToHex)(s.maxFeePerGas)),typeof s.maxPriorityFeePerGas<"u"&&(o.maxPriorityFeePerGas=(0,r.numberToHex)(s.maxPriorityFeePerGas)),typeof s.nonce<"u"&&(o.nonce=(0,r.numberToHex)(s.nonce)),typeof s.to<"u"&&(o.to=s.to),typeof s.type<"u"&&(o.type=e.rpcTransactionType[s.type]),typeof s.value<"u"&&(o.value=(0,r.numberToHex)(s.value)),o}e.defineTransactionRequest=(0,n.defineFormatter)("transactionRequest",t);function i(s){return s.map(a=>({address:a.address,r:a.r?(0,r.numberToHex)(BigInt(a.r)):a.r,s:a.s?(0,r.numberToHex)(BigInt(a.s)):a.s,chainId:(0,r.numberToHex)(a.chainId),nonce:(0,r.numberToHex)(a.nonce),...typeof a.yParity<"u"?{yParity:(0,r.numberToHex)(a.yParity)}:{},...typeof a.v<"u"&&typeof a.yParity>"u"?{v:(0,r.numberToHex)(a.v)}:{}}))}}(Oc)),Oc}var ar={},hf;function ru(){if(hf)return ar;hf=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.serializeStateMapping=s,ar.serializeAccountStateOverride=a,ar.serializeStateOverride=o;const e=ze(),r=Us(),n=Qc(),t=Ee(),i=V();function s(c){if(!(!c||c.length===0))return c.reduce((u,{slot:f,value:d})=>{if(f.length!==66)throw new r.InvalidBytesLengthError({size:f.length,targetSize:66,type:"hex"});if(d.length!==66)throw new r.InvalidBytesLengthError({size:d.length,targetSize:66,type:"hex"});return u[f]=d,u},{})}function a(c){const{balance:u,nonce:f,state:d,stateDiff:l,code:p}=c,m={};if(p!==void 0&&(m.code=p),u!==void 0&&(m.balance=(0,i.numberToHex)(u)),f!==void 0&&(m.nonce=(0,i.numberToHex)(f)),d!==void 0&&(m.state=s(d)),l!==void 0){if(m.state)throw new n.StateAssignmentConflictError;m.stateDiff=s(l)}return m}function o(c){if(!c)return;const u={};for(const{address:f,...d}of c){if(!(0,t.isAddress)(f,{strict:!1}))throw new e.InvalidAddressError({address:f});if(u[f])throw new n.AccountStateConflictError({address:f});u[f]=a(d)}return u}return ar}var go={},F={},_f;function nu(){return _f||(_f=1,Object.defineProperty(F,"__esModule",{value:!0}),F.minInt144=F.minInt136=F.minInt128=F.minInt120=F.minInt112=F.minInt104=F.minInt96=F.minInt88=F.minInt80=F.minInt72=F.minInt64=F.minInt56=F.minInt48=F.minInt40=F.minInt32=F.minInt24=F.minInt16=F.minInt8=F.maxInt256=F.maxInt248=F.maxInt240=F.maxInt232=F.maxInt224=F.maxInt216=F.maxInt208=F.maxInt200=F.maxInt192=F.maxInt184=F.maxInt176=F.maxInt168=F.maxInt160=F.maxInt152=F.maxInt144=F.maxInt136=F.maxInt128=F.maxInt120=F.maxInt112=F.maxInt104=F.maxInt96=F.maxInt88=F.maxInt80=F.maxInt72=F.maxInt64=F.maxInt56=F.maxInt48=F.maxInt40=F.maxInt32=F.maxInt24=F.maxInt16=F.maxInt8=void 0,F.maxUint256=F.maxUint248=F.maxUint240=F.maxUint232=F.maxUint224=F.maxUint216=F.maxUint208=F.maxUint200=F.maxUint192=F.maxUint184=F.maxUint176=F.maxUint168=F.maxUint160=F.maxUint152=F.maxUint144=F.maxUint136=F.maxUint128=F.maxUint120=F.maxUint112=F.maxUint104=F.maxUint96=F.maxUint88=F.maxUint80=F.maxUint72=F.maxUint64=F.maxUint56=F.maxUint48=F.maxUint40=F.maxUint32=F.maxUint24=F.maxUint16=F.maxUint8=F.minInt256=F.minInt248=F.minInt240=F.minInt232=F.minInt224=F.minInt216=F.minInt208=F.minInt200=F.minInt192=F.minInt184=F.minInt176=F.minInt168=F.minInt160=F.minInt152=void 0,F.maxInt8=2n**(8n-1n)-1n,F.maxInt16=2n**(16n-1n)-1n,F.maxInt24=2n**(24n-1n)-1n,F.maxInt32=2n**(32n-1n)-1n,F.maxInt40=2n**(40n-1n)-1n,F.maxInt48=2n**(48n-1n)-1n,F.maxInt56=2n**(56n-1n)-1n,F.maxInt64=2n**(64n-1n)-1n,F.maxInt72=2n**(72n-1n)-1n,F.maxInt80=2n**(80n-1n)-1n,F.maxInt88=2n**(88n-1n)-1n,F.maxInt96=2n**(96n-1n)-1n,F.maxInt104=2n**(104n-1n)-1n,F.maxInt112=2n**(112n-1n)-1n,F.maxInt120=2n**(120n-1n)-1n,F.maxInt128=2n**(128n-1n)-1n,F.maxInt136=2n**(136n-1n)-1n,F.maxInt144=2n**(144n-1n)-1n,F.maxInt152=2n**(152n-1n)-1n,F.maxInt160=2n**(160n-1n)-1n,F.maxInt168=2n**(168n-1n)-1n,F.maxInt176=2n**(176n-1n)-1n,F.maxInt184=2n**(184n-1n)-1n,F.maxInt192=2n**(192n-1n)-1n,F.maxInt200=2n**(200n-1n)-1n,F.maxInt208=2n**(208n-1n)-1n,F.maxInt216=2n**(216n-1n)-1n,F.maxInt224=2n**(224n-1n)-1n,F.maxInt232=2n**(232n-1n)-1n,F.maxInt240=2n**(240n-1n)-1n,F.maxInt248=2n**(248n-1n)-1n,F.maxInt256=2n**(256n-1n)-1n,F.minInt8=-(2n**(8n-1n)),F.minInt16=-(2n**(16n-1n)),F.minInt24=-(2n**(24n-1n)),F.minInt32=-(2n**(32n-1n)),F.minInt40=-(2n**(40n-1n)),F.minInt48=-(2n**(48n-1n)),F.minInt56=-(2n**(56n-1n)),F.minInt64=-(2n**(64n-1n)),F.minInt72=-(2n**(72n-1n)),F.minInt80=-(2n**(80n-1n)),F.minInt88=-(2n**(88n-1n)),F.minInt96=-(2n**(96n-1n)),F.minInt104=-(2n**(104n-1n)),F.minInt112=-(2n**(112n-1n)),F.minInt120=-(2n**(120n-1n)),F.minInt128=-(2n**(128n-1n)),F.minInt136=-(2n**(136n-1n)),F.minInt144=-(2n**(144n-1n)),F.minInt152=-(2n**(152n-1n)),F.minInt160=-(2n**(160n-1n)),F.minInt168=-(2n**(168n-1n)),F.minInt176=-(2n**(176n-1n)),F.minInt184=-(2n**(184n-1n)),F.minInt192=-(2n**(192n-1n)),F.minInt200=-(2n**(200n-1n)),F.minInt208=-(2n**(208n-1n)),F.minInt216=-(2n**(216n-1n)),F.minInt224=-(2n**(224n-1n)),F.minInt232=-(2n**(232n-1n)),F.minInt240=-(2n**(240n-1n)),F.minInt248=-(2n**(248n-1n)),F.minInt256=-(2n**(256n-1n)),F.maxUint8=2n**8n-1n,F.maxUint16=2n**16n-1n,F.maxUint24=2n**24n-1n,F.maxUint32=2n**32n-1n,F.maxUint40=2n**40n-1n,F.maxUint48=2n**48n-1n,F.maxUint56=2n**56n-1n,F.maxUint64=2n**64n-1n,F.maxUint72=2n**72n-1n,F.maxUint80=2n**80n-1n,F.maxUint88=2n**88n-1n,F.maxUint96=2n**96n-1n,F.maxUint104=2n**104n-1n,F.maxUint112=2n**112n-1n,F.maxUint120=2n**120n-1n,F.maxUint128=2n**128n-1n,F.maxUint136=2n**136n-1n,F.maxUint144=2n**144n-1n,F.maxUint152=2n**152n-1n,F.maxUint160=2n**160n-1n,F.maxUint168=2n**168n-1n,F.maxUint176=2n**176n-1n,F.maxUint184=2n**184n-1n,F.maxUint192=2n**192n-1n,F.maxUint200=2n**200n-1n,F.maxUint208=2n**208n-1n,F.maxUint216=2n**216n-1n,F.maxUint224=2n**224n-1n,F.maxUint232=2n**232n-1n,F.maxUint240=2n**240n-1n,F.maxUint248=2n**248n-1n,F.maxUint256=2n**256n-1n),F}var vf;function Ge(){if(vf)return go;vf=1,Object.defineProperty(go,"__esModule",{value:!0}),go.assertRequest=s;const e=ce(),r=nu(),n=ze(),t=st(),i=Ee();function s(a){const{account:o,maxFeePerGas:c,maxPriorityFeePerGas:u,to:f}=a,d=o?(0,e.parseAccount)(o):void 0;if(d&&!(0,i.isAddress)(d.address))throw new n.InvalidAddressError({address:d.address});if(f&&!(0,i.isAddress)(f))throw new n.InvalidAddressError({address:f});if(c&&c>r.maxUint256)throw new t.FeeCapTooHighError({maxFeePerGas:c});if(u&&c&&u>c)throw new t.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:u})}return go}var Bc={},Hr={},tt={},jf;function ln(){if(jf)return tt;jf=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.MaxFeePerGasTooLowError=tt.Eip1559FeesNotSupportedError=tt.BaseFeeScalarError=void 0;const e=Gt(),r=Q();class n extends r.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}tt.BaseFeeScalarError=n;class t extends r.BaseError{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}tt.Eip1559FeesNotSupportedError=t;class i extends r.BaseError{constructor({maxPriorityFeePerGas:a}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,e.formatGwei)(a)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}return tt.MaxFeePerGasTooLowError=i,tt}var xr={},ho={},$r={},Ef;function ou(){if(Ef)return $r;Ef=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.BlockNotFoundError=void 0;const e=Q();class r extends e.BaseError{constructor({blockHash:t,blockNumber:i}){let s="Block";t&&(s=`Block at hash "${t}"`),i&&(s=`Block at number "${i}"`),super(`${s} could not be found.`,{name:"BlockNotFoundError"})}}return $r.BlockNotFoundError=r,$r}var ir={},qc={},Pf;function pr(){return Pf||(Pf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransaction=e.transactionType=void 0,e.formatTransaction=t;const r=ue(),n=fn();e.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function t(s,a){const o={...s,blockHash:s.blockHash?s.blockHash:null,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,chainId:s.chainId?(0,r.hexToNumber)(s.chainId):void 0,gas:s.gas?BigInt(s.gas):void 0,gasPrice:s.gasPrice?BigInt(s.gasPrice):void 0,maxFeePerBlobGas:s.maxFeePerBlobGas?BigInt(s.maxFeePerBlobGas):void 0,maxFeePerGas:s.maxFeePerGas?BigInt(s.maxFeePerGas):void 0,maxPriorityFeePerGas:s.maxPriorityFeePerGas?BigInt(s.maxPriorityFeePerGas):void 0,nonce:s.nonce?(0,r.hexToNumber)(s.nonce):void 0,to:s.to?s.to:null,transactionIndex:s.transactionIndex?Number(s.transactionIndex):null,type:s.type?e.transactionType[s.type]:void 0,typeHex:s.type?s.type:void 0,value:s.value?BigInt(s.value):void 0,v:s.v?BigInt(s.v):void 0};return s.authorizationList&&(o.authorizationList=i(s.authorizationList)),o.yParity=(()=>{if(s.yParity)return Number(s.yParity);if(typeof o.v=="bigint"){if(o.v===0n||o.v===27n)return 0;if(o.v===1n||o.v===28n)return 1;if(o.v>=35n)return o.v%2n===0n?1:0}})(),o.type==="legacy"&&(delete o.accessList,delete o.maxFeePerBlobGas,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas,delete o.yParity),o.type==="eip2930"&&(delete o.maxFeePerBlobGas,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas),o.type==="eip1559"&&delete o.maxFeePerBlobGas,o}e.defineTransaction=(0,n.defineFormatter)("transaction",t);function i(s){return s.map(a=>({address:a.address,chainId:Number(a.chainId),nonce:Number(a.nonce),r:a.r,s:a.s,yParity:Number(a.yParity)}))}}(qc)),qc}var Tf;function Js(){if(Tf)return ir;Tf=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.defineBlock=void 0,ir.formatBlock=n;const e=fn(),r=pr();function n(t,i){const s=(t.transactions??[]).map(a=>typeof a=="string"?a:(0,r.formatTransaction)(a));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:s,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}return ir.defineBlock=(0,e.defineFormatter)("block",n),ir}var wf;function Vt(){if(wf)return ho;wf=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.getBlock=t;const e=ou(),r=V(),n=Js();async function t(i,{blockHash:s,blockNumber:a,blockTag:o=i.experimental_blockTag??"latest",includeTransactions:c}={}){var p,m,b;const u=c??!1,f=a!==void 0?(0,r.numberToHex)(a):void 0;let d=null;if(s?d=await i.request({method:"eth_getBlockByHash",params:[s,u]},{dedupe:!0}):d=await i.request({method:"eth_getBlockByNumber",params:[f||o,u]},{dedupe:!!f}),!d)throw new e.BlockNotFoundError({blockHash:s,blockNumber:a});return(((b=(m=(p=i.chain)==null?void 0:p.formatters)==null?void 0:m.block)==null?void 0:b.format)||n.formatBlock)(d,"getBlock")}return ho}var _o={},Af;function au(){if(Af)return _o;Af=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.getGasPrice=e;async function e(r){const n=await r.request({method:"eth_gasPrice"});return BigInt(n)}return _o}var Rf;function mm(){if(Rf)return xr;Rf=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.estimateMaxPriorityFeePerGas=s,xr.internal_estimateMaxPriorityFeePerGas=a;const e=ln(),r=ue(),n=te(),t=Vt(),i=au();async function s(o,c){return a(o,c)}async function a(o,c){var l,p;const{block:u,chain:f=o.chain,request:d}=c||{};try{const m=((l=f==null?void 0:f.fees)==null?void 0:l.maxPriorityFeePerGas)??((p=f==null?void 0:f.fees)==null?void 0:p.defaultPriorityFee);if(typeof m=="function"){const y=u||await(0,n.getAction)(o,t.getBlock,"getBlock")({}),E=await m({block:y,client:o,request:d});if(E===null)throw new Error;return E}if(typeof m<"u")return m;const b=await o.request({method:"eth_maxPriorityFeePerGas"});return(0,r.hexToBigInt)(b)}catch{const[m,b]=await Promise.all([u?Promise.resolve(u):(0,n.getAction)(o,t.getBlock,"getBlock")({}),(0,n.getAction)(o,i.getGasPrice,"getGasPrice")({})]);if(typeof m.baseFeePerGas!="bigint")throw new e.Eip1559FeesNotSupportedError;const y=b-m.baseFeePerGas;return y<0n?0n:y}}return xr}var If;function ym(){if(If)return Hr;If=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.estimateFeesPerGas=s,Hr.internal_estimateFeesPerGas=a;const e=ln(),r=te(),n=mm(),t=Vt(),i=au();async function s(o,c){return a(o,c)}async function a(o,c){var A,h;const{block:u,chain:f=o.chain,request:d,type:l="eip1559"}=c||{},p=await(async()=>{var T,_;return typeof((T=f==null?void 0:f.fees)==null?void 0:T.baseFeeMultiplier)=="function"?f.fees.baseFeeMultiplier({block:u,client:o,request:d}):((_=f==null?void 0:f.fees)==null?void 0:_.baseFeeMultiplier)??1.2})();if(p<1)throw new e.BaseFeeScalarError;const b=10**(((A=p.toString().split(".")[1])==null?void 0:A.length)??0),y=T=>T*BigInt(Math.ceil(p*b))/BigInt(b),E=u||await(0,r.getAction)(o,t.getBlock,"getBlock")({});if(typeof((h=f==null?void 0:f.fees)==null?void 0:h.estimateFeesPerGas)=="function"){const T=await f.fees.estimateFeesPerGas({block:u,client:o,multiply:y,request:d,type:l});if(T!==null)return T}if(l==="eip1559"){if(typeof E.baseFeePerGas!="bigint")throw new e.Eip1559FeesNotSupportedError;const T=typeof(d==null?void 0:d.maxPriorityFeePerGas)=="bigint"?d.maxPriorityFeePerGas:await(0,n.internal_estimateMaxPriorityFeePerGas)(o,{block:E,chain:f,request:d}),_=y(E.baseFeePerGas);return{maxFeePerGas:(d==null?void 0:d.maxFeePerGas)??_+T,maxPriorityFeePerGas:T}}return{gasPrice:(d==null?void 0:d.gasPrice)??y(await(0,r.getAction)(o,i.getGasPrice,"getGasPrice")({}))}}return Hr}var vo={},Cf;function Zs(){if(Cf)return vo;Cf=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.getTransactionCount=n;const e=ue(),r=V();async function n(t,{address:i,blockTag:s="latest",blockNumber:a}){const o=await t.request({method:"eth_getTransactionCount",params:[i,typeof a=="bigint"?(0,r.numberToHex)(a):s]},{dedupe:!!a});return(0,e.hexToNumber)(o)}return vo}var jo={},Sf;function Ys(){if(Sf)return jo;Sf=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.blobsToCommitments=n;const e=oe(),r=V();function n(t){const{kzg:i}=t,s=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(c=>(0,e.hexToBytes)(c)):t.blobs,o=[];for(const c of a)o.push(Uint8Array.from(i.blobToKzgCommitment(c)));return s==="bytes"?o:o.map(c=>(0,r.bytesToHex)(c))}return jo}var Eo={},Of;function Xs(){if(Of)return Eo;Of=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.blobsToProofs=n;const e=oe(),r=V();function n(t){const{kzg:i}=t,s=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(u=>(0,e.hexToBytes)(u)):t.blobs,o=typeof t.commitments[0]=="string"?t.commitments.map(u=>(0,e.hexToBytes)(u)):t.commitments,c=[];for(let u=0;u<a.length;u++){const f=a[u],d=o[u];c.push(Uint8Array.from(i.computeBlobKzgProof(f,d)))}return s==="bytes"?c:c.map(u=>(0,r.bytesToHex)(u))}return Eo}var Po={},To={},wo={},Bf;function iu(){if(Bf)return wo;Bf=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.sha256=i;const e=ap(),r=_e(),n=oe(),t=V();function i(s,a){const o=a||"hex",c=(0,e.sha256)((0,r.isHex)(s,{strict:!1})?(0,n.toBytes)(s):s);return o==="bytes"?c:(0,t.toHex)(c)}return wo}var qf;function su(){if(qf)return To;qf=1,Object.defineProperty(To,"__esModule",{value:!0}),To.commitmentToVersionedHash=n;const e=V(),r=iu();function n(t){const{commitment:i,version:s=1}=t,a=t.to??(typeof i=="string"?"hex":"bytes"),o=(0,r.sha256)(i,"bytes");return o.set([s],0),a==="bytes"?o:(0,e.bytesToHex)(o)}return To}var Ff;function cu(){if(Ff)return Po;Ff=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.commitmentsToVersionedHashes=r;const e=su();function r(n){const{commitments:t,version:i}=n,s=n.to??(typeof t[0]=="string"?"hex":"bytes"),a=[];for(const o of t)a.push((0,e.commitmentToVersionedHash)({commitment:o,to:s,version:i}));return a}return Po}var Ao={},Ro={},Fc={},Mf;function mp(){return Mf||(Mf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maxBytesPerTransaction=e.bytesPerBlob=e.fieldElementsPerBlob=e.bytesPerFieldElement=void 0;const r=6;e.bytesPerFieldElement=32,e.fieldElementsPerBlob=4096,e.bytesPerBlob=e.bytesPerFieldElement*e.fieldElementsPerBlob,e.maxBytesPerTransaction=e.bytesPerBlob*r-1-1*e.fieldElementsPerBlob*r}(Fc)),Fc}var Ne={},zr={},kf;function pm(){return kf||(kf=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.versionedHashVersionKzg=void 0,zr.versionedHashVersionKzg=1),zr}var Nf;function gm(){if(Nf)return Ne;Nf=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.InvalidVersionedHashVersionError=Ne.InvalidVersionedHashSizeError=Ne.EmptyBlobError=Ne.BlobSizeTooLargeError=void 0;const e=pm(),r=Q();class n extends r.BaseError{constructor({maxSize:o,size:c}){super("Blob size is too large.",{metaMessages:[`Max: ${o} bytes`,`Given: ${c} bytes`],name:"BlobSizeTooLargeError"})}}Ne.BlobSizeTooLargeError=n;class t extends r.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}Ne.EmptyBlobError=t;class i extends r.BaseError{constructor({hash:o,size:c}){super(`Versioned hash "${o}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${c}`],name:"InvalidVersionedHashSizeError"})}}Ne.InvalidVersionedHashSizeError=i;class s extends r.BaseError{constructor({hash:o,version:c}){super(`Versioned hash "${o}" version is invalid.`,{metaMessages:[`Expected: ${e.versionedHashVersionKzg}`,`Received: ${c}`],name:"InvalidVersionedHashVersionError"})}}return Ne.InvalidVersionedHashVersionError=s,Ne}var Hf;function hm(){if(Hf)return Ro;Hf=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.toBlobs=a;const e=mp(),r=gm(),n=on(),t=ve(),i=oe(),s=V();function a(o){const c=o.to??(typeof o.data=="string"?"hex":"bytes"),u=typeof o.data=="string"?(0,i.hexToBytes)(o.data):o.data,f=(0,t.size)(u);if(!f)throw new r.EmptyBlobError;if(f>e.maxBytesPerTransaction)throw new r.BlobSizeTooLargeError({maxSize:e.maxBytesPerTransaction,size:f});const d=[];let l=!0,p=0;for(;l;){const m=(0,n.createCursor)(new Uint8Array(e.bytesPerBlob));let b=0;for(;b<e.fieldElementsPerBlob;){const y=u.slice(p,p+(e.bytesPerFieldElement-1));if(m.pushByte(0),m.pushBytes(y),y.length<31){m.pushByte(128),l=!1;break}b++,p+=31}d.push(m)}return c==="bytes"?d.map(m=>m.bytes):d.map(m=>(0,s.bytesToHex)(m.bytes))}return Ro}var xf;function Qs(){if(xf)return Ao;xf=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.toBlobSidecars=t;const e=Ys(),r=Xs(),n=hm();function t(i){const{data:s,kzg:a,to:o}=i,c=i.blobs??(0,n.toBlobs)({data:s,to:o}),u=i.commitments??(0,e.blobsToCommitments)({blobs:c,kzg:a,to:o}),f=i.proofs??(0,r.blobsToProofs)({blobs:c,commitments:u,kzg:a,to:o}),d=[];for(let l=0;l<c.length;l++)d.push({blob:c[l],commitment:u[l],proof:f[l]});return d}return Ao}var Io={},$f;function ec(){if($f)return Io;$f=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.getTransactionType=r;const e=Te();function r(n){if(n.type)return n.type;if(typeof n.authorizationList<"u")return"eip7702";if(typeof n.blobs<"u"||typeof n.blobVersionedHashes<"u"||typeof n.maxFeePerBlobGas<"u"||typeof n.sidecars<"u")return"eip4844";if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")return"eip1559";if(typeof n.gasPrice<"u")return typeof n.accessList<"u"?"eip2930":"legacy";throw new e.InvalidSerializableTransactionError({transaction:n})}return Io}var Co={},So={},zf;function bn(){if(zf)return So;zf=1,Object.defineProperty(So,"__esModule",{value:!0}),So.getTransactionError=t;const e=st(),r=Te(),n=dn();function t(i,{docsPath:s,...a}){const o=(()=>{const c=(0,n.getNodeError)(i,a);return c instanceof e.UnknownNodeError?i:c})();return new r.TransactionExecutionError(o,{docsPath:s,...a})}return So}var Oo={},Df;function Pt(){if(Df)return Oo;Df=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.getChainId=r;const e=ue();async function r(n){const t=await n.request({method:"eth_chainId"},{dedupe:!0});return(0,e.hexToNumber)(t)}return Oo}var Uf;function uu(){if(Uf)return Co;Uf=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.fillTransaction=f;const e=ce(),r=ln(),n=bn(),t=Et(),i=pr(),s=Le(),a=te(),o=Ge(),c=Vt(),u=Pt();async function f(d,l){var k,$,z,N,D;const{account:p=d.account,accessList:m,authorizationList:b,chain:y=d.chain,blobVersionedHashes:E,blobs:P,data:A,gas:h,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:j,nonceManager:w,to:C,type:S,value:R,...I}=l,q=await(async()=>{if(!p||!w||typeof j<"u")return j;const U=(0,e.parseAccount)(p),G=y?y.id:await(0,a.getAction)(d,u.getChainId,"getChainId")({});return await w.consume({address:U.address,chainId:G,client:d})})();(0,o.assertRequest)(l);const B=($=(k=y==null?void 0:y.formatters)==null?void 0:k.transactionRequest)==null?void 0:$.format,M=(B||s.formatTransactionRequest)({...(0,t.extract)(I,{format:B}),account:p?(0,e.parseAccount)(p):void 0,accessList:m,authorizationList:b,blobs:P,blobVersionedHashes:E,data:A,gas:h,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:q,to:C,type:S,value:R},"fillTransaction");try{const U=await d.request({method:"eth_fillTransaction",params:[M]}),H=(((N=(z=y==null?void 0:y.formatters)==null?void 0:z.transaction)==null?void 0:N.format)||i.formatTransaction)(U.tx);delete H.blockHash,delete H.blockNumber,delete H.r,delete H.s,delete H.transactionIndex,delete H.v,delete H.yParity,H.data=H.input,H.gas&&(H.gas=l.gas??H.gas),H.gasPrice&&(H.gasPrice=l.gasPrice??H.gasPrice),H.maxFeePerBlobGas&&(H.maxFeePerBlobGas=l.maxFeePerBlobGas??H.maxFeePerBlobGas),H.maxFeePerGas&&(H.maxFeePerGas=l.maxFeePerGas??H.maxFeePerGas),H.maxPriorityFeePerGas&&(H.maxPriorityFeePerGas=l.maxPriorityFeePerGas??H.maxPriorityFeePerGas),H.nonce&&(H.nonce=l.nonce??H.nonce);const Y=await(async()=>{var ee,ae;if(typeof((ee=y==null?void 0:y.fees)==null?void 0:ee.baseFeeMultiplier)=="function"){const de=await(0,a.getAction)(d,c.getBlock,"getBlock")({});return y.fees.baseFeeMultiplier({block:de,client:d,request:l})}return((ae=y==null?void 0:y.fees)==null?void 0:ae.baseFeeMultiplier)??1.2})();if(Y<1)throw new r.BaseFeeScalarError;const X=10**(((D=Y.toString().split(".")[1])==null?void 0:D.length)??0),L=ee=>ee*BigInt(Math.ceil(Y*X))/BigInt(X);return H.maxFeePerGas&&!l.maxFeePerGas&&(H.maxFeePerGas=L(H.maxFeePerGas)),H.gasPrice&&!l.gasPrice&&(H.gasPrice=L(H.gasPrice)),{raw:U.raw,transaction:{from:M.from,...H}}}catch(U){throw(0,n.getTransactionError)(U,{...l,chain:d.chain})}}return Co}var Lf;function mn(){return Lf||(Lf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.supportsFillTransaction=e.eip1559NetworkCache=e.defaultParameters=void 0,e.prepareTransactionRequest=E;const r=ce(),n=ym(),t=du(),i=Vt(),s=Zs(),a=ln(),o=Ys(),c=Xs(),u=cu(),f=Qs(),d=te(),l=Dt(),p=Ge(),m=ec(),b=uu(),y=Pt();e.defaultParameters=["blobVersionedHashes","chainId","fees","gas","nonce","type"],e.eip1559NetworkCache=new Map,e.supportsFillTransaction=new l.LruMap(128);async function E(P,A){var N,D,U;let h=A;h.account??(h.account=P.account),h.parameters??(h.parameters=e.defaultParameters);const{account:T,chain:_=P.chain,nonceManager:g,parameters:v}=h,j=(()=>{if(typeof(_==null?void 0:_.prepareTransactionRequest)=="function")return{fn:_.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(_==null?void 0:_.prepareTransactionRequest))return{fn:_.prepareTransactionRequest[0],runAt:_.prepareTransactionRequest[1].runAt}})();let w;async function C(){return w||(typeof h.chainId<"u"?h.chainId:_?_.id:(w=await(0,d.getAction)(P,y.getChainId,"getChainId")({}),w))}const S=T&&(0,r.parseAccount)(T);let R=h.nonce;if(v.includes("nonce")&&typeof R>"u"&&S&&g){const G=await C();R=await g.consume({address:S.address,chainId:G,client:P})}j!=null&&j.fn&&((N=j.runAt)!=null&&N.includes("beforeFillTransaction"))&&(h=await j.fn({...h,chain:_},{phase:"beforeFillTransaction"}),R??(R=h.nonce));const q=(()=>(v.includes("blobVersionedHashes")||v.includes("sidecars"))&&h.kzg&&h.blobs||e.supportsFillTransaction.get(P.uid)===!1||!["fees","gas"].some(H=>v.includes(H))?!1:!!(v.includes("chainId")&&typeof h.chainId!="number"||v.includes("nonce")&&typeof R!="number"||v.includes("fees")&&typeof h.gasPrice!="bigint"&&(typeof h.maxFeePerGas!="bigint"||typeof h.maxPriorityFeePerGas!="bigint")||v.includes("gas")&&typeof h.gas!="bigint"))()?await(0,d.getAction)(P,b.fillTransaction,"fillTransaction")({...h,nonce:R}).then(G=>{const{chainId:H,from:Y,gas:J,gasPrice:X,nonce:L,maxFeePerBlobGas:ee,maxFeePerGas:ae,maxPriorityFeePerGas:de,type:ye,...fe}=G.transaction;return e.supportsFillTransaction.set(P.uid,!0),{...h,...Y?{from:Y}:{},...ye?{type:ye}:{},...typeof H<"u"?{chainId:H}:{},...typeof J<"u"?{gas:J}:{},...typeof X<"u"?{gasPrice:X}:{},...typeof L<"u"?{nonce:L}:{},...typeof ee<"u"?{maxFeePerBlobGas:ee}:{},...typeof ae<"u"?{maxFeePerGas:ae}:{},...typeof de<"u"?{maxPriorityFeePerGas:de}:{},..."nonceKey"in fe&&typeof fe.nonceKey<"u"?{nonceKey:fe.nonceKey}:{}}}).catch(G=>{var J;const H=G;return H.name!=="TransactionExecutionError"||((J=H.walk)==null?void 0:J.call(H,X=>{const L=X;return L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError"}))&&e.supportsFillTransaction.set(P.uid,!1),h}):h;R??(R=q.nonce),h={...q,...S?{from:S==null?void 0:S.address}:{},...R?{nonce:R}:{}};const{blobs:B,gas:O,kzg:M,type:k}=h;j!=null&&j.fn&&((D=j.runAt)!=null&&D.includes("beforeFillParameters"))&&(h=await j.fn({...h,chain:_},{phase:"beforeFillParameters"}));let $;async function z(){return $||($=await(0,d.getAction)(P,i.getBlock,"getBlock")({blockTag:"latest"}),$)}if(v.includes("nonce")&&typeof R>"u"&&S&&!g&&(h.nonce=await(0,d.getAction)(P,s.getTransactionCount,"getTransactionCount")({address:S.address,blockTag:"pending"})),(v.includes("blobVersionedHashes")||v.includes("sidecars"))&&B&&M){const G=(0,o.blobsToCommitments)({blobs:B,kzg:M});if(v.includes("blobVersionedHashes")){const H=(0,u.commitmentsToVersionedHashes)({commitments:G,to:"hex"});h.blobVersionedHashes=H}if(v.includes("sidecars")){const H=(0,c.blobsToProofs)({blobs:B,commitments:G,kzg:M}),Y=(0,f.toBlobSidecars)({blobs:B,commitments:G,proofs:H,to:"hex"});h.sidecars=Y}}if(v.includes("chainId")&&(h.chainId=await C()),(v.includes("fees")||v.includes("type"))&&typeof k>"u")try{h.type=(0,m.getTransactionType)(h)}catch{let G=e.eip1559NetworkCache.get(P.uid);if(typeof G>"u"){const H=await z();G=typeof(H==null?void 0:H.baseFeePerGas)=="bigint",e.eip1559NetworkCache.set(P.uid,G)}h.type=G?"eip1559":"legacy"}if(v.includes("fees"))if(h.type!=="legacy"&&h.type!=="eip2930"){if(typeof h.maxFeePerGas>"u"||typeof h.maxPriorityFeePerGas>"u"){const G=await z(),{maxFeePerGas:H,maxPriorityFeePerGas:Y}=await(0,n.internal_estimateFeesPerGas)(P,{block:G,chain:_,request:h});if(typeof h.maxPriorityFeePerGas>"u"&&h.maxFeePerGas&&h.maxFeePerGas<Y)throw new a.MaxFeePerGasTooLowError({maxPriorityFeePerGas:Y});h.maxPriorityFeePerGas=Y,h.maxFeePerGas=H}}else{if(typeof h.maxFeePerGas<"u"||typeof h.maxPriorityFeePerGas<"u")throw new a.Eip1559FeesNotSupportedError;if(typeof h.gasPrice>"u"){const G=await z(),{gasPrice:H}=await(0,n.internal_estimateFeesPerGas)(P,{block:G,chain:_,request:h,type:"legacy"});h.gasPrice=H}}return v.includes("gas")&&typeof O>"u"&&(h.gas=await(0,d.getAction)(P,t.estimateGas,"estimateGas")({...h,account:S,prepare:(S==null?void 0:S.type)==="local"?[]:["blobVersionedHashes"]})),j!=null&&j.fn&&((U=j.runAt)!=null&&U.includes("afterFillParameters"))&&(h=await j.fn({...h,chain:_},{phase:"afterFillParameters"})),(0,p.assertRequest)(h),delete h.parameters,h}}(Bc)),Bc}var Gf;function du(){if(Gf)return so;Gf=1,Object.defineProperty(so,"__esModule",{value:!0}),so.estimateGas=f;const e=ce(),r=Q(),n=un(),t=V(),i=bm(),s=Et(),a=Le(),o=ru(),c=Ge(),u=mn();async function f(d,l){var E,P,A;const{account:p=d.account,prepare:m=!0}=l,b=p?(0,e.parseAccount)(p):void 0,y=(()=>{if(Array.isArray(m))return m;if((b==null?void 0:b.type)!=="local")return["blobVersionedHashes"]})();try{const h=await(async()=>{if(l.to)return l.to;if(l.authorizationList&&l.authorizationList.length>0)return await(0,n.recoverAuthorizationAddress)({authorization:l.authorizationList[0]}).catch(()=>{throw new r.BaseError("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:T,authorizationList:_,blobs:g,blobVersionedHashes:v,blockNumber:j,blockTag:w,data:C,gas:S,gasPrice:R,maxFeePerBlobGas:I,maxFeePerGas:q,maxPriorityFeePerGas:B,nonce:O,value:M,stateOverride:k,...$}=m?await(0,u.prepareTransactionRequest)(d,{...l,parameters:y,to:h}):l;if(S&&l.gas!==S)return S;const N=(typeof j=="bigint"?(0,t.numberToHex)(j):void 0)||w,D=(0,o.serializeStateOverride)(k);(0,c.assertRequest)(l);const U=(A=(P=(E=d.chain)==null?void 0:E.formatters)==null?void 0:P.transactionRequest)==null?void 0:A.format,H=(U||a.formatTransactionRequest)({...(0,s.extract)($,{format:U}),account:b,accessList:T,authorizationList:_,blobs:g,blobVersionedHashes:v,data:C,gasPrice:R,maxFeePerBlobGas:I,maxFeePerGas:q,maxPriorityFeePerGas:B,nonce:O,to:h,value:M},"estimateGas");return BigInt(await d.request({method:"eth_estimateGas",params:D?[H,N??d.experimental_blockTag??"latest",D]:N?[H,N]:[H]}))}catch(h){throw(0,i.getEstimateGasError)(h,{...l,account:b,chain:d.chain})}}return so}var Vf;function _m(){if(Vf)return Jn;Vf=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.estimateContractGas=s;const e=ce(),r=Pe(),n=vt(),t=te(),i=du();async function s(a,o){const{abi:c,address:u,args:f,functionName:d,dataSuffix:l,...p}=o,m=(0,r.encodeFunctionData)({abi:c,args:f,functionName:d});try{return await(0,t.getAction)(a,i.estimateGas,"estimateGas")({data:`${m}${l?l.replace("0x",""):""}`,to:u,...p})}catch(b){const y=p.account?(0,e.parseAccount)(p.account):void 0;throw(0,n.getContractError)(b,{abi:c,address:u,args:f,docsPath:"/docs/contract/estimateContractGas",functionName:d,sender:y==null?void 0:y.address})}}return Jn}var Bo={},qo={},Fo={},Mo={},Wf;function Ve(){if(Wf)return Mo;Wf=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.isAddressEqual=n;const e=ze(),r=Ee();function n(t,i){if(!(0,r.isAddress)(t,{strict:!1}))throw new e.InvalidAddressError({address:t});if(!(0,r.isAddress)(i,{strict:!1}))throw new e.InvalidAddressError({address:i});return t.toLowerCase()===i.toLowerCase()}return Mo}var ko={},Kf;function yn(){if(Kf)return ko;Kf=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.decodeEventLog=o;const e=se(),r=cm(),n=ve(),t=yr(),i=gt(),s=ot(),a="/docs/contract/decodeEventLog";function o(u){const{abi:f,data:d,strict:l,topics:p}=u,m=l??!0,[b,...y]=p;if(!b)throw new e.AbiEventSignatureEmptyTopicsError({docsPath:a});const E=f.find(v=>v.type==="event"&&b===(0,t.toEventSelector)((0,s.formatAbiItem)(v)));if(!(E&&"name"in E)||E.type!=="event")throw new e.AbiEventSignatureNotFoundError(b,{docsPath:a});const{name:P,inputs:A}=E,h=A==null?void 0:A.some(v=>!("name"in v&&v.name)),T=h?[]:{},_=A.map((v,j)=>[v,j]).filter(([v])=>"indexed"in v&&v.indexed);for(let v=0;v<_.length;v++){const[j,w]=_[v],C=y[v];if(!C)throw new e.DecodeLogTopicsMismatch({abiItem:E,param:j});T[h?w:j.name||w]=c({param:j,value:C})}const g=A.filter(v=>!("indexed"in v&&v.indexed));if(g.length>0){if(d&&d!=="0x")try{const v=(0,i.decodeAbiParameters)(g,d);if(v)if(h)for(let j=0;j<A.length;j++)T[j]=T[j]??v.shift();else for(let j=0;j<g.length;j++)T[g[j].name]=v[j]}catch(v){if(m)throw v instanceof e.AbiDecodingDataSizeTooSmallError||v instanceof r.PositionOutOfBoundsError?new e.DecodeLogDataMismatch({abiItem:E,data:d,params:g,size:(0,n.size)(d)}):v}else if(m)throw new e.DecodeLogDataMismatch({abiItem:E,data:"0x",params:g,size:0})}return{eventName:P,args:Object.values(T).length>0?T:void 0}}function c({param:u,value:f}){return u.type==="string"||u.type==="bytes"||u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/)?f:((0,i.decodeAbiParameters)([u],f)||[])[0]}return ko}var Jf;function pn(){if(Jf)return Fo;Jf=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.parseEventLogs=s;const e=Ve(),r=oe(),n=je(),t=yr(),i=yn();function s(o){const{abi:c,args:u,logs:f,strict:d=!0}=o,l=(()=>{if(o.eventName)return Array.isArray(o.eventName)?o.eventName:[o.eventName]})();return f.map(p=>{var E;const m=c.filter(P=>P.type==="event"&&p.topics[0]===(0,t.toEventSelector)(P));if(m.length===0)return null;let b,y;for(const P of m)try{b=(0,i.decodeEventLog)({...p,abi:[P],strict:!0}),y=P;break}catch{}if(!b&&!d){y=m[0];try{b=(0,i.decodeEventLog)({...p,abi:[y],strict:!1})}catch{const P=(E=y.inputs)==null?void 0:E.some(A=>!("name"in A&&A.name));return{...p,args:P?[]:{},eventName:y.name}}}return!b||!y||l&&!l.includes(b.eventName)||!a({args:b.args,inputs:y.inputs,matchArgs:u})?null:{...b,...p}}).filter(Boolean)}function a(o){const{args:c,inputs:u,matchArgs:f}=o;if(!f)return!0;if(!c)return!1;function d(l,p,m){try{return l.type==="address"?(0,e.isAddressEqual)(p,m):l.type==="string"||l.type==="bytes"?(0,n.keccak256)((0,r.toBytes)(p))===m:p===m}catch{return!1}}return Array.isArray(c)&&Array.isArray(f)?f.every((l,p)=>{if(l==null)return!0;const m=u[p];return m?(Array.isArray(l)?l:[l]).some(y=>d(m,y,c[p])):!1}):typeof c=="object"&&!Array.isArray(c)&&typeof f=="object"&&!Array.isArray(f)?Object.entries(f).every(([l,p])=>{if(p==null)return!0;const m=u.find(y=>y.name===l);return m?(Array.isArray(p)?p:[p]).some(y=>d(m,y,c[l])):!1}):!1}return Fo}var No={},Zf;function ct(){if(Zf)return No;Zf=1,Object.defineProperty(No,"__esModule",{value:!0}),No.formatLog=e;function e(r,{args:n,eventName:t}={}){return{...r,blockHash:r.blockHash?r.blockHash:null,blockNumber:r.blockNumber?BigInt(r.blockNumber):null,blockTimestamp:r.blockTimestamp?BigInt(r.blockTimestamp):r.blockTimestamp===null?null:void 0,logIndex:r.logIndex?Number(r.logIndex):null,transactionHash:r.transactionHash?r.transactionHash:null,transactionIndex:r.transactionIndex?Number(r.transactionIndex):null,...t?{args:n,eventName:t}:{}}}return No}var Yf;function fu(){if(Yf)return qo;Yf=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.getLogs=i;const e=Lt(),r=pn(),n=V(),t=ct();async function i(s,{address:a,blockHash:o,fromBlock:c,toBlock:u,event:f,events:d,args:l,strict:p}={}){const m=p??!1,b=d??(f?[f]:void 0);let y=[];b&&(y=[b.flatMap(h=>(0,e.encodeEventTopics)({abi:[h],eventName:h.name,args:d?void 0:l}))],f&&(y=y[0]));let E;o?E=await s.request({method:"eth_getLogs",params:[{address:a,topics:y,blockHash:o}]}):E=await s.request({method:"eth_getLogs",params:[{address:a,topics:y,fromBlock:typeof c=="bigint"?(0,n.numberToHex)(c):c,toBlock:typeof u=="bigint"?(0,n.numberToHex)(u):u}]});const P=E.map(A=>(0,t.formatLog)(A));return b?(0,r.parseEventLogs)({abi:b,args:l,logs:P,strict:m}):P}return qo}var Xf;function lu(){if(Xf)return Bo;Xf=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.getContractEvents=t;const e=it(),r=te(),n=fu();async function t(i,s){const{abi:a,address:o,args:c,blockHash:u,eventName:f,fromBlock:d,toBlock:l,strict:p}=s,m=f?(0,e.getAbiItem)({abi:a,name:f}):void 0,b=m?void 0:a.filter(y=>y.type==="event");return(0,r.getAction)(i,n.getLogs,"getLogs")({address:o,args:c,blockHash:u,event:m,events:b,fromBlock:d,toBlock:l,strict:p})}return Bo}var Ho={},xo={},Qf;function ut(){if(Qf)return xo;Qf=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.decodeFunctionResult=i;const e=se(),r=gt(),n=it(),t="/docs/contract/decodeFunctionResult";function i(s){const{abi:a,args:o,functionName:c,data:u}=s;let f=a[0];if(c){const l=(0,n.getAbiItem)({abi:a,args:o,name:c});if(!l)throw new e.AbiFunctionNotFoundError(c,{docsPath:t});f=l}if(f.type!=="function")throw new e.AbiFunctionNotFoundError(void 0,{docsPath:t});if(!f.outputs)throw new e.AbiFunctionOutputsNotFoundError(f.name,{docsPath:t});const d=(0,r.decodeAbiParameters)(f.outputs,u);if(d&&d.length>1)return d;if(d&&d.length===1)return d[0]}return xo}var Dr={},re={},el;function Tt(){if(el)return re;el=1,Object.defineProperty(re,"__esModule",{value:!0}),re.erc4626Abi=re.erc721Abi=re.erc1155Abi=re.erc20Abi_bytes32=re.erc20Abi=re.erc6492SignatureValidatorAbi=re.erc1271Abi=re.addressResolverAbi=re.textResolverAbi=re.universalResolverReverseAbi=re.universalResolverResolveAbi=re.batchGatewayAbi=re.multicall3Abi=void 0,re.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],re.batchGatewayAbi=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}];const e=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}];return re.universalResolverResolveAbi=[...e,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],re.universalResolverReverseAbi=[...e,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],re.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],re.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],re.erc1271Abi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],re.erc6492SignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],re.erc20Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],re.erc20Abi_bytes32=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],re.erc1155Abi=[{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],re.erc721Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],re.erc4626Abi=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],re}var Ur={},tl;function yp(){return tl||(tl=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.aggregate3Signature=void 0,Ur.aggregate3Signature="0x82ad56cb"),Ur}var He={},rl;function gn(){return rl||(rl=1,Object.defineProperty(He,"__esModule",{value:!0}),He.multicall3Bytecode=He.erc6492SignatureValidatorByteCode=He.deploylessCallViaFactoryBytecode=He.deploylessCallViaBytecodeBytecode=void 0,He.deploylessCallViaBytecodeBytecode="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",He.deploylessCallViaFactoryBytecode="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",He.erc6492SignatureValidatorByteCode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",He.multicall3Bytecode="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"),He}var Se={},nl;function hn(){if(nl)return Se;nl=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.InvalidChainIdError=Se.ClientChainNotConfiguredError=Se.ChainNotFoundError=Se.ChainMismatchError=Se.ChainDoesNotSupportContract=void 0;const e=Q();class r extends e.BaseError{constructor({blockNumber:o,chain:c,contract:u}){super(`Chain "${c.name}" does not support contract "${u.name}".`,{metaMessages:["This could be due to any of the following:",...o&&u.blockCreated&&u.blockCreated>o?[`- The contract "${u.name}" was not deployed until block ${u.blockCreated} (current block ${o}).`]:[`- The chain does not have the contract "${u.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}Se.ChainDoesNotSupportContract=r;class n extends e.BaseError{constructor({chain:o,currentChainId:c}){super(`The current chain of the wallet (id: ${c}) does not match the target chain for the transaction (id: ${o.id} – ${o.name}).`,{metaMessages:[`Current Chain ID: ${c}`,`Expected Chain ID: ${o.id} – ${o.name}`],name:"ChainMismatchError"})}}Se.ChainMismatchError=n;class t extends e.BaseError{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
40
- `),{name:"ChainNotFoundError"})}}Se.ChainNotFoundError=t;class i extends e.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}Se.ClientChainNotConfiguredError=i;class s extends e.BaseError{constructor({chainId:o}){super(typeof o=="number"?`Chain ID "${o}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}return Se.InvalidChainIdError=s,Se}var $o={},ol;function _n(){if(ol)return $o;ol=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.encodeDeployData=i;const e=se(),r=le(),n=De(),t="/docs/contract/encodeDeployData";function i(s){const{abi:a,args:o,bytecode:c}=s;if(!o||o.length===0)return c;const u=a.find(d=>"type"in d&&d.type==="constructor");if(!u)throw new e.AbiConstructorNotFoundError({docsPath:t});if(!("inputs"in u))throw new e.AbiConstructorParamsNotFoundError({docsPath:t});if(!u.inputs||u.inputs.length===0)throw new e.AbiConstructorParamsNotFoundError({docsPath:t});const f=(0,n.encodeAbiParameters)(u.inputs,o);return(0,r.concatHex)([c,f])}return $o}var zo={},al;function wt(){if(al)return zo;al=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.getChainContractAddress=r;const e=hn();function r({blockNumber:n,chain:t,contract:i}){var a;const s=(a=t==null?void 0:t.contracts)==null?void 0:a[i];if(!s)throw new e.ChainDoesNotSupportContract({chain:t,contract:{name:i}});if(n&&s.blockCreated&&s.blockCreated>n)throw new e.ChainDoesNotSupportContract({blockNumber:n,chain:t,contract:{name:i,blockCreated:s.blockCreated}});return s.address}return zo}var Do={},il;function bu(){if(il)return Do;il=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.getCallError=t;const e=ht(),r=st(),n=dn();function t(i,{docsPath:s,...a}){const o=(()=>{const c=(0,n.getNodeError)(i,a);return c instanceof r.UnknownNodeError?i:c})();return new e.CallExecutionError(o,{docsPath:s,...a})}return Do}var Uo={},Lo={},sl;function mu(){if(sl)return Lo;sl=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.withResolvers=e;function e(){let r=()=>{},n=()=>{};return{promise:new Promise((i,s)=>{r=i,n=s}),resolve:r,reject:n}}return Lo}var cl;function yu(){if(cl)return Uo;cl=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.createBatchScheduler=n;const e=mu(),r=new Map;function n({fn:t,id:i,shouldSplitBatch:s,wait:a=0,sort:o}){const c=async()=>{const p=d();u();const m=p.map(({args:b})=>b);m.length!==0&&t(m).then(b=>{o&&Array.isArray(b)&&b.sort(o);for(let y=0;y<p.length;y++){const{resolve:E}=p[y];E==null||E([b[y],b])}}).catch(b=>{for(let y=0;y<p.length;y++){const{reject:E}=p[y];E==null||E(b)}})},u=()=>r.delete(i),f=()=>d().map(({args:p})=>p),d=()=>r.get(i)||[],l=p=>r.set(i,[...d(),p]);return{flush:u,async schedule(p){const{promise:m,resolve:b,reject:y}=(0,e.withResolvers)();return(s==null?void 0:s([...f(),p]))&&c(),d().length>0?(l({args:p,resolve:b,reject:y}),m):(l({args:p,resolve:b,reject:y}),setTimeout(c,a),m)}}}return Uo}var Mc={},rt={},ul;function pp(){if(ul)return rt;ul=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.OffchainLookupSenderMismatchError=rt.OffchainLookupResponseMalformedError=rt.OffchainLookupError=void 0;const e=me(),r=Q(),n=eu();class t extends r.BaseError{constructor({callbackSelector:o,cause:c,data:u,extraData:f,sender:d,urls:l}){var p;super(c.shortMessage||"An error occurred while fetching for an offchain result.",{cause:c,metaMessages:[...c.metaMessages||[],(p=c.metaMessages)!=null&&p.length?"":[],"Offchain Gateway Call:",l&&[" Gateway URL(s):",...l.map(m=>` ${(0,n.getUrl)(m)}`)],` Sender: ${d}`,` Data: ${u}`,` Callback selector: ${o}`,` Extra data: ${f}`].flat(),name:"OffchainLookupError"})}}rt.OffchainLookupError=t;class i extends r.BaseError{constructor({result:o,url:c}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,n.getUrl)(c)}`,`Response: ${(0,e.stringify)(o)}`],name:"OffchainLookupResponseMalformedError"})}}rt.OffchainLookupResponseMalformedError=i;class s extends r.BaseError{constructor({sender:o,to:c}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${c}`,`OffchainLookup sender address: ${o}`],name:"OffchainLookupSenderMismatchError"})}}return rt.OffchainLookupSenderMismatchError=s,rt}var kc={},Go={},dl;function pu(){if(dl)return Go;dl=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.decodeFunctionData=s;const e=se(),r=Me(),n=Ut(),t=gt(),i=ot();function s(a){const{abi:o,data:c}=a,u=(0,r.slice)(c,0,4),f=o.find(d=>d.type==="function"&&u===(0,n.toFunctionSelector)((0,i.formatAbiItem)(d)));if(!f)throw new e.AbiFunctionSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:f.name,args:"inputs"in f&&f.inputs&&f.inputs.length>0?(0,t.decodeAbiParameters)(f.inputs,(0,r.slice)(c,4)):void 0}}return Go}var Vo={},fl;function gu(){if(fl)return Vo;fl=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.encodeErrorResult=o;const e=se(),r=le(),n=Ut(),t=De(),i=ot(),s=it(),a="/docs/contract/encodeErrorResult";function o(c){const{abi:u,errorName:f,args:d}=c;let l=u[0];if(f){const y=(0,s.getAbiItem)({abi:u,args:d,name:f});if(!y)throw new e.AbiErrorNotFoundError(f,{docsPath:a});l=y}if(l.type!=="error")throw new e.AbiErrorNotFoundError(void 0,{docsPath:a});const p=(0,i.formatAbiItem)(l),m=(0,n.toFunctionSelector)(p);let b="0x";if(d&&d.length>0){if(!l.inputs)throw new e.AbiErrorInputsNotFoundError(l.name,{docsPath:a});b=(0,t.encodeAbiParameters)(l.inputs,d)}return(0,r.concatHex)([m,b])}return Vo}var Wo={},ll;function hu(){if(ll)return Wo;ll=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.encodeFunctionResult=i;const e=se(),r=De(),n=it(),t="/docs/contract/encodeFunctionResult";function i(s){const{abi:a,functionName:o,result:c}=s;let u=a[0];if(o){const d=(0,n.getAbiItem)({abi:a,name:o});if(!d)throw new e.AbiFunctionNotFoundError(o,{docsPath:t});u=d}if(u.type!=="function")throw new e.AbiFunctionNotFoundError(void 0,{docsPath:t});if(!u.outputs)throw new e.AbiFunctionOutputsNotFoundError(u.name,{docsPath:t});const f=(()=>{if(u.outputs.length===0)return[];if(u.outputs.length===1)return[c];if(Array.isArray(c))return c;throw new e.InvalidArrayError(c)})();return(0,r.encodeAbiParameters)(u.outputs,f)}return Wo}var bl;function tc(){return bl||(bl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.localBatchGatewayUrl=void 0,e.localBatchGatewayRequest=a;const r=Tt(),n=Yc(),t=pu(),i=gu(),s=hu();e.localBatchGatewayUrl="x-batch-gateway:true";async function a(c){const{data:u,ccipRequest:f}=c,{args:[d]}=(0,t.decodeFunctionData)({abi:r.batchGatewayAbi,data:u}),l=[],p=[];return await Promise.all(d.map(async(m,b)=>{try{p[b]=m.urls.includes(e.localBatchGatewayUrl)?await a({data:m.data,ccipRequest:f}):await f(m),l[b]=!1}catch(y){l[b]=!0,p[b]=o(y)}})),(0,s.encodeFunctionResult)({abi:r.batchGatewayAbi,functionName:"query",result:[l,p]})}function o(c){return c.name==="HttpRequestError"&&c.status?(0,i.encodeErrorResult)({abi:r.batchGatewayAbi,errorName:"HttpError",args:[c.status,c.shortMessage]}):(0,i.encodeErrorResult)({abi:[n.solidityError],errorName:"Error",args:["shortMessage"in c?c.shortMessage:c.message]})}}(kc)),kc}var ml;function _u(){return ml||(ml=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.offchainLookupAbiItem=e.offchainLookupSignature=void 0,e.offchainLookup=d,e.ccipRequest=l;const r=vn(),n=pp(),t=Ue(),i=Ws(),s=De(),a=Ve(),o=le(),c=_e(),u=tc(),f=me();e.offchainLookupSignature="0x556f1830",e.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function d(p,{blockNumber:m,blockTag:b,data:y,to:E}){const{args:P}=(0,i.decodeErrorResult)({data:y,abi:[e.offchainLookupAbiItem]}),[A,h,T,_,g]=P,{ccipRead:v}=p,j=v&&typeof(v==null?void 0:v.request)=="function"?v.request:l;try{if(!(0,a.isAddressEqual)(E,A))throw new n.OffchainLookupSenderMismatchError({sender:A,to:E});const w=h.includes(u.localBatchGatewayUrl)?await(0,u.localBatchGatewayRequest)({data:T,ccipRequest:j}):await j({data:T,sender:A,urls:h}),{data:C}=await(0,r.call)(p,{blockNumber:m,blockTag:b,data:(0,o.concat)([_,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[w,g])]),to:E});return C}catch(w){throw new n.OffchainLookupError({callbackSelector:_,cause:w,data:y,extraData:g,sender:A,urls:h})}}async function l({data:p,sender:m,urls:b}){var E;let y=new Error("An unknown error occurred.");for(let P=0;P<b.length;P++){const A=b[P],h=A.includes("{data}")?"GET":"POST",T=h==="POST"?{data:p,sender:m}:void 0,_=h==="POST"?{"Content-Type":"application/json"}:{};try{const g=await fetch(A.replace("{sender}",m.toLowerCase()).replace("{data}",p),{body:JSON.stringify(T),headers:_,method:h});let v;if((E=g.headers.get("Content-Type"))!=null&&E.startsWith("application/json")?v=(await g.json()).data:v=await g.text(),!g.ok){y=new t.HttpRequestError({body:T,details:v!=null&&v.error?(0,f.stringify)(v.error):g.statusText,headers:g.headers,status:g.status,url:A});continue}if(!(0,c.isHex)(v)){y=new n.OffchainLookupResponseMalformedError({result:v,url:A});continue}return v}catch(g){y=new t.HttpRequestError({body:T,details:g.message,url:A})}}throw y}}(Mc)),Mc}var yl;function vn(){if(yl)return Dr;yl=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.call=h,Dr.getRevertErrorData=j;const e=zt(),r=nm(),n=ce(),t=Tt(),i=yp(),s=gn(),a=Q(),o=hn(),c=ht(),u=ut(),f=_n(),d=Pe(),l=wt(),p=V(),m=bu(),b=Et(),y=Le(),E=yu(),P=ru(),A=Ge();async function h(w,C){var qe,W,x,Rt;const{account:S=w.account,authorizationList:R,batch:I=!!((qe=w.batch)!=null&&qe.multicall),blockNumber:q,blockTag:B=w.experimental_blockTag??"latest",accessList:O,blobs:M,blockOverrides:k,code:$,data:z,factory:N,factoryData:D,gas:U,gasPrice:G,maxFeePerBlobGas:H,maxFeePerGas:Y,maxPriorityFeePerGas:J,nonce:X,to:L,value:ee,stateOverride:ae,...de}=C,ye=S?(0,n.parseAccount)(S):void 0;if($&&(N||D))throw new a.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if($&&L)throw new a.BaseError("Cannot provide both `code` & `to` as parameters.");const fe=$&&z,pe=N&&D&&L&&z,be=fe||pe,ke=(()=>fe?g({code:$,data:z}):pe?v({data:z,factory:N,factoryData:D,to:L}):z)();try{(0,A.assertRequest)(C);const we=(typeof q=="bigint"?(0,p.numberToHex)(q):void 0)||B,Fe=k?r.toRpc(k):void 0,Ae=(0,P.serializeStateOverride)(ae),Kt=(Rt=(x=(W=w.chain)==null?void 0:W.formatters)==null?void 0:x.transactionRequest)==null?void 0:Rt.format,dt=(Kt||y.formatTransactionRequest)({...(0,b.extract)(de,{format:Kt}),accessList:O,account:ye,authorizationList:R,blobs:M,data:ke,gas:U,gasPrice:G,maxFeePerBlobGas:H,maxFeePerGas:Y,maxPriorityFeePerGas:J,nonce:X,to:be?void 0:L,value:ee},"call");if(I&&T({request:dt})&&!Ae&&!Fe)try{return await _(w,{...dt,blockNumber:q,blockTag:B})}catch(Re){if(!(Re instanceof o.ClientChainNotConfiguredError)&&!(Re instanceof o.ChainDoesNotSupportContract))throw Re}const Jt=(()=>{const Re=[dt,we];return Ae&&Fe?[...Re,Ae,Fe]:Ae?[...Re,Ae]:Fe?[...Re,{},Fe]:Re})(),Zt=await w.request({method:"eth_call",params:Jt});return Zt==="0x"?{data:void 0}:{data:Zt}}catch(It){const we=j(It),{offchainLookup:Fe,offchainLookupSignature:Ae}=await Promise.resolve().then(()=>_u());if(w.ccipRead!==!1&&(we==null?void 0:we.slice(0,10))===Ae&&L)return{data:await Fe(w,{data:we,to:L})};throw be&&(we==null?void 0:we.slice(0,10))==="0x101bb98d"?new c.CounterfactualDeploymentFailedError({factory:N}):(0,m.getCallError)(It,{...C,account:ye,chain:w.chain})}}function T({request:w}){const{data:C,to:S,...R}=w;return!(!C||C.startsWith(i.aggregate3Signature)||!S||Object.values(R).filter(I=>typeof I<"u").length>0)}async function _(w,C){var G;const{batchSize:S=1024,deployless:R=!1,wait:I=0}=typeof((G=w.batch)==null?void 0:G.multicall)=="object"?w.batch.multicall:{},{blockNumber:q,blockTag:B=w.experimental_blockTag??"latest",data:O,to:M}=C,k=(()=>{if(R)return null;if(C.multicallAddress)return C.multicallAddress;if(w.chain)return(0,l.getChainContractAddress)({blockNumber:q,chain:w.chain,contract:"multicall3"});throw new o.ClientChainNotConfiguredError})(),z=(typeof q=="bigint"?(0,p.numberToHex)(q):void 0)||B,{schedule:N}=(0,E.createBatchScheduler)({id:`${w.uid}.${z}`,wait:I,shouldSplitBatch(H){return H.reduce((J,{data:X})=>J+(X.length-2),0)>S*2},fn:async H=>{const Y=H.map(L=>({allowFailure:!0,callData:L.data,target:L.to})),J=(0,d.encodeFunctionData)({abi:t.multicall3Abi,args:[Y],functionName:"aggregate3"}),X=await w.request({method:"eth_call",params:[{...k===null?{data:g({code:s.multicall3Bytecode,data:J})}:{to:k,data:J}},z]});return(0,u.decodeFunctionResult)({abi:t.multicall3Abi,args:[Y],functionName:"aggregate3",data:X||"0x"})}}),[{returnData:D,success:U}]=await N({data:O,to:M});if(!U)throw new c.RawContractError({data:D});return D==="0x"?{data:void 0}:{data:D}}function g(w){const{code:C,data:S}=w;return(0,f.encodeDeployData)({abi:(0,e.parseAbi)(["constructor(bytes, bytes)"]),bytecode:s.deploylessCallViaBytecodeBytecode,args:[C,S]})}function v(w){const{data:C,factory:S,factoryData:R,to:I}=w;return(0,f.encodeDeployData)({abi:(0,e.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:s.deploylessCallViaFactoryBytecode,args:[I,C,S,R]})}function j(w){var S;if(!(w instanceof a.BaseError))return;const C=w.walk();return typeof(C==null?void 0:C.data)=="object"?(S=C.data)==null?void 0:S.data:C.data}return Dr}var pl;function We(){if(pl)return Ho;pl=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.readContract=s;const e=ut(),r=Pe(),n=vt(),t=te(),i=vn();async function s(a,o){const{abi:c,address:u,args:f,functionName:d,...l}=o,p=(0,r.encodeFunctionData)({abi:c,args:f,functionName:d});try{const{data:m}=await(0,t.getAction)(a,i.call,"call")({...l,data:p,to:u});return(0,e.decodeFunctionResult)({abi:c,args:f,functionName:d,data:m||"0x"})}catch(m){throw(0,n.getContractError)(m,{abi:c,address:u,args:f,docsPath:"/docs/contract/readContract",functionName:d})}}return Ho}var Ko={},gl;function vm(){if(gl)return Ko;gl=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.simulateContract=a;const e=ce(),r=ut(),n=Pe(),t=vt(),i=te(),s=vn();async function a(o,c){const{abi:u,address:f,args:d,dataSuffix:l,functionName:p,...m}=c,b=m.account?(0,e.parseAccount)(m.account):o.account,y=(0,n.encodeFunctionData)({abi:u,args:d,functionName:p});try{const{data:E}=await(0,i.getAction)(o,s.call,"call")({batch:!1,data:`${y}${l?l.replace("0x",""):""}`,to:f,...m,account:b}),P=(0,r.decodeFunctionResult)({abi:u,args:d,functionName:p,data:E||"0x"}),A=u.filter(h=>"name"in h&&h.name===c.functionName);return{result:P,request:{abi:A,address:f,args:d,dataSuffix:l,functionName:p,...m,account:b}}}catch(E){throw(0,t.getContractError)(E,{abi:u,address:f,args:d,docsPath:"/docs/contract/simulateContract",functionName:p,sender:b==null?void 0:b.address})}}return Ko}var Jo={},Nc={},hl;function Wt(){return hl||(hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.cleanupCache=e.listenersCache=void 0,e.observe=n,e.listenersCache=new Map,e.cleanupCache=new Map;let r=0;function n(t,i,s){const a=++r,o=()=>e.listenersCache.get(t)||[],c=()=>{const p=o();e.listenersCache.set(t,p.filter(m=>m.id!==a))},u=()=>{const p=o();if(!p.some(b=>b.id===a))return;const m=e.cleanupCache.get(t);if(p.length===1&&m){const b=m();b instanceof Promise&&b.catch(()=>{})}c()},f=o();if(e.listenersCache.set(t,[...f,{id:a,fns:i}]),f&&f.length>0)return u;const d={};for(const p in i)d[p]=(...m)=>{var y,E;const b=o();if(b.length!==0)for(const P of b)(E=(y=P.fns)[p])==null||E.call(y,...m)};const l=s(d);return typeof l=="function"&&e.cleanupCache.set(t,l),u}}(Nc)),Nc}var Zo={},Yo={},_l;function vu(){if(_l)return Yo;_l=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.wait=e;async function e(r){return new Promise(n=>setTimeout(n,r))}return Yo}var vl;function gr(){if(vl)return Zo;vl=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.poll=r;const e=vu();function r(n,{emitOnBegin:t,initialWaitTime:i,interval:s}){let a=!0;const o=()=>a=!1;return(async()=>{let u;t&&(u=await n({unpoll:o}));const f=await(i==null?void 0:i(u))??s;await(0,e.wait)(f);const d=async()=>{a&&(await n({unpoll:o}),await(0,e.wait)(s),d())};d()})(),o}return Zo}var Lr={},Hc={},jl;function jm(){return jl||(jl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.responseCache=e.promiseCache=void 0,e.getCache=r,e.withCache=n,e.promiseCache=new Map,e.responseCache=new Map;function r(t){const i=(o,c)=>({clear:()=>c.delete(o),get:()=>c.get(o),set:u=>c.set(o,u)}),s=i(t,e.promiseCache),a=i(t,e.responseCache);return{clear:()=>{s.clear(),a.clear()},promise:s,response:a}}async function n(t,{cacheKey:i,cacheTime:s=Number.POSITIVE_INFINITY}){const a=r(i),o=a.response.get();if(o&&s>0&&Date.now()-o.created.getTime()<s)return o.data;let c=a.promise.get();c||(c=t(),a.promise.set(c));try{const u=await c;return a.response.set({created:new Date,data:u}),u}finally{a.promise.clear()}}}(Hc)),Hc}var El;function jn(){if(El)return Lr;El=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.getBlockNumberCache=n,Lr.getBlockNumber=t;const e=jm(),r=i=>`blockNumber.${i}`;function n(i){return(0,e.getCache)(r(i))}async function t(i,{cacheTime:s=i.cacheTime}={}){const a=await(0,e.withCache)(()=>i.request({method:"eth_blockNumber"}),{cacheKey:r(i.uid),cacheTime:s});return BigInt(a)}return Lr}var Xo={},Pl;function rc(){if(Pl)return Xo;Pl=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.getFilterChanges=n;const e=pn(),r=ct();async function n(t,{filter:i}){const s="strict"in i&&i.strict,a=await i.request({method:"eth_getFilterChanges",params:[i.id]});if(typeof a[0]=="string")return a;const o=a.map(c=>(0,r.formatLog)(c));return!("abi"in i)||!i.abi?o:(0,e.parseEventLogs)({abi:i.abi,logs:o,strict:s})}return Xo}var Qo={},Tl;function nc(){if(Tl)return Qo;Tl=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.uninstallFilter=e;async function e(r,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}return Qo}var wl;function Em(){if(wl)return Jo;wl=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.watchContractEvent=m;const e=se(),r=_t(),n=yn(),t=Lt(),i=ct(),s=te(),a=Wt(),o=gr(),c=me(),u=Zc(),f=jn(),d=lu(),l=rc(),p=nc();function m(b,y){const{abi:E,address:P,args:A,batch:h=!0,eventName:T,fromBlock:_,onError:g,onLogs:v,poll:j,pollingInterval:w=b.pollingInterval,strict:C}=y;return(()=>typeof j<"u"?j:typeof _=="bigint"?!0:!(b.transport.type==="webSocket"||b.transport.type==="ipc"||b.transport.type==="fallback"&&(b.transport.transports[0].config.type==="webSocket"||b.transport.transports[0].config.type==="ipc")))()?(()=>{const q=C??!1,B=(0,c.stringify)(["watchContractEvent",P,A,h,b.uid,T,w,q,_]);return(0,a.observe)(B,{onLogs:v,onError:g},O=>{let M;_!==void 0&&(M=_-1n);let k,$=!1;const z=(0,o.poll)(async()=>{var N;if(!$){try{k=await(0,s.getAction)(b,u.createContractEventFilter,"createContractEventFilter")({abi:E,address:P,args:A,eventName:T,strict:q,fromBlock:_})}catch{}$=!0;return}try{let D;if(k)D=await(0,s.getAction)(b,l.getFilterChanges,"getFilterChanges")({filter:k});else{const U=await(0,s.getAction)(b,f.getBlockNumber,"getBlockNumber")({});M&&M<U?D=await(0,s.getAction)(b,d.getContractEvents,"getContractEvents")({abi:E,address:P,args:A,eventName:T,fromBlock:M+1n,toBlock:U,strict:q}):D=[],M=U}if(D.length===0)return;if(h)O.onLogs(D);else for(const U of D)O.onLogs([U])}catch(D){k&&D instanceof r.InvalidInputRpcError&&($=!1),(N=O.onError)==null||N.call(O,D)}},{emitOnBegin:!0,interval:w});return async()=>{k&&await(0,s.getAction)(b,p.uninstallFilter,"uninstallFilter")({filter:k}),z()}})})():(()=>{const q=C??!1,B=(0,c.stringify)(["watchContractEvent",P,A,h,b.uid,T,w,q]);let O=!0,M=()=>O=!1;return(0,a.observe)(B,{onLogs:v,onError:g},k=>((async()=>{try{const $=(()=>{if(b.transport.type==="fallback"){const D=b.transport.transports.find(U=>U.config.type==="webSocket"||U.config.type==="ipc");return D?D.value:b.transport}return b.transport})(),z=T?(0,t.encodeEventTopics)({abi:E,eventName:T,args:A}):[],{unsubscribe:N}=await $.subscribe({params:["logs",{address:P,topics:z}],onData(D){var G;if(!O)return;const U=D.result;try{const{eventName:H,args:Y}=(0,n.decodeEventLog)({abi:E,data:U.data,topics:U.topics,strict:C}),J=(0,i.formatLog)(U,{args:Y,eventName:H});k.onLogs([J])}catch(H){let Y,J;if(H instanceof e.DecodeLogDataMismatch||H instanceof e.DecodeLogTopicsMismatch){if(C)return;Y=H.abiItem.name,J=(G=H.abiItem.inputs)==null?void 0:G.some(L=>!("name"in L&&L.name))}const X=(0,i.formatLog)(U,{args:J?[]:{},eventName:Y});k.onLogs([X])}},onError(D){var U;(U=k.onError)==null||U.call(k,D)}});M=N,O||M()}catch($){g==null||g($)}})(),()=>M()))})()}return Jo}var Gr={},Mt={},Al;function At(){if(Al)return Mt;Al=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.AccountTypeNotSupportedError=Mt.AccountNotFoundError=void 0;const e=Q();class r extends e.BaseError{constructor({docsPath:i}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
41
- `),{docsPath:i,docsSlug:"account",name:"AccountNotFoundError"})}}Mt.AccountNotFoundError=r;class n extends e.BaseError{constructor({docsPath:i,metaMessages:s,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:i,metaMessages:s,name:"AccountTypeNotSupportedError"})}}return Mt.AccountTypeNotSupportedError=n,Mt}var ea={},ta={},Rl;function En(){if(Rl)return ta;Rl=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.assertCurrentChain=r;const e=hn();function r({chain:n,currentChainId:t}){if(!n)throw new e.ChainNotFoundError;if(t!==n.id)throw new e.ChainMismatchError({chain:n,currentChainId:t})}return ta}var ra={},Il;function ju(){if(Il)return ra;Il=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.sendRawTransaction=e;async function e(r,{serializedTransaction:n}){return r.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}return ra}var Cl;function oc(){if(Cl)return ea;Cl=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.sendTransaction=b;const e=ce(),r=At(),n=Q(),t=un(),i=En(),s=bn(),a=Et(),o=Le(),c=te(),u=Dt(),f=Ge(),d=Pt(),l=mn(),p=ju(),m=new u.LruMap(128);async function b(y,E){var M,k,$,z;const{account:P=y.account,chain:A=y.chain,accessList:h,authorizationList:T,blobs:_,data:g,gas:v,gasPrice:j,maxFeePerBlobGas:w,maxFeePerGas:C,maxPriorityFeePerGas:S,nonce:R,type:I,value:q,...B}=E;if(typeof P>"u")throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const O=P?(0,e.parseAccount)(P):null;try{(0,f.assertRequest)(E);const N=await(async()=>{if(E.to)return E.to;if(E.to!==null&&T&&T.length>0)return await(0,t.recoverAuthorizationAddress)({authorization:T[0]}).catch(()=>{throw new n.BaseError("`to` is required. Could not infer from `authorizationList`.")})})();if((O==null?void 0:O.type)==="json-rpc"||O===null){let D;A!==null&&(D=await(0,c.getAction)(y,d.getChainId,"getChainId")({}),(0,i.assertCurrentChain)({currentChainId:D,chain:A}));const U=($=(k=(M=y.chain)==null?void 0:M.formatters)==null?void 0:k.transactionRequest)==null?void 0:$.format,H=(U||o.formatTransactionRequest)({...(0,a.extract)(B,{format:U}),accessList:h,account:O,authorizationList:T,blobs:_,chainId:D,data:g,gas:v,gasPrice:j,maxFeePerBlobGas:w,maxFeePerGas:C,maxPriorityFeePerGas:S,nonce:R,to:N,type:I,value:q},"sendTransaction"),Y=m.get(y.uid),J=Y?"wallet_sendTransaction":"eth_sendTransaction";try{return await y.request({method:J,params:[H]},{retryCount:0})}catch(X){if(Y===!1)throw X;const L=X;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await y.request({method:"wallet_sendTransaction",params:[H]},{retryCount:0}).then(ee=>(m.set(y.uid,!0),ee)).catch(ee=>{const ae=ee;throw ae.name==="MethodNotFoundRpcError"||ae.name==="MethodNotSupportedRpcError"?(m.set(y.uid,!1),L):ae});throw L}}if((O==null?void 0:O.type)==="local"){const D=await(0,c.getAction)(y,l.prepareTransactionRequest,"prepareTransactionRequest")({account:O,accessList:h,authorizationList:T,blobs:_,chain:A,data:g,gas:v,gasPrice:j,maxFeePerBlobGas:w,maxFeePerGas:C,maxPriorityFeePerGas:S,nonce:R,nonceManager:O.nonceManager,parameters:[...l.defaultParameters,"sidecars"],type:I,value:q,...B,to:N}),U=(z=A==null?void 0:A.serializers)==null?void 0:z.transaction,G=await O.signTransaction(D,{serializer:U});return await(0,c.getAction)(y,p.sendRawTransaction,"sendRawTransaction")({serializedTransaction:G})}throw(O==null?void 0:O.type)==="smart"?new r.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new r.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:O==null?void 0:O.type})}catch(N){throw N instanceof r.AccountTypeNotSupportedError?N:(0,s.getTransactionError)(N,{...E,account:O,chain:E.chain||void 0})}}return ea}var Sl;function Eu(){if(Sl)return Gr;Sl=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.writeContract=a;const e=ce(),r=At(),n=Pe(),t=vt(),i=te(),s=oc();async function a(o,c){return a.internal(o,s.sendTransaction,"sendTransaction",c)}return function(o){async function c(u,f,d,l){const{abi:p,account:m=u.account,address:b,args:y,dataSuffix:E,functionName:P,...A}=l;if(typeof m>"u")throw new r.AccountNotFoundError({docsPath:"/docs/contract/writeContract"});const h=m?(0,e.parseAccount)(m):null,T=(0,n.encodeFunctionData)({abi:p,args:y,functionName:P});try{return await(0,i.getAction)(u,f,d)({data:`${T}${E?E.replace("0x",""):""}`,to:b,account:h,...A})}catch(_){throw(0,t.getContractError)(_,{abi:p,address:b,args:y,docsPath:"/docs/contract/writeContract",functionName:P,sender:h==null?void 0:h.address})}}o.internal=c}(a||(Gr.writeContract=a={})),Gr}var Ol;function gp(){if(Ol)return Xt;Ol=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.getContract=c,Xt.getFunctionParameters=u,Xt.getEventParameters=f;const e=te(),r=Zc(),n=_m(),t=lu(),i=We(),s=vm(),a=Em(),o=Eu();function c({abi:d,address:l,client:p}){const m=p,[b,y]=(()=>m?"public"in m&&"wallet"in m?[m.public,m.wallet]:"public"in m?[m.public,void 0]:"wallet"in m?[void 0,m.wallet]:[m,m]:[void 0,void 0])(),E=b!=null,P=y!=null,A={};let h=!1,T=!1,_=!1;for(const g of d)if(g.type==="function"?g.stateMutability==="view"||g.stateMutability==="pure"?h=!0:T=!0:g.type==="event"&&(_=!0),h&&T&&_)break;return E&&(h&&(A.read=new Proxy({},{get(g,v){return(...j)=>{const{args:w,options:C}=u(j);return(0,e.getAction)(b,i.readContract,"readContract")({abi:d,address:l,functionName:v,args:w,...C})}}})),T&&(A.simulate=new Proxy({},{get(g,v){return(...j)=>{const{args:w,options:C}=u(j);return(0,e.getAction)(b,s.simulateContract,"simulateContract")({abi:d,address:l,functionName:v,args:w,...C})}}})),_&&(A.createEventFilter=new Proxy({},{get(g,v){return(...j)=>{const w=d.find(R=>R.type==="event"&&R.name===v),{args:C,options:S}=f(j,w);return(0,e.getAction)(b,r.createContractEventFilter,"createContractEventFilter")({abi:d,address:l,eventName:v,args:C,...S})}}}),A.getEvents=new Proxy({},{get(g,v){return(...j)=>{const w=d.find(R=>R.type==="event"&&R.name===v),{args:C,options:S}=f(j,w);return(0,e.getAction)(b,t.getContractEvents,"getContractEvents")({abi:d,address:l,eventName:v,args:C,...S})}}}),A.watchEvent=new Proxy({},{get(g,v){return(...j)=>{const w=d.find(R=>R.type==="event"&&R.name===v),{args:C,options:S}=f(j,w);return(0,e.getAction)(b,a.watchContractEvent,"watchContractEvent")({abi:d,address:l,eventName:v,args:C,...S})}}}))),P&&T&&(A.write=new Proxy({},{get(g,v){return(...j)=>{const{args:w,options:C}=u(j);return(0,e.getAction)(y,o.writeContract,"writeContract")({abi:d,address:l,functionName:v,args:w,...C})}}})),(E||P)&&T&&(A.estimateGas=new Proxy({},{get(g,v){return(...j)=>{const{args:w,options:C}=u(j),S=b??y;return(0,e.getAction)(S,n.estimateContractGas,"estimateContractGas")({abi:d,address:l,functionName:v,args:w,...C,account:C.account??y.account})}}})),A.address=l,A.abi=d,A}function u(d){const l=d.length&&Array.isArray(d[0]),p=l?d[0]:[],m=(l?d[1]:d[0])??{};return{args:p,options:m}}function f(d,l){let p=!1;Array.isArray(d[0])?p=!0:d.length===1?p=l.inputs.some(y=>y.indexed):d.length===2&&(p=!0);const m=p?d[0]:void 0,b=(p?d[1]:d[0])??{};return{args:m,options:b}}return Xt}var sr={},Vr={},Bl;function Pm(){if(Bl)return Vr;Bl=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.BundleFailedError=void 0;const e=Q();class r extends e.BaseError{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}return Vr.BundleFailedError=r,Vr}var na={},ql;function ac(){if(ql)return na;ql=1,Object.defineProperty(na,"__esModule",{value:!0}),na.withRetry=r;const e=vu();function r(n,{delay:t=100,retryCount:i=2,shouldRetry:s=()=>!0}={}){return new Promise((a,o)=>{const c=async({count:u=0}={})=>{const f=async({error:d})=>{const l=typeof t=="function"?t({count:u,error:d}):t;l&&await(0,e.wait)(l),c({count:u+1})};try{const d=await n();a(d)}catch(d){if(u<i&&await s({count:u,error:d}))return f({error:d});o(d)}};c()})}return na}var oa={},xc={},Fl;function Pn(){return Fl||(Fl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defineTransactionReceipt=e.receiptStatuses=void 0,e.formatTransactionReceipt=s;const r=ue(),n=fn(),t=ct(),i=pr();e.receiptStatuses={"0x0":"reverted","0x1":"success"};function s(a,o){const c={...a,blockNumber:a.blockNumber?BigInt(a.blockNumber):null,contractAddress:a.contractAddress?a.contractAddress:null,cumulativeGasUsed:a.cumulativeGasUsed?BigInt(a.cumulativeGasUsed):null,effectiveGasPrice:a.effectiveGasPrice?BigInt(a.effectiveGasPrice):null,gasUsed:a.gasUsed?BigInt(a.gasUsed):null,logs:a.logs?a.logs.map(u=>(0,t.formatLog)(u)):null,to:a.to?a.to:null,transactionIndex:a.transactionIndex?(0,r.hexToNumber)(a.transactionIndex):null,status:a.status?e.receiptStatuses[a.status]:null,type:a.type?i.transactionType[a.type]||a.type:null};return a.blobGasPrice&&(c.blobGasPrice=BigInt(a.blobGasPrice)),a.blobGasUsed&&(c.blobGasUsed=BigInt(a.blobGasUsed)),c}e.defineTransactionReceipt=(0,n.defineFormatter)("transactionReceipt",s)}(xc)),xc}var $c={},Ml;function Pu(){return Ml||(Ml=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fallbackTransactionErrorMagicIdentifier=e.fallbackMagicIdentifier=void 0,e.sendCalls=f;const r=ce(),n=Q(),t=_t(),i=Pe(),s=le(),a=ue(),o=V(),c=bn(),u=oc();e.fallbackMagicIdentifier="0x5792579257925792579257925792579257925792579257925792579257925792",e.fallbackTransactionErrorMagicIdentifier=(0,o.numberToHex)(0,{size:32});async function f(d,l){const{account:p=d.account,capabilities:m,chain:b=d.chain,experimental_fallback:y,experimental_fallbackDelay:E=32,forceAtomic:P=!1,id:A,version:h="2.0.0"}=l,T=p?(0,r.parseAccount)(p):null,_=l.calls.map(g=>{const v=g,j=v.abi?(0,i.encodeFunctionData)({abi:v.abi,functionName:v.functionName,args:v.args}):v.data;return{data:v.dataSuffix&&j?(0,s.concat)([j,v.dataSuffix]):j,to:v.to,value:v.value?(0,o.numberToHex)(v.value):void 0}});try{const g=await d.request({method:"wallet_sendCalls",params:[{atomicRequired:P,calls:_,capabilities:m,chainId:(0,o.numberToHex)(b.id),from:T==null?void 0:T.address,id:A,version:h}]},{retryCount:0});return typeof g=="string"?{id:g}:g}catch(g){const v=g;if(y&&(v.name==="MethodNotFoundRpcError"||v.name==="MethodNotSupportedRpcError"||v.name==="UnknownRpcError"||v.details.toLowerCase().includes("does not exist / is not available")||v.details.toLowerCase().includes("missing or invalid. request()")||v.details.toLowerCase().includes("did not match any variant of untagged enum")||v.details.toLowerCase().includes("account upgraded to unsupported contract")||v.details.toLowerCase().includes("eip-7702 not supported")||v.details.toLowerCase().includes("unsupported wc_ method")||v.details.toLowerCase().includes("feature toggled misconfigured")||v.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(m&&Object.values(m).some(R=>!R.optional)){const R="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new t.UnsupportedNonOptionalCapabilityError(new n.BaseError(R,{details:R}))}if(P&&_.length>1){const S="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new t.AtomicityNotSupportedError(new n.BaseError(S,{details:S}))}const j=[];for(const S of _){const R=(0,u.sendTransaction)(d,{account:T,chain:b,data:S.data,to:S.to,value:S.value?(0,a.hexToBigInt)(S.value):void 0});j.push(R),E>0&&await new Promise(I=>setTimeout(I,E))}const w=await Promise.allSettled(j);if(w.every(S=>S.status==="rejected"))throw w[0].reason;const C=w.map(S=>S.status==="fulfilled"?S.value:e.fallbackTransactionErrorMagicIdentifier);return{id:(0,s.concat)([...C,(0,o.numberToHex)(b.id,{size:32}),e.fallbackMagicIdentifier])}}throw(0,c.getTransactionError)(g,{...l,account:T,chain:l.chain})}}}($c)),$c}var kl;function Tm(){if(kl)return oa;kl=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.getCallsStatus=s;const e=Me(),r=at(),n=ue(),t=Pn(),i=Pu();async function s(a,o){async function c(y){if(y.endsWith(i.fallbackMagicIdentifier.slice(2))){const P=(0,r.trim)((0,e.sliceHex)(y,-64,-32)),A=(0,e.sliceHex)(y,0,-64).slice(2).match(/.{1,64}/g),h=await Promise.all(A.map(_=>i.fallbackTransactionErrorMagicIdentifier.slice(2)!==_?a.request({method:"eth_getTransactionReceipt",params:[`0x${_}`]},{dedupe:!0}):void 0)),T=(()=>h.some(_=>_===null)?100:h.every(_=>(_==null?void 0:_.status)==="0x1")?200:h.every(_=>(_==null?void 0:_.status)==="0x0")?500:600)();return{atomic:!1,chainId:(0,n.hexToNumber)(P),receipts:h.filter(Boolean),status:T,version:"2.0.0"}}return a.request({method:"wallet_getCallsStatus",params:[y]})}const{atomic:u=!1,chainId:f,receipts:d,version:l="2.0.0",...p}=await c(o.id),[m,b]=(()=>{const y=p.status;return y>=100&&y<200?["pending",y]:y>=200&&y<300?["success",y]:y>=300&&y<700?["failure",y]:y==="CONFIRMED"?["success",200]:y==="PENDING"?["pending",100]:[void 0,y]})();return{...p,atomic:u,chainId:f?(0,n.hexToNumber)(f):void 0,receipts:(d==null?void 0:d.map(y=>({...y,blockNumber:(0,n.hexToBigInt)(y.blockNumber),gasUsed:(0,n.hexToBigInt)(y.gasUsed),status:t.receiptStatuses[y.status]})))??[],statusCode:b,status:m,version:l}}return oa}var Nl;function Tu(){if(Nl)return sr;Nl=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.WaitForCallsStatusTimeoutError=void 0,sr.waitForCallsStatus=u;const e=Q(),r=Pm(),n=te(),t=Wt(),i=gr(),s=mu(),a=ac(),o=me(),c=Tm();async function u(d,l){const{id:p,pollingInterval:m=d.pollingInterval,status:b=({statusCode:w})=>w===200||w>=300,retryCount:y=4,retryDelay:E=({count:w})=>~~(1<<w)*200,timeout:P=6e4,throwOnFailure:A=!1}=l,h=(0,o.stringify)(["waitForCallsStatus",d.uid,p]),{promise:T,resolve:_,reject:g}=(0,s.withResolvers)();let v;const j=(0,t.observe)(h,{resolve:_,reject:g},w=>{const C=(0,i.poll)(async()=>{const S=R=>{clearTimeout(v),C(),R(),j()};try{const R=await(0,a.withRetry)(async()=>{const I=await(0,n.getAction)(d,c.getCallsStatus,"getCallsStatus")({id:p});if(A&&I.status==="failure")throw new r.BundleFailedError(I);return I},{retryCount:y,delay:E});if(!b(R))return;S(()=>w.resolve(R))}catch(R){S(()=>w.reject(R))}},{interval:m,emitOnBegin:!0});return C});return v=P?setTimeout(()=>{j(),clearTimeout(v),g(new f({id:p}))},P):void 0,await T}class f extends e.BaseError{constructor({id:l}){super(`Timed out while waiting for call bundle with id "${l}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}return sr.WaitForCallsStatusTimeoutError=f,sr}var Wr={},aa={},Hl;function wm(){if(Hl)return aa;Hl=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.uid=t;const e=256;let r=e,n;function t(i=11){if(!n||r+i>e*2){n="",r=0;for(let s=0;s<e;s++)n+=(256+Math.random()*256|0).toString(16).substring(1)}return n.substring(r,r+++i)}return aa}var xl;function ic(){if(xl)return Wr;xl=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.createClient=n,Wr.rpcSchema=t;const e=ce(),r=wm();function n(i){const{batch:s,chain:a,ccipRead:o,key:c="base",name:u="Base Client",type:f="base"}=i,d=i.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),l=(a==null?void 0:a.blockTime)??12e3,p=Math.min(Math.max(Math.floor(l/2),500),4e3),m=i.pollingInterval??p,b=i.cacheTime??m,y=i.account?(0,e.parseAccount)(i.account):void 0,{config:E,request:P,value:A}=i.transport({account:y,chain:a,pollingInterval:m}),h={...E,...A},T={account:y,batch:s,cacheTime:b,ccipRead:o,chain:a,key:c,name:u,pollingInterval:m,request:P,transport:h,type:f,uid:(0,r.uid)(),...d?{experimental_blockTag:d}:{}};function _(g){return v=>{const j=v(g);for(const C in T)delete j[C];const w={...g,...j};return Object.assign(w,{extend:_(w)})}}return Object.assign(T,{extend:_(T)})}function t(){return null}return Wr}var ia={},sa={},ca={},ua={},$l;function wu(){if($l)return ua;$l=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.isNullUniversalResolverError=n;const e=Q(),r=ht();function n(t){var s,a,o,c,u,f;if(!(t instanceof e.BaseError))return!1;const i=t.walk(d=>d instanceof r.ContractFunctionRevertedError);return i instanceof r.ContractFunctionRevertedError?((s=i.data)==null?void 0:s.errorName)==="HttpError"||((a=i.data)==null?void 0:a.errorName)==="ResolverError"||((o=i.data)==null?void 0:o.errorName)==="ResolverNotContract"||((c=i.data)==null?void 0:c.errorName)==="ResolverNotFound"||((u=i.data)==null?void 0:u.errorName)==="ReverseAddressMismatch"||((f=i.data)==null?void 0:f.errorName)==="UnsupportedResolverProfile":!1}return ua}var da={},fa={},zl;function Am(){if(zl)return fa;zl=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.encodedLabelToLabelhash=r;const e=_e();function r(n){if(n.length!==66||n.indexOf("[")!==0||n.indexOf("]")!==65)return null;const t=`0x${n.slice(1,65)}`;return(0,e.isHex)(t)?t:null}return fa}var Dl;function Au(){if(Dl)return da;Dl=1,Object.defineProperty(da,"__esModule",{value:!0}),da.namehash=s;const e=le(),r=oe(),n=V(),t=je(),i=Am();function s(a){let o=new Uint8Array(32).fill(0);if(!a)return(0,n.bytesToHex)(o);const c=a.split(".");for(let u=c.length-1;u>=0;u-=1){const f=(0,i.encodedLabelToLabelhash)(c[u]),d=f?(0,r.toBytes)(f):(0,t.keccak256)((0,r.stringToBytes)(c[u]),"bytes");o=(0,t.keccak256)((0,e.concat)([o,d]),"bytes")}return(0,n.bytesToHex)(o)}return da}var la={},ba={},Ul;function hp(){if(Ul)return ba;Ul=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.encodeLabelhash=e;function e(r){return`[${r.slice(2)}]`}return ba}var ma={},Ll;function Rm(){if(Ll)return ma;Ll=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.labelhash=i;const e=oe(),r=V(),n=je(),t=Am();function i(s){const a=new Uint8Array(32).fill(0);return s?(0,t.encodedLabelToLabelhash)(s)||(0,n.keccak256)((0,e.stringToBytes)(s)):(0,r.bytesToHex)(a)}return ma}var Gl;function Ru(){if(Gl)return la;Gl=1,Object.defineProperty(la,"__esModule",{value:!0}),la.packetToBytes=t;const e=oe(),r=hp(),n=Rm();function t(i){const s=i.replace(/^\.|\.$/gm,"");if(s.length===0)return new Uint8Array(1);const a=new Uint8Array((0,e.stringToBytes)(s).byteLength+2);let o=0;const c=s.split(".");for(let u=0;u<c.length;u++){let f=(0,e.stringToBytes)(c[u]);f.byteLength>255&&(f=(0,e.stringToBytes)((0,r.encodeLabelhash)((0,n.labelhash)(c[u])))),a[o]=f.length,a.set(f,o+1),o+=f.length+1}return a.byteLength!==o+1?a.slice(0,o+1):a}return la}var Vl;function _p(){if(Vl)return ca;Vl=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.getEnsAddress=l;const e=Tt(),r=ut(),n=Pe(),t=wt(),i=at(),s=V(),a=wu(),o=tc(),c=Au(),u=Ru(),f=te(),d=We();async function l(p,m){const{blockNumber:b,blockTag:y,coinType:E,name:P,gatewayUrls:A,strict:h}=m,{chain:T}=p,_=(()=>{if(m.universalResolverAddress)return m.universalResolverAddress;if(!T)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,t.getChainContractAddress)({blockNumber:b,chain:T,contract:"ensUniversalResolver"})})(),g=T==null?void 0:T.ensTlds;if(g&&!g.some(j=>P.endsWith(j)))return null;const v=(()=>E!=null?[(0,c.namehash)(P),BigInt(E)]:[(0,c.namehash)(P)])();try{const j=(0,n.encodeFunctionData)({abi:e.addressResolverAbi,functionName:"addr",args:v}),w={address:_,abi:e.universalResolverResolveAbi,functionName:"resolveWithGateways",args:[(0,s.toHex)((0,u.packetToBytes)(P)),j,A??[o.localBatchGatewayUrl]],blockNumber:b,blockTag:y},S=await(0,f.getAction)(p,d.readContract,"readContract")(w);if(S[0]==="0x")return null;const R=(0,r.decodeFunctionResult)({abi:e.addressResolverAbi,args:v,functionName:"addr",data:S[0]});return R==="0x"||(0,i.trim)(R)==="0x00"?null:R}catch(j){if(h)throw j;if((0,a.isNullUniversalResolverError)(j))return null;throw j}}return ca}var ya={},pa={},xe={},Oe={},Wl;function Iu(){if(Wl)return Oe;Wl=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.EnsInvalidChainIdError=Oe.EnsAvatarUnsupportedNamespaceError=Oe.EnsAvatarUriResolutionError=Oe.EnsAvatarInvalidNftUriError=Oe.EnsAvatarInvalidMetadataError=void 0;const e=Q();class r extends e.BaseError{constructor({data:o}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(o)}`],name:"EnsAvatarInvalidMetadataError"})}}Oe.EnsAvatarInvalidMetadataError=r;class n extends e.BaseError{constructor({reason:o}){super(`ENS NFT avatar URI is invalid. ${o}`,{name:"EnsAvatarInvalidNftUriError"})}}Oe.EnsAvatarInvalidNftUriError=n;class t extends e.BaseError{constructor({uri:o}){super(`Unable to resolve ENS avatar URI "${o}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}Oe.EnsAvatarUriResolutionError=t;class i extends e.BaseError{constructor({namespace:o}){super(`ENS NFT avatar namespace "${o}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}Oe.EnsAvatarUnsupportedNamespaceError=i;class s extends e.BaseError{constructor({chainId:o}){super(`Invalid ENSIP-11 chainId: ${o}. Must be between 0 and 0x7fffffff, or 1.`,{name:"EnsInvalidChainIdError"})}}return Oe.EnsInvalidChainIdError=s,Oe}var Kl;function vp(){if(Kl)return xe;Kl=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.isImageUri=a,xe.getGateway=o,xe.resolveAvatarUri=c,xe.getJsonImage=u,xe.getMetadataAvatarUri=f,xe.parseAvatarUri=d,xe.parseNftUri=l,xe.getNftTokenUri=p;const e=We(),r=Iu(),n=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,t=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,i=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,s=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function a(m){try{const b=await fetch(m,{method:"HEAD"});if(b.status===200){const y=b.headers.get("content-type");return y==null?void 0:y.startsWith("image/")}return!1}catch(b){return typeof b=="object"&&typeof b.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(y=>{const E=new Image;E.onload=()=>{y(!0)},E.onerror=()=>{y(!1)},E.src=m})}}function o(m,b){return m?m.endsWith("/")?m.slice(0,-1):m:b}function c({uri:m,gatewayUrls:b}){const y=i.test(m);if(y)return{uri:m,isOnChain:!0,isEncoded:y};const E=o(b==null?void 0:b.ipfs,"https://ipfs.io"),P=o(b==null?void 0:b.arweave,"https://arweave.net"),A=m.match(n),{protocol:h,subpath:T,target:_,subtarget:g=""}=(A==null?void 0:A.groups)||{},v=h==="ipns:/"||T==="ipns/",j=h==="ipfs:/"||T==="ipfs/"||t.test(m);if(m.startsWith("http")&&!v&&!j){let C=m;return b!=null&&b.arweave&&(C=m.replace(/https:\/\/arweave.net/g,b==null?void 0:b.arweave)),{uri:C,isOnChain:!1,isEncoded:!1}}if((v||j)&&_)return{uri:`${E}/${v?"ipns":"ipfs"}/${_}${g}`,isOnChain:!1,isEncoded:!1};if(h==="ar:/"&&_)return{uri:`${P}/${_}${g||""}`,isOnChain:!1,isEncoded:!1};let w=m.replace(s,"");if(w.startsWith("<svg")&&(w=`data:image/svg+xml;base64,${btoa(w)}`),w.startsWith("data:")||w.startsWith("{"))return{uri:w,isOnChain:!0,isEncoded:!1};throw new r.EnsAvatarUriResolutionError({uri:m})}function u(m){if(typeof m!="object"||!("image"in m)&&!("image_url"in m)&&!("image_data"in m))throw new r.EnsAvatarInvalidMetadataError({data:m});return m.image||m.image_url||m.image_data}async function f({gatewayUrls:m,uri:b}){try{const y=await fetch(b).then(P=>P.json());return await d({gatewayUrls:m,uri:u(y)})}catch{throw new r.EnsAvatarUriResolutionError({uri:b})}}async function d({gatewayUrls:m,uri:b}){const{uri:y,isOnChain:E}=c({uri:b,gatewayUrls:m});if(E||await a(y))return y;throw new r.EnsAvatarUriResolutionError({uri:b})}function l(m){let b=m;b.startsWith("did:nft:")&&(b=b.replace("did:nft:","").replace(/_/g,"/"));const[y,E,P]=b.split("/"),[A,h]=y.split(":"),[T,_]=E.split(":");if(!A||A.toLowerCase()!=="eip155")throw new r.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!h)throw new r.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!_)throw new r.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!P)throw new r.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!T)throw new r.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(h,10),namespace:T.toLowerCase(),contractAddress:_,tokenID:P}}async function p(m,{nft:b}){if(b.namespace==="erc721")return(0,e.readContract)(m,{address:b.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(b.tokenID)]});if(b.namespace==="erc1155")return(0,e.readContract)(m,{address:b.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(b.tokenID)]});throw new r.EnsAvatarUnsupportedNamespaceError({namespace:b.namespace})}return xe}var Jl;function jp(){if(Jl)return pa;Jl=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.parseAvatarRecord=r;const e=vp();async function r(t,{gatewayUrls:i,record:s}){return/eip155:/i.test(s)?n(t,{gatewayUrls:i,record:s}):(0,e.parseAvatarUri)({uri:s,gatewayUrls:i})}async function n(t,{gatewayUrls:i,record:s}){const a=(0,e.parseNftUri)(s),o=await(0,e.getNftTokenUri)(t,{nft:a}),{uri:c,isOnChain:u,isEncoded:f}=(0,e.resolveAvatarUri)({uri:o,gatewayUrls:i});if(u&&(c.includes("data:application/json;base64,")||c.startsWith("{"))){const l=f?atob(c.replace("data:application/json;base64,","")):c,p=JSON.parse(l);return(0,e.parseAvatarUri)({uri:(0,e.getJsonImage)(p),gatewayUrls:i})}let d=a.tokenID;return a.namespace==="erc1155"&&(d=d.replace("0x","").padStart(64,"0")),(0,e.getMetadataAvatarUri)({gatewayUrls:i,uri:c.replace(/(?:0x)?{id}/,d)})}return pa}var ga={},Zl;function Im(){if(Zl)return ga;Zl=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.getEnsText=d;const e=Tt(),r=ut(),n=Pe(),t=wt(),i=V(),s=wu(),a=tc(),o=Au(),c=Ru(),u=te(),f=We();async function d(l,p){const{blockNumber:m,blockTag:b,key:y,name:E,gatewayUrls:P,strict:A}=p,{chain:h}=l,T=(()=>{if(p.universalResolverAddress)return p.universalResolverAddress;if(!h)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,t.getChainContractAddress)({blockNumber:m,chain:h,contract:"ensUniversalResolver"})})(),_=h==null?void 0:h.ensTlds;if(_&&!_.some(g=>E.endsWith(g)))return null;try{const g={address:T,abi:e.universalResolverResolveAbi,args:[(0,i.toHex)((0,c.packetToBytes)(E)),(0,n.encodeFunctionData)({abi:e.textResolverAbi,functionName:"text",args:[(0,o.namehash)(E),y]}),P??[a.localBatchGatewayUrl]],functionName:"resolveWithGateways",blockNumber:m,blockTag:b},j=await(0,u.getAction)(l,f.readContract,"readContract")(g);if(j[0]==="0x")return null;const w=(0,r.decodeFunctionResult)({abi:e.textResolverAbi,functionName:"text",data:j[0]});return w===""?null:w}catch(g){if(A)throw g;if((0,s.isNullUniversalResolverError)(g))return null;throw g}}return ga}var Yl;function Ep(){if(Yl)return ya;Yl=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.getEnsAvatar=t;const e=jp(),r=te(),n=Im();async function t(i,{blockNumber:s,blockTag:a,assetGatewayUrls:o,name:c,gatewayUrls:u,strict:f,universalResolverAddress:d}){const l=await(0,r.getAction)(i,n.getEnsText,"getEnsText")({blockNumber:s,blockTag:a,key:"avatar",name:c,universalResolverAddress:d,gatewayUrls:u,strict:f});if(!l)return null;try{return await(0,e.parseAvatarRecord)(i,{record:l,gatewayUrls:o})}catch{return null}}return ya}var ha={},Xl;function Pp(){if(Xl)return ha;Xl=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.getEnsName=a;const e=Tt(),r=wt(),n=wu(),t=tc(),i=te(),s=We();async function a(o,c){const{address:u,blockNumber:f,blockTag:d,coinType:l=60n,gatewayUrls:p,strict:m}=c,{chain:b}=o,y=(()=>{if(c.universalResolverAddress)return c.universalResolverAddress;if(!b)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,r.getChainContractAddress)({blockNumber:f,chain:b,contract:"ensUniversalResolver"})})();try{const E={address:y,abi:e.universalResolverReverseAbi,args:[u,l,p??[t.localBatchGatewayUrl]],functionName:"reverseWithGateways",blockNumber:f,blockTag:d},P=(0,i.getAction)(o,s.readContract,"readContract"),[A]=await P(E);return A||null}catch(E){if(m)throw E;if((0,n.isNullUniversalResolverError)(E))return null;throw E}}return ha}var _a={},Ql;function Tp(){if(Ql)return _a;Ql=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.getEnsResolver=s;const e=wt(),r=V(),n=Ru(),t=te(),i=We();async function s(a,o){const{blockNumber:c,blockTag:u,name:f}=o,{chain:d}=a,l=(()=>{if(o.universalResolverAddress)return o.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,e.getChainContractAddress)({blockNumber:c,chain:d,contract:"ensUniversalResolver"})})(),p=d==null?void 0:d.ensTlds;if(p&&!p.some(b=>f.endsWith(b)))throw new Error(`${f} is not a valid ENS TLD (${p==null?void 0:p.join(", ")}) for chain "${d.name}" (id: ${d.id}).`);const[m]=await(0,t.getAction)(a,i.readContract,"readContract")({address:l,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,r.toHex)((0,n.packetToBytes)(f))],blockNumber:c,blockTag:u});return m}return _a}var va={},e0;function Cm(){if(e0)return va;e0=1,Object.defineProperty(va,"__esModule",{value:!0}),va.createAccessList=a;const e=ce(),r=V(),n=bu(),t=Et(),i=Le(),s=Ge();async function a(o,c){var g,v,j;const{account:u=o.account,blockNumber:f,blockTag:d="latest",blobs:l,data:p,gas:m,gasPrice:b,maxFeePerBlobGas:y,maxFeePerGas:E,maxPriorityFeePerGas:P,to:A,value:h,...T}=c,_=u?(0,e.parseAccount)(u):void 0;try{(0,s.assertRequest)(c);const C=(typeof f=="bigint"?(0,r.numberToHex)(f):void 0)||d,S=(j=(v=(g=o.chain)==null?void 0:g.formatters)==null?void 0:v.transactionRequest)==null?void 0:j.format,I=(S||i.formatTransactionRequest)({...(0,t.extract)(T,{format:S}),account:_,blobs:l,data:p,gas:m,gasPrice:b,maxFeePerBlobGas:y,maxFeePerGas:E,maxPriorityFeePerGas:P,to:A,value:h},"createAccessList"),q=await o.request({method:"eth_createAccessList",params:[I,C]});return{accessList:q.accessList,gasUsed:BigInt(q.gasUsed)}}catch(w){throw(0,n.getCallError)(w,{...c,account:_,chain:o.chain})}}return va}var ja={},t0;function wp(){if(t0)return ja;t0=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.createBlockFilter=r;const e=Vs();async function r(n){const t=(0,e.createFilterRequestScope)(n,{method:"eth_newBlockFilter"}),i=await n.request({method:"eth_newBlockFilter"});return{id:i,request:t(i),type:"block"}}return ja}var Ea={},r0;function Sm(){if(r0)return Ea;r0=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.createEventFilter=t;const e=Lt(),r=V(),n=Vs();async function t(i,{address:s,args:a,event:o,events:c,fromBlock:u,strict:f,toBlock:d}={}){const l=c??(o?[o]:void 0),p=(0,n.createFilterRequestScope)(i,{method:"eth_newFilter"});let m=[];l&&(m=[l.flatMap(E=>(0,e.encodeEventTopics)({abi:[E],eventName:E.name,args:a}))],o&&(m=m[0]));const b=await i.request({method:"eth_newFilter",params:[{address:s,fromBlock:typeof u=="bigint"?(0,r.numberToHex)(u):u,toBlock:typeof d=="bigint"?(0,r.numberToHex)(d):d,...m.length?{topics:m}:{}}]});return{abi:l,args:a,eventName:o?o.name:void 0,fromBlock:u,id:b,request:p(b),strict:!!f,toBlock:d,type:"event"}}return Ea}var Pa={},n0;function Om(){if(n0)return Pa;n0=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.createPendingTransactionFilter=r;const e=Vs();async function r(n){const t=(0,e.createFilterRequestScope)(n,{method:"eth_newPendingTransactionFilter"}),i=await n.request({method:"eth_newPendingTransactionFilter"});return{id:i,request:t(i),type:"transaction"}}return Pa}var Ta={},o0;function Ap(){if(o0)return Ta;o0=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.getBalance=r;const e=V();async function r(n,{address:t,blockNumber:i,blockTag:s=n.experimental_blockTag??"latest"}){const a=typeof i=="bigint"?(0,e.numberToHex)(i):void 0,o=await n.request({method:"eth_getBalance",params:[t,a||s]});return BigInt(o)}return Ta}var wa={},a0;function Rp(){if(a0)return wa;a0=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.getBlobBaseFee=e;async function e(r){const n=await r.request({method:"eth_blobBaseFee"});return BigInt(n)}return wa}var Aa={},i0;function Ip(){if(i0)return Aa;i0=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.getBlockTransactionCount=n;const e=ue(),r=V();async function n(t,{blockHash:i,blockNumber:s,blockTag:a="latest"}={}){const o=s!==void 0?(0,r.numberToHex)(s):void 0;let c;return i?c=await t.request({method:"eth_getBlockTransactionCountByHash",params:[i]},{dedupe:!0}):c=await t.request({method:"eth_getBlockTransactionCountByNumber",params:[o||a]},{dedupe:!!o}),(0,e.hexToNumber)(c)}return Aa}var Ra={},s0;function Bm(){if(s0)return Ra;s0=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.getCode=r;const e=V();async function r(n,{address:t,blockNumber:i,blockTag:s="latest"}){const a=i!==void 0?(0,e.numberToHex)(i):void 0,o=await n.request({method:"eth_getCode",params:[t,a||s]},{dedupe:!!a});if(o!=="0x")return o}return Ra}var Ia={},Kr={},c0;function Cp(){if(c0)return Kr;c0=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.Eip712DomainNotFoundError=void 0;const e=Q();class r extends e.BaseError{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}return Kr.Eip712DomainNotFoundError=r,Kr}var u0;function Sp(){if(u0)return Ia;u0=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.getEip712Domain=t;const e=Cp(),r=te(),n=We();async function t(s,a){const{address:o,factory:c,factoryData:u}=a;try{const[f,d,l,p,m,b,y]=await(0,r.getAction)(s,n.readContract,"readContract")({abi:i,address:o,functionName:"eip712Domain",factory:c,factoryData:u});return{domain:{name:d,version:l,chainId:Number(p),verifyingContract:m,salt:b},extensions:y,fields:f}}catch(f){const d=f;throw d.name==="ContractFunctionExecutionError"&&d.cause.name==="ContractFunctionZeroDataError"?new e.Eip712DomainNotFoundError({address:o}):d}}const i=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];return Ia}var Ca={},Sa={},d0;function Op(){if(d0)return Sa;d0=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.formatFeeHistory=e;function e(r){var n;return{baseFeePerGas:r.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:r.gasUsedRatio,oldestBlock:BigInt(r.oldestBlock),reward:(n=r.reward)==null?void 0:n.map(t=>t.map(i=>BigInt(i)))}}return Sa}var f0;function Bp(){if(f0)return Ca;f0=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.getFeeHistory=n;const e=V(),r=Op();async function n(t,{blockCount:i,blockNumber:s,blockTag:a="latest",rewardPercentiles:o}){const c=typeof s=="bigint"?(0,e.numberToHex)(s):void 0,u=await t.request({method:"eth_feeHistory",params:[(0,e.numberToHex)(i),c||a,o]},{dedupe:!!c});return(0,r.formatFeeHistory)(u)}return Ca}var Oa={},l0;function qp(){if(l0)return Oa;l0=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.getFilterLogs=n;const e=pn(),r=ct();async function n(t,{filter:i}){const s=i.strict??!1,o=(await i.request({method:"eth_getFilterLogs",params:[i.id]})).map(c=>(0,r.formatLog)(c));return i.abi?(0,e.parseEventLogs)({abi:i.abi,logs:o,strict:s}):o}return Oa}var Ba={},qa={},zc={},Fa={},b0;function qm(){if(b0)return Fa;b0=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.encodePacked=o;const e=se(),r=ze(),n=Ee(),t=le(),i=pt(),s=V(),a=Gs();function o(u,f){if(u.length!==f.length)throw new e.AbiEncodingLengthMismatchError({expectedLength:u.length,givenLength:f.length});const d=[];for(let l=0;l<u.length;l++){const p=u[l],m=f[l];d.push(c(p,m))}return(0,t.concatHex)(d)}function c(u,f,d=!1){if(u==="address"){const b=f;if(!(0,n.isAddress)(b))throw new r.InvalidAddressError({address:b});return(0,i.pad)(b.toLowerCase(),{size:d?32:null})}if(u==="string")return(0,s.stringToHex)(f);if(u==="bytes")return f;if(u==="bool")return(0,i.pad)((0,s.boolToHex)(f),{size:d?32:1});const l=u.match(a.integerRegex);if(l){const[b,y,E="256"]=l,P=Number.parseInt(E,10)/8;return(0,s.numberToHex)(f,{size:d?32:P,signed:y==="int"})}const p=u.match(a.bytesRegex);if(p){const[b,y]=p;if(Number.parseInt(y,10)!==(f.length-2)/2)throw new e.BytesSizeMismatchError({expectedSize:Number.parseInt(y,10),givenSize:(f.length-2)/2});return(0,i.pad)(f,{dir:"right",size:d?32:null})}const m=u.match(a.arrayRegex);if(m&&Array.isArray(f)){const[b,y]=m,E=[];for(let P=0;P<f.length;P++)E.push(c(y,f[P],!0));return E.length===0?"0x":(0,t.concatHex)(E)}throw new e.UnsupportedPackedAbiType(u)}return Fa}var cr={},Ma={},m0;function Cu(){if(m0)return Ma;m0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.isBytes=e;function e(r){return!r||typeof r!="object"||!("BYTES_PER_ELEMENT"in r)?!1:r.BYTES_PER_ELEMENT===1&&r.constructor.name==="Uint8Array"}return Ma}var y0;function Fm(){if(y0)return cr;y0=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.getContractAddress=c,cr.getCreateAddress=u,cr.getCreate2Address=f;const e=le(),r=Cu(),n=pt(),t=Me(),i=oe(),s=cn(),a=je(),o=Be();function c(d){return d.opcode==="CREATE2"?f(d):u(d)}function u(d){const l=(0,i.toBytes)((0,o.getAddress)(d.from));let p=(0,i.toBytes)(d.nonce);return p[0]===0&&(p=new Uint8Array([])),(0,o.getAddress)(`0x${(0,a.keccak256)((0,s.toRlp)([l,p],"bytes")).slice(26)}`)}function f(d){const l=(0,i.toBytes)((0,o.getAddress)(d.from)),p=(0,n.pad)((0,r.isBytes)(d.salt)?d.salt:(0,i.toBytes)(d.salt),{size:32}),m=(()=>"bytecodeHash"in d?(0,r.isBytes)(d.bytecodeHash)?d.bytecodeHash:(0,i.toBytes)(d.bytecodeHash):(0,a.keccak256)(d.bytecode,"bytes"))();return(0,o.getAddress)((0,t.slice)((0,a.keccak256)((0,e.concat)([(0,i.toBytes)("0xff"),l,p,m])),12))}return cr}var ka={},Jr={},mt={},p0;function sc(){if(p0)return mt;p0=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.assertTransactionEIP7702=d,mt.assertTransactionEIP4844=l,mt.assertTransactionEIP1559=p,mt.assertTransactionEIP2930=m,mt.assertTransactionLegacy=b;const e=pm(),r=nu(),n=ze(),t=Q(),i=gm(),s=hn(),a=st(),o=Ee(),c=ve(),u=Me(),f=ue();function d(y){const{authorizationList:E}=y;if(E)for(const P of E){const{chainId:A}=P,h=P.address;if(!(0,o.isAddress)(h))throw new n.InvalidAddressError({address:h});if(A<0)throw new s.InvalidChainIdError({chainId:A})}p(y)}function l(y){const{blobVersionedHashes:E}=y;if(E){if(E.length===0)throw new i.EmptyBlobError;for(const P of E){const A=(0,c.size)(P),h=(0,f.hexToNumber)((0,u.slice)(P,0,1));if(A!==32)throw new i.InvalidVersionedHashSizeError({hash:P,size:A});if(h!==e.versionedHashVersionKzg)throw new i.InvalidVersionedHashVersionError({hash:P,version:h})}}p(y)}function p(y){const{chainId:E,maxPriorityFeePerGas:P,maxFeePerGas:A,to:h}=y;if(E<=0)throw new s.InvalidChainIdError({chainId:E});if(h&&!(0,o.isAddress)(h))throw new n.InvalidAddressError({address:h});if(A&&A>r.maxUint256)throw new a.FeeCapTooHighError({maxFeePerGas:A});if(P&&A&&P>A)throw new a.TipAboveFeeCapError({maxFeePerGas:A,maxPriorityFeePerGas:P})}function m(y){const{chainId:E,maxPriorityFeePerGas:P,gasPrice:A,maxFeePerGas:h,to:T}=y;if(E<=0)throw new s.InvalidChainIdError({chainId:E});if(T&&!(0,o.isAddress)(T))throw new n.InvalidAddressError({address:T});if(P||h)throw new t.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(A&&A>r.maxUint256)throw new a.FeeCapTooHighError({maxFeePerGas:A})}function b(y){const{chainId:E,maxPriorityFeePerGas:P,gasPrice:A,maxFeePerGas:h,to:T}=y;if(T&&!(0,o.isAddress)(T))throw new n.InvalidAddressError({address:T});if(typeof E<"u"&&E<=0)throw new s.InvalidChainIdError({chainId:E});if(P||h)throw new t.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(A&&A>r.maxUint256)throw new a.FeeCapTooHighError({maxFeePerGas:A})}return mt}var Na={},g0;function Su(){if(g0)return Na;g0=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.serializeAccessList=t;const e=ze(),r=Te(),n=Ee();function t(i){if(!i||i.length===0)return[];const s=[];for(let a=0;a<i.length;a++){const{address:o,storageKeys:c}=i[a];for(let u=0;u<c.length;u++)if(c[u].length-2!==64)throw new r.InvalidStorageKeySizeError({storageKey:c[u]});if(!(0,n.isAddress)(o,{strict:!1}))throw new e.InvalidAddressError({address:o});s.push([o,c])}return s}return Na}var h0;function cc(){if(h0)return Jr;h0=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.serializeTransaction=p,Jr.toYParitySignatureArray=A;const e=Te(),r=Mm(),n=Ys(),t=Xs(),i=cu(),s=Qs(),a=le(),o=at(),c=V(),u=cn(),f=sc(),d=ec(),l=Su();function p(h,T){const _=(0,d.getTransactionType)(h);return _==="eip1559"?y(h,T):_==="eip2930"?E(h,T):_==="eip4844"?b(h,T):_==="eip7702"?m(h,T):P(h,T)}function m(h,T){const{authorizationList:_,chainId:g,gas:v,nonce:j,to:w,value:C,maxFeePerGas:S,maxPriorityFeePerGas:R,accessList:I,data:q}=h;(0,f.assertTransactionEIP7702)(h);const B=(0,l.serializeAccessList)(I),O=(0,r.serializeAuthorizationList)(_);return(0,a.concatHex)(["0x04",(0,u.toRlp)([(0,c.numberToHex)(g),j?(0,c.numberToHex)(j):"0x",R?(0,c.numberToHex)(R):"0x",S?(0,c.numberToHex)(S):"0x",v?(0,c.numberToHex)(v):"0x",w??"0x",C?(0,c.numberToHex)(C):"0x",q??"0x",B,O,...A(h,T)])])}function b(h,T){const{chainId:_,gas:g,nonce:v,to:j,value:w,maxFeePerBlobGas:C,maxFeePerGas:S,maxPriorityFeePerGas:R,accessList:I,data:q}=h;(0,f.assertTransactionEIP4844)(h);let B=h.blobVersionedHashes,O=h.sidecars;if(h.blobs&&(typeof B>"u"||typeof O>"u")){const D=typeof h.blobs[0]=="string"?h.blobs:h.blobs.map(H=>(0,c.bytesToHex)(H)),U=h.kzg,G=(0,n.blobsToCommitments)({blobs:D,kzg:U});if(typeof B>"u"&&(B=(0,i.commitmentsToVersionedHashes)({commitments:G})),typeof O>"u"){const H=(0,t.blobsToProofs)({blobs:D,commitments:G,kzg:U});O=(0,s.toBlobSidecars)({blobs:D,commitments:G,proofs:H})}}const M=(0,l.serializeAccessList)(I),k=[(0,c.numberToHex)(_),v?(0,c.numberToHex)(v):"0x",R?(0,c.numberToHex)(R):"0x",S?(0,c.numberToHex)(S):"0x",g?(0,c.numberToHex)(g):"0x",j??"0x",w?(0,c.numberToHex)(w):"0x",q??"0x",M,C?(0,c.numberToHex)(C):"0x",B??[],...A(h,T)],$=[],z=[],N=[];if(O)for(let D=0;D<O.length;D++){const{blob:U,commitment:G,proof:H}=O[D];$.push(U),z.push(G),N.push(H)}return(0,a.concatHex)(["0x03",O?(0,u.toRlp)([k,$,z,N]):(0,u.toRlp)(k)])}function y(h,T){const{chainId:_,gas:g,nonce:v,to:j,value:w,maxFeePerGas:C,maxPriorityFeePerGas:S,accessList:R,data:I}=h;(0,f.assertTransactionEIP1559)(h);const q=(0,l.serializeAccessList)(R),B=[(0,c.numberToHex)(_),v?(0,c.numberToHex)(v):"0x",S?(0,c.numberToHex)(S):"0x",C?(0,c.numberToHex)(C):"0x",g?(0,c.numberToHex)(g):"0x",j??"0x",w?(0,c.numberToHex)(w):"0x",I??"0x",q,...A(h,T)];return(0,a.concatHex)(["0x02",(0,u.toRlp)(B)])}function E(h,T){const{chainId:_,gas:g,data:v,nonce:j,to:w,value:C,accessList:S,gasPrice:R}=h;(0,f.assertTransactionEIP2930)(h);const I=(0,l.serializeAccessList)(S),q=[(0,c.numberToHex)(_),j?(0,c.numberToHex)(j):"0x",R?(0,c.numberToHex)(R):"0x",g?(0,c.numberToHex)(g):"0x",w??"0x",C?(0,c.numberToHex)(C):"0x",v??"0x",I,...A(h,T)];return(0,a.concatHex)(["0x01",(0,u.toRlp)(q)])}function P(h,T){const{chainId:_=0,gas:g,data:v,nonce:j,to:w,value:C,gasPrice:S}=h;(0,f.assertTransactionLegacy)(h);let R=[j?(0,c.numberToHex)(j):"0x",S?(0,c.numberToHex)(S):"0x",g?(0,c.numberToHex)(g):"0x",w??"0x",C?(0,c.numberToHex)(C):"0x",v??"0x"];if(T){const I=(()=>{if(T.v>=35n)return(T.v-35n)/2n>0?T.v:27n+(T.v===35n?0n:1n);if(_>0)return BigInt(_*2)+BigInt(35n+T.v-27n);const O=27n+(T.v===27n?0n:1n);if(T.v!==O)throw new e.InvalidLegacyVError({v:T.v});return O})(),q=(0,o.trim)(T.r),B=(0,o.trim)(T.s);R=[...R,(0,c.numberToHex)(I),q==="0x00"?"0x":q,B==="0x00"?"0x":B]}else _>0&&(R=[...R,(0,c.numberToHex)(_),"0x","0x"]);return(0,u.toRlp)(R)}function A(h,T){const _=T??h,{v:g,yParity:v}=_;if(typeof _.r>"u")return[];if(typeof _.s>"u")return[];if(typeof g>"u"&&typeof v>"u")return[];const j=(0,o.trim)(_.r),w=(0,o.trim)(_.s);return[(()=>typeof v=="number"?v?(0,c.numberToHex)(1):"0x":g===0n?"0x":g===1n?(0,c.numberToHex)(1):g===27n?"0x":(0,c.numberToHex)(1))(),j==="0x00"?"0x":j,w==="0x00"?"0x":w]}return Jr}var _0;function Mm(){if(_0)return ka;_0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.serializeAuthorizationList=n;const e=V(),r=cc();function n(t){if(!t||t.length===0)return[];const i=[];for(const s of t){const{chainId:a,nonce:o,...c}=s,u=s.address;i.push([a?(0,e.toHex)(a):"0x",u,o?(0,e.toHex)(o):"0x",...(0,r.toYParitySignatureArray)({},c)])}return i}return ka}var Ha={},v0;function km(){if(v0)return Ha;v0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.verifyAuthorization=t;const e=Be(),r=Ve(),n=un();async function t({address:i,authorization:s,signature:a}){return(0,r.isAddressEqual)((0,e.getAddress)(i),await(0,n.recoverAuthorizationAddress)({authorization:s,signature:a}))}return Ha}var Zr={},Dc={},j0;function Fp(){return j0||(j0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.promiseCache=void 0,e.withDedupe=n;const r=Dt();e.promiseCache=new r.LruMap(8192);function n(t,{enabled:i=!0,id:s}){if(!i||!s)return t();if(e.promiseCache.get(s))return e.promiseCache.get(s);const a=t().finally(()=>e.promiseCache.delete(s));return e.promiseCache.set(s,a),a}}(Dc)),Dc}var E0;function Nm(){if(E0)return Zr;E0=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.buildRequest=o,Zr.shouldRetry=c;const e=Q(),r=Ue(),n=_t(),t=V(),i=Fp(),s=ac(),a=me();function o(u,f={}){return async(d,l={})=>{var h;const{dedupe:p=!1,methods:m,retryDelay:b=150,retryCount:y=3,uid:E}={...f,...l},{method:P}=d;if((h=m==null?void 0:m.exclude)!=null&&h.includes(P))throw new n.MethodNotSupportedRpcError(new Error("method not supported"),{method:P});if(m!=null&&m.include&&!m.include.includes(P))throw new n.MethodNotSupportedRpcError(new Error("method not supported"),{method:P});const A=p?(0,t.stringToHex)(`${E}.${(0,a.stringify)(d)}`):void 0;return(0,i.withDedupe)(()=>(0,s.withRetry)(async()=>{try{return await u(d)}catch(T){const _=T;switch(_.code){case n.ParseRpcError.code:throw new n.ParseRpcError(_);case n.InvalidRequestRpcError.code:throw new n.InvalidRequestRpcError(_);case n.MethodNotFoundRpcError.code:throw new n.MethodNotFoundRpcError(_,{method:d.method});case n.InvalidParamsRpcError.code:throw new n.InvalidParamsRpcError(_);case n.InternalRpcError.code:throw new n.InternalRpcError(_);case n.InvalidInputRpcError.code:throw new n.InvalidInputRpcError(_);case n.ResourceNotFoundRpcError.code:throw new n.ResourceNotFoundRpcError(_);case n.ResourceUnavailableRpcError.code:throw new n.ResourceUnavailableRpcError(_);case n.TransactionRejectedRpcError.code:throw new n.TransactionRejectedRpcError(_);case n.MethodNotSupportedRpcError.code:throw new n.MethodNotSupportedRpcError(_,{method:d.method});case n.LimitExceededRpcError.code:throw new n.LimitExceededRpcError(_);case n.JsonRpcVersionUnsupportedError.code:throw new n.JsonRpcVersionUnsupportedError(_);case n.UserRejectedRequestError.code:throw new n.UserRejectedRequestError(_);case n.UnauthorizedProviderError.code:throw new n.UnauthorizedProviderError(_);case n.UnsupportedProviderMethodError.code:throw new n.UnsupportedProviderMethodError(_);case n.ProviderDisconnectedError.code:throw new n.ProviderDisconnectedError(_);case n.ChainDisconnectedError.code:throw new n.ChainDisconnectedError(_);case n.SwitchChainError.code:throw new n.SwitchChainError(_);case n.UnsupportedNonOptionalCapabilityError.code:throw new n.UnsupportedNonOptionalCapabilityError(_);case n.UnsupportedChainIdError.code:throw new n.UnsupportedChainIdError(_);case n.DuplicateIdError.code:throw new n.DuplicateIdError(_);case n.UnknownBundleIdError.code:throw new n.UnknownBundleIdError(_);case n.BundleTooLargeError.code:throw new n.BundleTooLargeError(_);case n.AtomicReadyWalletRejectedUpgradeError.code:throw new n.AtomicReadyWalletRejectedUpgradeError(_);case n.AtomicityNotSupportedError.code:throw new n.AtomicityNotSupportedError(_);case 5e3:throw new n.UserRejectedRequestError(_);default:throw T instanceof e.BaseError?T:new n.UnknownRpcError(_)}}},{delay:({count:T,error:_})=>{var g;if(_&&_ instanceof r.HttpRequestError){const v=(g=_==null?void 0:_.headers)==null?void 0:g.get("Retry-After");if(v!=null&&v.match(/\d/))return Number.parseInt(v,10)*1e3}return~~(1<<T)*b},retryCount:y,shouldRetry:({error:T})=>c(T)}),{enabled:p,id:A})}}function c(u){return"code"in u&&typeof u.code=="number"?u.code===-1||u.code===n.LimitExceededRpcError.code||u.code===n.InternalRpcError.code:u instanceof r.HttpRequestError&&u.status?u.status===403||u.status===408||u.status===413||u.status===429||u.status===500||u.status===502||u.status===503||u.status===504:!0}return Zr}var Yr={},P0;function Hm(){if(P0)return Yr;P0=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.defineChain=e,Yr.extendSchema=r;function e(n){const t={formatters:void 0,fees:void 0,serializers:void 0,...n};function i(s){return a=>{const o=typeof a=="function"?a(s):a,c={...s,...o};return Object.assign(c,{extend:i(c)})}}return Object.assign(t,{extend:i(t)})}function r(){return{}}return Yr}var xa={},T0;function xm(){if(T0)return xa;T0=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.extractChain=e;function e({chains:r,id:n}){return r.find(t=>t.id===n)}return xa}var $a={},w0;function Ou(){if(w0)return $a;w0=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.fromRlp=s;const e=Q(),r=mr(),n=on(),t=oe(),i=V();function s(u,f="hex"){const d=(()=>{if(typeof u=="string"){if(u.length>3&&u.length%2!==0)throw new r.InvalidHexValueError(u);return(0,t.hexToBytes)(u)}return u})(),l=(0,n.createCursor)(d,{recursiveReadLimit:Number.POSITIVE_INFINITY});return a(l,f)}function a(u,f="hex"){if(u.bytes.length===0)return f==="hex"?(0,i.bytesToHex)(u.bytes):u.bytes;const d=u.readByte();if(d<128&&u.decrementPosition(1),d<192){const p=o(u,d,128),m=u.readBytes(p);return f==="hex"?(0,i.bytesToHex)(m):m}const l=o(u,d,192);return c(u,l,f)}function o(u,f,d){if(d===128&&f<128)return 1;if(f<=d+55)return f-d;if(f===d+55+1)return u.readUint8();if(f===d+55+2)return u.readUint16();if(f===d+55+3)return u.readUint24();if(f===d+55+4)return u.readUint32();throw new e.BaseError("Invalid RLP prefix")}function c(u,f,d){const l=u.position,p=[];for(;u.position-l<f;)p.push(a(u,d));return p}return $a}var za={},A0;function Bu(){if(A0)return za;A0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.isHash=n;const e=_e(),r=ve();function n(t){return(0,e.isHex)(t)&&(0,r.size)(t)===32}return za}var Da={},R0;function $m(){if(R0)return Da;R0=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.ripemd160=i;const e=ip(),r=_e(),n=oe(),t=V();function i(s,a){const o=a||"hex",c=(0,e.ripemd160)((0,r.isHex)(s,{strict:!1})?(0,n.toBytes)(s):s);return o==="bytes"?c:(0,t.toHex)(c)}return Da}var Uc={},I0;function zm(){return I0||(I0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toEventHash=void 0;var r=Ls();Object.defineProperty(e,"toEventHash",{enumerable:!0,get:function(){return r.toSignatureHash}})}(Uc)),Uc}var Lc={},C0;function Dm(){return C0||(C0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toEventSignature=void 0;var r=Jc();Object.defineProperty(e,"toEventSignature",{enumerable:!0,get:function(){return r.toSignature}})}(Lc)),Lc}var Gc={},S0;function Um(){return S0||(S0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toFunctionHash=void 0;var r=Ls();Object.defineProperty(e,"toFunctionHash",{enumerable:!0,get:function(){return r.toSignatureHash}})}(Gc)),Gc}var Vc={},O0;function Lm(){return O0||(O0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toFunctionSignature=void 0;var r=Jc();Object.defineProperty(e,"toFunctionSignature",{enumerable:!0,get:function(){return r.toSignature}})}(Vc)),Vc}var kt={},B0;function Gm(){if(B0)return kt;B0=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.nonceManager=void 0,kt.createNonceManager=n,kt.jsonRpc=t;const e=Zs(),r=Dt();function n(i){const{source:s}=i,a=new Map,o=new r.LruMap(8192),c=new Map,u=({address:f,chainId:d})=>`${f}.${d}`;return{async consume({address:f,chainId:d,client:l}){const p=u({address:f,chainId:d}),m=this.get({address:f,chainId:d,client:l});this.increment({address:f,chainId:d});const b=await m;return await s.set({address:f,chainId:d},b),o.set(p,b),b},async increment({address:f,chainId:d}){const l=u({address:f,chainId:d}),p=a.get(l)??0;a.set(l,p+1)},async get({address:f,chainId:d,client:l}){const p=u({address:f,chainId:d});let m=c.get(p);return m||(m=(async()=>{try{const y=await s.get({address:f,chainId:d,client:l}),E=o.get(p)??0;return E>0&&y<=E?E+1:(o.delete(p),y)}finally{this.reset({address:f,chainId:d})}})(),c.set(p,m)),(a.get(p)??0)+await m},reset({address:f,chainId:d}){const l=u({address:f,chainId:d});a.delete(l),c.delete(l)}}}function t(){return{async get(i){const{address:s,client:a}=i;return(0,e.getTransactionCount)(a,{address:s,blockTag:"pending"})},set(){}}}return kt.nonceManager=n({source:t()}),kt}var ur={},Ua={},La={},q0;function qu(){if(q0)return La;q0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.withTimeout=e;function e(r,{errorInstance:n=new Error("timed out"),timeout:t,signal:i}){return new Promise((s,a)=>{(async()=>{let o;try{const c=new AbortController;t>0&&(o=setTimeout(()=>{i?c.abort():a(n)},t)),s(await r({signal:(c==null?void 0:c.signal)||null}))}catch(c){(c==null?void 0:c.name)==="AbortError"&&a(n),a(c)}finally{clearTimeout(o)}})()})}return La}var Xr={},F0;function Vm(){if(F0)return Xr;F0=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.idCache=void 0;function e(){return{current:0,take(){return this.current++},reset(){this.current=0}}}return Xr.idCache=e(),Xr}var M0;function Fu(){if(M0)return Ua;M0=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.getHttpRpcClient=i;const e=Ue(),r=qu(),n=me(),t=Vm();function i(s,a={}){return{async request(o){var E;const{body:c,fetchFn:u=a.fetchFn??fetch,onRequest:f=a.onRequest,onResponse:d=a.onResponse,timeout:l=a.timeout??1e4}=o,p={...a.fetchOptions??{},...o.fetchOptions??{}},{headers:m,method:b,signal:y}=p;try{const P=await(0,r.withTimeout)(async({signal:h})=>{const T={...p,body:Array.isArray(c)?(0,n.stringify)(c.map(j=>({jsonrpc:"2.0",id:j.id??t.idCache.take(),...j}))):(0,n.stringify)({jsonrpc:"2.0",id:c.id??t.idCache.take(),...c}),headers:{"Content-Type":"application/json",...m},method:b||"POST",signal:y||(l>0?h:null)},_=new Request(s,T),g=await(f==null?void 0:f(_,T))??{...T,url:s};return await u(g.url??s,g)},{errorInstance:new e.TimeoutError({body:c,url:s}),timeout:l,signal:!0});d&&await d(P);let A;if((E=P.headers.get("Content-Type"))!=null&&E.startsWith("application/json"))A=await P.json();else{A=await P.text();try{A=JSON.parse(A||"{}")}catch(h){if(P.ok)throw h;A={error:A}}}if(!P.ok)throw new e.HttpRequestError({body:c,details:(0,n.stringify)(A.error)||P.statusText,headers:P.headers,status:P.status,url:s});return A}catch(P){throw P instanceof e.HttpRequestError||P instanceof e.TimeoutError?P:new e.HttpRequestError({body:c,cause:P,url:s})}}}}return Ua}var Ga={},Wc={},k0;function Wm(){return k0||(k0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.socketClientCache=void 0,e.getSocketRpcClient=s;const r=Ue(),n=yu(),t=qu(),i=Vm();e.socketClientCache=new Map;async function s(a){const{getSocket:o,keepAlive:c=!0,key:u="socket",reconnect:f=!0,url:d}=a,{interval:l=3e4}=typeof c=="object"?c:{},{attempts:p=5,delay:m=2e3}=typeof f=="object"?f:{},b=JSON.stringify({keepAlive:c,key:u,url:d,reconnect:f});let y=e.socketClientCache.get(b);if(y)return y;let E=0;const{schedule:P}=(0,n.createBatchScheduler)({id:b,fn:async()=>{const T=new Map,_=new Map;let g,v,j,w=!1;function C(){if(f&&E<p){if(w)return;w=!0,E++,v==null||v.close(),setTimeout(async()=>{await S().catch(console.error),w=!1},m)}else T.clear(),_.clear()}async function S(){const R=await o({onClose(){var I,q;for(const B of T.values())(I=B.onError)==null||I.call(B,new r.SocketClosedError({url:d}));for(const B of _.values())(q=B.onError)==null||q.call(B,new r.SocketClosedError({url:d}));C()},onError(I){var q,B;g=I;for(const O of T.values())(q=O.onError)==null||q.call(O,g);for(const O of _.values())(B=O.onError)==null||B.call(O,g);C()},onOpen(){g=void 0,E=0},onResponse(I){const q=I.method==="eth_subscription",B=q?I.params.subscription:I.id,O=q?_:T,M=O.get(B);M&&M.onResponse(I),q||O.delete(B)}});if(v=R,c&&(j&&clearInterval(j),j=setInterval(()=>{var I;return(I=v.ping)==null?void 0:I.call(v)},l)),f&&_.size>0){const I=_.entries();for(const[q,{onResponse:B,body:O,onError:M}]of I)O&&(_.delete(q),y==null||y.request({body:O,onResponse:B,onError:M}))}return R}return await S(),g=void 0,y={close(){j&&clearInterval(j),v.close(),e.socketClientCache.delete(b)},get socket(){return v},request({body:R,onError:I,onResponse:q}){var M;g&&I&&I(g);const B=R.id??i.idCache.take(),O=k=>{typeof k.id=="number"&&B!==k.id||(R.method==="eth_subscribe"&&typeof k.result=="string"&&_.set(k.result,{onResponse:O,onError:I,body:R}),q(k))};R.method==="eth_unsubscribe"&&_.delete((M=R.params)==null?void 0:M[0]),T.set(B,{onResponse:O,onError:I});try{v.request({body:{jsonrpc:"2.0",id:B,...R}})}catch(k){I==null||I(k)}},requestAsync({body:R,timeout:I=1e4}){return(0,t.withTimeout)(()=>new Promise((q,B)=>this.request({body:R,onError:B,onResponse:q})),{errorInstance:new r.TimeoutError({body:R,url:d}),timeout:I})},requests:T,subscriptions:_,url:d},e.socketClientCache.set(b,y),[y]}}),[A,[h]]=await P();return h}}(Wc)),Wc}function Mp(){if(typeof WebSocket<"u")return WebSocket;if(typeof td.WebSocket<"u")return td.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const kp=Mp(),Np=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:kp},Symbol.toStringTag,{value:"Module"})),Hp=dp(Np);var N0;function Mu(){if(N0)return Ga;N0=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.getWebSocketRpcClient=n;const e=Ue(),r=Wm();async function n(t,i={}){const{keepAlive:s,reconnect:a}=i;return(0,r.getSocketRpcClient)({async getSocket({onClose:o,onError:c,onOpen:u,onResponse:f}){const d=await Promise.resolve().then(()=>Hp).then(y=>y.WebSocket),l=new d(t);function p(){l.removeEventListener("close",p),l.removeEventListener("message",m),l.removeEventListener("error",c),l.removeEventListener("open",u),o()}function m({data:y}){if(!(typeof y=="string"&&y.trim().length===0))try{const E=JSON.parse(y);f(E)}catch(E){c(E)}}l.addEventListener("close",p),l.addEventListener("message",m),l.addEventListener("error",c),l.addEventListener("open",u),l.readyState===d.CONNECTING&&await new Promise((y,E)=>{l&&(l.onopen=y,l.onerror=E)});const{close:b}=l;return Object.assign(l,{close(){b.bind(l)(),p()},ping(){try{if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new e.WebSocketRequestError({url:l.url,cause:new e.SocketClosedError({url:l.url})});const y={jsonrpc:"2.0",id:null,method:"net_version",params:[]};l.send(JSON.stringify(y))}catch(y){c(y)}},request({body:y}){if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new e.WebSocketRequestError({body:y,url:l.url,cause:new e.SocketClosedError({url:l.url})});return l.send(JSON.stringify(y))}})},keepAlive:s,reconnect:a,url:t})}return Ga}var H0;function Km(){if(H0)return ur;H0=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.rpc=void 0,ur.getSocket=i;const e=Fu(),r=Mu();function n(s,{body:a,onError:o,onResponse:c}){return s.request({body:a,onError:o,onResponse:c}),s}async function t(s,{body:a,timeout:o=1e4}){return s.requestAsync({body:a,timeout:o})}async function i(s){const a=await(0,r.getWebSocketRpcClient)(s);return Object.assign(a.socket,{requests:a.requests,subscriptions:a.subscriptions})}return ur.rpc={http(s,a){return(0,e.getHttpRpcClient)(s).request(a)},webSocket:n,webSocketAsync:t},ur}var Va={},Wa={},Qr={},x0;function Jm(){return x0||(x0=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.presignMessagePrefix=void 0,Qr.presignMessagePrefix=`Ethereum Signed Message:
42
- `),Qr}var $0;function Zm(){if($0)return Wa;$0=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.toPrefixedMessage=i;const e=Jm(),r=le(),n=ve(),t=V();function i(s){const a=(()=>typeof s=="string"?(0,t.stringToHex)(s):typeof s.raw=="string"?s.raw:(0,t.bytesToHex)(s.raw))(),o=(0,t.stringToHex)(`${e.presignMessagePrefix}${(0,n.size)(a)}`);return(0,r.concat)([o,a])}return Wa}var z0;function Tn(){if(z0)return Va;z0=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.hashMessage=n;const e=je(),r=Zm();function n(t,i){return(0,e.keccak256)((0,r.toPrefixedMessage)(t),i)}return Va}var Nt={},Ht={},nt={},D0;function Ym(){if(D0)return nt;D0=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.InvalidStructTypeError=nt.InvalidPrimaryTypeError=nt.InvalidDomainError=void 0;const e=me(),r=Q();class n extends r.BaseError{constructor({domain:a}){super(`Invalid domain "${(0,e.stringify)(a)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}nt.InvalidDomainError=n;class t extends r.BaseError{constructor({primaryType:a,types:o}){super(`Invalid primary type \`${a}\` must be one of \`${JSON.stringify(Object.keys(o))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}nt.InvalidPrimaryTypeError=t;class i extends r.BaseError{constructor({type:a}){super(`Struct type "${a}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}return nt.InvalidStructTypeError=i,nt}var U0;function uc(){if(U0)return Ht;U0=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.serializeTypedData=u,Ht.validateTypedData=f,Ht.getTypesForEIP712Domain=d,Ht.domainSeparator=l;const e=se(),r=ze(),n=Ym(),t=Ee(),i=ve(),s=V(),a=Gs(),o=wn(),c=me();function u(m){const{domain:b,message:y,primaryType:E,types:P}=m,A=(_,g)=>{const v={...g};for(const j of _){const{name:w,type:C}=j;C==="address"&&(v[w]=v[w].toLowerCase())}return v},h=(()=>P.EIP712Domain?b?A(P.EIP712Domain,b):{}:{})(),T=(()=>{if(E!=="EIP712Domain")return A(P[E],y)})();return(0,c.stringify)({domain:h,message:T,primaryType:E,types:P})}function f(m){const{domain:b,message:y,primaryType:E,types:P}=m,A=(h,T)=>{for(const _ of h){const{name:g,type:v}=_,j=T[g],w=v.match(a.integerRegex);if(w&&(typeof j=="number"||typeof j=="bigint")){const[R,I,q]=w;(0,s.numberToHex)(j,{signed:I==="int",size:Number.parseInt(q,10)/8})}if(v==="address"&&typeof j=="string"&&!(0,t.isAddress)(j))throw new r.InvalidAddressError({address:j});const C=v.match(a.bytesRegex);if(C){const[R,I]=C;if(I&&(0,i.size)(j)!==Number.parseInt(I,10))throw new e.BytesSizeMismatchError({expectedSize:Number.parseInt(I,10),givenSize:(0,i.size)(j)})}const S=P[v];S&&(p(v),A(S,j))}};if(P.EIP712Domain&&b){if(typeof b!="object")throw new n.InvalidDomainError({domain:b});A(P.EIP712Domain,b)}if(E!=="EIP712Domain")if(P[E])A(P[E],y);else throw new n.InvalidPrimaryTypeError({primaryType:E,types:P})}function d({domain:m}){return[typeof(m==null?void 0:m.name)=="string"&&{name:"name",type:"string"},(m==null?void 0:m.version)&&{name:"version",type:"string"},(typeof(m==null?void 0:m.chainId)=="number"||typeof(m==null?void 0:m.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(m==null?void 0:m.verifyingContract)&&{name:"verifyingContract",type:"address"},(m==null?void 0:m.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function l({domain:m}){return(0,o.hashDomain)({domain:m,types:{EIP712Domain:d({domain:m})}})}function p(m){if(m==="address"||m==="bool"||m==="string"||m.startsWith("bytes")||m.startsWith("uint")||m.startsWith("int"))throw new n.InvalidStructTypeError({type:m})}return Ht}var L0;function wn(){if(L0)return Nt;L0=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.hashTypedData=s,Nt.hashDomain=a,Nt.hashStruct=o,Nt.encodeType=f;const e=De(),r=le(),n=V(),t=je(),i=uc();function s(p){const{domain:m={},message:b,primaryType:y}=p,E={EIP712Domain:(0,i.getTypesForEIP712Domain)({domain:m}),...p.types};(0,i.validateTypedData)({domain:m,message:b,primaryType:y,types:E});const P=["0x1901"];return m&&P.push(a({domain:m,types:E})),y!=="EIP712Domain"&&P.push(o({data:b,primaryType:y,types:E})),(0,t.keccak256)((0,r.concat)(P))}function a({domain:p,types:m}){return o({data:p,primaryType:"EIP712Domain",types:m})}function o({data:p,primaryType:m,types:b}){const y=c({data:p,primaryType:m,types:b});return(0,t.keccak256)(y)}function c({data:p,primaryType:m,types:b}){const y=[{type:"bytes32"}],E=[u({primaryType:m,types:b})];for(const P of b[m]){const[A,h]=l({types:b,name:P.name,type:P.type,value:p[P.name]});y.push(A),E.push(h)}return(0,e.encodeAbiParameters)(y,E)}function u({primaryType:p,types:m}){const b=(0,n.toHex)(f({primaryType:p,types:m}));return(0,t.keccak256)(b)}function f({primaryType:p,types:m}){let b="";const y=d({primaryType:p,types:m});y.delete(p);const E=[p,...Array.from(y).sort()];for(const P of E)b+=`${P}(${m[P].map(({name:A,type:h})=>`${h} ${A}`).join(",")})`;return b}function d({primaryType:p,types:m},b=new Set){const y=p.match(/^\w*/u),E=y==null?void 0:y[0];if(b.has(E)||m[E]===void 0)return b;b.add(E);for(const P of m[E])d({primaryType:P.type,types:m},b);return b}function l({types:p,name:m,type:b,value:y}){if(p[b]!==void 0)return[{type:"bytes32"},(0,t.keccak256)(c({data:y,primaryType:b,types:p}))];if(b==="bytes")return[{type:"bytes32"},(0,t.keccak256)(y)];if(b==="string")return[{type:"bytes32"},(0,t.keccak256)((0,n.toHex)(y))];if(b.lastIndexOf("]")===b.length-1){const E=b.slice(0,b.lastIndexOf("[")),P=y.map(A=>l({name:m,type:E,types:p,value:A}));return[{type:"bytes32"},(0,t.keccak256)((0,e.encodeAbiParameters)(P.map(([A])=>A),P.map(([,A])=>A)))]}return[{type:b},y]}return Nt}var Ka={},xt={},G0;function ku(){return G0||(G0=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.zeroHash=xt.erc6492MagicBytes=void 0,xt.erc6492MagicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",xt.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"),xt}var V0;function Nu(){if(V0)return Ka;V0=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.isErc6492Signature=n;const e=ku(),r=Me();function n(t){return(0,r.sliceHex)(t,-32)===e.erc6492MagicBytes}return Ka}var Ja={},W0;function Hu(){if(W0)return Ja;W0=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.isErc8010Signature=r;const e=Ds();function r(n){return e.SignatureErc8010.validate(n)}return Ja}var Za={},K0;function Xm(){if(K0)return Za;K0=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.parseErc6492Signature=n;const e=gt(),r=Nu();function n(t){if(!(0,r.isErc6492Signature)(t))return{signature:t};const[i,s,a]=(0,e.decodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:i,data:s,signature:a}}return Za}var Ya={},J0;function Qm(){if(J0)return Ya;J0=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.parseErc8010Signature=t;const e=Ds(),r=V(),n=Hu();function t(i){if(!(0,n.isErc8010Signature)(i))return{signature:i};const{authorization:s,to:a,...o}=e.SignatureErc8010.unwrap(i);return{authorization:{address:s.address,chainId:s.chainId,nonce:Number(s.nonce),r:(0,r.numberToHex)(s.r,{size:32}),s:(0,r.numberToHex)(s.s,{size:32}),yParity:s.yParity},...a?{address:a}:{},...o}}return Ya}var Xa={},Z0;function xu(){if(Z0)return Xa;Z0=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.recoverMessageAddress=n;const e=Tn(),r=jt();async function n({message:t,signature:i}){return(0,r.recoverAddress)({hash:(0,e.hashMessage)(t),signature:i})}return Xa}var Qa={},Y0;function $u(){if(Y0)return Qa;Y0=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.recoverTypedDataAddress=n;const e=wn(),r=jt();async function n(t){const{domain:i,message:s,primaryType:a,signature:o,types:c}=t;return(0,r.recoverAddress)({hash:(0,e.hashTypedData)({domain:i,message:s,primaryType:a,types:c}),signature:o})}return Qa}var ei={},X0;function ey(){if(X0)return ei;X0=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.serializeErc6492Signature=i;const e=ku(),r=De(),n=le(),t=oe();function i(s){const{address:a,data:o,signature:c,to:u="hex"}=s,f=(0,n.concatHex)([(0,r.encodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],[a,o,c]),e.erc6492MagicBytes]);return u==="hex"?f:(0,t.hexToBytes)(f)}return ei}var ti={},Q0;function ty(){if(Q0)return ti;Q0=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.serializeErc8010Signature=n;const e=Ds(),r=oe();function n(t){const{address:i,data:s,signature:a,to:o="hex"}=t,c=e.SignatureErc8010.wrap({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:s,signature:a,to:i});return o==="hex"?c:(0,r.hexToBytes)(c)}return ti}var ri={},eb;function ry(){if(eb)return ri;eb=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.verifyHash=t;const e=Be(),r=Ve(),n=jt();async function t({address:i,hash:s,signature:a}){return(0,r.isAddressEqual)((0,e.getAddress)(i),await(0,n.recoverAddress)({hash:s,signature:a}))}return ri}var ni={},tb;function ny(){if(tb)return ni;tb=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.verifyMessage=t;const e=Be(),r=Ve(),n=xu();async function t({address:i,message:s,signature:a}){return(0,r.isAddressEqual)((0,e.getAddress)(i),await(0,n.recoverMessageAddress)({message:s,signature:a}))}return ni}var oi={},rb;function oy(){if(rb)return oi;rb=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.verifyTypedData=t;const e=Be(),r=Ve(),n=$u();async function t(i){const{address:s,domain:a,message:o,primaryType:c,signature:u,types:f}=i;return(0,r.isAddressEqual)((0,e.getAddress)(s),await(0,n.recoverTypedDataAddress)({domain:a,message:o,primaryType:c,signature:u,types:f}))}return oi}var ai={},nb;function zu(){if(nb)return ai;nb=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.getSerializedTransactionType=t;const e=Te(),r=Me(),n=ue();function t(i){const s=(0,r.sliceHex)(i,0,1);if(s==="0x04")return"eip7702";if(s==="0x03")return"eip4844";if(s==="0x02")return"eip1559";if(s==="0x01")return"eip2930";if(s!=="0x"&&(0,n.hexToNumber)(s)>=192)return"legacy";throw new e.InvalidSerializedTransactionTypeError({serializedType:s})}return ai}var dr={},ob;function Du(){if(ob)return dr;ob=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.parseTransaction=l,dr.toTransactionArray=P,dr.parseAccessList=A;const e=ze(),r=Te(),n=Ee(),t=Qs(),i=_e(),s=pt(),a=at(),o=ue(),c=Ou(),u=Bu(),f=sc(),d=zu();function l(_){const g=(0,d.getSerializedTransactionType)(_);return g==="eip1559"?b(_):g==="eip2930"?y(_):g==="eip4844"?m(_):g==="eip7702"?p(_):E(_)}function p(_){const g=P(_),[v,j,w,C,S,R,I,q,B,O,M,k,$]=g;if(g.length!==10&&g.length!==13)throw new r.InvalidSerializedTransactionError({attributes:{chainId:v,nonce:j,maxPriorityFeePerGas:w,maxFeePerGas:C,gas:S,to:R,value:I,data:q,accessList:B,authorizationList:O,...g.length>9?{v:M,r:k,s:$}:{}},serializedTransaction:_,type:"eip7702"});const z={chainId:(0,o.hexToNumber)(v),type:"eip7702"};return(0,i.isHex)(R)&&R!=="0x"&&(z.to=R),(0,i.isHex)(S)&&S!=="0x"&&(z.gas=(0,o.hexToBigInt)(S)),(0,i.isHex)(q)&&q!=="0x"&&(z.data=q),(0,i.isHex)(j)&&(z.nonce=j==="0x"?0:(0,o.hexToNumber)(j)),(0,i.isHex)(I)&&I!=="0x"&&(z.value=(0,o.hexToBigInt)(I)),(0,i.isHex)(C)&&C!=="0x"&&(z.maxFeePerGas=(0,o.hexToBigInt)(C)),(0,i.isHex)(w)&&w!=="0x"&&(z.maxPriorityFeePerGas=(0,o.hexToBigInt)(w)),B.length!==0&&B!=="0x"&&(z.accessList=A(B)),O.length!==0&&O!=="0x"&&(z.authorizationList=h(O)),(0,f.assertTransactionEIP7702)(z),{...g.length===13?T(g):void 0,...z}}function m(_){const g=P(_),v=g.length===4,j=v?g[0]:g,w=v?g.slice(1):[],[C,S,R,I,q,B,O,M,k,$,z,N,D,U]=j,[G,H,Y]=w;if(!(j.length===11||j.length===14))throw new r.InvalidSerializedTransactionError({attributes:{chainId:C,nonce:S,maxPriorityFeePerGas:R,maxFeePerGas:I,gas:q,to:B,value:O,data:M,accessList:k,...j.length>9?{v:N,r:D,s:U}:{}},serializedTransaction:_,type:"eip4844"});const J={blobVersionedHashes:z,chainId:(0,o.hexToNumber)(C),to:B,type:"eip4844"};return(0,i.isHex)(q)&&q!=="0x"&&(J.gas=(0,o.hexToBigInt)(q)),(0,i.isHex)(M)&&M!=="0x"&&(J.data=M),(0,i.isHex)(S)&&(J.nonce=S==="0x"?0:(0,o.hexToNumber)(S)),(0,i.isHex)(O)&&O!=="0x"&&(J.value=(0,o.hexToBigInt)(O)),(0,i.isHex)($)&&$!=="0x"&&(J.maxFeePerBlobGas=(0,o.hexToBigInt)($)),(0,i.isHex)(I)&&I!=="0x"&&(J.maxFeePerGas=(0,o.hexToBigInt)(I)),(0,i.isHex)(R)&&R!=="0x"&&(J.maxPriorityFeePerGas=(0,o.hexToBigInt)(R)),k.length!==0&&k!=="0x"&&(J.accessList=A(k)),G&&H&&Y&&(J.sidecars=(0,t.toBlobSidecars)({blobs:G,commitments:H,proofs:Y})),(0,f.assertTransactionEIP4844)(J),{...j.length===14?T(j):void 0,...J}}function b(_){const g=P(_),[v,j,w,C,S,R,I,q,B,O,M,k]=g;if(!(g.length===9||g.length===12))throw new r.InvalidSerializedTransactionError({attributes:{chainId:v,nonce:j,maxPriorityFeePerGas:w,maxFeePerGas:C,gas:S,to:R,value:I,data:q,accessList:B,...g.length>9?{v:O,r:M,s:k}:{}},serializedTransaction:_,type:"eip1559"});const $={chainId:(0,o.hexToNumber)(v),type:"eip1559"};return(0,i.isHex)(R)&&R!=="0x"&&($.to=R),(0,i.isHex)(S)&&S!=="0x"&&($.gas=(0,o.hexToBigInt)(S)),(0,i.isHex)(q)&&q!=="0x"&&($.data=q),(0,i.isHex)(j)&&($.nonce=j==="0x"?0:(0,o.hexToNumber)(j)),(0,i.isHex)(I)&&I!=="0x"&&($.value=(0,o.hexToBigInt)(I)),(0,i.isHex)(C)&&C!=="0x"&&($.maxFeePerGas=(0,o.hexToBigInt)(C)),(0,i.isHex)(w)&&w!=="0x"&&($.maxPriorityFeePerGas=(0,o.hexToBigInt)(w)),B.length!==0&&B!=="0x"&&($.accessList=A(B)),(0,f.assertTransactionEIP1559)($),{...g.length===12?T(g):void 0,...$}}function y(_){const g=P(_),[v,j,w,C,S,R,I,q,B,O,M]=g;if(!(g.length===8||g.length===11))throw new r.InvalidSerializedTransactionError({attributes:{chainId:v,nonce:j,gasPrice:w,gas:C,to:S,value:R,data:I,accessList:q,...g.length>8?{v:B,r:O,s:M}:{}},serializedTransaction:_,type:"eip2930"});const k={chainId:(0,o.hexToNumber)(v),type:"eip2930"};return(0,i.isHex)(S)&&S!=="0x"&&(k.to=S),(0,i.isHex)(C)&&C!=="0x"&&(k.gas=(0,o.hexToBigInt)(C)),(0,i.isHex)(I)&&I!=="0x"&&(k.data=I),(0,i.isHex)(j)&&(k.nonce=j==="0x"?0:(0,o.hexToNumber)(j)),(0,i.isHex)(R)&&R!=="0x"&&(k.value=(0,o.hexToBigInt)(R)),(0,i.isHex)(w)&&w!=="0x"&&(k.gasPrice=(0,o.hexToBigInt)(w)),q.length!==0&&q!=="0x"&&(k.accessList=A(q)),(0,f.assertTransactionEIP2930)(k),{...g.length===11?T(g):void 0,...k}}function E(_){const g=(0,c.fromRlp)(_,"hex"),[v,j,w,C,S,R,I,q,B]=g;if(!(g.length===6||g.length===9))throw new r.InvalidSerializedTransactionError({attributes:{nonce:v,gasPrice:j,gas:w,to:C,value:S,data:R,...g.length>6?{v:I,r:q,s:B}:{}},serializedTransaction:_,type:"legacy"});const O={type:"legacy"};if((0,i.isHex)(C)&&C!=="0x"&&(O.to=C),(0,i.isHex)(w)&&w!=="0x"&&(O.gas=(0,o.hexToBigInt)(w)),(0,i.isHex)(R)&&R!=="0x"&&(O.data=R),(0,i.isHex)(v)&&(O.nonce=v==="0x"?0:(0,o.hexToNumber)(v)),(0,i.isHex)(S)&&S!=="0x"&&(O.value=(0,o.hexToBigInt)(S)),(0,i.isHex)(j)&&j!=="0x"&&(O.gasPrice=(0,o.hexToBigInt)(j)),(0,f.assertTransactionLegacy)(O),g.length===6)return O;const M=(0,i.isHex)(I)&&I!=="0x"?(0,o.hexToBigInt)(I):0n;if(B==="0x"&&q==="0x")return M>0&&(O.chainId=Number(M)),O;const k=M,$=Number((k-35n)/2n);if($>0)O.chainId=$;else if(k!==27n&&k!==28n)throw new r.InvalidLegacyVError({v:k});return O.v=k,O.s=B,O.r=q,O.yParity=k%2n===0n?1:0,O}function P(_){return(0,c.fromRlp)(`0x${_.slice(4)}`,"hex")}function A(_){const g=[];for(let v=0;v<_.length;v++){const[j,w]=_[v];if(!(0,n.isAddress)(j,{strict:!1}))throw new e.InvalidAddressError({address:j});g.push({address:j,storageKeys:w.map(C=>(0,u.isHash)(C)?C:(0,a.trim)(C))})}return g}function h(_){const g=[];for(let v=0;v<_.length;v++){const[j,w,C,S,R,I]=_[v];g.push({address:w,chainId:j==="0x"?0:(0,o.hexToNumber)(j),nonce:C==="0x"?0:(0,o.hexToNumber)(C),...T([S,R,I])})}return g}function T(_){const g=_.slice(-3),v=g[0]==="0x"||(0,o.hexToBigInt)(g[0])===0n?27n:28n;return{r:(0,s.padHex)(g[1],{size:32}),s:(0,s.padHex)(g[2],{size:32}),v,yParity:v===27n?0:1}}return dr}var ii={},si={},en={},ab;function ay(){if(ab)return en;ab=1,Object.defineProperty(en,"__esModule",{value:!0}),en.InvalidDecimalNumberError=void 0;const e=Q();class r extends e.BaseError{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}return en.InvalidDecimalNumberError=r,en}var ib;function dc(){if(ib)return si;ib=1,Object.defineProperty(si,"__esModule",{value:!0}),si.parseUnits=r;const e=ay();function r(n,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(n))throw new e.InvalidDecimalNumberError({value:n});let[i,s="0"]=n.split(".");const a=i.startsWith("-");if(a&&(i=i.slice(1)),s=s.replace(/(0+)$/,""),t===0)Math.round(+`.${s}`)===1&&(i=`${BigInt(i)+1n}`),s="";else if(s.length>t){const[o,c,u]=[s.slice(0,t-1),s.slice(t-1,t),s.slice(t)],f=Math.round(+`${c}.${u}`);f>9?s=`${BigInt(o)+BigInt(1)}0`.padStart(o.length+1,"0"):s=`${o}${f}`,s.length>t&&(s=s.slice(1),i=`${BigInt(i)+1n}`),s=s.slice(0,t)}else s=s.padEnd(t,"0");return BigInt(`${a?"-":""}${i}${s}`)}return si}var sb;function iy(){if(sb)return ii;sb=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.parseEther=n;const e=an(),r=dc();function n(t,i="wei"){return(0,r.parseUnits)(t,e.etherUnits[i])}return ii}var ci={},cb;function sy(){if(cb)return ci;cb=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.parseGwei=n;const e=an(),r=dc();function n(t,i="wei"){return(0,r.parseUnits)(t,e.gweiUnits[i])}return ci}var ub;function Uu(){return ub||(ub=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.padBytes=e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=e.concat=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.ccipRequest=e.buildRequest=e.verifyAuthorization=e.serializeAuthorizationList=e.recoverAuthorizationAddress=e.hashAuthorization=e.isAddressEqual=e.isAddress=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAddress=e.parseEventLogs=e.getAbiItem=e.formatAbiItemWithArgs=e.formatAbiParams=e.formatAbiItem=e.encodePacked=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeAbiParameters=e.publicKeyToAddress=e.parseAccount=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=void 0,e.ripemd160=e.keccak256=e.isHash=e.getAction=e.formatTransactionRequest=e.defineTransactionRequest=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatLog=e.defineFormatter=e.extract=e.formatBlock=e.defineBlock=e.getTransactionError=e.getNodeError=e.containsNodeError=e.getEstimateGasError=e.getContractError=e.getCallError=e.toRlp=e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=void 0,e.validateTypedData=e.serializeTypedData=e.serializeTransaction=e.serializeAccessList=e.parseTransaction=e.getTransactionType=e.getSerializedTransactionType=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.stringify=e.verifyTypedData=e.verifyMessage=e.verifyHash=e.serializeErc8010Signature=e.serializeErc6492Signature=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.parseErc8010Signature=e.parseErc6492Signature=e.isErc8010Signature=e.isErc6492Signature=e.hashTypedData=e.hashStruct=e.hashMessage=e.getWebSocketRpcClient=e.socketClientCache=e.getSocketRpcClient=e.getHttpRpcClient=e.rpc=e.getSocket=e.integerRegex=e.bytesRegex=e.arrayRegex=e.nonceManager=e.createNonceManager=e.getFunctionSignature=e.toFunctionSignature=e.getFunctionSelector=e.toFunctionSelector=e.toFunctionHash=e.getEventSignature=e.toEventSignature=e.getEventSelector=e.toEventSelector=e.toEventHash=e.sha256=void 0,e.parseUnits=e.parseGwei=e.parseEther=e.formatUnits=e.formatGwei=e.formatEther=void 0;var r=zt();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return r.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return r.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return r.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return r.parseAbiParameters}});var n=ce();Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var t=dm();Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return t.publicKeyToAddress}});var i=gt();Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return i.decodeAbiParameters}});var s=Ws();Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return s.decodeErrorResult}});var a=yn();Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return a.decodeEventLog}});var o=pu();Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return o.decodeFunctionData}});var c=ut();Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return c.decodeFunctionResult}});var u=De();Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return u.encodeAbiParameters}});var f=_n();Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return f.encodeDeployData}});var d=gu();Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return d.encodeErrorResult}});var l=Lt();Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return l.encodeEventTopics}});var p=Pe();Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return p.encodeFunctionData}});var m=hu();Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return m.encodeFunctionResult}});var b=qm();Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return b.encodePacked}});var y=ot();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return y.formatAbiItem}}),Object.defineProperty(e,"formatAbiParams",{enumerable:!0,get:function(){return y.formatAbiParams}});var E=um();Object.defineProperty(e,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return E.formatAbiItemWithArgs}});var P=it();Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return P.getAbiItem}});var A=pn();Object.defineProperty(e,"parseEventLogs",{enumerable:!0,get:function(){return A.parseEventLogs}});var h=Be();Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return h.getAddress}});var T=Fm();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return T.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return T.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return T.getCreateAddress}});var _=Ee();Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return _.isAddress}});var g=Ve();Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return g.isAddressEqual}});var v=fm();Object.defineProperty(e,"hashAuthorization",{enumerable:!0,get:function(){return v.hashAuthorization}});var j=un();Object.defineProperty(e,"recoverAuthorizationAddress",{enumerable:!0,get:function(){return j.recoverAuthorizationAddress}});var w=Mm();Object.defineProperty(e,"serializeAuthorizationList",{enumerable:!0,get:function(){return w.serializeAuthorizationList}});var C=km();Object.defineProperty(e,"verifyAuthorization",{enumerable:!0,get:function(){return C.verifyAuthorization}});var S=Nm();Object.defineProperty(e,"buildRequest",{enumerable:!0,get:function(){return S.buildRequest}});var R=_u();Object.defineProperty(e,"ccipRequest",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return R.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return R.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return R.offchainLookupSignature}});var I=En();Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return I.assertCurrentChain}});var q=Hm();Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return q.defineChain}});var B=xm();Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return B.extractChain}});var O=wt();Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return O.getChainContractAddress}});var M=le();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return M.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return M.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return M.concatHex}});var k=Cu();Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return k.isBytes}});var $=_e();Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return $.isHex}});var z=pt();Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return z.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return z.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return z.padHex}});var N=ve();Object.defineProperty(e,"size",{enumerable:!0,get:function(){return N.size}});var D=Me();Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return D.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return D.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return D.sliceHex}});var U=at();Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return U.trim}});var G=Xc();Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return G.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return G.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return G.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return G.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return G.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return G.fromBytes}});var H=ue();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return H.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return H.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return H.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return H.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return H.hexToString}});var Y=Ou();Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return Y.fromRlp}});var J=oe();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return J.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return J.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return J.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return J.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return J.toBytes}});var X=V();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return X.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return X.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return X.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return X.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return X.toHex}});var L=cn();Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return L.toRlp}});var ee=bu();Object.defineProperty(e,"getCallError",{enumerable:!0,get:function(){return ee.getCallError}});var ae=vt();Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return ae.getContractError}});var de=bm();Object.defineProperty(e,"getEstimateGasError",{enumerable:!0,get:function(){return de.getEstimateGasError}});var ye=dn();Object.defineProperty(e,"containsNodeError",{enumerable:!0,get:function(){return ye.containsNodeError}}),Object.defineProperty(e,"getNodeError",{enumerable:!0,get:function(){return ye.getNodeError}});var fe=bn();Object.defineProperty(e,"getTransactionError",{enumerable:!0,get:function(){return fe.getTransactionError}});var pe=Js();Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return pe.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return pe.formatBlock}});var be=Et();Object.defineProperty(e,"extract",{enumerable:!0,get:function(){return be.extract}});var ke=fn();Object.defineProperty(e,"defineFormatter",{enumerable:!0,get:function(){return ke.defineFormatter}});var qe=ct();Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return qe.formatLog}});var W=pr();Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return W.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return W.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return W.transactionType}});var x=Pn();Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return x.defineTransactionReceipt}});var Rt=Le();Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return Rt.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return Rt.formatTransactionRequest}});var It=te();Object.defineProperty(e,"getAction",{enumerable:!0,get:function(){return It.getAction}});var we=Bu();Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return we.isHash}});var Fe=je();Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return Fe.keccak256}});var Ae=$m();Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return Ae.ripemd160}});var Kt=iu();Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return Kt.sha256}});var Rn=zm();Object.defineProperty(e,"toEventHash",{enumerable:!0,get:function(){return Rn.toEventHash}});var dt=yr();Object.defineProperty(e,"toEventSelector",{enumerable:!0,get:function(){return dt.toEventSelector}}),Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return dt.toEventSelector}});var Jt=Dm();Object.defineProperty(e,"toEventSignature",{enumerable:!0,get:function(){return Jt.toEventSignature}}),Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return Jt.toEventSignature}});var Zt=Um();Object.defineProperty(e,"toFunctionHash",{enumerable:!0,get:function(){return Zt.toFunctionHash}});var Re=Ut();Object.defineProperty(e,"toFunctionSelector",{enumerable:!0,get:function(){return Re.toFunctionSelector}}),Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return Re.toFunctionSelector}});var In=Lm();Object.defineProperty(e,"toFunctionSignature",{enumerable:!0,get:function(){return In.toFunctionSignature}}),Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return In.toFunctionSignature}});var Cn=Gm();Object.defineProperty(e,"createNonceManager",{enumerable:!0,get:function(){return Cn.createNonceManager}}),Object.defineProperty(e,"nonceManager",{enumerable:!0,get:function(){return Cn.nonceManager}});var hr=Gs();Object.defineProperty(e,"arrayRegex",{enumerable:!0,get:function(){return hr.arrayRegex}}),Object.defineProperty(e,"bytesRegex",{enumerable:!0,get:function(){return hr.bytesRegex}}),Object.defineProperty(e,"integerRegex",{enumerable:!0,get:function(){return hr.integerRegex}});var Sn=Km();Object.defineProperty(e,"getSocket",{enumerable:!0,get:function(){return Sn.getSocket}}),Object.defineProperty(e,"rpc",{enumerable:!0,get:function(){return Sn.rpc}});var Ct=Fu();Object.defineProperty(e,"getHttpRpcClient",{enumerable:!0,get:function(){return Ct.getHttpRpcClient}});var On=Wm();Object.defineProperty(e,"getSocketRpcClient",{enumerable:!0,get:function(){return On.getSocketRpcClient}}),Object.defineProperty(e,"socketClientCache",{enumerable:!0,get:function(){return On.socketClientCache}});var Bn=Mu();Object.defineProperty(e,"getWebSocketRpcClient",{enumerable:!0,get:function(){return Bn.getWebSocketRpcClient}});var lc=Tn();Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return lc.hashMessage}});var qn=wn();Object.defineProperty(e,"hashStruct",{enumerable:!0,get:function(){return qn.hashStruct}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return qn.hashTypedData}});var _r=Nu();Object.defineProperty(e,"isErc6492Signature",{enumerable:!0,get:function(){return _r.isErc6492Signature}});var bc=Hu();Object.defineProperty(e,"isErc8010Signature",{enumerable:!0,get:function(){return bc.isErc8010Signature}});var mc=Xm();Object.defineProperty(e,"parseErc6492Signature",{enumerable:!0,get:function(){return mc.parseErc6492Signature}});var vr=Qm();Object.defineProperty(e,"parseErc8010Signature",{enumerable:!0,get:function(){return vr.parseErc8010Signature}});var yc=jt();Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return yc.recoverAddress}});var jr=xu();Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return jr.recoverMessageAddress}});var pc=tu();Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return pc.recoverPublicKey}});var St=$u();Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return St.recoverTypedDataAddress}});var Ot=ey();Object.defineProperty(e,"serializeErc6492Signature",{enumerable:!0,get:function(){return Ot.serializeErc6492Signature}});var gc=ty();Object.defineProperty(e,"serializeErc8010Signature",{enumerable:!0,get:function(){return gc.serializeErc8010Signature}});var Bt=ry();Object.defineProperty(e,"verifyHash",{enumerable:!0,get:function(){return Bt.verifyHash}});var qt=ny();Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return qt.verifyMessage}});var Er=oy();Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Er.verifyTypedData}});var hc=me();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return hc.stringify}});var _c=Ge();Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return _c.assertRequest}});var Pr=sc();Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return Pr.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return Pr.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return Pr.assertTransactionLegacy}});var vc=zu();Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return vc.getSerializedTransactionType}});var Fn=ec();Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return Fn.getTransactionType}});var jc=Du();Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return jc.parseTransaction}});var Tr=Su();Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return Tr.serializeAccessList}});var Mn=cc();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Mn.serializeTransaction}});var Yt=uc();Object.defineProperty(e,"serializeTypedData",{enumerable:!0,get:function(){return Yt.serializeTypedData}}),Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return Yt.validateTypedData}});var Ec=sn();Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return Ec.formatEther}});var Pc=Gt();Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return Pc.formatGwei}});var Tc=Ks();Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return Tc.formatUnits}});var wc=iy();Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return wc.parseEther}});var Ac=sy();Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return Ac.parseGwei}});var kn=dc();Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return kn.parseUnits}})}(zc)),zc}var db;function xp(){if(db)return qa;db=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.formatProof=n;const e=Uu();function r(t){return t.map(i=>({...i,value:BigInt(i.value)}))}function n(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?(0,e.hexToNumber)(t.nonce):void 0,storageProof:t.storageProof?r(t.storageProof):void 0}}return qa}var fb;function $p(){if(fb)return Ba;fb=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.getProof=n;const e=V(),r=xp();async function n(t,{address:i,blockNumber:s,blockTag:a,storageKeys:o}){const c=a??"latest",u=s!==void 0?(0,e.numberToHex)(s):void 0,f=await t.request({method:"eth_getProof",params:[i,o,u||c]});return(0,r.formatProof)(f)}return Ba}var ui={},lb;function zp(){if(lb)return ui;lb=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.getStorageAt=r;const e=V();async function r(n,{address:t,blockNumber:i,blockTag:s="latest",slot:a}){const o=i!==void 0?(0,e.numberToHex)(i):void 0;return await n.request({method:"eth_getStorageAt",params:[t,a,o||s]})}return ui}var di={},bb;function Lu(){if(bb)return di;bb=1,Object.defineProperty(di,"__esModule",{value:!0}),di.getTransaction=t;const e=Te(),r=V(),n=pr();async function t(i,{blockHash:s,blockNumber:a,blockTag:o,hash:c,index:u,sender:f,nonce:d}){var y,E,P;const l=o||"latest",p=a!==void 0?(0,r.numberToHex)(a):void 0;let m=null;if(c?m=await i.request({method:"eth_getTransactionByHash",params:[c]},{dedupe:!0}):s?m=await i.request({method:"eth_getTransactionByBlockHashAndIndex",params:[s,(0,r.numberToHex)(u)]},{dedupe:!0}):(p||l)&&typeof u=="number"?m=await i.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[p||l,(0,r.numberToHex)(u)]},{dedupe:!!p}):f&&typeof d=="number"&&(m=await i.request({method:"eth_getTransactionBySenderAndNonce",params:[f,(0,r.numberToHex)(d)]},{dedupe:!0})),!m)throw new e.TransactionNotFoundError({blockHash:s,blockNumber:a,blockTag:l,hash:c,index:u});return(((P=(E=(y=i.chain)==null?void 0:y.formatters)==null?void 0:E.transaction)==null?void 0:P.format)||n.formatTransaction)(m,"getTransaction")}return di}var fi={},mb;function Dp(){if(mb)return fi;mb=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.getTransactionConfirmations=t;const e=te(),r=jn(),n=Lu();async function t(i,{hash:s,transactionReceipt:a}){const[o,c]=await Promise.all([(0,e.getAction)(i,r.getBlockNumber,"getBlockNumber")({}),s?(0,e.getAction)(i,n.getTransaction,"getTransaction")({hash:s}):void 0]),u=(a==null?void 0:a.blockNumber)||(c==null?void 0:c.blockNumber);return u?o-u+1n:0n}return fi}var li={},yb;function cy(){if(yb)return li;yb=1,Object.defineProperty(li,"__esModule",{value:!0}),li.getTransactionReceipt=n;const e=Te(),r=Pn();async function n(t,{hash:i}){var o,c,u;const s=await t.request({method:"eth_getTransactionReceipt",params:[i]},{dedupe:!0});if(!s)throw new e.TransactionReceiptNotFoundError({hash:i});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transactionReceipt)==null?void 0:u.format)||r.formatTransactionReceipt)(s,"getTransactionReceipt")}return li}var bi={},pb;function Up(){if(pb)return bi;pb=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.multicall=d;const e=Tt(),r=gn(),n=se(),t=Q(),i=ht(),s=ut(),a=Pe(),o=wt(),c=vt(),u=te(),f=We();async function d(l,p){var I;const{account:m,authorizationList:b,allowFailure:y=!0,blockNumber:E,blockOverrides:P,blockTag:A,stateOverride:h}=p,T=p.contracts,{batchSize:_=p.batchSize??1024,deployless:g=p.deployless??!1}=typeof((I=l.batch)==null?void 0:I.multicall)=="object"?l.batch.multicall:{},v=(()=>{if(p.multicallAddress)return p.multicallAddress;if(g)return null;if(l.chain)return(0,o.getChainContractAddress)({blockNumber:E,chain:l.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),j=[[]];let w=0,C=0;for(let q=0;q<T.length;q++){const{abi:B,address:O,args:M,functionName:k}=T[q];try{const $=(0,a.encodeFunctionData)({abi:B,args:M,functionName:k});C+=($.length-2)/2,_>0&&C>_&&j[w].length>0&&(w++,C=($.length-2)/2,j[w]=[]),j[w]=[...j[w],{allowFailure:!0,callData:$,target:O}]}catch($){const z=(0,c.getContractError)($,{abi:B,address:O,args:M,docsPath:"/docs/contract/multicall",functionName:k,sender:m});if(!y)throw z;j[w]=[...j[w],{allowFailure:!0,callData:"0x",target:O}]}}const S=await Promise.allSettled(j.map(q=>(0,u.getAction)(l,f.readContract,"readContract")({...v===null?{code:r.multicall3Bytecode}:{address:v},abi:e.multicall3Abi,account:m,args:[q],authorizationList:b,blockNumber:E,blockOverrides:P,blockTag:A,functionName:"aggregate3",stateOverride:h}))),R=[];for(let q=0;q<S.length;q++){const B=S[q];if(B.status==="rejected"){if(!y)throw B.reason;for(let M=0;M<j[q].length;M++)R.push({status:"failure",error:B.reason,result:void 0});continue}const O=B.value;for(let M=0;M<O.length;M++){const{returnData:k,success:$}=O[M],{callData:z}=j[q][M],{abi:N,address:D,functionName:U,args:G}=T[R.length];try{if(z==="0x")throw new n.AbiDecodingZeroDataError;if(!$)throw new i.RawContractError({data:k});const H=(0,s.decodeFunctionResult)({abi:N,args:G,data:k,functionName:U});R.push(y?{result:H,status:"success"}:H)}catch(H){const Y=(0,c.getContractError)(H,{abi:N,address:D,args:G,docsPath:"/docs/contract/multicall",functionName:U});if(!y)throw Y;R.push({error:Y,result:void 0,status:"failure"})}}}if(R.length!==T.length)throw new t.BaseError("multicall results mismatch");return R}return bi}var mi={},gb;function uy(){if(gb)return mi;gb=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.simulateBlocks=y;const e=nm(),r=ce(),n=se(),t=ht(),i=st(),s=ut(),a=Pe(),o=le(),c=V(),u=vt(),f=dn(),d=Js(),l=ct(),p=Le(),m=ru(),b=Ge();async function y(E,P){const{blockNumber:A,blockTag:h=E.experimental_blockTag??"latest",blocks:T,returnFullTransactions:_,traceTransfers:g,validation:v}=P;try{const j=[];for(const R of T){const I=R.blockOverrides?e.toRpc(R.blockOverrides):void 0,q=R.calls.map(O=>{const M=O,k=M.account?(0,r.parseAccount)(M.account):void 0,$=M.abi?(0,a.encodeFunctionData)(M):M.data,z={...M,account:k,data:M.dataSuffix?(0,o.concat)([$||"0x",M.dataSuffix]):$,from:M.from??(k==null?void 0:k.address)};return(0,b.assertRequest)(z),(0,p.formatTransactionRequest)(z)}),B=R.stateOverrides?(0,m.serializeStateOverride)(R.stateOverrides):void 0;j.push({blockOverrides:I,calls:q,stateOverrides:B})}const C=(typeof A=="bigint"?(0,c.numberToHex)(A):void 0)||h;return(await E.request({method:"eth_simulateV1",params:[{blockStateCalls:j,returnFullTransactions:_,traceTransfers:g,validation:v},C]})).map((R,I)=>({...(0,d.formatBlock)(R),calls:R.calls.map((q,B)=>{var Y,J;const{abi:O,args:M,functionName:k,to:$}=T[I].calls[B],z=((Y=q.error)==null?void 0:Y.data)??q.returnData,N=BigInt(q.gasUsed),D=(J=q.logs)==null?void 0:J.map(X=>(0,l.formatLog)(X)),U=q.status==="0x1"?"success":"failure",G=O&&U==="success"&&z!=="0x"?(0,s.decodeFunctionResult)({abi:O,data:z,functionName:k}):null,H=(()=>{var L;if(U==="success")return;let X;if(((L=q.error)==null?void 0:L.data)==="0x"?X=new n.AbiDecodingZeroDataError:q.error&&(X=new t.RawContractError(q.error)),!!X)return(0,u.getContractError)(X,{abi:O??[],address:$??"0x",args:M,functionName:k??"<unknown>"})})();return{data:z,gasUsed:N,logs:D,status:U,...U==="success"?{result:G}:{error:H}}})}))}catch(j){const w=j,C=(0,f.getNodeError)(w,{});throw C instanceof i.UnknownNodeError?w:C}}return mi}var yi={},yt={},he={},fr={},hb;function Lp(){if(hb)return fr;hb=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.normalizeSignature=n,fr.isArgOfType=t,fr.getAmbiguousTypes=i;const e=sp(),r=om();function n(s){let a=!0,o="",c=0,u="",f=!1;for(let d=0;d<s.length;d++){const l=s[d];if(["(",")",","].includes(l)&&(a=!0),l==="("&&c++,l===")"&&c--,!!a){if(c===0){if(l===" "&&["event","function","error",""].includes(u))u="";else if(u+=l,l===")"){f=!0;break}continue}if(l===" "){s[d-1]!==","&&o!==","&&o!==",("&&(o="",a=!1);continue}u+=l,o+=l}}if(!f)throw new r.BaseError("Unable to normalize signature.");return u}function t(s,a){const o=typeof s,c=a.type;switch(c){case"address":return e.validate(s,{strict:!1});case"bool":return o==="boolean";case"function":return o==="string";case"string":return o==="string";default:return c==="tuple"&&"components"in a?Object.values(a.components).every((u,f)=>t(Object.values(s)[f],u)):/^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(c)?o==="number"||o==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(c)?o==="string"||s instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(c)?Array.isArray(s)&&s.every(u=>t(u,{...a,type:c.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function i(s,a,o){for(const c in s){const u=s[c],f=a[c];if(u.type==="tuple"&&f.type==="tuple"&&"components"in u&&"components"in f)return i(u.components,f.components,o[c]);const d=[u.type,f.type];if((()=>d.includes("address")&&d.includes("bytes20")?!0:d.includes("address")&&d.includes("string")?e.validate(o[c],{strict:!1}):d.includes("address")&&d.includes("bytes")?e.validate(o[c],{strict:!1}):!1)())return d}}return fr}var _b;function dy(){if(_b)return he;_b=1,Object.defineProperty(he,"__esModule",{value:!0}),he.InvalidSelectorSizeError=he.NotFoundError=he.AmbiguityError=void 0,he.format=s,he.from=a,he.fromAbi=o,he.getSelector=c,he.getSignature=u,he.getSignatureHash=f;const e=zt(),r=om(),n=cp(),t=Kc(),i=Lp();function s(m){return e.formatAbiItem(m)}function a(m,b={}){const{prepare:y=!0}=b,E=(()=>Array.isArray(m)||typeof m=="string"?e.parseAbiItem(m):m)();return{...E,...y?{hash:f(E)}:{}}}function o(m,b,y){const{args:E=[],prepare:P=!0}=y??{},A=t.validate(b,{strict:!1}),h=m.filter(g=>A?g.type==="function"||g.type==="error"?c(g)===t.slice(b,0,4):g.type==="event"?f(g)===b:!1:"name"in g&&g.name===b);if(h.length===0)throw new l({name:b});if(h.length===1)return{...h[0],...P?{hash:f(h[0])}:{}};let T;for(const g of h){if(!("inputs"in g))continue;if(!E||E.length===0){if(!g.inputs||g.inputs.length===0)return{...g,...P?{hash:f(g)}:{}};continue}if(!g.inputs||g.inputs.length===0||g.inputs.length!==E.length)continue;if(E.every((j,w)=>{const C="inputs"in g&&g.inputs[w];return C?i.isArgOfType(j,C):!1})){if(T&&"inputs"in T&&T.inputs){const j=i.getAmbiguousTypes(g.inputs,T.inputs,E);if(j)throw new d({abiItem:g,type:j[0]},{abiItem:T,type:j[1]})}T=g}}const _=(()=>{if(T)return T;const[g,...v]=h;return{...g,overloads:v}})();if(!_)throw new l({name:b});return{..._,...P?{hash:f(_)}:{}}}function c(...m){const b=(()=>{if(Array.isArray(m[0])){const[y,E]=m;return o(y,E)}return m[0]})();return t.slice(f(b),0,4)}function u(...m){const b=(()=>{if(Array.isArray(m[0])){const[E,P]=m;return o(E,P)}return m[0]})(),y=(()=>typeof b=="string"?b:e.formatAbiItem(b))();return i.normalizeSignature(y)}function f(...m){const b=(()=>{if(Array.isArray(m[0])){const[y,E]=m;return o(y,E)}return m[0]})();return typeof b!="string"&&"hash"in b&&b.hash?b.hash:n.keccak256(t.fromString(u(b)))}class d extends r.BaseError{constructor(b,y){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${b.type}\` in \`${i.normalizeSignature(e.formatAbiItem(b.abiItem))}\`, and`,`\`${y.type}\` in \`${i.normalizeSignature(e.formatAbiItem(y.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}he.AmbiguityError=d;class l extends r.BaseError{constructor({name:b,data:y,type:E="item"}){const P=(()=>b?` with name "${b}"`:y?` with data "${y}"`:"")();super(`ABI ${E}${P} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}he.NotFoundError=l;class p extends r.BaseError{constructor({data:b}){super(`Selector size is invalid. Expected 4 bytes. Received ${t.size(b)} bytes ("${b}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}return he.InvalidSelectorSizeError=p,he}var vb;function Gp(){if(vb)return yt;vb=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.decode=i,yt.encode=s,yt.format=a,yt.from=o,yt.fromAbi=c;const e=zt(),r=dy(),n=am(),t=Kc();function i(...u){var m;const[f,d]=(()=>{if(Array.isArray(u[0])){const[b,y]=u;return[c(b),y]}return u})(),{bytecode:l}=d;if(((m=f.inputs)==null?void 0:m.length)===0)return;const p=d.data.replace(l,"0x");return n.decode(f.inputs,p)}function s(...u){var m;const[f,d]=(()=>{if(Array.isArray(u[0])){const[b,y]=u;return[c(b),y]}return u})(),{bytecode:l,args:p}=d;return t.concat(l,(m=f.inputs)!=null&&m.length&&(p!=null&&p.length)?n.encode(f.inputs,p):"0x")}function a(u){return e.formatAbiItem(u)}function o(u){return r.from(u)}function c(u){const f=u.find(d=>d.type==="constructor");if(!f)throw new r.NotFoundError({name:"constructor"});return f}return yt}var $e={},jb;function Vp(){if(jb)return $e;jb=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.decodeData=i,$e.decodeResult=s,$e.encodeData=a,$e.encodeResult=o,$e.format=c,$e.from=u,$e.fromAbi=f,$e.getSelector=d;const e=zt(),r=dy(),n=am(),t=Kc();function i(...l){var E;const[p,m]=(()=>{if(Array.isArray(l[0])){const[P,A,h]=l;return[f(P,A),h]}return l})(),{overloads:b}=p;if(t.size(m)<4)throw new r.InvalidSelectorSizeError({data:m});if(((E=p.inputs)==null?void 0:E.length)===0)return;const y=b?f([p,...b],m):p;if(!(t.size(m)<=4))return n.decode(y.inputs,t.slice(m,4))}function s(...l){const[p,m,b={}]=(()=>{if(Array.isArray(l[0])){const[E,P,A,h]=l;return[f(E,P),A,h]}return l})(),y=n.decode(p.outputs,m,b);if(!(y&&Object.keys(y).length===0))return y&&Object.keys(y).length===1?Array.isArray(y)?y[0]:Object.values(y)[0]:y}function a(...l){const[p,m=[]]=(()=>{if(Array.isArray(l[0])){const[T,_,g]=l;return[f(T,_,{args:g}),g]}const[A,h]=l;return[A,h]})(),{overloads:b}=p,y=b?f([p,...b],p.name,{args:m}):p,E=d(y),P=m.length>0?n.encode(y.inputs,m):void 0;return P?t.concat(E,P):E}function o(...l){const[p,m,b={}]=(()=>{if(Array.isArray(l[0])){const[P,A,h,T]=l;return[f(P,A),h,T]}return l})(),{as:y="Array"}=b,E=(()=>p.outputs.length===1?[m]:Array.isArray(m)?m:y==="Object"?Object.values(m):[m])();return n.encode(p.outputs,E)}function c(l){return e.formatAbiItem(l)}function u(l,p={}){return r.from(l,p)}function f(l,p,m){const b=r.fromAbi(l,p,m);if(b.type!=="function")throw new r.NotFoundError({name:p,type:"function"});return b}function d(l){return r.getSelector(l)}return $e}var $t={},Eb;function fy(){return Eb||(Eb=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.zeroAddress=$t.ethAddress=void 0,$t.ethAddress="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",$t.zeroAddress="0x0000000000000000000000000000000000000000"),$t}var Pb;function Wp(){if(Pb)return yi;Pb=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.simulateCalls=d;const e=Gp(),r=Vp(),n=ce(),t=fy(),i=gn(),s=Q(),a=Pe(),o=Uu(),c=Cm(),u=uy(),f="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function d(l,p){const{blockNumber:m,blockTag:b,calls:y,stateOverrides:E,traceAssetChanges:P,traceTransfers:A,validation:h}=p,T=p.account?(0,n.parseAccount)(p.account):void 0;if(P&&!T)throw new s.BaseError("`account` is required when `traceAssetChanges` is true");const _=T?e.encode(e.from("constructor(bytes, bytes)"),{bytecode:i.deploylessCallViaBytecodeBytecode,args:[f,r.encodeData(r.from("function getBalance(address)"),[T.address])]}):void 0,g=P?await Promise.all(p.calls.map(async L=>{if(!L.data&&!L.abi)return;const{accessList:ee}=await(0,c.createAccessList)(l,{account:T.address,...L,data:L.abi?(0,a.encodeFunctionData)(L):L.data});return ee.map(({address:ae,storageKeys:de})=>de.length>0?ae:null)})).then(L=>L.flat().filter(Boolean)):[],v=await(0,u.simulateBlocks)(l,{blockNumber:m,blockTag:b,blocks:[...P?[{calls:[{data:_}],stateOverrides:E},{calls:g.map((L,ee)=>({abi:[r.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[T.address],to:L,from:t.zeroAddress,nonce:ee})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[],{calls:[...y,{}].map(L=>({...L,from:T==null?void 0:T.address})),stateOverrides:E},...P?[{calls:[{data:_}]},{calls:g.map((L,ee)=>({abi:[r.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[T.address],to:L,from:t.zeroAddress,nonce:ee})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:g.map((L,ee)=>({to:L,abi:[r.from("function decimals() returns (uint256)")],functionName:"decimals",from:t.zeroAddress,nonce:ee})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:g.map((L,ee)=>({to:L,abi:[r.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t.zeroAddress,nonce:ee})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:g.map((L,ee)=>({to:L,abi:[r.from("function symbol() returns (string)")],functionName:"symbol",from:t.zeroAddress,nonce:ee})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[]],traceTransfers:A,validation:h}),j=P?v[2]:v[0],[w,C,,S,R,I,q,B]=P?v:[],{calls:O,...M}=j,k=O.slice(0,-1)??[],$=(w==null?void 0:w.calls)??[],z=(C==null?void 0:C.calls)??[],N=[...$,...z].map(L=>L.status==="success"?(0,o.hexToBigInt)(L.data):null),D=(S==null?void 0:S.calls)??[],U=(R==null?void 0:R.calls)??[],G=[...D,...U].map(L=>L.status==="success"?(0,o.hexToBigInt)(L.data):null),H=((I==null?void 0:I.calls)??[]).map(L=>L.status==="success"?L.result:null),Y=((B==null?void 0:B.calls)??[]).map(L=>L.status==="success"?L.result:null),J=((q==null?void 0:q.calls)??[]).map(L=>L.status==="success"?L.result:null),X=[];for(const[L,ee]of G.entries()){const ae=N[L];if(typeof ee!="bigint"||typeof ae!="bigint")continue;const de=H[L-1],ye=Y[L-1],fe=J[L-1],pe=(()=>L===0?{address:t.ethAddress,decimals:18,symbol:"ETH"}:{address:g[L-1],decimals:fe||de?Number(de??1):void 0,symbol:ye??void 0})();X.some(be=>be.token.address===pe.address)||X.push({token:pe,value:{pre:ae,post:ee,diff:ee-ae}})}return{assetChanges:X,block:M,results:k}}return yi}var lr={},pi={},Tb;function ly(){if(Tb)return pi;Tb=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.serializeSignature=t;const e=nn(),r=ue(),n=oe();function t({r:i,s,to:a="hex",v:o,yParity:c}){const u=(()=>{if(c===0||c===1)return c;if(o&&(o===27n||o===28n||o>=35n))return o%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),f=`0x${new e.secp256k1.Signature((0,r.hexToBigInt)(i),(0,r.hexToBigInt)(s)).toCompactHex()}${u===0?"1b":"1c"}`;return a==="hex"?f:(0,n.hexToBytes)(f)}return pi}var wb;function fc(){if(wb)return lr;wb=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.verifyHash=h,lr.verifyErc8010=T,lr.verifyErc1271=g;const e=up(),r=Ds(),n=Tt(),t=gn(),i=ht(),s=_n(),a=Pe(),o=Be(),c=Ve(),u=km(),f=le(),d=_e(),l=ue(),p=V(),m=te(),b=jt(),y=ly(),E=vn(),P=Bm(),A=We();async function h(j,w){var O,M,k,$;const{address:C,chain:S=j.chain,hash:R,erc6492VerifierAddress:I=w.universalSignatureVerifierAddress??((M=(O=S==null?void 0:S.contracts)==null?void 0:O.erc6492Verifier)==null?void 0:M.address),multicallAddress:q=w.multicallAddress??(($=(k=S==null?void 0:S.contracts)==null?void 0:k.multicall3)==null?void 0:$.address)}=w;if(S!=null&&S.verifyHash)return await S.verifyHash(j,w);const B=(()=>{const z=w.signature;return(0,d.isHex)(z)?z:typeof z=="object"&&"r"in z&&"s"in z?(0,y.serializeSignature)(z):(0,p.bytesToHex)(z)})();try{return r.SignatureErc8010.validate(B)?await T(j,{...w,multicallAddress:q,signature:B}):await _(j,{...w,verifierAddress:I,signature:B})}catch(z){try{if((0,c.isAddressEqual)((0,o.getAddress)(C),await(0,b.recoverAddress)({hash:R,signature:B})))return!0}catch{}if(z instanceof v)return!1;throw z}}async function T(j,w){var G;const{address:C,blockNumber:S,blockTag:R,hash:I,multicallAddress:q}=w,{authorization:B,data:O,signature:M,to:k}=r.SignatureErc8010.unwrap(w.signature);if(await(0,P.getCode)(j,{address:C,blockNumber:S,blockTag:R})===(0,f.concatHex)(["0xef0100",B.address]))return await g(j,{address:C,blockNumber:S,blockTag:R,hash:I,signature:M});const z={address:B.address,chainId:Number(B.chainId),nonce:Number(B.nonce),r:(0,p.numberToHex)(B.r,{size:32}),s:(0,p.numberToHex)(B.s,{size:32}),yParity:B.yParity};if(!await(0,u.verifyAuthorization)({address:C,authorization:z}))throw new v;const D=await(0,m.getAction)(j,A.readContract,"readContract")({...q?{address:q}:{code:t.multicall3Bytecode},authorizationList:[z],abi:n.multicall3Abi,blockNumber:S,blockTag:"pending",functionName:"aggregate3",args:[[...O?[{allowFailure:!0,target:k??C,callData:O}]:[],{allowFailure:!0,target:C,callData:(0,a.encodeFunctionData)({abi:n.erc1271Abi,functionName:"isValidSignature",args:[I,M]})}]]}),U=(G=D[D.length-1])==null?void 0:G.returnData;if(U!=null&&U.startsWith("0x1626ba7e"))return!0;throw new v}async function _(j,w){const{address:C,factory:S,factoryData:R,hash:I,signature:q,verifierAddress:B,...O}=w,M=await(async()=>!S&&!R||e.SignatureErc6492.validate(q)?q:e.SignatureErc6492.wrap({data:R,signature:q,to:S}))(),k=B?{to:B,data:(0,a.encodeFunctionData)({abi:n.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[C,I,M]}),...O}:{data:(0,s.encodeDeployData)({abi:n.erc6492SignatureValidatorAbi,args:[C,I,M],bytecode:t.erc6492SignatureValidatorByteCode}),...O},{data:$}=await(0,m.getAction)(j,E.call,"call")(k).catch(z=>{throw z instanceof i.CallExecutionError?new v:z});if((0,l.hexToBool)($??"0x0"))return!0;throw new v}async function g(j,w){const{address:C,blockNumber:S,blockTag:R,hash:I,signature:q}=w;if((await(0,m.getAction)(j,A.readContract,"readContract")({address:C,abi:n.erc1271Abi,args:[I,q],blockNumber:S,blockTag:R,functionName:"isValidSignature"}).catch(O=>{throw O instanceof i.ContractFunctionExecutionError?new v:O})).startsWith("0x1626ba7e"))return!0;throw new v}class v extends Error{}return lr}var gi={},Ab;function Kp(){if(Ab)return gi;Ab=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.verifyMessage=t;const e=te(),r=Tn(),n=fc();async function t(i,{address:s,message:a,factory:o,factoryData:c,signature:u,...f}){const d=(0,r.hashMessage)(a);return(0,e.getAction)(i,n.verifyHash,"verifyHash")({address:s,factory:o,factoryData:c,hash:d,signature:u,...f})}return gi}var hi={},Rb;function Jp(){if(Rb)return hi;Rb=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.verifyTypedData=t;const e=te(),r=wn(),n=fc();async function t(i,s){const{address:a,factory:o,factoryData:c,signature:u,message:f,primaryType:d,types:l,domain:p,...m}=s,b=(0,r.hashTypedData)({message:f,primaryType:d,types:l,domain:p});return(0,e.getAction)(i,n.verifyHash,"verifyHash")({address:a,factory:o,factoryData:c,hash:b,signature:u,...m})}return hi}var _i={},vi={},Ib;function by(){if(Ib)return vi;Ib=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.watchBlockNumber=a;const e=ue(),r=te(),n=Wt(),t=gr(),i=me(),s=jn();function a(o,{emitOnBegin:c=!1,emitMissed:u=!1,onBlockNumber:f,onError:d,poll:l,pollingInterval:p=o.pollingInterval}){const m=(()=>typeof l<"u"?l:!(o.transport.type==="webSocket"||o.transport.type==="ipc"||o.transport.type==="fallback"&&(o.transport.transports[0].config.type==="webSocket"||o.transport.transports[0].config.type==="ipc")))();let b;return m?(()=>{const P=(0,i.stringify)(["watchBlockNumber",o.uid,c,u,p]);return(0,n.observe)(P,{onBlockNumber:f,onError:d},A=>(0,t.poll)(async()=>{var h;try{const T=await(0,r.getAction)(o,s.getBlockNumber,"getBlockNumber")({cacheTime:0});if(b!==void 0){if(T===b)return;if(T-b>1&&u)for(let _=b+1n;_<T;_++)A.onBlockNumber(_,b),b=_}(b===void 0||T>b)&&(A.onBlockNumber(T,b),b=T)}catch(T){(h=A.onError)==null||h.call(A,T)}},{emitOnBegin:c,interval:p}))})():(()=>{const P=(0,i.stringify)(["watchBlockNumber",o.uid,c,u]);return(0,n.observe)(P,{onBlockNumber:f,onError:d},A=>{let h=!0,T=()=>h=!1;return(async()=>{try{const _=(()=>{if(o.transport.type==="fallback"){const v=o.transport.transports.find(j=>j.config.type==="webSocket"||j.config.type==="ipc");return v?v.value:o.transport}return o.transport})(),{unsubscribe:g}=await _.subscribe({params:["newHeads"],onData(v){var w;if(!h)return;const j=(0,e.hexToBigInt)((w=v.result)==null?void 0:w.number);A.onBlockNumber(j,b),b=j},onError(v){var j;(j=A.onError)==null||j.call(A,v)}});T=g,h||T()}catch(_){d==null||d(_)}})(),()=>T()})})()}return vi}var Cb;function my(){if(Cb)return _i;Cb=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.waitForTransactionReceipt=d;const e=ou(),r=Te(),n=te(),t=Wt(),i=mu(),s=ac(),a=me(),o=Vt(),c=Lu(),u=cy(),f=by();async function d(l,p){const{checkReplacement:m=!0,confirmations:b=1,hash:y,onReplaced:E,retryCount:P=6,retryDelay:A=({count:O})=>~~(1<<O)*200,timeout:h=18e4}=p,T=(0,a.stringify)(["waitForTransactionReceipt",l.uid,y]),_=(()=>{var O;return p.pollingInterval?p.pollingInterval:(O=l.chain)!=null&&O.experimental_preconfirmationTime?l.chain.experimental_preconfirmationTime:l.pollingInterval})();let g,v,j,w=!1,C,S;const{promise:R,resolve:I,reject:q}=(0,i.withResolvers)(),B=h?setTimeout(()=>{S==null||S(),C==null||C(),q(new r.WaitForTransactionReceiptTimeoutError({hash:y}))},h):void 0;return C=(0,t.observe)(T,{onReplaced:E,resolve:I,reject:q},async O=>{if(j=await(0,n.getAction)(l,u.getTransactionReceipt,"getTransactionReceipt")({hash:y}).catch(()=>{}),j&&b<=1){clearTimeout(B),O.resolve(j),C==null||C();return}S=(0,n.getAction)(l,f.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:_,async onBlockNumber(M){const k=z=>{clearTimeout(B),S==null||S(),z(),C==null||C()};let $=M;if(!w)try{if(j){if(b>1&&(!j.blockNumber||$-j.blockNumber+1n<b))return;k(()=>O.resolve(j));return}if(m&&!g&&(w=!0,await(0,s.withRetry)(async()=>{g=await(0,n.getAction)(l,c.getTransaction,"getTransaction")({hash:y}),g.blockNumber&&($=g.blockNumber)},{delay:A,retryCount:P}),w=!1),j=await(0,n.getAction)(l,u.getTransactionReceipt,"getTransactionReceipt")({hash:y}),b>1&&(!j.blockNumber||$-j.blockNumber+1n<b))return;k(()=>O.resolve(j))}catch(z){if(z instanceof r.TransactionNotFoundError||z instanceof r.TransactionReceiptNotFoundError){if(!g){w=!1;return}try{v=g,w=!0;const N=await(0,s.withRetry)(()=>(0,n.getAction)(l,o.getBlock,"getBlock")({blockNumber:$,includeTransactions:!0}),{delay:A,retryCount:P,shouldRetry:({error:G})=>G instanceof e.BlockNotFoundError});w=!1;const D=N.transactions.find(({from:G,nonce:H})=>G===v.from&&H===v.nonce);if(!D||(j=await(0,n.getAction)(l,u.getTransactionReceipt,"getTransactionReceipt")({hash:D.hash}),b>1&&(!j.blockNumber||$-j.blockNumber+1n<b)))return;let U="replaced";D.to===v.to&&D.value===v.value&&D.input===v.input?U="repriced":D.from===D.to&&D.value===0n&&(U="cancelled"),k(()=>{var G;(G=O.onReplaced)==null||G.call(O,{reason:U,replacedTransaction:v,transaction:D,transactionReceipt:j}),O.resolve(j)})}catch(N){k(()=>O.reject(N))}}else k(()=>O.reject(z))}}})}),R}return _i}var ji={},Sb;function Zp(){if(Sb)return ji;Sb=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.watchBlocks=s;const e=te(),r=Wt(),n=gr(),t=me(),i=Vt();function s(a,{blockTag:o=a.experimental_blockTag??"latest",emitMissed:c=!1,emitOnBegin:u=!1,onBlock:f,onError:d,includeTransactions:l,poll:p,pollingInterval:m=a.pollingInterval}){const b=(()=>typeof p<"u"?p:!(a.transport.type==="webSocket"||a.transport.type==="ipc"||a.transport.type==="fallback"&&(a.transport.transports[0].config.type==="webSocket"||a.transport.transports[0].config.type==="ipc")))(),y=l??!1;let E;return b?(()=>{const h=(0,t.stringify)(["watchBlocks",a.uid,o,c,u,y,m]);return(0,r.observe)(h,{onBlock:f,onError:d},T=>(0,n.poll)(async()=>{var _;try{const g=await(0,e.getAction)(a,i.getBlock,"getBlock")({blockTag:o,includeTransactions:y});if(g.number!==null&&(E==null?void 0:E.number)!=null){if(g.number===E.number)return;if(g.number-E.number>1&&c)for(let v=(E==null?void 0:E.number)+1n;v<g.number;v++){const j=await(0,e.getAction)(a,i.getBlock,"getBlock")({blockNumber:v,includeTransactions:y});T.onBlock(j,E),E=j}}((E==null?void 0:E.number)==null||o==="pending"&&(g==null?void 0:g.number)==null||g.number!==null&&g.number>E.number)&&(T.onBlock(g,E),E=g)}catch(g){(_=T.onError)==null||_.call(T,g)}},{emitOnBegin:u,interval:m}))})():(()=>{let h=!0,T=!0,_=()=>h=!1;return(async()=>{try{u&&(0,e.getAction)(a,i.getBlock,"getBlock")({blockTag:o,includeTransactions:y}).then(j=>{h&&T&&(f(j,void 0),T=!1)}).catch(d);const g=(()=>{if(a.transport.type==="fallback"){const j=a.transport.transports.find(w=>w.config.type==="webSocket"||w.config.type==="ipc");return j?j.value:a.transport}return a.transport})(),{unsubscribe:v}=await g.subscribe({params:["newHeads"],async onData(j){var C;if(!h)return;const w=await(0,e.getAction)(a,i.getBlock,"getBlock")({blockNumber:(C=j.result)==null?void 0:C.number,includeTransactions:y}).catch(()=>{});h&&(f(w,E),T=!1,E=w)},onError(j){d==null||d(j)}});_=v,h||_()}catch(g){d==null||d(g)}})(),()=>_()})()}return ji}var Ei={},Ob;function Yp(){if(Ob)return Ei;Ob=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.watchEvent=m;const e=se(),r=_t(),n=yn(),t=Lt(),i=ct(),s=te(),a=Wt(),o=gr(),c=me(),u=Sm(),f=jn(),d=rc(),l=fu(),p=nc();function m(b,{address:y,args:E,batch:P=!0,event:A,events:h,fromBlock:T,onError:_,onLogs:g,poll:v,pollingInterval:j=b.pollingInterval,strict:w}){const C=(()=>typeof v<"u"?v:typeof T=="bigint"?!0:!(b.transport.type==="webSocket"||b.transport.type==="ipc"||b.transport.type==="fallback"&&(b.transport.transports[0].config.type==="webSocket"||b.transport.transports[0].config.type==="ipc")))(),S=w??!1;return C?(()=>{const q=(0,c.stringify)(["watchEvent",y,E,P,b.uid,A,j,T]);return(0,a.observe)(q,{onLogs:g,onError:_},B=>{let O;T!==void 0&&(O=T-1n);let M,k=!1;const $=(0,o.poll)(async()=>{var z;if(!k){try{M=await(0,s.getAction)(b,u.createEventFilter,"createEventFilter")({address:y,args:E,event:A,events:h,strict:S,fromBlock:T})}catch{}k=!0;return}try{let N;if(M)N=await(0,s.getAction)(b,d.getFilterChanges,"getFilterChanges")({filter:M});else{const D=await(0,s.getAction)(b,f.getBlockNumber,"getBlockNumber")({});O&&O!==D?N=await(0,s.getAction)(b,l.getLogs,"getLogs")({address:y,args:E,event:A,events:h,fromBlock:O+1n,toBlock:D}):N=[],O=D}if(N.length===0)return;if(P)B.onLogs(N);else for(const D of N)B.onLogs([D])}catch(N){M&&N instanceof r.InvalidInputRpcError&&(k=!1),(z=B.onError)==null||z.call(B,N)}},{emitOnBegin:!0,interval:j});return async()=>{M&&await(0,s.getAction)(b,p.uninstallFilter,"uninstallFilter")({filter:M}),$()}})})():(()=>{let q=!0,B=()=>q=!1;return(async()=>{try{const O=(()=>{if(b.transport.type==="fallback"){const z=b.transport.transports.find(N=>N.config.type==="webSocket"||N.config.type==="ipc");return z?z.value:b.transport}return b.transport})(),M=h??(A?[A]:void 0);let k=[];M&&(k=[M.flatMap(N=>(0,t.encodeEventTopics)({abi:[N],eventName:N.name,args:E}))],A&&(k=k[0]));const{unsubscribe:$}=await O.subscribe({params:["logs",{address:y,topics:k}],onData(z){var D;if(!q)return;const N=z.result;try{const{eventName:U,args:G}=(0,n.decodeEventLog)({abi:M??[],data:N.data,topics:N.topics,strict:S}),H=(0,i.formatLog)(N,{args:G,eventName:U});g([H])}catch(U){let G,H;if(U instanceof e.DecodeLogDataMismatch||U instanceof e.DecodeLogTopicsMismatch){if(w)return;G=U.abiItem.name,H=(D=U.abiItem.inputs)==null?void 0:D.some(J=>!("name"in J&&J.name))}const Y=(0,i.formatLog)(N,{args:H?[]:{},eventName:G});g([Y])}},onError(z){_==null||_(z)}});B=$,q||B()}catch(O){_==null||_(O)}})(),()=>B()})()}return Ei}var Pi={},Bb;function Xp(){if(Bb)return Pi;Bb=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.watchPendingTransactions=o;const e=te(),r=Wt(),n=gr(),t=me(),i=Om(),s=rc(),a=nc();function o(c,{batch:u=!0,onError:f,onTransactions:d,poll:l,pollingInterval:p=c.pollingInterval}){return(typeof l<"u"?l:c.transport.type!=="webSocket"&&c.transport.type!=="ipc")?(()=>{const E=(0,t.stringify)(["watchPendingTransactions",c.uid,u,p]);return(0,r.observe)(E,{onTransactions:d,onError:f},P=>{let A;const h=(0,n.poll)(async()=>{var T;try{if(!A)try{A=await(0,e.getAction)(c,i.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(g){throw h(),g}const _=await(0,e.getAction)(c,s.getFilterChanges,"getFilterChanges")({filter:A});if(_.length===0)return;if(u)P.onTransactions(_);else for(const g of _)P.onTransactions([g])}catch(_){(T=P.onError)==null||T.call(P,_)}},{emitOnBegin:!0,interval:p});return async()=>{A&&await(0,e.getAction)(c,a.uninstallFilter,"uninstallFilter")({filter:A}),h()}})})():(()=>{let E=!0,P=()=>E=!1;return(async()=>{try{const{unsubscribe:A}=await c.transport.subscribe({params:["newPendingTransactions"],onData(h){if(!E)return;const T=h.result;d([T])},onError(h){f==null||f(h)}});P=A,E||P()}catch(A){f==null||f(A)}})(),()=>P()})()}return Pi}var Ti={},wi={},qb;function Qp(){if(qb)return wi;qb=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.parseSiweMessage=e;function e(t){var m,b,y;const{scheme:i,statement:s,...a}=((m=t.match(r))==null?void 0:m.groups)??{},{chainId:o,expirationTime:c,issuedAt:u,notBefore:f,requestId:d,...l}=((b=t.match(n))==null?void 0:b.groups)??{},p=(y=t.split("Resources:")[1])==null?void 0:y.split(`
43
- - `).slice(1);return{...a,...l,...o?{chainId:Number(o)}:{},...c?{expirationTime:new Date(c)}:{},...u?{issuedAt:new Date(u)}:{},...f?{notBefore:new Date(f)}:{},...d?{requestId:d}:{},...p?{resources:p}:{},...i?{scheme:i}:{},...s?{statement:s}:{}}}const r=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,n=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;return wi}var Ai={},Fb;function eg(){if(Fb)return Ai;Fb=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.validateSiweMessage=n;const e=Ee(),r=Ve();function n(t){const{address:i,domain:s,message:a,nonce:o,scheme:c,time:u=new Date}=t;if(s&&a.domain!==s||o&&a.nonce!==o||c&&a.scheme!==c||a.expirationTime&&u>=a.expirationTime||a.notBefore&&u<a.notBefore)return!1;try{if(!a.address||!(0,e.isAddress)(a.address,{strict:!1})||i&&!(0,r.isAddressEqual)(a.address,i))return!1}catch{return!1}return!0}return Ai}var Mb;function tg(){if(Mb)return Ti;Mb=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.verifySiweMessage=i;const e=Tn(),r=Qp(),n=eg(),t=fc();async function i(s,a){const{address:o,domain:c,message:u,nonce:f,scheme:d,signature:l,time:p=new Date,...m}=a,b=(0,r.parseSiweMessage)(u);if(!b.address||!(0,n.validateSiweMessage)({address:o,domain:c,message:b,nonce:f,scheme:d,time:p}))return!1;const E=(0,e.hashMessage)(u);return(0,t.verifyHash)(s,{address:b.address,hash:E,signature:l,...m})}return Ti}var Ri={},kb;function Gu(){if(kb)return Ri;kb=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.sendRawTransactionSync=t;const e=Te(),r=Pn(),n=Uu();async function t(i,{serializedTransaction:s,throwOnReceiptRevert:a,timeout:o}){var d,l,p;const c=await i.request({method:"eth_sendRawTransactionSync",params:o?[s,(0,n.numberToHex)(o)]:[s]},{retryCount:0}),f=(((p=(l=(d=i.chain)==null?void 0:d.formatters)==null?void 0:l.transactionReceipt)==null?void 0:p.format)||r.formatTransactionReceipt)(c);if(f.status==="reverted"&&a)throw new e.TransactionReceiptRevertedError({receipt:f});return f}return Ri}var Nb;function yy(){if(Nb)return sa;Nb=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.publicActions=qe;const e=_p(),r=Ep(),n=Pp(),t=Tp(),i=Im(),s=vn(),a=Cm(),o=wp(),c=Zc(),u=Sm(),f=Om(),d=_m(),l=ym(),p=du(),m=mm(),b=uu(),y=Ap(),E=Rp(),P=Vt(),A=jn(),h=Ip(),T=Pt(),_=Bm(),g=lu(),v=Sp(),j=Bp(),w=rc(),C=qp(),S=au(),R=fu(),I=$p(),q=zp(),B=Lu(),O=Dp(),M=Zs(),k=cy(),$=Up(),z=We(),N=uy(),D=Wp(),U=vm(),G=nc(),H=fc(),Y=Kp(),J=Jp(),X=my(),L=by(),ee=Zp(),ae=Em(),de=Yp(),ye=Xp(),fe=tg(),pe=mn(),be=ju(),ke=Gu();function qe(W){return{call:x=>(0,s.call)(W,x),createAccessList:x=>(0,a.createAccessList)(W,x),createBlockFilter:()=>(0,o.createBlockFilter)(W),createContractEventFilter:x=>(0,c.createContractEventFilter)(W,x),createEventFilter:x=>(0,u.createEventFilter)(W,x),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(W),estimateContractGas:x=>(0,d.estimateContractGas)(W,x),estimateGas:x=>(0,p.estimateGas)(W,x),getBalance:x=>(0,y.getBalance)(W,x),getBlobBaseFee:()=>(0,E.getBlobBaseFee)(W),getBlock:x=>(0,P.getBlock)(W,x),getBlockNumber:x=>(0,A.getBlockNumber)(W,x),getBlockTransactionCount:x=>(0,h.getBlockTransactionCount)(W,x),getBytecode:x=>(0,_.getCode)(W,x),getChainId:()=>(0,T.getChainId)(W),getCode:x=>(0,_.getCode)(W,x),getContractEvents:x=>(0,g.getContractEvents)(W,x),getEip712Domain:x=>(0,v.getEip712Domain)(W,x),getEnsAddress:x=>(0,e.getEnsAddress)(W,x),getEnsAvatar:x=>(0,r.getEnsAvatar)(W,x),getEnsName:x=>(0,n.getEnsName)(W,x),getEnsResolver:x=>(0,t.getEnsResolver)(W,x),getEnsText:x=>(0,i.getEnsText)(W,x),getFeeHistory:x=>(0,j.getFeeHistory)(W,x),estimateFeesPerGas:x=>(0,l.estimateFeesPerGas)(W,x),getFilterChanges:x=>(0,w.getFilterChanges)(W,x),getFilterLogs:x=>(0,C.getFilterLogs)(W,x),getGasPrice:()=>(0,S.getGasPrice)(W),getLogs:x=>(0,R.getLogs)(W,x),getProof:x=>(0,I.getProof)(W,x),estimateMaxPriorityFeePerGas:x=>(0,m.estimateMaxPriorityFeePerGas)(W,x),fillTransaction:x=>(0,b.fillTransaction)(W,x),getStorageAt:x=>(0,q.getStorageAt)(W,x),getTransaction:x=>(0,B.getTransaction)(W,x),getTransactionConfirmations:x=>(0,O.getTransactionConfirmations)(W,x),getTransactionCount:x=>(0,M.getTransactionCount)(W,x),getTransactionReceipt:x=>(0,k.getTransactionReceipt)(W,x),multicall:x=>(0,$.multicall)(W,x),prepareTransactionRequest:x=>(0,pe.prepareTransactionRequest)(W,x),readContract:x=>(0,z.readContract)(W,x),sendRawTransaction:x=>(0,be.sendRawTransaction)(W,x),sendRawTransactionSync:x=>(0,ke.sendRawTransactionSync)(W,x),simulate:x=>(0,N.simulateBlocks)(W,x),simulateBlocks:x=>(0,N.simulateBlocks)(W,x),simulateCalls:x=>(0,D.simulateCalls)(W,x),simulateContract:x=>(0,U.simulateContract)(W,x),verifyHash:x=>(0,H.verifyHash)(W,x),verifyMessage:x=>(0,Y.verifyMessage)(W,x),verifySiweMessage:x=>(0,fe.verifySiweMessage)(W,x),verifyTypedData:x=>(0,J.verifyTypedData)(W,x),uninstallFilter:x=>(0,G.uninstallFilter)(W,x),waitForTransactionReceipt:x=>(0,X.waitForTransactionReceipt)(W,x),watchBlocks:x=>(0,ee.watchBlocks)(W,x),watchBlockNumber:x=>(0,L.watchBlockNumber)(W,x),watchContractEvent:x=>(0,ae.watchContractEvent)(W,x),watchEvent:x=>(0,de.watchEvent)(W,x),watchPendingTransactions:x=>(0,ye.watchPendingTransactions)(W,x)}}return sa}var Hb;function rg(){if(Hb)return ia;Hb=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.createPublicClient=n;const e=ic(),r=yy();function n(t){const{key:i="public",name:s="Public Client"}=t;return(0,e.createClient)({...t,key:i,name:s,type:"publicClient"}).extend(r.publicActions)}return ia}var Ii={},Ci={},Si={},xb;function ng(){if(xb)return Si;xb=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.dropTransaction=e;async function e(r,{hash:n}){await r.request({method:`${r.mode}_dropTransaction`,params:[n]})}return Si}var Oi={},$b;function og(){if($b)return Oi;$b=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.dumpState=e;async function e(r){return r.request({method:`${r.mode}_dumpState`})}return Oi}var Bi={},zb;function ag(){if(zb)return Bi;zb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.getAutomine=e;async function e(r){return r.mode==="ganache"?await r.request({method:"eth_mining"}):await r.request({method:`${r.mode}_getAutomine`})}return Bi}var qi={},Db;function ig(){if(Db)return qi;Db=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.getTxpoolContent=e;async function e(r){return await r.request({method:"txpool_content"})}return qi}var Fi={},Ub;function sg(){if(Ub)return Fi;Ub=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.getTxpoolStatus=r;const e=ue();async function r(n){const{pending:t,queued:i}=await n.request({method:"txpool_status"});return{pending:(0,e.hexToNumber)(t),queued:(0,e.hexToNumber)(i)}}return Fi}var Mi={},Lb;function cg(){if(Lb)return Mi;Lb=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.impersonateAccount=e;async function e(r,{address:n}){await r.request({method:`${r.mode}_impersonateAccount`,params:[n]})}return Mi}var ki={},Gb;function ug(){if(Gb)return ki;Gb=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.increaseTime=r;const e=V();async function r(n,{seconds:t}){return await n.request({method:"evm_increaseTime",params:[(0,e.numberToHex)(t)]})}return ki}var Ni={},Vb;function dg(){if(Vb)return Ni;Vb=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.inspectTxpool=e;async function e(r){return await r.request({method:"txpool_inspect"})}return Ni}var Hi={},Wb;function fg(){if(Wb)return Hi;Wb=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.loadState=e;async function e(r,{state:n}){await r.request({method:`${r.mode}_loadState`,params:[n]})}return Hi}var xi={},Kb;function lg(){if(Kb)return xi;Kb=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.mine=r;const e=V();async function r(n,{blocks:t,interval:i}){n.mode==="ganache"?await n.request({method:"evm_mine",params:[{blocks:(0,e.numberToHex)(t)}]}):await n.request({method:`${n.mode}_mine`,params:[(0,e.numberToHex)(t),(0,e.numberToHex)(i||0)]})}return xi}var $i={},Jb;function bg(){if(Jb)return $i;Jb=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.removeBlockTimestampInterval=e;async function e(r){await r.request({method:`${r.mode}_removeBlockTimestampInterval`})}return $i}var zi={},Zb;function mg(){if(Zb)return zi;Zb=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.reset=e;async function e(r,{blockNumber:n,jsonRpcUrl:t}={}){await r.request({method:`${r.mode}_reset`,params:[{forking:{blockNumber:Number(n),jsonRpcUrl:t}}]})}return zi}var Di={},Yb;function yg(){if(Yb)return Di;Yb=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.revert=e;async function e(r,{id:n}){await r.request({method:"evm_revert",params:[n]})}return Di}var Ui={},Xb;function pg(){if(Xb)return Ui;Xb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.sendUnsignedTransaction=n;const e=Et(),r=Le();async function n(t,i){var h,T,_;const{accessList:s,data:a,from:o,gas:c,gasPrice:u,maxFeePerGas:f,maxPriorityFeePerGas:d,nonce:l,to:p,value:m,...b}=i,y=(_=(T=(h=t.chain)==null?void 0:h.formatters)==null?void 0:T.transactionRequest)==null?void 0:_.format,P=(y||r.formatTransactionRequest)({...(0,e.extract)(b,{format:y}),accessList:s,data:a,from:o,gas:c,gasPrice:u,maxFeePerGas:f,maxPriorityFeePerGas:d,nonce:l,to:p,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[P]})}return Ui}var Li={},Qb;function gg(){if(Qb)return Li;Qb=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.setAutomine=e;async function e(r,n){r.mode==="ganache"?n?await r.request({method:"miner_start"}):await r.request({method:"miner_stop"}):await r.request({method:"evm_setAutomine",params:[n]})}return Li}var Gi={},e1;function hg(){if(e1)return Gi;e1=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.setBalance=r;const e=V();async function r(n,{address:t,value:i}){n.mode==="ganache"?await n.request({method:"evm_setAccountBalance",params:[t,(0,e.numberToHex)(i)]}):await n.request({method:`${n.mode}_setBalance`,params:[t,(0,e.numberToHex)(i)]})}return Gi}var Vi={},t1;function _g(){if(t1)return Vi;t1=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.setBlockGasLimit=r;const e=V();async function r(n,{gasLimit:t}){await n.request({method:"evm_setBlockGasLimit",params:[(0,e.numberToHex)(t)]})}return Vi}var Wi={},r1;function vg(){if(r1)return Wi;r1=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.setBlockTimestampInterval=e;async function e(r,{interval:n}){const t=(()=>r.mode==="hardhat"?n*1e3:n)();await r.request({method:`${r.mode}_setBlockTimestampInterval`,params:[t]})}return Wi}var Ki={},n1;function jg(){if(n1)return Ki;n1=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.setCode=e;async function e(r,{address:n,bytecode:t}){r.mode==="ganache"?await r.request({method:"evm_setAccountCode",params:[n,t]}):await r.request({method:`${r.mode}_setCode`,params:[n,t]})}return Ki}var Ji={},o1;function Eg(){if(o1)return Ji;o1=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.setCoinbase=e;async function e(r,{address:n}){await r.request({method:`${r.mode}_setCoinbase`,params:[n]})}return Ji}var Zi={},a1;function Pg(){if(a1)return Zi;a1=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.setIntervalMining=e;async function e(r,{interval:n}){const t=(()=>r.mode==="hardhat"?n*1e3:n)();await r.request({method:"evm_setIntervalMining",params:[t]})}return Zi}var Yi={},i1;function Tg(){if(i1)return Yi;i1=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.setLoggingEnabled=e;async function e(r,n){await r.request({method:`${r.mode}_setLoggingEnabled`,params:[n]})}return Yi}var Xi={},s1;function wg(){if(s1)return Xi;s1=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.setMinGasPrice=r;const e=V();async function r(n,{gasPrice:t}){await n.request({method:`${n.mode}_setMinGasPrice`,params:[(0,e.numberToHex)(t)]})}return Xi}var Qi={},c1;function Ag(){if(c1)return Qi;c1=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.setNextBlockBaseFeePerGas=r;const e=V();async function r(n,{baseFeePerGas:t}){await n.request({method:`${n.mode}_setNextBlockBaseFeePerGas`,params:[(0,e.numberToHex)(t)]})}return Qi}var es={},u1;function Rg(){if(u1)return es;u1=1,Object.defineProperty(es,"__esModule",{value:!0}),es.setNextBlockTimestamp=r;const e=V();async function r(n,{timestamp:t}){await n.request({method:"evm_setNextBlockTimestamp",params:[(0,e.numberToHex)(t)]})}return es}var ts={},d1;function Ig(){if(d1)return ts;d1=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.setNonce=r;const e=V();async function r(n,{address:t,nonce:i}){await n.request({method:`${n.mode}_setNonce`,params:[t,(0,e.numberToHex)(i)]})}return ts}var rs={},f1;function Cg(){if(f1)return rs;f1=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.setRpcUrl=e;async function e(r,n){await r.request({method:`${r.mode}_setRpcUrl`,params:[n]})}return rs}var ns={},l1;function Sg(){if(l1)return ns;l1=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.setStorageAt=r;const e=V();async function r(n,{address:t,index:i,value:s}){await n.request({method:`${n.mode}_setStorageAt`,params:[t,typeof i=="number"?(0,e.numberToHex)(i):i,s]})}return ns}var os={},b1;function Og(){if(b1)return os;b1=1,Object.defineProperty(os,"__esModule",{value:!0}),os.snapshot=e;async function e(r){return await r.request({method:"evm_snapshot"})}return os}var as={},m1;function Bg(){if(m1)return as;m1=1,Object.defineProperty(as,"__esModule",{value:!0}),as.stopImpersonatingAccount=e;async function e(r,{address:n}){await r.request({method:`${r.mode}_stopImpersonatingAccount`,params:[n]})}return as}var y1;function py(){if(y1)return Ci;y1=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.testActions=I;const e=ng(),r=og(),n=ag(),t=ig(),i=sg(),s=cg(),a=ug(),o=dg(),c=fg(),u=lg(),f=bg(),d=mg(),l=yg(),p=pg(),m=gg(),b=hg(),y=_g(),E=vg(),P=jg(),A=Eg(),h=Pg(),T=Tg(),_=wg(),g=Ag(),v=Rg(),j=Ig(),w=Cg(),C=Sg(),S=Og(),R=Bg();function I({mode:q}){return B=>{const O=B.extend(()=>({mode:q}));return{dropTransaction:M=>(0,e.dropTransaction)(O,M),dumpState:()=>(0,r.dumpState)(O),getAutomine:()=>(0,n.getAutomine)(O),getTxpoolContent:()=>(0,t.getTxpoolContent)(O),getTxpoolStatus:()=>(0,i.getTxpoolStatus)(O),impersonateAccount:M=>(0,s.impersonateAccount)(O,M),increaseTime:M=>(0,a.increaseTime)(O,M),inspectTxpool:()=>(0,o.inspectTxpool)(O),loadState:M=>(0,c.loadState)(O,M),mine:M=>(0,u.mine)(O,M),removeBlockTimestampInterval:()=>(0,f.removeBlockTimestampInterval)(O),reset:M=>(0,d.reset)(O,M),revert:M=>(0,l.revert)(O,M),sendUnsignedTransaction:M=>(0,p.sendUnsignedTransaction)(O,M),setAutomine:M=>(0,m.setAutomine)(O,M),setBalance:M=>(0,b.setBalance)(O,M),setBlockGasLimit:M=>(0,y.setBlockGasLimit)(O,M),setBlockTimestampInterval:M=>(0,E.setBlockTimestampInterval)(O,M),setCode:M=>(0,P.setCode)(O,M),setCoinbase:M=>(0,A.setCoinbase)(O,M),setIntervalMining:M=>(0,h.setIntervalMining)(O,M),setLoggingEnabled:M=>(0,T.setLoggingEnabled)(O,M),setMinGasPrice:M=>(0,_.setMinGasPrice)(O,M),setNextBlockBaseFeePerGas:M=>(0,g.setNextBlockBaseFeePerGas)(O,M),setNextBlockTimestamp:M=>(0,v.setNextBlockTimestamp)(O,M),setNonce:M=>(0,j.setNonce)(O,M),setRpcUrl:M=>(0,w.setRpcUrl)(O,M),setStorageAt:M=>(0,C.setStorageAt)(O,M),snapshot:()=>(0,S.snapshot)(O),stopImpersonatingAccount:M=>(0,R.stopImpersonatingAccount)(O,M)}}}return Ci}var p1;function qg(){if(p1)return Ii;p1=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.createTestClient=n;const e=ic(),r=py();function n(t){const{key:i="test",name:s="Test Client",mode:a}=t;return(0,e.createClient)({...t,key:i,name:s,type:"testClient"}).extend(c=>({mode:a,...(0,r.testActions)({mode:a})(c)}))}return Ii}var is={},ss={},cs={},g1;function Fg(){if(g1)return cs;g1=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.addChain=r;const e=V();async function r(n,{chain:t}){const{id:i,name:s,nativeCurrency:a,rpcUrls:o,blockExplorers:c}=t;await n.request({method:"wallet_addEthereumChain",params:[{chainId:(0,e.numberToHex)(i),chainName:s,nativeCurrency:a,rpcUrls:o.default.http,blockExplorerUrls:c?Object.values(c).map(({url:u})=>u):void 0}]},{dedupe:!0,retryCount:0})}return cs}var us={},h1;function Mg(){if(h1)return us;h1=1,Object.defineProperty(us,"__esModule",{value:!0}),us.deployContract=n;const e=_n(),r=oc();function n(t,i){const{abi:s,args:a,bytecode:o,...c}=i,u=(0,e.encodeDeployData)({abi:s,args:a,bytecode:o});return(0,r.sendTransaction)(t,{...c,...c.authorizationList?{to:null}:{},data:u})}return us}var ds={},_1;function kg(){if(_1)return ds;_1=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.getAddresses=r;const e=Be();async function r(n){var i;return((i=n.account)==null?void 0:i.type)==="local"?[n.account.address]:(await n.request({method:"eth_accounts"},{dedupe:!0})).map(s=>(0,e.checksumAddress)(s))}return ds}var fs={},v1;function Ng(){if(v1)return fs;v1=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.getCapabilities=n;const e=ce(),r=V();async function n(t,i={}){const{account:s=t.account,chainId:a}=i,o=s?(0,e.parseAccount)(s):void 0,c=a?[o==null?void 0:o.address,[(0,r.numberToHex)(a)]]:[o==null?void 0:o.address],u=await t.request({method:"wallet_getCapabilities",params:c}),f={};for(const[d,l]of Object.entries(u)){f[Number(d)]={};for(let[p,m]of Object.entries(l))p==="addSubAccount"&&(p="unstable_addSubAccount"),f[Number(d)][p]=m}return typeof a=="number"?f[a]:f}return fs}var ls={},j1;function Hg(){if(j1)return ls;j1=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.getPermissions=e;async function e(r){return await r.request({method:"wallet_getPermissions"},{dedupe:!0})}return ls}var bs={},E1;function gy(){if(E1)return bs;E1=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.prepareAuthorization=a;const e=ce(),r=At(),n=Ve(),t=te(),i=Pt(),s=Zs();async function a(o,c){var b;const{account:u=o.account,chainId:f,nonce:d}=c;if(!u)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});const l=(0,e.parseAccount)(u),p=(()=>{if(c.executor)return c.executor==="self"?c.executor:(0,e.parseAccount)(c.executor)})(),m={address:c.contractAddress??c.address,chainId:f,nonce:d};return typeof m.chainId>"u"&&(m.chainId=((b=o.chain)==null?void 0:b.id)??await(0,t.getAction)(o,i.getChainId,"getChainId")({})),typeof m.nonce>"u"&&(m.nonce=await(0,t.getAction)(o,s.getTransactionCount,"getTransactionCount")({address:l.address,blockTag:"pending"}),(p==="self"||p!=null&&p.address&&(0,n.isAddressEqual)(p.address,l.address))&&(m.nonce+=1)),m}return bs}var ms={},P1;function xg(){if(P1)return ms;P1=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.requestAddresses=r;const e=Be();async function r(n){return(await n.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>(0,e.getAddress)(i))}return ms}var ys={},T1;function $g(){if(T1)return ys;T1=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.requestPermissions=e;async function e(r,n){return r.request({method:"wallet_requestPermissions",params:[n]},{retryCount:0})}return ys}var ps={},w1;function zg(){if(w1)return ps;w1=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.sendCallsSync=n;const e=Pu(),r=Tu();async function n(t,i){const{chain:s=t.chain}=i,a=i.timeout??Math.max(((s==null?void 0:s.blockTime)??0)*3,5e3),o=await(0,e.sendCalls)(t,i);return await(0,r.waitForCallsStatus)(t,{...i,id:o.id,timeout:a})}return ps}var gs={},A1;function hy(){if(A1)return gs;A1=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.sendTransactionSync=E;const e=ce(),r=At(),n=Q(),t=Te(),i=un(),s=En(),a=bn(),o=Et(),c=Le(),u=te(),f=Dt(),d=Ge(),l=Pt(),p=my(),m=mn(),b=Gu(),y=new f.LruMap(128);async function E(P,A){var D,U,G,H;const{account:h=P.account,chain:T=P.chain,accessList:_,authorizationList:g,blobs:v,data:j,gas:w,gasPrice:C,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:I,nonce:q,pollingInterval:B,throwOnReceiptRevert:O,type:M,value:k,...$}=A,z=A.timeout??Math.max(((T==null?void 0:T.blockTime)??0)*3,5e3);if(typeof h>"u")throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});const N=h?(0,e.parseAccount)(h):null;try{(0,d.assertRequest)(A);const Y=await(async()=>{if(A.to)return A.to;if(A.to!==null&&g&&g.length>0)return await(0,i.recoverAuthorizationAddress)({authorization:g[0]}).catch(()=>{throw new n.BaseError("`to` is required. Could not infer from `authorizationList`.")})})();if((N==null?void 0:N.type)==="json-rpc"||N===null){let J;T!==null&&(J=await(0,u.getAction)(P,l.getChainId,"getChainId")({}),(0,s.assertCurrentChain)({currentChainId:J,chain:T}));const X=(G=(U=(D=P.chain)==null?void 0:D.formatters)==null?void 0:U.transactionRequest)==null?void 0:G.format,ee=(X||c.formatTransactionRequest)({...(0,o.extract)($,{format:X}),accessList:_,account:N,authorizationList:g,blobs:v,chainId:J,data:j,gas:w,gasPrice:C,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:I,nonce:q,to:Y,type:M,value:k},"sendTransaction"),ae=y.get(P.uid),de=ae?"wallet_sendTransaction":"eth_sendTransaction",ye=await(async()=>{try{return await P.request({method:de,params:[ee]},{retryCount:0})}catch(pe){if(ae===!1)throw pe;const be=pe;if(be.name==="InvalidInputRpcError"||be.name==="InvalidParamsRpcError"||be.name==="MethodNotFoundRpcError"||be.name==="MethodNotSupportedRpcError")return await P.request({method:"wallet_sendTransaction",params:[ee]},{retryCount:0}).then(ke=>(y.set(P.uid,!0),ke)).catch(ke=>{const qe=ke;throw qe.name==="MethodNotFoundRpcError"||qe.name==="MethodNotSupportedRpcError"?(y.set(P.uid,!1),be):qe});throw be}})(),fe=await(0,u.getAction)(P,p.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:ye,pollingInterval:B,timeout:z});if(O&&fe.status==="reverted")throw new t.TransactionReceiptRevertedError({receipt:fe});return fe}if((N==null?void 0:N.type)==="local"){const J=await(0,u.getAction)(P,m.prepareTransactionRequest,"prepareTransactionRequest")({account:N,accessList:_,authorizationList:g,blobs:v,chain:T,data:j,gas:w,gasPrice:C,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:I,nonce:q,nonceManager:N.nonceManager,parameters:[...m.defaultParameters,"sidecars"],type:M,value:k,...$,to:Y}),X=(H=T==null?void 0:T.serializers)==null?void 0:H.transaction,L=await N.signTransaction(J,{serializer:X});return await(0,u.getAction)(P,b.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:L,throwOnReceiptRevert:O})}throw(N==null?void 0:N.type)==="smart"?new r.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new r.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:N==null?void 0:N.type})}catch(Y){throw Y instanceof r.AccountTypeNotSupportedError?Y:(0,a.getTransactionError)(Y,{...A,account:N,chain:A.chain||void 0})}}return gs}var hs={},R1;function Dg(){if(R1)return hs;R1=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.showCallsStatus=e;async function e(r,n){const{id:t}=n;await r.request({method:"wallet_showCallsStatus",params:[t]})}return hs}var _s={},I1;function Ug(){if(I1)return _s;I1=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.signAuthorization=t;const e=ce(),r=At(),n=gy();async function t(i,s){const{account:a=i.account}=s;if(!a)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const o=(0,e.parseAccount)(a);if(!o.signAuthorization)throw new r.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const c=await(0,n.prepareAuthorization)(i,s);return o.signAuthorization(c)}return _s}var vs={},C1;function Lg(){if(C1)return vs;C1=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.signMessage=t;const e=ce(),r=At(),n=V();async function t(i,{account:s=i.account,message:a}){if(!s)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const o=(0,e.parseAccount)(s);if(o.signMessage)return o.signMessage({message:a});const c=(()=>typeof a=="string"?(0,n.stringToHex)(a):a.raw instanceof Uint8Array?(0,n.toHex)(a.raw):a.raw)();return i.request({method:"personal_sign",params:[c,o.address]},{retryCount:0})}return vs}var js={},S1;function Gg(){if(S1)return js;S1=1,Object.defineProperty(js,"__esModule",{value:!0}),js.signTransaction=c;const e=ce(),r=At(),n=En(),t=V(),i=Le(),s=te(),a=Ge(),o=Pt();async function c(u,f){var P,A,h,T;const{account:d=u.account,chain:l=u.chain,...p}=f;if(!d)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const m=(0,e.parseAccount)(d);(0,a.assertRequest)({account:m,...f});const b=await(0,s.getAction)(u,o.getChainId,"getChainId")({});l!==null&&(0,n.assertCurrentChain)({currentChainId:b,chain:l});const y=(l==null?void 0:l.formatters)||((P=u.chain)==null?void 0:P.formatters),E=((A=y==null?void 0:y.transactionRequest)==null?void 0:A.format)||i.formatTransactionRequest;return m.signTransaction?m.signTransaction({...p,chainId:b},{serializer:(T=(h=u.chain)==null?void 0:h.serializers)==null?void 0:T.transaction}):await u.request({method:"eth_signTransaction",params:[{...E({...p,account:m},"signTransaction"),chainId:(0,t.numberToHex)(b),from:m.address}]},{retryCount:0})}return js}var Es={},O1;function Vg(){if(O1)return Es;O1=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.signTypedData=t;const e=ce(),r=At(),n=uc();async function t(i,s){const{account:a=i.account,domain:o,message:c,primaryType:u}=s;if(!a)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const f=(0,e.parseAccount)(a),d={EIP712Domain:(0,n.getTypesForEIP712Domain)({domain:o}),...s.types};if((0,n.validateTypedData)({domain:o,message:c,primaryType:u,types:d}),f.signTypedData)return f.signTypedData({domain:o,message:c,primaryType:u,types:d});const l=(0,n.serializeTypedData)({domain:o,message:c,primaryType:u,types:d});return i.request({method:"eth_signTypedData_v4",params:[f.address,l]},{retryCount:0})}return Es}var Ps={},B1;function Wg(){if(B1)return Ps;B1=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.switchChain=r;const e=V();async function r(n,{id:t}){await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,e.numberToHex)(t)}]},{retryCount:0})}return Ps}var Ts={},q1;function Kg(){if(q1)return Ts;q1=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.watchAsset=e;async function e(r,n){return await r.request({method:"wallet_watchAsset",params:n},{retryCount:0})}return Ts}var ws={},F1;function Jg(){if(F1)return ws;F1=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.writeContractSync=n;const e=hy(),r=Eu();async function n(t,i){return r.writeContract.internal(t,e.sendTransactionSync,"sendTransactionSync",i)}return ws}var M1;function _y(){if(M1)return ss;M1=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.walletActions=S;const e=uu(),r=Pt(),n=Fg(),t=Mg(),i=kg(),s=Tm(),a=Ng(),o=Hg(),c=gy(),u=mn(),f=xg(),d=$g(),l=Pu(),p=zg(),m=ju(),b=Gu(),y=oc(),E=hy(),P=Dg(),A=Ug(),h=Lg(),T=Gg(),_=Vg(),g=Wg(),v=Tu(),j=Kg(),w=Eu(),C=Jg();function S(R){return{addChain:I=>(0,n.addChain)(R,I),deployContract:I=>(0,t.deployContract)(R,I),fillTransaction:I=>(0,e.fillTransaction)(R,I),getAddresses:()=>(0,i.getAddresses)(R),getCallsStatus:I=>(0,s.getCallsStatus)(R,I),getCapabilities:I=>(0,a.getCapabilities)(R,I),getChainId:()=>(0,r.getChainId)(R),getPermissions:()=>(0,o.getPermissions)(R),prepareAuthorization:I=>(0,c.prepareAuthorization)(R,I),prepareTransactionRequest:I=>(0,u.prepareTransactionRequest)(R,I),requestAddresses:()=>(0,f.requestAddresses)(R),requestPermissions:I=>(0,d.requestPermissions)(R,I),sendCalls:I=>(0,l.sendCalls)(R,I),sendCallsSync:I=>(0,p.sendCallsSync)(R,I),sendRawTransaction:I=>(0,m.sendRawTransaction)(R,I),sendRawTransactionSync:I=>(0,b.sendRawTransactionSync)(R,I),sendTransaction:I=>(0,y.sendTransaction)(R,I),sendTransactionSync:I=>(0,E.sendTransactionSync)(R,I),showCallsStatus:I=>(0,P.showCallsStatus)(R,I),signAuthorization:I=>(0,A.signAuthorization)(R,I),signMessage:I=>(0,h.signMessage)(R,I),signTransaction:I=>(0,T.signTransaction)(R,I),signTypedData:I=>(0,_.signTypedData)(R,I),switchChain:I=>(0,g.switchChain)(R,I),waitForCallsStatus:I=>(0,v.waitForCallsStatus)(R,I),watchAsset:I=>(0,j.watchAsset)(R,I),writeContract:I=>(0,w.writeContract)(R,I),writeContractSync:I=>(0,C.writeContractSync)(R,I)}}return ss}var k1;function Zg(){if(k1)return is;k1=1,Object.defineProperty(is,"__esModule",{value:!0}),is.createWalletClient=n;const e=ic(),r=_y();function n(t){const{key:i="wallet",name:s="Wallet Client",transport:a}=t;return(0,e.createClient)({...t,key:i,name:s,transport:a,type:"walletClient"}).extend(r.walletActions)}return is}var As={},N1;function An(){if(N1)return As;N1=1,Object.defineProperty(As,"__esModule",{value:!0}),As.createTransport=n;const e=Nm(),r=wm();function n({key:t,methods:i,name:s,request:a,retryCount:o=3,retryDelay:c=150,timeout:u,type:f},d){const l=(0,r.uid)();return{config:{key:t,methods:i,name:s,request:a,retryCount:o,retryDelay:c,timeout:u,type:f},request:(0,e.buildRequest)(a,{methods:i,retryCount:o,retryDelay:c,uid:l}),value:d}}return As}var Rs={},H1;function Yg(){if(H1)return Rs;H1=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.custom=r;const e=An();function r(n,t={}){const{key:i="custom",methods:s,name:a="Custom Provider",retryDelay:o}=t;return({retryCount:c})=>(0,e.createTransport)({key:i,methods:s,name:a,request:n.request.bind(n),retryCount:t.retryCount??c,retryDelay:o,type:"custom"})}return Rs}var br={},x1;function Xg(){if(x1)return br;x1=1,Object.defineProperty(br,"__esModule",{value:!0}),br.fallback=i,br.shouldThrow=s,br.rankTransports=a;const e=st(),r=_t(),n=vu(),t=An();function i(o,c={}){const{key:u="fallback",name:f="Fallback",rank:d=!1,shouldThrow:l=s,retryCount:p,retryDelay:m}=c;return({chain:b,pollingInterval:y=4e3,timeout:E,...P})=>{let A=o,h=()=>{};const T=(0,t.createTransport)({key:u,name:f,async request({method:_,params:g}){let v;const j=async(w=0)=>{const C=A[w]({...P,chain:b,retryCount:0,timeout:E});try{const S=await C.request({method:_,params:g});return h({method:_,params:g,response:S,transport:C,status:"success"}),S}catch(S){if(h({error:S,method:_,params:g,transport:C,status:"error"}),l(S)||w===A.length-1||(v??(v=A.slice(w+1).some(R=>{const{include:I,exclude:q}=R({chain:b}).config.methods||{};return I?I.includes(_):q?!q.includes(_):!0})),!v))throw S;return j(w+1)}};return j()},retryCount:p,retryDelay:m,type:"fallback"},{onResponse:_=>h=_,transports:A.map(_=>_({chain:b,retryCount:0}))});if(d){const _=typeof d=="object"?d:{};a({chain:b,interval:_.interval??y,onTransports:g=>A=g,ping:_.ping,sampleCount:_.sampleCount,timeout:_.timeout,transports:A,weights:_.weights})}return T}}function s(o){return!!("code"in o&&typeof o.code=="number"&&(o.code===r.TransactionRejectedRpcError.code||o.code===r.UserRejectedRequestError.code||e.ExecutionRevertedError.nodeMessage.test(o.message)||o.code===5e3))}function a({chain:o,interval:c=4e3,onTransports:u,ping:f,sampleCount:d=10,timeout:l=1e3,transports:p,weights:m={}}){const{stability:b=.7,latency:y=.3}=m,E=[],P=async()=>{const A=await Promise.all(p.map(async _=>{const g=_({chain:o,retryCount:0,timeout:l}),v=Date.now();let j,w;try{await(f?f({transport:g}):g.request({method:"net_listening"})),w=1}catch{w=0}finally{j=Date.now()}return{latency:j-v,success:w}}));E.push(A),E.length>d&&E.shift();const h=Math.max(...E.map(_=>Math.max(..._.map(({latency:g})=>g)))),T=p.map((_,g)=>{const v=E.map(R=>R[g].latency),w=1-v.reduce((R,I)=>R+I,0)/v.length/h,C=E.map(R=>R[g].success),S=C.reduce((R,I)=>R+I,0)/C.length;return S===0?[0,g]:[y*w+b*S,g]}).sort((_,g)=>g[0]-_[0]);u(T.map(([,_])=>p[_])),await(0,n.wait)(c),P()};P()}return br}var Is={},tn={},$1;function Vu(){if($1)return tn;$1=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.UrlRequiredError=void 0;const e=Q();class r extends e.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}return tn.UrlRequiredError=r,tn}var z1;function Qg(){if(z1)return Is;z1=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.http=s;const e=Ue(),r=Vu(),n=yu(),t=Fu(),i=An();function s(a,o={}){const{batch:c,fetchFn:u,fetchOptions:f,key:d="http",methods:l,name:p="HTTP JSON-RPC",onFetchRequest:m,onFetchResponse:b,retryDelay:y,raw:E}=o;return({chain:P,retryCount:A,timeout:h})=>{const{batchSize:T=1e3,wait:_=0}=typeof c=="object"?c:{},g=o.retryCount??A,v=h??o.timeout??1e4,j=a||(P==null?void 0:P.rpcUrls.default.http[0]);if(!j)throw new r.UrlRequiredError;const w=(0,t.getHttpRpcClient)(j,{fetchFn:u,fetchOptions:f,onRequest:m,onResponse:b,timeout:v});return(0,i.createTransport)({key:d,methods:l,name:p,async request({method:C,params:S}){const R={method:C,params:S},{schedule:I}=(0,n.createBatchScheduler)({id:j,wait:_,shouldSplitBatch(M){return M.length>T},fn:M=>w.request({body:M}),sort:(M,k)=>M.id-k.id}),q=async M=>c?I(M):[await w.request({body:M})],[{error:B,result:O}]=await q(R);if(E)return{error:B,result:O};if(B)throw new e.RpcRequestError({body:R,error:B,url:j});return O},retryCount:g,retryDelay:y,timeout:v,type:"http"},{fetchOptions:f,url:j})}}return Is}var Cs={},D1;function eh(){if(D1)return Cs;D1=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.webSocket=s;const e=Ue(),r=Vu(),n=Km(),t=Mu(),i=An();function s(a,o={}){const{keepAlive:c,key:u="webSocket",methods:f,name:d="WebSocket JSON-RPC",reconnect:l,retryDelay:p}=o;return({chain:m,retryCount:b,timeout:y})=>{var T;const E=o.retryCount??b,P=y??o.timeout??1e4,A=a||((T=m==null?void 0:m.rpcUrls.default.webSocket)==null?void 0:T[0]),h={keepAlive:c,reconnect:l};if(!A)throw new r.UrlRequiredError;return(0,i.createTransport)({key:u,methods:f,name:d,async request({method:_,params:g}){const v={method:_,params:g},j=await(0,t.getWebSocketRpcClient)(A,h),{error:w,result:C}=await j.requestAsync({body:v,timeout:P});if(w)throw new e.RpcRequestError({body:v,error:w,url:A});return C},retryCount:E,retryDelay:p,timeout:P,type:"webSocket"},{getSocket(){return(0,n.getSocket)(A)},getRpcClient(){return(0,t.getWebSocketRpcClient)(A,h)},async subscribe({params:_,onData:g,onError:v}){const j=await(0,t.getWebSocketRpcClient)(A,h),{result:w}=await new Promise((C,S)=>j.request({body:{method:"eth_subscribe",params:_},onError(R){S(R),v==null||v(R)},onResponse(R){if(R.error){S(R.error),v==null||v(R.error);return}if(typeof R.id=="number"){C(R);return}R.method==="eth_subscription"&&g(R.params)}}));return{subscriptionId:w,async unsubscribe(){return new Promise(C=>j.request({body:{method:"eth_unsubscribe",params:[w]},onResponse:C}))}}}})}}return Cs}var rn={},U1;function th(){if(U1)return rn;U1=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.ProviderRpcError=void 0;class e extends Error{constructor(n,t){super(t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n,this.details=t}}return rn.ProviderRpcError=e,rn}var Ss={},L1;function rh(){if(L1)return Ss;L1=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.decodeDeployData=t;const e=se(),r=gt(),n="/docs/contract/decodeDeployData";function t(i){const{abi:s,bytecode:a,data:o}=i;if(o===a)return{bytecode:a};const c=s.find(f=>"type"in f&&f.type==="constructor");if(!c)throw new e.AbiConstructorNotFoundError({docsPath:n});if(!("inputs"in c))throw new e.AbiConstructorParamsNotFoundError({docsPath:n});if(!c.inputs||c.inputs.length===0)throw new e.AbiConstructorParamsNotFoundError({docsPath:n});return{args:(0,r.decodeAbiParameters)(c.inputs,`0x${o.replace(a,"")}`),bytecode:a}}return Ss}var Os={},G1;function nh(){if(G1)return Os;G1=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.fromBlobs=t;const e=on(),r=oe(),n=V();function t(i){const s=i.to??(typeof i.blobs[0]=="string"?"hex":"bytes"),a=typeof i.blobs[0]=="string"?i.blobs.map(d=>(0,r.hexToBytes)(d)):i.blobs,o=a.reduce((d,l)=>d+l.length,0),c=(0,e.createCursor)(new Uint8Array(o));let u=!0;for(const d of a){const l=(0,e.createCursor)(d);for(;u&&l.position<d.length;){l.incrementPosition(1);let p=31;d.length-l.position<31&&(p=d.length-l.position);for(const m in Array.from({length:p})){const b=l.readByte();if(b===128&&!l.inspectBytes(l.remaining).includes(128)){u=!1;break}c.pushByte(b)}}}const f=c.bytes.slice(0,c.position);return s==="hex"?(0,n.bytesToHex)(f):f}return Os}var Bs={},V1;function oh(){if(V1)return Bs;V1=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.sidecarsToVersionedHashes=r;const e=su();function r(n){const{sidecars:t,version:i}=n,s=n.to??(typeof t[0].blob=="string"?"hex":"bytes"),a=[];for(const{commitment:o}of t)a.push((0,e.commitmentToVersionedHash)({commitment:o,to:s,version:i}));return a}return Bs}var qs={},W1;function ah(){if(W1)return qs;W1=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.toCoinType=n;const e=Iu(),r=2147483648;function n(t){if(t===1)return 60n;if(t>=r||t<0)throw new e.EnsInvalidChainIdError({chainId:t});return BigInt((2147483648|t)>>>0)}return qs}var Fs={},K1;function vy(){if(K1)return Fs;K1=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.defineKzg=e;function e({blobToKzgCommitment:r,computeBlobKzgProof:n}){return{blobToKzgCommitment:r,computeBlobKzgProof:n}}return Fs}var Ms={},J1;function ih(){if(J1)return Ms;J1=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.setupKzg=r;const e=vy();function r(n,t){try{n.loadTrustedSetup(t)}catch(i){const s=i;if(!s.message.includes("trusted setup is already loaded"))throw s}return(0,e.defineKzg)(n)}return Ms}var ks={},Z1;function sh(){if(Z1)return ks;Z1=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.compactSignatureToSignature=n;const e=oe(),r=V();function n({r:t,yParityAndS:i}){const s=(0,e.hexToBytes)(i),a=s[0]&128?1:0,o=s;return a===1&&(o[0]&=127),{r:t,s:(0,r.bytesToHex)(o),yParity:a}}return ks}var Ns={},Y1;function ch(){if(Y1)return Ns;Y1=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.parseCompactSignature=n;const e=nn(),r=V();function n(t){const{r:i,s}=e.secp256k1.Signature.fromCompact(t.slice(2,130));return{r:(0,r.numberToHex)(i,{size:32}),yParityAndS:(0,r.numberToHex)(s,{size:32})}}return Ns}var Hs={},X1;function uh(){if(X1)return Hs;X1=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.parseSignature=n;const e=nn(),r=V();function n(t){const{r:i,s}=e.secp256k1.Signature.fromCompact(t.slice(2,130)),a=+`0x${t.slice(130)}`,[o,c]=(()=>{if(a===0||a===1)return[void 0,a];if(a===27)return[BigInt(a),0];if(a===28)return[BigInt(a),1];throw new Error("Invalid yParityOrV value")})();return typeof o<"u"?{r:(0,r.numberToHex)(i,{size:32}),s:(0,r.numberToHex)(s,{size:32}),v:o,yParity:c}:{r:(0,r.numberToHex)(i,{size:32}),s:(0,r.numberToHex)(s,{size:32}),yParity:c}}return Hs}var xs={},Q1;function dh(){if(Q1)return xs;Q1=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.recoverTransactionAddress=i;const e=je(),r=Du(),n=cc(),t=jt();async function i(s){const{serializedTransaction:a,signature:o}=s,c=(0,r.parseTransaction)(a),u=o??{r:c.r,s:c.s,v:c.v,yParity:c.yParity},f=(0,n.serializeTransaction)({...c,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await(0,t.recoverAddress)({hash:(0,e.keccak256)(f),signature:u})}return xs}var $s={},em;function fh(){if(em)return $s;em=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.serializeCompactSignature=n;const e=nn(),r=ue();function n({r:t,yParityAndS:i}){return`0x${new e.secp256k1.Signature((0,r.hexToBigInt)(t),(0,r.hexToBigInt)(i)).toCompactHex()}`}return $s}var zs={},tm;function lh(){if(tm)return zs;tm=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.signatureToCompactSignature=n;const e=oe(),r=V();function n(t){const{r:i,s,v:a,yParity:o}=t,c=Number(o??a-27n);let u=s;if(c===1){const f=(0,e.hexToBytes)(s);f[0]|=128,u=(0,r.bytesToHex)(f)}return{r:i,yParityAndS:u}}return zs}var rm;function yh(){return rm||(rm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maxInt8=e.universalSignatureValidatorByteCode=e.erc6492SignatureValidatorByteCode=e.deploylessCallViaFactoryBytecode=e.deploylessCallViaBytecodeBytecode=e.zeroHash=e.zeroAddress=e.ethAddress=e.multicall3Abi=e.universalSignatureValidatorAbi=e.erc6492SignatureValidatorAbi=e.erc4626Abi=e.erc1155Abi=e.erc721Abi=e.erc20Abi_bytes32=e.erc20Abi=e.webSocket=e.http=e.shouldThrow=e.fallback=e.custom=e.createTransport=e.walletActions=e.testActions=e.publicActions=e.createWalletClient=e.createTestClient=e.createPublicClient=e.rpcSchema=e.createClient=e.WaitForCallsStatusTimeoutError=e.getContract=e.UnknownTypeError=e.UnknownSignatureError=e.SolidityProtectedKeywordError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.InvalidStructSignatureError=e.InvalidSignatureError=e.InvalidParenthesisError=e.InvalidParameterError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.InvalidAbiParametersError=e.InvalidAbiParameterError=e.InvalidAbiItemError=e.CircularReferenceError=void 0,e.maxUint152=e.maxUint144=e.maxUint136=e.maxUint128=e.maxUint120=e.maxUint112=e.maxUint104=e.maxUint96=e.maxUint88=e.maxUint80=e.maxUint72=e.maxUint64=e.maxUint56=e.maxUint48=e.maxUint40=e.maxUint32=e.maxUint24=e.maxUint16=e.maxUint8=e.maxInt256=e.maxInt248=e.maxInt240=e.maxInt232=e.maxInt224=e.maxInt216=e.maxInt208=e.maxInt200=e.maxInt192=e.maxInt184=e.maxInt176=e.maxInt168=e.maxInt160=e.maxInt152=e.maxInt144=e.maxInt136=e.maxInt128=e.maxInt120=e.maxInt112=e.maxInt104=e.maxInt96=e.maxInt88=e.maxInt80=e.maxInt72=e.maxInt64=e.maxInt56=e.maxInt48=e.maxInt40=e.maxInt32=e.maxInt24=e.maxInt16=void 0,e.AbiConstructorNotFoundError=e.weiUnits=e.gweiUnits=e.etherUnits=e.presignMessagePrefix=e.minInt256=e.minInt248=e.minInt240=e.minInt232=e.minInt224=e.minInt216=e.minInt208=e.minInt200=e.minInt192=e.minInt184=e.minInt176=e.minInt168=e.minInt160=e.minInt152=e.minInt144=e.minInt136=e.minInt128=e.minInt120=e.minInt112=e.minInt104=e.minInt96=e.minInt88=e.minInt80=e.minInt72=e.minInt64=e.minInt56=e.minInt48=e.minInt40=e.minInt32=e.minInt24=e.minInt16=e.minInt8=e.maxUint256=e.maxUint248=e.maxUint240=e.maxUint232=e.maxUint224=e.maxUint216=e.maxUint208=e.maxUint200=e.maxUint192=e.maxUint184=e.maxUint176=e.maxUint168=e.maxUint160=void 0,e.EnsAvatarUriResolutionError=e.EnsAvatarUnsupportedNamespaceError=e.EnsAvatarInvalidNftUriError=e.SizeOverflowError=e.InvalidHexValueError=e.InvalidHexBooleanError=e.InvalidBytesBooleanError=e.IntegerOutOfRangeError=e.SliceOffsetOutOfBoundsError=e.SizeExceedsPaddingSizeError=e.RawContractError=e.CounterfactualDeploymentFailedError=e.ContractFunctionZeroDataError=e.ContractFunctionRevertedError=e.ContractFunctionExecutionError=e.CallExecutionError=e.InvalidChainIdError=e.ClientChainNotConfiguredError=e.ChainNotFoundError=e.ChainMismatchError=e.ChainDoesNotSupportContract=e.BundleFailedError=e.BlockNotFoundError=e.setErrorConfig=e.BaseError=e.InvalidAddressError=e.UnsupportedPackedAbiType=e.InvalidDefinitionTypeError=e.InvalidArrayError=e.InvalidAbiEncodingTypeError=e.InvalidAbiDecodingTypeError=e.DecodeLogTopicsMismatch=e.DecodeLogDataMismatch=e.BytesSizeMismatchError=e.AbiFunctionSignatureNotFoundError=e.AbiFunctionOutputsNotFoundError=e.AbiFunctionNotFoundError=e.AbiEventSignatureNotFoundError=e.AbiEventSignatureEmptyTopicsError=e.AbiEventNotFoundError=e.AbiErrorSignatureNotFoundError=e.AbiErrorNotFoundError=e.AbiErrorInputsNotFoundError=e.AbiEncodingLengthMismatchError=e.AbiEncodingBytesSizeMismatchError=e.AbiEncodingArrayLengthMismatchError=e.AbiDecodingZeroDataError=e.AbiDecodingDataSizeTooSmallError=e.AbiDecodingDataSizeInvalidError=e.AbiConstructorParamsNotFoundError=void 0,e.UnsupportedProviderMethodError=e.UnsupportedNonOptionalCapabilityError=e.UnsupportedChainIdError=e.UnknownRpcError=e.UnknownBundleIdError=e.UnauthorizedProviderError=e.TransactionRejectedRpcError=e.SwitchChainError=e.RpcError=e.ResourceUnavailableRpcError=e.ResourceNotFoundRpcError=e.ProviderRpcError=e.ProviderDisconnectedError=e.ParseRpcError=e.MethodNotSupportedRpcError=e.MethodNotFoundRpcError=e.LimitExceededRpcError=e.JsonRpcVersionUnsupportedError=e.InvalidRequestRpcError=e.InvalidParamsRpcError=e.InvalidInputRpcError=e.InternalRpcError=e.DuplicateIdError=e.ChainDisconnectedError=e.BundleTooLargeError=e.AtomicReadyWalletRejectedUpgradeError=e.AtomicityNotSupportedError=e.WebSocketRequestError=e.TimeoutError=e.SocketClosedError=e.RpcRequestError=e.HttpRequestError=e.UnknownNodeError=e.TransactionTypeNotSupportedError=e.TipAboveFeeCapError=e.NonceTooLowError=e.NonceTooHighError=e.NonceMaxValueError=e.IntrinsicGasTooLowError=e.IntrinsicGasTooHighError=e.InsufficientFundsError=e.FeeCapTooLowError=e.FeeCapTooHighError=e.ExecutionRevertedError=e.FilterTypeNotSupportedError=e.MaxFeePerGasTooLowError=e.Eip1559FeesNotSupportedError=e.BaseFeeScalarError=e.EstimateGasExecutionError=e.EnsInvalidChainIdError=void 0,e.toBlobs=e.toBlobSidecars=e.sidecarsToVersionedHashes=e.fromBlobs=e.commitmentToVersionedHash=e.commitmentsToVersionedHashes=e.blobsToProofs=e.blobsToCommitments=e.isAddressEqual=e.isAddress=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAddress=e.checksumAddress=e.prepareEncodeFunctionData=e.parseEventLogs=e.getAbiItem=e.encodePacked=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeDeployData=e.decodeAbiParameters=e.EIP1193ProviderRpcError=e.InvalidDecimalNumberError=e.InvalidStructTypeError=e.InvalidPrimaryTypeError=e.InvalidDomainError=e.UrlRequiredError=e.WaitForTransactionReceiptTimeoutError=e.TransactionReceiptNotFoundError=e.TransactionNotFoundError=e.TransactionExecutionError=e.InvalidStorageKeySizeError=e.InvalidSerializedTransactionTypeError=e.InvalidSerializedTransactionError=e.InvalidSerializableTransactionError=e.InvalidLegacyVError=e.FeeConflictError=e.StateAssignmentConflictError=e.AccountStateConflictError=e.UserRejectedRequestError=void 0,e.toCoinType=e.namehash=e.labelhash=e.toRlp=e.hexToRlp=e.bytesToRlp=e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigInt=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=e.padBytes=e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=e.concat=e.getChainContractAddress=e.extractChain=e.extendSchema=e.defineChain=e.assertCurrentChain=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.ccipRequest=void 0,e.recoverTransactionAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.parseSignature=e.hexToSignature=e.parseErc8010Signature=e.parseErc6492Signature=e.parseCompactSignature=e.hexToCompactSignature=e.isErc8010Signature=e.isErc6492Signature=e.hashTypedData=e.hashStruct=e.hashDomain=e.hashMessage=e.compactSignatureToSignature=e.withTimeout=e.withRetry=e.withCache=e.nonceManager=e.createNonceManager=e.setupKzg=e.defineKzg=e.getFunctionSignature=e.toFunctionSignature=e.getFunctionSelector=e.toFunctionSelector=e.toFunctionHash=e.getEventSignature=e.toEventSignature=e.getEventSelector=e.toEventSelector=e.toEventHash=e.sha256=e.ripemd160=e.keccak256=e.isHash=e.rpcTransactionType=e.formatTransactionRequest=e.defineTransactionRequest=e.formatTransactionReceipt=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatLog=e.formatBlock=e.defineBlock=e.getContractError=void 0,e.parseUnits=e.parseGwei=e.parseEther=e.formatUnits=e.formatGwei=e.formatEther=e.validateTypedData=e.serializeTypedData=e.getTypesForEIP712Domain=e.domainSeparator=e.serializeTransaction=e.serializeAccessList=e.parseTransaction=e.getTransactionType=e.getSerializedTransactionType=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.stringify=e.verifyTypedData=e.verifyMessage=e.verifyHash=e.toPrefixedMessage=e.signatureToCompactSignature=e.serializeSignature=e.signatureToHex=e.serializeErc8010Signature=e.serializeErc6492Signature=e.serializeCompactSignature=e.compactSignatureToHex=e.recoverTypedDataAddress=void 0;var r=zt();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return r.CircularReferenceError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return r.InvalidAbiItemError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return r.InvalidAbiParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return r.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return r.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return r.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return r.InvalidModifierError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return r.InvalidParameterError}}),Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return r.InvalidParenthesisError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return r.InvalidSignatureError}}),Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return r.InvalidStructSignatureError}}),Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return r.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return r.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return r.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return r.parseAbiParameters}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return r.SolidityProtectedKeywordError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return r.UnknownSignatureError}}),Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return r.UnknownTypeError}});var n=gp();Object.defineProperty(e,"getContract",{enumerable:!0,get:function(){return n.getContract}});var t=Tu();Object.defineProperty(e,"WaitForCallsStatusTimeoutError",{enumerable:!0,get:function(){return t.WaitForCallsStatusTimeoutError}});var i=ic();Object.defineProperty(e,"createClient",{enumerable:!0,get:function(){return i.createClient}}),Object.defineProperty(e,"rpcSchema",{enumerable:!0,get:function(){return i.rpcSchema}});var s=rg();Object.defineProperty(e,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var a=qg();Object.defineProperty(e,"createTestClient",{enumerable:!0,get:function(){return a.createTestClient}});var o=Zg();Object.defineProperty(e,"createWalletClient",{enumerable:!0,get:function(){return o.createWalletClient}});var c=yy();Object.defineProperty(e,"publicActions",{enumerable:!0,get:function(){return c.publicActions}});var u=py();Object.defineProperty(e,"testActions",{enumerable:!0,get:function(){return u.testActions}});var f=_y();Object.defineProperty(e,"walletActions",{enumerable:!0,get:function(){return f.walletActions}});var d=An();Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return d.createTransport}});var l=Yg();Object.defineProperty(e,"custom",{enumerable:!0,get:function(){return l.custom}});var p=Xg();Object.defineProperty(e,"fallback",{enumerable:!0,get:function(){return p.fallback}}),Object.defineProperty(e,"shouldThrow",{enumerable:!0,get:function(){return p.shouldThrow}});var m=Qg();Object.defineProperty(e,"http",{enumerable:!0,get:function(){return m.http}});var b=eh();Object.defineProperty(e,"webSocket",{enumerable:!0,get:function(){return b.webSocket}});var y=Tt();Object.defineProperty(e,"erc20Abi",{enumerable:!0,get:function(){return y.erc20Abi}}),Object.defineProperty(e,"erc20Abi_bytes32",{enumerable:!0,get:function(){return y.erc20Abi_bytes32}}),Object.defineProperty(e,"erc721Abi",{enumerable:!0,get:function(){return y.erc721Abi}}),Object.defineProperty(e,"erc1155Abi",{enumerable:!0,get:function(){return y.erc1155Abi}}),Object.defineProperty(e,"erc4626Abi",{enumerable:!0,get:function(){return y.erc4626Abi}}),Object.defineProperty(e,"erc6492SignatureValidatorAbi",{enumerable:!0,get:function(){return y.erc6492SignatureValidatorAbi}}),Object.defineProperty(e,"universalSignatureValidatorAbi",{enumerable:!0,get:function(){return y.erc6492SignatureValidatorAbi}}),Object.defineProperty(e,"multicall3Abi",{enumerable:!0,get:function(){return y.multicall3Abi}});var E=fy();Object.defineProperty(e,"ethAddress",{enumerable:!0,get:function(){return E.ethAddress}}),Object.defineProperty(e,"zeroAddress",{enumerable:!0,get:function(){return E.zeroAddress}});var P=ku();Object.defineProperty(e,"zeroHash",{enumerable:!0,get:function(){return P.zeroHash}});var A=gn();Object.defineProperty(e,"deploylessCallViaBytecodeBytecode",{enumerable:!0,get:function(){return A.deploylessCallViaBytecodeBytecode}}),Object.defineProperty(e,"deploylessCallViaFactoryBytecode",{enumerable:!0,get:function(){return A.deploylessCallViaFactoryBytecode}}),Object.defineProperty(e,"erc6492SignatureValidatorByteCode",{enumerable:!0,get:function(){return A.erc6492SignatureValidatorByteCode}}),Object.defineProperty(e,"universalSignatureValidatorByteCode",{enumerable:!0,get:function(){return A.erc6492SignatureValidatorByteCode}});var h=nu();Object.defineProperty(e,"maxInt8",{enumerable:!0,get:function(){return h.maxInt8}}),Object.defineProperty(e,"maxInt16",{enumerable:!0,get:function(){return h.maxInt16}}),Object.defineProperty(e,"maxInt24",{enumerable:!0,get:function(){return h.maxInt24}}),Object.defineProperty(e,"maxInt32",{enumerable:!0,get:function(){return h.maxInt32}}),Object.defineProperty(e,"maxInt40",{enumerable:!0,get:function(){return h.maxInt40}}),Object.defineProperty(e,"maxInt48",{enumerable:!0,get:function(){return h.maxInt48}}),Object.defineProperty(e,"maxInt56",{enumerable:!0,get:function(){return h.maxInt56}}),Object.defineProperty(e,"maxInt64",{enumerable:!0,get:function(){return h.maxInt64}}),Object.defineProperty(e,"maxInt72",{enumerable:!0,get:function(){return h.maxInt72}}),Object.defineProperty(e,"maxInt80",{enumerable:!0,get:function(){return h.maxInt80}}),Object.defineProperty(e,"maxInt88",{enumerable:!0,get:function(){return h.maxInt88}}),Object.defineProperty(e,"maxInt96",{enumerable:!0,get:function(){return h.maxInt96}}),Object.defineProperty(e,"maxInt104",{enumerable:!0,get:function(){return h.maxInt104}}),Object.defineProperty(e,"maxInt112",{enumerable:!0,get:function(){return h.maxInt112}}),Object.defineProperty(e,"maxInt120",{enumerable:!0,get:function(){return h.maxInt120}}),Object.defineProperty(e,"maxInt128",{enumerable:!0,get:function(){return h.maxInt128}}),Object.defineProperty(e,"maxInt136",{enumerable:!0,get:function(){return h.maxInt136}}),Object.defineProperty(e,"maxInt144",{enumerable:!0,get:function(){return h.maxInt144}}),Object.defineProperty(e,"maxInt152",{enumerable:!0,get:function(){return h.maxInt152}}),Object.defineProperty(e,"maxInt160",{enumerable:!0,get:function(){return h.maxInt160}}),Object.defineProperty(e,"maxInt168",{enumerable:!0,get:function(){return h.maxInt168}}),Object.defineProperty(e,"maxInt176",{enumerable:!0,get:function(){return h.maxInt176}}),Object.defineProperty(e,"maxInt184",{enumerable:!0,get:function(){return h.maxInt184}}),Object.defineProperty(e,"maxInt192",{enumerable:!0,get:function(){return h.maxInt192}}),Object.defineProperty(e,"maxInt200",{enumerable:!0,get:function(){return h.maxInt200}}),Object.defineProperty(e,"maxInt208",{enumerable:!0,get:function(){return h.maxInt208}}),Object.defineProperty(e,"maxInt216",{enumerable:!0,get:function(){return h.maxInt216}}),Object.defineProperty(e,"maxInt224",{enumerable:!0,get:function(){return h.maxInt224}}),Object.defineProperty(e,"maxInt232",{enumerable:!0,get:function(){return h.maxInt232}}),Object.defineProperty(e,"maxInt240",{enumerable:!0,get:function(){return h.maxInt240}}),Object.defineProperty(e,"maxInt248",{enumerable:!0,get:function(){return h.maxInt248}}),Object.defineProperty(e,"maxInt256",{enumerable:!0,get:function(){return h.maxInt256}}),Object.defineProperty(e,"maxUint8",{enumerable:!0,get:function(){return h.maxUint8}}),Object.defineProperty(e,"maxUint16",{enumerable:!0,get:function(){return h.maxUint16}}),Object.defineProperty(e,"maxUint24",{enumerable:!0,get:function(){return h.maxUint24}}),Object.defineProperty(e,"maxUint32",{enumerable:!0,get:function(){return h.maxUint32}}),Object.defineProperty(e,"maxUint40",{enumerable:!0,get:function(){return h.maxUint40}}),Object.defineProperty(e,"maxUint48",{enumerable:!0,get:function(){return h.maxUint48}}),Object.defineProperty(e,"maxUint56",{enumerable:!0,get:function(){return h.maxUint56}}),Object.defineProperty(e,"maxUint64",{enumerable:!0,get:function(){return h.maxUint64}}),Object.defineProperty(e,"maxUint72",{enumerable:!0,get:function(){return h.maxUint72}}),Object.defineProperty(e,"maxUint80",{enumerable:!0,get:function(){return h.maxUint80}}),Object.defineProperty(e,"maxUint88",{enumerable:!0,get:function(){return h.maxUint88}}),Object.defineProperty(e,"maxUint96",{enumerable:!0,get:function(){return h.maxUint96}}),Object.defineProperty(e,"maxUint104",{enumerable:!0,get:function(){return h.maxUint104}}),Object.defineProperty(e,"maxUint112",{enumerable:!0,get:function(){return h.maxUint112}}),Object.defineProperty(e,"maxUint120",{enumerable:!0,get:function(){return h.maxUint120}}),Object.defineProperty(e,"maxUint128",{enumerable:!0,get:function(){return h.maxUint128}}),Object.defineProperty(e,"maxUint136",{enumerable:!0,get:function(){return h.maxUint136}}),Object.defineProperty(e,"maxUint144",{enumerable:!0,get:function(){return h.maxUint144}}),Object.defineProperty(e,"maxUint152",{enumerable:!0,get:function(){return h.maxUint152}}),Object.defineProperty(e,"maxUint160",{enumerable:!0,get:function(){return h.maxUint160}}),Object.defineProperty(e,"maxUint168",{enumerable:!0,get:function(){return h.maxUint168}}),Object.defineProperty(e,"maxUint176",{enumerable:!0,get:function(){return h.maxUint176}}),Object.defineProperty(e,"maxUint184",{enumerable:!0,get:function(){return h.maxUint184}}),Object.defineProperty(e,"maxUint192",{enumerable:!0,get:function(){return h.maxUint192}}),Object.defineProperty(e,"maxUint200",{enumerable:!0,get:function(){return h.maxUint200}}),Object.defineProperty(e,"maxUint208",{enumerable:!0,get:function(){return h.maxUint208}}),Object.defineProperty(e,"maxUint216",{enumerable:!0,get:function(){return h.maxUint216}}),Object.defineProperty(e,"maxUint224",{enumerable:!0,get:function(){return h.maxUint224}}),Object.defineProperty(e,"maxUint232",{enumerable:!0,get:function(){return h.maxUint232}}),Object.defineProperty(e,"maxUint240",{enumerable:!0,get:function(){return h.maxUint240}}),Object.defineProperty(e,"maxUint248",{enumerable:!0,get:function(){return h.maxUint248}}),Object.defineProperty(e,"maxUint256",{enumerable:!0,get:function(){return h.maxUint256}}),Object.defineProperty(e,"minInt8",{enumerable:!0,get:function(){return h.minInt8}}),Object.defineProperty(e,"minInt16",{enumerable:!0,get:function(){return h.minInt16}}),Object.defineProperty(e,"minInt24",{enumerable:!0,get:function(){return h.minInt24}}),Object.defineProperty(e,"minInt32",{enumerable:!0,get:function(){return h.minInt32}}),Object.defineProperty(e,"minInt40",{enumerable:!0,get:function(){return h.minInt40}}),Object.defineProperty(e,"minInt48",{enumerable:!0,get:function(){return h.minInt48}}),Object.defineProperty(e,"minInt56",{enumerable:!0,get:function(){return h.minInt56}}),Object.defineProperty(e,"minInt64",{enumerable:!0,get:function(){return h.minInt64}}),Object.defineProperty(e,"minInt72",{enumerable:!0,get:function(){return h.minInt72}}),Object.defineProperty(e,"minInt80",{enumerable:!0,get:function(){return h.minInt80}}),Object.defineProperty(e,"minInt88",{enumerable:!0,get:function(){return h.minInt88}}),Object.defineProperty(e,"minInt96",{enumerable:!0,get:function(){return h.minInt96}}),Object.defineProperty(e,"minInt104",{enumerable:!0,get:function(){return h.minInt104}}),Object.defineProperty(e,"minInt112",{enumerable:!0,get:function(){return h.minInt112}}),Object.defineProperty(e,"minInt120",{enumerable:!0,get:function(){return h.minInt120}}),Object.defineProperty(e,"minInt128",{enumerable:!0,get:function(){return h.minInt128}}),Object.defineProperty(e,"minInt136",{enumerable:!0,get:function(){return h.minInt136}}),Object.defineProperty(e,"minInt144",{enumerable:!0,get:function(){return h.minInt144}}),Object.defineProperty(e,"minInt152",{enumerable:!0,get:function(){return h.minInt152}}),Object.defineProperty(e,"minInt160",{enumerable:!0,get:function(){return h.minInt160}}),Object.defineProperty(e,"minInt168",{enumerable:!0,get:function(){return h.minInt168}}),Object.defineProperty(e,"minInt176",{enumerable:!0,get:function(){return h.minInt176}}),Object.defineProperty(e,"minInt184",{enumerable:!0,get:function(){return h.minInt184}}),Object.defineProperty(e,"minInt192",{enumerable:!0,get:function(){return h.minInt192}}),Object.defineProperty(e,"minInt200",{enumerable:!0,get:function(){return h.minInt200}}),Object.defineProperty(e,"minInt208",{enumerable:!0,get:function(){return h.minInt208}}),Object.defineProperty(e,"minInt216",{enumerable:!0,get:function(){return h.minInt216}}),Object.defineProperty(e,"minInt224",{enumerable:!0,get:function(){return h.minInt224}}),Object.defineProperty(e,"minInt232",{enumerable:!0,get:function(){return h.minInt232}}),Object.defineProperty(e,"minInt240",{enumerable:!0,get:function(){return h.minInt240}}),Object.defineProperty(e,"minInt248",{enumerable:!0,get:function(){return h.minInt248}}),Object.defineProperty(e,"minInt256",{enumerable:!0,get:function(){return h.minInt256}});var T=Jm();Object.defineProperty(e,"presignMessagePrefix",{enumerable:!0,get:function(){return T.presignMessagePrefix}});var _=an();Object.defineProperty(e,"etherUnits",{enumerable:!0,get:function(){return _.etherUnits}}),Object.defineProperty(e,"gweiUnits",{enumerable:!0,get:function(){return _.gweiUnits}}),Object.defineProperty(e,"weiUnits",{enumerable:!0,get:function(){return _.weiUnits}});var g=se();Object.defineProperty(e,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return g.AbiConstructorNotFoundError}}),Object.defineProperty(e,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return g.AbiConstructorParamsNotFoundError}}),Object.defineProperty(e,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return g.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(e,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return g.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(e,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return g.AbiDecodingZeroDataError}}),Object.defineProperty(e,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return g.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return g.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(e,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return g.AbiEncodingLengthMismatchError}}),Object.defineProperty(e,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return g.AbiErrorInputsNotFoundError}}),Object.defineProperty(e,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return g.AbiErrorNotFoundError}}),Object.defineProperty(e,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return g.AbiErrorSignatureNotFoundError}}),Object.defineProperty(e,"AbiEventNotFoundError",{enumerable:!0,get:function(){return g.AbiEventNotFoundError}}),Object.defineProperty(e,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return g.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(e,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return g.AbiEventSignatureNotFoundError}}),Object.defineProperty(e,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return g.AbiFunctionNotFoundError}}),Object.defineProperty(e,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return g.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(e,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return g.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(e,"BytesSizeMismatchError",{enumerable:!0,get:function(){return g.BytesSizeMismatchError}}),Object.defineProperty(e,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return g.DecodeLogDataMismatch}}),Object.defineProperty(e,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return g.DecodeLogTopicsMismatch}}),Object.defineProperty(e,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return g.InvalidAbiDecodingTypeError}}),Object.defineProperty(e,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return g.InvalidAbiEncodingTypeError}}),Object.defineProperty(e,"InvalidArrayError",{enumerable:!0,get:function(){return g.InvalidArrayError}}),Object.defineProperty(e,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return g.InvalidDefinitionTypeError}}),Object.defineProperty(e,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return g.UnsupportedPackedAbiType}});var v=ze();Object.defineProperty(e,"InvalidAddressError",{enumerable:!0,get:function(){return v.InvalidAddressError}});var j=Q();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return j.BaseError}}),Object.defineProperty(e,"setErrorConfig",{enumerable:!0,get:function(){return j.setErrorConfig}});var w=ou();Object.defineProperty(e,"BlockNotFoundError",{enumerable:!0,get:function(){return w.BlockNotFoundError}});var C=Pm();Object.defineProperty(e,"BundleFailedError",{enumerable:!0,get:function(){return C.BundleFailedError}});var S=hn();Object.defineProperty(e,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return S.ChainDoesNotSupportContract}}),Object.defineProperty(e,"ChainMismatchError",{enumerable:!0,get:function(){return S.ChainMismatchError}}),Object.defineProperty(e,"ChainNotFoundError",{enumerable:!0,get:function(){return S.ChainNotFoundError}}),Object.defineProperty(e,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return S.ClientChainNotConfiguredError}}),Object.defineProperty(e,"InvalidChainIdError",{enumerable:!0,get:function(){return S.InvalidChainIdError}});var R=ht();Object.defineProperty(e,"CallExecutionError",{enumerable:!0,get:function(){return R.CallExecutionError}}),Object.defineProperty(e,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return R.ContractFunctionExecutionError}}),Object.defineProperty(e,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return R.ContractFunctionRevertedError}}),Object.defineProperty(e,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return R.ContractFunctionZeroDataError}}),Object.defineProperty(e,"CounterfactualDeploymentFailedError",{enumerable:!0,get:function(){return R.CounterfactualDeploymentFailedError}}),Object.defineProperty(e,"RawContractError",{enumerable:!0,get:function(){return R.RawContractError}});var I=Us();Object.defineProperty(e,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return I.SizeExceedsPaddingSizeError}}),Object.defineProperty(e,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return I.SliceOffsetOutOfBoundsError}});var q=mr();Object.defineProperty(e,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return q.IntegerOutOfRangeError}}),Object.defineProperty(e,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return q.InvalidBytesBooleanError}}),Object.defineProperty(e,"InvalidHexBooleanError",{enumerable:!0,get:function(){return q.InvalidHexBooleanError}}),Object.defineProperty(e,"InvalidHexValueError",{enumerable:!0,get:function(){return q.InvalidHexValueError}}),Object.defineProperty(e,"SizeOverflowError",{enumerable:!0,get:function(){return q.SizeOverflowError}});var B=Iu();Object.defineProperty(e,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return B.EnsAvatarInvalidNftUriError}}),Object.defineProperty(e,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return B.EnsAvatarUnsupportedNamespaceError}}),Object.defineProperty(e,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return B.EnsAvatarUriResolutionError}}),Object.defineProperty(e,"EnsInvalidChainIdError",{enumerable:!0,get:function(){return B.EnsInvalidChainIdError}});var O=lm();Object.defineProperty(e,"EstimateGasExecutionError",{enumerable:!0,get:function(){return O.EstimateGasExecutionError}});var M=ln();Object.defineProperty(e,"BaseFeeScalarError",{enumerable:!0,get:function(){return M.BaseFeeScalarError}}),Object.defineProperty(e,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return M.Eip1559FeesNotSupportedError}}),Object.defineProperty(e,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return M.MaxFeePerGasTooLowError}});var k=im();Object.defineProperty(e,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return k.FilterTypeNotSupportedError}});var $=st();Object.defineProperty(e,"ExecutionRevertedError",{enumerable:!0,get:function(){return $.ExecutionRevertedError}}),Object.defineProperty(e,"FeeCapTooHighError",{enumerable:!0,get:function(){return $.FeeCapTooHighError}}),Object.defineProperty(e,"FeeCapTooLowError",{enumerable:!0,get:function(){return $.FeeCapTooLowError}}),Object.defineProperty(e,"InsufficientFundsError",{enumerable:!0,get:function(){return $.InsufficientFundsError}}),Object.defineProperty(e,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return $.IntrinsicGasTooHighError}}),Object.defineProperty(e,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return $.IntrinsicGasTooLowError}}),Object.defineProperty(e,"NonceMaxValueError",{enumerable:!0,get:function(){return $.NonceMaxValueError}}),Object.defineProperty(e,"NonceTooHighError",{enumerable:!0,get:function(){return $.NonceTooHighError}}),Object.defineProperty(e,"NonceTooLowError",{enumerable:!0,get:function(){return $.NonceTooLowError}}),Object.defineProperty(e,"TipAboveFeeCapError",{enumerable:!0,get:function(){return $.TipAboveFeeCapError}}),Object.defineProperty(e,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return $.TransactionTypeNotSupportedError}}),Object.defineProperty(e,"UnknownNodeError",{enumerable:!0,get:function(){return $.UnknownNodeError}});var z=Ue();Object.defineProperty(e,"HttpRequestError",{enumerable:!0,get:function(){return z.HttpRequestError}}),Object.defineProperty(e,"RpcRequestError",{enumerable:!0,get:function(){return z.RpcRequestError}}),Object.defineProperty(e,"SocketClosedError",{enumerable:!0,get:function(){return z.SocketClosedError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return z.TimeoutError}}),Object.defineProperty(e,"WebSocketRequestError",{enumerable:!0,get:function(){return z.WebSocketRequestError}});var N=_t();Object.defineProperty(e,"AtomicityNotSupportedError",{enumerable:!0,get:function(){return N.AtomicityNotSupportedError}}),Object.defineProperty(e,"AtomicReadyWalletRejectedUpgradeError",{enumerable:!0,get:function(){return N.AtomicReadyWalletRejectedUpgradeError}}),Object.defineProperty(e,"BundleTooLargeError",{enumerable:!0,get:function(){return N.BundleTooLargeError}}),Object.defineProperty(e,"ChainDisconnectedError",{enumerable:!0,get:function(){return N.ChainDisconnectedError}}),Object.defineProperty(e,"DuplicateIdError",{enumerable:!0,get:function(){return N.DuplicateIdError}}),Object.defineProperty(e,"InternalRpcError",{enumerable:!0,get:function(){return N.InternalRpcError}}),Object.defineProperty(e,"InvalidInputRpcError",{enumerable:!0,get:function(){return N.InvalidInputRpcError}}),Object.defineProperty(e,"InvalidParamsRpcError",{enumerable:!0,get:function(){return N.InvalidParamsRpcError}}),Object.defineProperty(e,"InvalidRequestRpcError",{enumerable:!0,get:function(){return N.InvalidRequestRpcError}}),Object.defineProperty(e,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return N.JsonRpcVersionUnsupportedError}}),Object.defineProperty(e,"LimitExceededRpcError",{enumerable:!0,get:function(){return N.LimitExceededRpcError}}),Object.defineProperty(e,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return N.MethodNotFoundRpcError}}),Object.defineProperty(e,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return N.MethodNotSupportedRpcError}}),Object.defineProperty(e,"ParseRpcError",{enumerable:!0,get:function(){return N.ParseRpcError}}),Object.defineProperty(e,"ProviderDisconnectedError",{enumerable:!0,get:function(){return N.ProviderDisconnectedError}}),Object.defineProperty(e,"ProviderRpcError",{enumerable:!0,get:function(){return N.ProviderRpcError}}),Object.defineProperty(e,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return N.ResourceNotFoundRpcError}}),Object.defineProperty(e,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return N.ResourceUnavailableRpcError}}),Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return N.RpcError}}),Object.defineProperty(e,"SwitchChainError",{enumerable:!0,get:function(){return N.SwitchChainError}}),Object.defineProperty(e,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return N.TransactionRejectedRpcError}}),Object.defineProperty(e,"UnauthorizedProviderError",{enumerable:!0,get:function(){return N.UnauthorizedProviderError}}),Object.defineProperty(e,"UnknownBundleIdError",{enumerable:!0,get:function(){return N.UnknownBundleIdError}}),Object.defineProperty(e,"UnknownRpcError",{enumerable:!0,get:function(){return N.UnknownRpcError}}),Object.defineProperty(e,"UnsupportedChainIdError",{enumerable:!0,get:function(){return N.UnsupportedChainIdError}}),Object.defineProperty(e,"UnsupportedNonOptionalCapabilityError",{enumerable:!0,get:function(){return N.UnsupportedNonOptionalCapabilityError}}),Object.defineProperty(e,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return N.UnsupportedProviderMethodError}}),Object.defineProperty(e,"UserRejectedRequestError",{enumerable:!0,get:function(){return N.UserRejectedRequestError}});var D=Qc();Object.defineProperty(e,"AccountStateConflictError",{enumerable:!0,get:function(){return D.AccountStateConflictError}}),Object.defineProperty(e,"StateAssignmentConflictError",{enumerable:!0,get:function(){return D.StateAssignmentConflictError}});var U=Te();Object.defineProperty(e,"FeeConflictError",{enumerable:!0,get:function(){return U.FeeConflictError}}),Object.defineProperty(e,"InvalidLegacyVError",{enumerable:!0,get:function(){return U.InvalidLegacyVError}}),Object.defineProperty(e,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return U.InvalidSerializableTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return U.InvalidSerializedTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return U.InvalidSerializedTransactionTypeError}}),Object.defineProperty(e,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return U.InvalidStorageKeySizeError}}),Object.defineProperty(e,"TransactionExecutionError",{enumerable:!0,get:function(){return U.TransactionExecutionError}}),Object.defineProperty(e,"TransactionNotFoundError",{enumerable:!0,get:function(){return U.TransactionNotFoundError}}),Object.defineProperty(e,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return U.TransactionReceiptNotFoundError}}),Object.defineProperty(e,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return U.WaitForTransactionReceiptTimeoutError}});var G=Vu();Object.defineProperty(e,"UrlRequiredError",{enumerable:!0,get:function(){return G.UrlRequiredError}});var H=Ym();Object.defineProperty(e,"InvalidDomainError",{enumerable:!0,get:function(){return H.InvalidDomainError}}),Object.defineProperty(e,"InvalidPrimaryTypeError",{enumerable:!0,get:function(){return H.InvalidPrimaryTypeError}}),Object.defineProperty(e,"InvalidStructTypeError",{enumerable:!0,get:function(){return H.InvalidStructTypeError}});var Y=ay();Object.defineProperty(e,"InvalidDecimalNumberError",{enumerable:!0,get:function(){return Y.InvalidDecimalNumberError}});var J=th();Object.defineProperty(e,"EIP1193ProviderRpcError",{enumerable:!0,get:function(){return J.ProviderRpcError}});var X=gt();Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return X.decodeAbiParameters}});var L=rh();Object.defineProperty(e,"decodeDeployData",{enumerable:!0,get:function(){return L.decodeDeployData}});var ee=Ws();Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return ee.decodeErrorResult}});var ae=yn();Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return ae.decodeEventLog}});var de=pu();Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return de.decodeFunctionData}});var ye=ut();Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return ye.decodeFunctionResult}});var fe=De();Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return fe.encodeAbiParameters}});var pe=_n();Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return pe.encodeDeployData}});var be=gu();Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return be.encodeErrorResult}});var ke=Lt();Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return ke.encodeEventTopics}});var qe=Pe();Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return qe.encodeFunctionData}});var W=hu();Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return W.encodeFunctionResult}});var x=qm();Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return x.encodePacked}});var Rt=it();Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return Rt.getAbiItem}});var It=pn();Object.defineProperty(e,"parseEventLogs",{enumerable:!0,get:function(){return It.parseEventLogs}});var we=sm();Object.defineProperty(e,"prepareEncodeFunctionData",{enumerable:!0,get:function(){return we.prepareEncodeFunctionData}});var Fe=Be();Object.defineProperty(e,"checksumAddress",{enumerable:!0,get:function(){return Fe.checksumAddress}}),Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return Fe.getAddress}});var Ae=Fm();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return Ae.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return Ae.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return Ae.getCreateAddress}});var Kt=Ee();Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return Kt.isAddress}});var Rn=Ve();Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return Rn.isAddressEqual}});var dt=Ys();Object.defineProperty(e,"blobsToCommitments",{enumerable:!0,get:function(){return dt.blobsToCommitments}});var Jt=Xs();Object.defineProperty(e,"blobsToProofs",{enumerable:!0,get:function(){return Jt.blobsToProofs}});var Zt=cu();Object.defineProperty(e,"commitmentsToVersionedHashes",{enumerable:!0,get:function(){return Zt.commitmentsToVersionedHashes}});var Re=su();Object.defineProperty(e,"commitmentToVersionedHash",{enumerable:!0,get:function(){return Re.commitmentToVersionedHash}});var In=nh();Object.defineProperty(e,"fromBlobs",{enumerable:!0,get:function(){return In.fromBlobs}});var Cn=oh();Object.defineProperty(e,"sidecarsToVersionedHashes",{enumerable:!0,get:function(){return Cn.sidecarsToVersionedHashes}});var hr=Qs();Object.defineProperty(e,"toBlobSidecars",{enumerable:!0,get:function(){return hr.toBlobSidecars}});var Sn=hm();Object.defineProperty(e,"toBlobs",{enumerable:!0,get:function(){return Sn.toBlobs}});var Ct=_u();Object.defineProperty(e,"ccipRequest",{enumerable:!0,get:function(){return Ct.ccipRequest}}),Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return Ct.ccipRequest}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return Ct.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return Ct.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return Ct.offchainLookupSignature}});var On=En();Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return On.assertCurrentChain}});var Bn=Hm();Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return Bn.defineChain}}),Object.defineProperty(e,"extendSchema",{enumerable:!0,get:function(){return Bn.extendSchema}});var lc=xm();Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return lc.extractChain}});var qn=wt();Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return qn.getChainContractAddress}});var _r=le();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return _r.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return _r.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return _r.concatHex}});var bc=Cu();Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return bc.isBytes}});var mc=_e();Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return mc.isHex}});var vr=pt();Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return vr.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return vr.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return vr.padHex}});var yc=ve();Object.defineProperty(e,"size",{enumerable:!0,get:function(){return yc.size}});var jr=Me();Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return jr.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return jr.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return jr.sliceHex}});var pc=at();Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return pc.trim}});var St=Xc();Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return St.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return St.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return St.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return St.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return St.fromBytes}});var Ot=ue();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return Ot.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return Ot.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return Ot.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return Ot.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return Ot.hexToString}});var gc=Ou();Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return gc.fromRlp}});var Bt=oe();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return Bt.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return Bt.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return Bt.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return Bt.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return Bt.toBytes}});var qt=V();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return qt.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return qt.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return qt.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return qt.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return qt.toHex}});var Er=cn();Object.defineProperty(e,"bytesToRlp",{enumerable:!0,get:function(){return Er.bytesToRlp}}),Object.defineProperty(e,"hexToRlp",{enumerable:!0,get:function(){return Er.hexToRlp}}),Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return Er.toRlp}});var hc=Rm();Object.defineProperty(e,"labelhash",{enumerable:!0,get:function(){return hc.labelhash}});var _c=Au();Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return _c.namehash}});var Pr=ah();Object.defineProperty(e,"toCoinType",{enumerable:!0,get:function(){return Pr.toCoinType}});var vc=vt();Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return vc.getContractError}});var Fn=Js();Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return Fn.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return Fn.formatBlock}});var jc=ct();Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return jc.formatLog}});var Tr=pr();Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return Tr.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return Tr.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return Tr.transactionType}});var Mn=Pn();Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return Mn.defineTransactionReceipt}}),Object.defineProperty(e,"formatTransactionReceipt",{enumerable:!0,get:function(){return Mn.formatTransactionReceipt}});var Yt=Le();Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return Yt.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return Yt.formatTransactionRequest}}),Object.defineProperty(e,"rpcTransactionType",{enumerable:!0,get:function(){return Yt.rpcTransactionType}});var Ec=Bu();Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Ec.isHash}});var Pc=je();Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return Pc.keccak256}});var Tc=$m();Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return Tc.ripemd160}});var wc=iu();Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return wc.sha256}});var Ac=zm();Object.defineProperty(e,"toEventHash",{enumerable:!0,get:function(){return Ac.toEventHash}});var kn=yr();Object.defineProperty(e,"toEventSelector",{enumerable:!0,get:function(){return kn.toEventSelector}}),Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return kn.toEventSelector}});var Wu=Dm();Object.defineProperty(e,"toEventSignature",{enumerable:!0,get:function(){return Wu.toEventSignature}}),Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return Wu.toEventSignature}});var jy=Um();Object.defineProperty(e,"toFunctionHash",{enumerable:!0,get:function(){return jy.toFunctionHash}});var Ku=Ut();Object.defineProperty(e,"toFunctionSelector",{enumerable:!0,get:function(){return Ku.toFunctionSelector}}),Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return Ku.toFunctionSelector}});var Ju=Lm();Object.defineProperty(e,"toFunctionSignature",{enumerable:!0,get:function(){return Ju.toFunctionSignature}}),Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return Ju.toFunctionSignature}});var Ey=vy();Object.defineProperty(e,"defineKzg",{enumerable:!0,get:function(){return Ey.defineKzg}});var Py=ih();Object.defineProperty(e,"setupKzg",{enumerable:!0,get:function(){return Py.setupKzg}});var Zu=Gm();Object.defineProperty(e,"createNonceManager",{enumerable:!0,get:function(){return Zu.createNonceManager}}),Object.defineProperty(e,"nonceManager",{enumerable:!0,get:function(){return Zu.nonceManager}});var Ty=jm();Object.defineProperty(e,"withCache",{enumerable:!0,get:function(){return Ty.withCache}});var wy=ac();Object.defineProperty(e,"withRetry",{enumerable:!0,get:function(){return wy.withRetry}});var Ay=qu();Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return Ay.withTimeout}});var Ry=sh();Object.defineProperty(e,"compactSignatureToSignature",{enumerable:!0,get:function(){return Ry.compactSignatureToSignature}});var Iy=Tn();Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return Iy.hashMessage}});var Rc=wn();Object.defineProperty(e,"hashDomain",{enumerable:!0,get:function(){return Rc.hashDomain}}),Object.defineProperty(e,"hashStruct",{enumerable:!0,get:function(){return Rc.hashStruct}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Rc.hashTypedData}});var Cy=Nu();Object.defineProperty(e,"isErc6492Signature",{enumerable:!0,get:function(){return Cy.isErc6492Signature}});var Sy=Hu();Object.defineProperty(e,"isErc8010Signature",{enumerable:!0,get:function(){return Sy.isErc8010Signature}});var Yu=ch();Object.defineProperty(e,"hexToCompactSignature",{enumerable:!0,get:function(){return Yu.parseCompactSignature}}),Object.defineProperty(e,"parseCompactSignature",{enumerable:!0,get:function(){return Yu.parseCompactSignature}});var Oy=Xm();Object.defineProperty(e,"parseErc6492Signature",{enumerable:!0,get:function(){return Oy.parseErc6492Signature}});var By=Qm();Object.defineProperty(e,"parseErc8010Signature",{enumerable:!0,get:function(){return By.parseErc8010Signature}});var Xu=uh();Object.defineProperty(e,"hexToSignature",{enumerable:!0,get:function(){return Xu.parseSignature}}),Object.defineProperty(e,"parseSignature",{enumerable:!0,get:function(){return Xu.parseSignature}});var qy=jt();Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return qy.recoverAddress}});var Fy=xu();Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Fy.recoverMessageAddress}});var My=tu();Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return My.recoverPublicKey}});var ky=dh();Object.defineProperty(e,"recoverTransactionAddress",{enumerable:!0,get:function(){return ky.recoverTransactionAddress}});var Ny=$u();Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Ny.recoverTypedDataAddress}});var Qu=fh();Object.defineProperty(e,"compactSignatureToHex",{enumerable:!0,get:function(){return Qu.serializeCompactSignature}}),Object.defineProperty(e,"serializeCompactSignature",{enumerable:!0,get:function(){return Qu.serializeCompactSignature}});var Hy=ey();Object.defineProperty(e,"serializeErc6492Signature",{enumerable:!0,get:function(){return Hy.serializeErc6492Signature}});var xy=ty();Object.defineProperty(e,"serializeErc8010Signature",{enumerable:!0,get:function(){return xy.serializeErc8010Signature}});var ed=ly();Object.defineProperty(e,"signatureToHex",{enumerable:!0,get:function(){return ed.serializeSignature}}),Object.defineProperty(e,"serializeSignature",{enumerable:!0,get:function(){return ed.serializeSignature}});var $y=lh();Object.defineProperty(e,"signatureToCompactSignature",{enumerable:!0,get:function(){return $y.signatureToCompactSignature}});var zy=Zm();Object.defineProperty(e,"toPrefixedMessage",{enumerable:!0,get:function(){return zy.toPrefixedMessage}});var Dy=ry();Object.defineProperty(e,"verifyHash",{enumerable:!0,get:function(){return Dy.verifyHash}});var Uy=ny();Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Uy.verifyMessage}});var Ly=oy();Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Ly.verifyTypedData}});var Gy=me();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return Gy.stringify}});var Vy=Ge();Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Vy.assertRequest}});var Ic=sc();Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return Ic.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return Ic.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return Ic.assertTransactionLegacy}});var Wy=zu();Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Wy.getSerializedTransactionType}});var Ky=ec();Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return Ky.getTransactionType}});var Jy=Du();Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return Jy.parseTransaction}});var Zy=Su();Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return Zy.serializeAccessList}});var Yy=cc();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Yy.serializeTransaction}});var Nn=uc();Object.defineProperty(e,"domainSeparator",{enumerable:!0,get:function(){return Nn.domainSeparator}}),Object.defineProperty(e,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Nn.getTypesForEIP712Domain}}),Object.defineProperty(e,"serializeTypedData",{enumerable:!0,get:function(){return Nn.serializeTypedData}}),Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return Nn.validateTypedData}});var Xy=sn();Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return Xy.formatEther}});var Qy=Gt();Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return Qy.formatGwei}});var ep=Ks();Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return ep.formatUnits}});var tp=iy();Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return tp.parseEther}});var rp=sy();Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return rp.parseGwei}});var np=dc();Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return np.parseUnits}})}(Cc)),Cc}export{yh as r};