@recallkit/web 0.1.4 → 0.1.6

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 (82) hide show
  1. package/.next/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/.next/standalone/apps/web/.next/build-manifest.json +3 -3
  3. package/.next/standalone/apps/web/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/apps/web/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/apps/web/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  12. package/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  14. package/.next/standalone/apps/web/.next/server/app/_not-found.rsc +10 -10
  15. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +10 -10
  16. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  17. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  18. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  19. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  20. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/standalone/apps/web/.next/server/app/dashboard/page.js.nft.json +1 -1
  22. package/.next/standalone/apps/web/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/apps/web/.next/server/app/drafts/page.js.nft.json +1 -1
  24. package/.next/standalone/apps/web/.next/server/app/drafts/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/apps/web/.next/server/app/drafts.html +1 -1
  26. package/.next/standalone/apps/web/.next/server/app/drafts.rsc +11 -11
  27. package/.next/standalone/apps/web/.next/server/app/drafts.segments/_full.segment.rsc +11 -11
  28. package/.next/standalone/apps/web/.next/server/app/drafts.segments/_head.segment.rsc +4 -4
  29. package/.next/standalone/apps/web/.next/server/app/drafts.segments/_index.segment.rsc +5 -5
  30. package/.next/standalone/apps/web/.next/server/app/drafts.segments/_tree.segment.rsc +2 -2
  31. package/.next/standalone/apps/web/.next/server/app/drafts.segments/drafts/__PAGE__.segment.rsc +3 -3
  32. package/.next/standalone/apps/web/.next/server/app/drafts.segments/drafts.segment.rsc +3 -3
  33. package/.next/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  34. package/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  35. package/.next/standalone/apps/web/.next/server/app/settings/page.js +1 -1
  36. package/.next/standalone/apps/web/.next/server/app/settings/page.js.nft.json +1 -1
  37. package/.next/standalone/apps/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  38. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0.tinn8._.js +1 -1
  39. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__02c3lor._.js +2 -2
  40. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0hrpxy.._.js +1 -1
  41. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0ow36av._.js +2 -2
  42. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0wx8gk4._.js +2 -2
  43. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0yg7ej8._.js +1 -1
  44. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0z2~2fs._.js +2 -2
  45. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__00h_.aj._.js +3 -0
  46. package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__05-esa~._.js → [root-of-the-server]__0zfr~8h._.js} +2 -2
  47. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_10pjf4t._.js → _04h0enx._.js} +2 -2
  48. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0_m6tad._.js +3 -0
  49. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0a6a559._.js +1 -1
  50. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web_src_components_MemoryInbox_tsx_06~ue19._.js +1 -1
  51. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0da.ul0._.js → node_modules_03t0hyh._.js} +4 -4
  52. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_06leb0b._.js +5 -0
  53. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0o0sug~._.js +3 -0
  54. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0tf7xqo._.js +4 -0
  55. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_@arkiv-network_sdk_dist_index_0zka99u.js +1 -1
  56. package/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +3 -3
  57. package/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
  58. package/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
  59. package/.next/standalone/apps/web/.next/server/server-reference-manifest.js +1 -1
  60. package/.next/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  61. package/.next/standalone/apps/web/.next/static/chunks/007vrv97qw0fu.js +1 -0
  62. package/.next/standalone/apps/web/.next/static/chunks/{08c7su~rm2529.js → 07__7jmilo0u2.js} +1 -1
  63. package/.next/standalone/apps/web/.next/static/chunks/08hq.xfduf~c7.js +2 -0
  64. package/.next/standalone/apps/web/.next/static/chunks/0_ncj8ctq5zot.js +1 -0
  65. package/.next/standalone/apps/web/.next/static/chunks/0_or-u-ei8ah5.js +1 -0
  66. package/.next/standalone/apps/web/.next/static/chunks/0rxa6rzmxf70g.js +1 -0
  67. package/.next/standalone/apps/web/.next/static/chunks/{109p-e7tkz-v3.css → 0wpfsvunk_5v2.css} +2 -2
  68. package/.next/standalone/apps/web/.next/static/chunks/0xkdw.a62l3mt.js +3 -0
  69. package/.next/standalone/apps/web/.next/static/chunks/{0r4a.59338j1f.js → 16b--96~p49mc.js} +3 -3
  70. package/.next/standalone/apps/web/package.json +1 -1
  71. package/package.json +2 -2
  72. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__037y449._.js +0 -3
  73. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0n9rgln._.js +0 -5
  74. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_@arkiv-network_sdk_dist_index_09aplzu.js +0 -4
  75. package/.next/standalone/apps/web/.next/static/chunks/092078emhzxbx.js +0 -1
  76. package/.next/standalone/apps/web/.next/static/chunks/0a23is-7bwqad.js +0 -1
  77. package/.next/standalone/apps/web/.next/static/chunks/0blerw9w2oove.js +0 -1
  78. package/.next/standalone/apps/web/.next/static/chunks/0clgj0i2abb0a.js +0 -2
  79. package/.next/standalone/apps/web/.next/static/chunks/0yqdr065nqco7.js +0 -3
  80. /package/.next/standalone/apps/web/.next/static/{mUUJpQVdd9eBHg4f6gcEj → f2xHT_lrxA8vnoU5aQmQI}/_buildManifest.js +0 -0
  81. /package/.next/standalone/apps/web/.next/static/{mUUJpQVdd9eBHg4f6gcEj → f2xHT_lrxA8vnoU5aQmQI}/_clientMiddlewareManifest.js +0 -0
  82. /package/.next/standalone/apps/web/.next/static/{mUUJpQVdd9eBHg4f6gcEj → f2xHT_lrxA8vnoU5aQmQI}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69934,e=>{"use strict";let t="2.50.4",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};class n extends Error{constructor(e,a={}){const i=a.cause instanceof n?a.cause.details:a.cause?.message?a.cause.message:a.details,s=a.cause instanceof n&&a.cause.docsPath||a.docsPath,o=r.getDocsUrl?.({...a,docsPath:s});super([e||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...i?[`Details: ${i}`]:[],...r.version?[`Version: ${r.version}`]:[]].join("\n"),a.cause?{cause:a.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=s,this.metaMessages=a.metaMessages,this.name=a.name??this.name,this.shortMessage=e,this.version=t}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}e.s(["BaseError",0,n,"setErrorConfig",0,function(e){r=e}],69934)},564,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({max:e,min:t,signed:r,size:n,value:a}){super(`Number "${a}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class n extends t.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends t.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class i extends t.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}class s extends t.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",0,r,"InvalidBytesBooleanError",0,n,"InvalidHexBooleanError",0,a,"InvalidHexValueError",0,i,"SizeOverflowError",0,s])},8406,e=>{"use strict";e.s(["trim",0,function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())n++;else break;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}])},80841,e=>{"use strict";e.s(["isHex",0,function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}])},1319,e=>{"use strict";var t=e.i(80841);e.s(["size",0,function(e){return(0,t.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}])},87286,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class n extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}e.s(["InvalidBytesLengthError",0,a,"SizeExceedsPaddingSizeError",0,n,"SliceOffsetOutOfBoundsError",0,r])},22411,e=>{"use strict";var t=e.i(87286);function r(e,{dir:n,size:a=32}={}){if(null===a)return e;let i=e.replace("0x","");if(i.length>2*a)throw new t.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:a,type:"hex"});return`0x${i["right"===n?"padEnd":"padStart"](2*a,"0")}`}function n(e,{dir:r,size:a=32}={}){if(null===a)return e;if(e.length>a)throw new t.SizeExceedsPaddingSizeError({size:e.length,targetSize:a,type:"bytes"});let i=new Uint8Array(a);for(let t=0;t<a;t++){let n="right"===r;i[n?t:a-t-1]=e[n?t:e.length-t-1]}return i}e.s(["pad",0,function(e,{dir:t,size:a=32}={}){return"string"==typeof e?r(e,{dir:t,size:a}):n(e,{dir:t,size:a})},"padBytes",0,n,"padHex",0,r])},69936,75107,e=>{"use strict";e.s(["boolToBytes",()=>m,"hexToBytes",()=>h,"numberToBytes",()=>g,"stringToBytes",()=>v,"toBytes",()=>b],69936);var t=e.i(69934),r=e.i(80841),n=e.i(22411),a=e.i(50323);e.s(["boolToHex",()=>u,"bytesToHex",()=>c,"numberToHex",()=>d,"stringToHex",()=>p,"toHex",()=>o],75107);var i=e.i(564);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?d(e,t):"string"==typeof e?p(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,n.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=s[e[t]];let i=`0x${r}`;return"number"==typeof t.size?((0,a.assertSize)(i,{size:t.size}),(0,n.pad)(i,{dir:"right",size:t.size})):i}function d(e,t={}){let r,{signed:a,size:s}=t,o=BigInt(e);s?r=a?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof r&&a?-r-1n:0;if(r&&o>r||o<u){let t="bigint"==typeof e?"n":"";throw new i.IntegerOutOfRangeError({max:r?`${r}${t}`:void 0,min:`${u}${t}`,signed:a,size:s,value:`${e}${t}`})}let c=`0x${(a&&o<0?(1n<<BigInt(8*s))+BigInt(o):o).toString(16)}`;return s?(0,n.pad)(c,{size:s}):c}let l=new TextEncoder;function p(e,t={}){return c(l.encode(e),t)}let f=new TextEncoder;function b(e,t={}){return"number"==typeof e||"bigint"==typeof e?g(e,t):"boolean"==typeof e?m(e,t):(0,r.isHex)(e)?h(e,t):v(e,t)}function m(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.assertSize)(r,{size:t.size}),(0,n.pad)(r,{size:t.size})):r}function y(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function h(e,r={}){let i=e;r.size&&((0,a.assertSize)(i,{size:r.size}),i=(0,n.pad)(i,{dir:"right",size:r.size}));let s=i.slice(2);s.length%2&&(s=`0${s}`);let o=s.length/2,u=new Uint8Array(o);for(let e=0,r=0;e<o;e++){let n=y(s.charCodeAt(r++)),a=y(s.charCodeAt(r++));if(void 0===n||void 0===a)throw new t.BaseError(`Invalid byte sequence ("${s[r-2]}${s[r-1]}" in "${s}").`);u[e]=16*n+a}return u}function g(e,t){return h(d(e,t))}function v(e,t={}){let r=f.encode(e);return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,n.pad)(r,{dir:"right",size:t.size})):r}},50323,e=>{"use strict";e.s(["assertSize",()=>i,"fromHex",()=>s,"hexToBigInt",()=>o,"hexToBool",()=>u,"hexToNumber",()=>c,"hexToString",()=>d]);var t=e.i(564),r=e.i(1319),n=e.i(8406),a=e.i(69936);function i(e,{size:n}){if((0,r.size)(e)>n)throw new t.SizeOverflowError({givenSize:(0,r.size)(e),maxSize:n})}function s(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?c(e,r):"bigint"===n?o(e,r):"string"===n?d(e,r):"boolean"===n?u(e,r):(0,a.hexToBytes)(e,r)}function o(e,t={}){let{signed:r}=t;t.size&&i(e,{size:t.size});let n=BigInt(e);if(!r)return n;let a=(e.length-2)/2;return n<=(1n<<8n*BigInt(a)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function u(e,r={}){let a=e;if(r.size&&(i(a,{size:r.size}),a=(0,n.trim)(a)),"0x00"===(0,n.trim)(a))return!1;if("0x01"===(0,n.trim)(a))return!0;throw new t.InvalidHexBooleanError(a)}function c(e,r={}){let n=o(e,r),a=Number(n);if(!Number.isSafeInteger(a))throw new t.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:r.signed,size:r.size,value:`${n}n`});return a}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(i(r,{size:t.size}),r=(0,n.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},94125,e=>{"use strict";var t=e.i(564),r=e.i(8406),n=e.i(50323),a=e.i(75107);function i(e,t={}){void 0!==t.size&&(0,n.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,n.hexToBigInt)(r,t)}function s(e,a={}){let i=e;if(void 0!==a.size&&((0,n.assertSize)(i,{size:a.size}),i=(0,r.trim)(i)),i.length>1||i[0]>1)throw new t.InvalidBytesBooleanError(i);return!!i[0]}function o(e,t={}){void 0!==t.size&&(0,n.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,n.hexToNumber)(r,t)}function u(e,t={}){let a=e;return void 0!==t.size&&((0,n.assertSize)(a,{size:t.size}),a=(0,r.trim)(a,{dir:"right"})),new TextDecoder().decode(a)}e.s(["bytesToBigInt",0,i,"bytesToBool",0,s,"bytesToNumber",0,o,"bytesToString",0,u,"fromBytes",0,function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?o(e,r):"bigint"===n?i(e,r):"boolean"===n?s(e,r):"string"===n?u(e,r):(0,a.bytesToHex)(e,r)}])},85973,55723,44616,76486,e=>{"use strict";let t={gwei:9,wei:18},r={ether:-9,wei:9};function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[a,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${i?`.${i}`:""}`}e.s(["etherUnits",0,t,"gweiUnits",0,r,"weiUnits",0,{ether:-18,gwei:-9}],55723),e.s(["formatUnits",0,n],44616),e.s(["formatEther",0,function(e,r="wei"){return n(e,t[r])}],85973),e.s(["formatGwei",0,function(e,t="wei"){return n(e,r[t])}],76486)},93702,e=>{"use strict";var t=e.i(85973),r=e.i(76486),n=e.i(69934);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class i extends n.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class s extends n.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class o extends n.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u extends n.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class c extends n.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}class d extends n.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class l extends n.BaseError{constructor(e,{account:n,docsPath:i,chain:s,data:o,gas:u,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:p,to:f,value:b}){const m=a({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:f,value:void 0!==b&&`${(0,t.formatEther)(b)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:u,gasPrice:void 0!==c&&`${(0,r.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==d&&`${(0,r.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,r.formatGwei)(l)} gwei`,nonce:p});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class p extends n.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:a}){let i="Transaction";r&&void 0!==a&&(i=`Transaction at block time "${r}" at index "${a}"`),e&&void 0!==a&&(i=`Transaction at block hash "${e}" at index "${a}"`),t&&void 0!==a&&(i=`Transaction at block number "${t}" at index "${a}"`),n&&(i=`Transaction with hash "${n}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class f extends n.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class b extends n.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class m extends n.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["FeeConflictError",0,i,"InvalidLegacyVError",0,s,"InvalidSerializableTransactionError",0,o,"InvalidSerializedTransactionError",0,c,"InvalidSerializedTransactionTypeError",0,u,"InvalidStorageKeySizeError",0,d,"TransactionExecutionError",0,l,"TransactionNotFoundError",0,p,"TransactionReceiptNotFoundError",0,f,"TransactionReceiptRevertedError",0,b,"WaitForTransactionReceiptTimeoutError",0,m,"prettyPrint",0,a])},89991,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}])},32881,e=>{"use strict";e.s(["formatAbiItem",()=>r,"formatAbiParams",()=>n]);var t=e.i(70204);function r(e,{includeName:a=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new t.InvalidDefinitionTypeError(e.type);return`${e.name}(${n(e.inputs,{includeName:a})})`}function n(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${n(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},70204,e=>{"use strict";e.s(["AbiConstructorNotFoundError",()=>a,"AbiConstructorParamsNotFoundError",()=>i,"AbiDecodingDataSizeInvalidError",()=>s,"AbiDecodingDataSizeTooSmallError",()=>o,"AbiDecodingZeroDataError",()=>u,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>d,"AbiEncodingLengthMismatchError",()=>l,"AbiErrorInputsNotFoundError",()=>p,"AbiErrorNotFoundError",()=>f,"AbiErrorSignatureNotFoundError",()=>b,"AbiEventNotFoundError",()=>h,"AbiEventSignatureEmptyTopicsError",()=>m,"AbiEventSignatureNotFoundError",()=>y,"AbiFunctionNotFoundError",()=>g,"AbiFunctionOutputsNotFoundError",()=>v,"AbiFunctionSignatureNotFoundError",()=>w,"AbiItemAmbiguityError",()=>x,"BytesSizeMismatchError",()=>E,"DecodeLogDataMismatch",()=>$,"DecodeLogTopicsMismatch",()=>A,"InvalidAbiDecodingTypeError",()=>T,"InvalidAbiEncodingTypeError",()=>I,"InvalidArrayError",()=>P,"InvalidDefinitionTypeError",()=>B,"UnsupportedPackedAbiType",()=>M]);var t=e.i(32881),r=e.i(1319),n=e.i(69934);class a extends n.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class i extends n.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class s extends n.BaseError{constructor({data:e,size:t}){super(`Data size of ${t} bytes is invalid.
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69934,e=>{"use strict";let t="2.50.4",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};class n extends Error{constructor(e,a={}){const i=a.cause instanceof n?a.cause.details:a.cause?.message?a.cause.message:a.details,s=a.cause instanceof n&&a.cause.docsPath||a.docsPath,o=r.getDocsUrl?.({...a,docsPath:s});super([e||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...i?[`Details: ${i}`]:[],...r.version?[`Version: ${r.version}`]:[]].join("\n"),a.cause?{cause:a.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=s,this.metaMessages=a.metaMessages,this.name=a.name??this.name,this.shortMessage=e,this.version=t}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}e.s(["BaseError",0,n,"setErrorConfig",0,function(e){r=e}],69934)},564,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({max:e,min:t,signed:r,size:n,value:a}){super(`Number "${a}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class n extends t.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends t.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class i extends t.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}class s extends t.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",0,r,"InvalidBytesBooleanError",0,n,"InvalidHexBooleanError",0,a,"InvalidHexValueError",0,i,"SizeOverflowError",0,s])},8406,e=>{"use strict";e.s(["trim",0,function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())n++;else break;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}])},80841,e=>{"use strict";e.s(["isHex",0,function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}])},1319,e=>{"use strict";var t=e.i(80841);e.s(["size",0,function(e){return(0,t.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}])},87286,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class n extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}e.s(["InvalidBytesLengthError",0,a,"SizeExceedsPaddingSizeError",0,n,"SliceOffsetOutOfBoundsError",0,r])},22411,e=>{"use strict";var t=e.i(87286);function r(e,{dir:n,size:a=32}={}){if(null===a)return e;let i=e.replace("0x","");if(i.length>2*a)throw new t.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:a,type:"hex"});return`0x${i["right"===n?"padEnd":"padStart"](2*a,"0")}`}function n(e,{dir:r,size:a=32}={}){if(null===a)return e;if(e.length>a)throw new t.SizeExceedsPaddingSizeError({size:e.length,targetSize:a,type:"bytes"});let i=new Uint8Array(a);for(let t=0;t<a;t++){let n="right"===r;i[n?t:a-t-1]=e[n?t:e.length-t-1]}return i}e.s(["pad",0,function(e,{dir:t,size:a=32}={}){return"string"==typeof e?r(e,{dir:t,size:a}):n(e,{dir:t,size:a})},"padBytes",0,n,"padHex",0,r])},69936,75107,e=>{"use strict";e.s(["boolToBytes",()=>m,"hexToBytes",()=>h,"numberToBytes",()=>g,"stringToBytes",()=>v,"toBytes",()=>b],69936);var t=e.i(69934),r=e.i(80841),n=e.i(22411),a=e.i(50323);e.s(["boolToHex",()=>u,"bytesToHex",()=>c,"numberToHex",()=>d,"stringToHex",()=>p,"toHex",()=>o],75107);var i=e.i(564);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?d(e,t):"string"==typeof e?p(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,n.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=s[e[t]];let i=`0x${r}`;return"number"==typeof t.size?((0,a.assertSize)(i,{size:t.size}),(0,n.pad)(i,{dir:"right",size:t.size})):i}function d(e,t={}){let r,{signed:a,size:s}=t,o=BigInt(e);s?r=a?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof r&&a?-r-1n:0;if(r&&o>r||o<u){let t="bigint"==typeof e?"n":"";throw new i.IntegerOutOfRangeError({max:r?`${r}${t}`:void 0,min:`${u}${t}`,signed:a,size:s,value:`${e}${t}`})}let c=`0x${(a&&o<0?(1n<<BigInt(8*s))+BigInt(o):o).toString(16)}`;return s?(0,n.pad)(c,{size:s}):c}let l=new TextEncoder;function p(e,t={}){return c(l.encode(e),t)}let f=new TextEncoder;function b(e,t={}){return"number"==typeof e||"bigint"==typeof e?g(e,t):"boolean"==typeof e?m(e,t):(0,r.isHex)(e)?h(e,t):v(e,t)}function m(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.assertSize)(r,{size:t.size}),(0,n.pad)(r,{size:t.size})):r}function y(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function h(e,r={}){let i=e;r.size&&((0,a.assertSize)(i,{size:r.size}),i=(0,n.pad)(i,{dir:"right",size:r.size}));let s=i.slice(2);s.length%2&&(s=`0${s}`);let o=s.length/2,u=new Uint8Array(o);for(let e=0,r=0;e<o;e++){let n=y(s.charCodeAt(r++)),a=y(s.charCodeAt(r++));if(void 0===n||void 0===a)throw new t.BaseError(`Invalid byte sequence ("${s[r-2]}${s[r-1]}" in "${s}").`);u[e]=16*n+a}return u}function g(e,t){return h(d(e,t))}function v(e,t={}){let r=f.encode(e);return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,n.pad)(r,{dir:"right",size:t.size})):r}},50323,e=>{"use strict";e.s(["assertSize",()=>i,"fromHex",()=>s,"hexToBigInt",()=>o,"hexToBool",()=>u,"hexToNumber",()=>c,"hexToString",()=>d]);var t=e.i(564),r=e.i(1319),n=e.i(8406),a=e.i(69936);function i(e,{size:n}){if((0,r.size)(e)>n)throw new t.SizeOverflowError({givenSize:(0,r.size)(e),maxSize:n})}function s(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?c(e,r):"bigint"===n?o(e,r):"string"===n?d(e,r):"boolean"===n?u(e,r):(0,a.hexToBytes)(e,r)}function o(e,t={}){let{signed:r}=t;t.size&&i(e,{size:t.size});let n=BigInt(e);if(!r)return n;let a=(e.length-2)/2;return n<=(1n<<8n*BigInt(a)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function u(e,r={}){let a=e;if(r.size&&(i(a,{size:r.size}),a=(0,n.trim)(a)),"0x00"===(0,n.trim)(a))return!1;if("0x01"===(0,n.trim)(a))return!0;throw new t.InvalidHexBooleanError(a)}function c(e,r={}){let n=o(e,r),a=Number(n);if(!Number.isSafeInteger(a))throw new t.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:r.signed,size:r.size,value:`${n}n`});return a}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(i(r,{size:t.size}),r=(0,n.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},94125,e=>{"use strict";var t=e.i(564),r=e.i(8406),n=e.i(50323),a=e.i(75107);function i(e,t={}){void 0!==t.size&&(0,n.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,n.hexToBigInt)(r,t)}function s(e,a={}){let i=e;if(void 0!==a.size&&((0,n.assertSize)(i,{size:a.size}),i=(0,r.trim)(i)),i.length>1||i[0]>1)throw new t.InvalidBytesBooleanError(i);return!!i[0]}function o(e,t={}){void 0!==t.size&&(0,n.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,n.hexToNumber)(r,t)}function u(e,t={}){let a=e;return void 0!==t.size&&((0,n.assertSize)(a,{size:t.size}),a=(0,r.trim)(a,{dir:"right"})),new TextDecoder().decode(a)}e.s(["bytesToBigInt",0,i,"bytesToBool",0,s,"bytesToNumber",0,o,"bytesToString",0,u,"fromBytes",0,function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?o(e,r):"bigint"===n?i(e,r):"boolean"===n?s(e,r):"string"===n?u(e,r):(0,a.bytesToHex)(e,r)}])},55723,44616,e=>{"use strict";e.s(["etherUnits",0,{gwei:9,wei:18},"gweiUnits",0,{ether:-9,wei:9},"weiUnits",0,{ether:-18,gwei:-9}],55723),e.s(["formatUnits",0,function(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[a,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${i?`.${i}`:""}`}],44616)},85973,e=>{"use strict";var t=e.i(55723),r=e.i(44616);e.s(["formatEther",0,function(e,n="wei"){return(0,r.formatUnits)(e,t.etherUnits[n])}])},76486,e=>{"use strict";var t=e.i(55723),r=e.i(44616);e.s(["formatGwei",0,function(e,n="wei"){return(0,r.formatUnits)(e,t.gweiUnits[n])}])},93702,e=>{"use strict";var t=e.i(85973),r=e.i(76486),n=e.i(69934);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class i extends n.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class s extends n.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class o extends n.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u extends n.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class c extends n.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}class d extends n.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class l extends n.BaseError{constructor(e,{account:n,docsPath:i,chain:s,data:o,gas:u,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:p,to:f,value:b}){const m=a({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:f,value:void 0!==b&&`${(0,t.formatEther)(b)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:u,gasPrice:void 0!==c&&`${(0,r.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==d&&`${(0,r.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,r.formatGwei)(l)} gwei`,nonce:p});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class p extends n.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:a}){let i="Transaction";r&&void 0!==a&&(i=`Transaction at block time "${r}" at index "${a}"`),e&&void 0!==a&&(i=`Transaction at block hash "${e}" at index "${a}"`),t&&void 0!==a&&(i=`Transaction at block number "${t}" at index "${a}"`),n&&(i=`Transaction with hash "${n}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class f extends n.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class b extends n.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class m extends n.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["FeeConflictError",0,i,"InvalidLegacyVError",0,s,"InvalidSerializableTransactionError",0,o,"InvalidSerializedTransactionError",0,c,"InvalidSerializedTransactionTypeError",0,u,"InvalidStorageKeySizeError",0,d,"TransactionExecutionError",0,l,"TransactionNotFoundError",0,p,"TransactionReceiptNotFoundError",0,f,"TransactionReceiptRevertedError",0,b,"WaitForTransactionReceiptTimeoutError",0,m,"prettyPrint",0,a])},89991,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}])},32881,e=>{"use strict";e.s(["formatAbiItem",()=>r,"formatAbiParams",()=>n]);var t=e.i(70204);function r(e,{includeName:a=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new t.InvalidDefinitionTypeError(e.type);return`${e.name}(${n(e.inputs,{includeName:a})})`}function n(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${n(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},70204,e=>{"use strict";e.s(["AbiConstructorNotFoundError",()=>a,"AbiConstructorParamsNotFoundError",()=>i,"AbiDecodingDataSizeInvalidError",()=>s,"AbiDecodingDataSizeTooSmallError",()=>o,"AbiDecodingZeroDataError",()=>u,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>d,"AbiEncodingLengthMismatchError",()=>l,"AbiErrorInputsNotFoundError",()=>p,"AbiErrorNotFoundError",()=>f,"AbiErrorSignatureNotFoundError",()=>b,"AbiEventNotFoundError",()=>h,"AbiEventSignatureEmptyTopicsError",()=>m,"AbiEventSignatureNotFoundError",()=>y,"AbiFunctionNotFoundError",()=>g,"AbiFunctionOutputsNotFoundError",()=>v,"AbiFunctionSignatureNotFoundError",()=>w,"AbiItemAmbiguityError",()=>x,"BytesSizeMismatchError",()=>E,"DecodeLogDataMismatch",()=>$,"DecodeLogTopicsMismatch",()=>A,"InvalidAbiDecodingTypeError",()=>T,"InvalidAbiEncodingTypeError",()=>I,"InvalidArrayError",()=>P,"InvalidDefinitionTypeError",()=>B,"UnsupportedPackedAbiType",()=>M]);var t=e.i(32881),r=e.i(1319),n=e.i(69934);class a extends n.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class i extends n.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class s extends n.BaseError{constructor({data:e,size:t}){super(`Data size of ${t} bytes is invalid.
2
2
  Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}class o extends n.BaseError{constructor({data:e,params:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(r,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=r,this.size=n}}class u extends n.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class c extends n.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
3
3
  Expected length: ${e}
4
4
  Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends n.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,r.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class l extends n.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
@@ -19,11 +19,11 @@ Make sure you are using the correct ABI and that the function exists on it.
19
19
  You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends n.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,t.formatAbiItem)(e.abiItem)}\`, and`,`\`${r.type}\` in \`${(0,t.formatAbiItem)(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E extends n.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class $ extends n.BaseError{constructor({abiItem:e,data:r,params:n,size:a}){super(`Data size of ${a} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(n,{includeName:!0})})`,`Data: ${r} (${a} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=r,this.params=n,this.size=a}}class A extends n.BaseError{constructor({abiItem:e,param:r}){super(`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${(0,t.formatAbiItem)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class I extends n.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
20
20
  Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class T extends n.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
21
21
  Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class P extends n.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class B extends n.BaseError{constructor(e){super(`"${e}" is not a valid definition type.
22
- Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class M extends n.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},93429,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class n extends t.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends t.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",0,r,"PositionOutOfBoundsError",0,n,"RecursiveReadLimitExceededError",0,a])},31095,45535,e=>{"use strict";var t=e.i(9361),r=e.i(70525);let n=BigInt(0),a=BigInt(1),i=BigInt(2),s=BigInt(7),o=BigInt(256),u=BigInt(113),c=[],d=[],l=[];for(let e=0,t=a,r=1,p=0;e<24;e++){[r,p]=[p,(2*r+3*p)%5],c.push(2*(5*p+r)),d.push((e+1)*(e+2)/2%64);let f=n;for(let e=0;e<7;e++)(t=(t<<a^(t>>s)*u)%o)&i&&(f^=a<<(a<<BigInt(e))-a);l.push(f)}let p=(0,t.split)(l,!0),f=p[0],b=p[1],m=(e,r,n)=>n>32?(0,t.rotlBH)(e,r,n):(0,t.rotlSH)(e,r,n),y=(e,r,n)=>n>32?(0,t.rotlBL)(e,r,n):(0,t.rotlSL)(e,r,n);class h extends r.Hash{constructor(e,t,n,a=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=a,this.rounds=i,(0,r.anumber)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,r.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,r.swap32IfBE)(this.state32),function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,a=(t+2)%10,i=n[a],s=n[a+1],o=m(i,s,1)^n[r],u=y(i,s,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=u}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=d[r],i=m(t,a,n),s=y(t,a,n),o=c[r];t=e[o],a=e[o+1],e[o]=i,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=f[r],e[1]^=b[r]}(0,r.clean)(n)}(this.state32,this.rounds),(0,r.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);let{blockLen:t,state:n}=this,a=e.length;for(let r=0;r<a;){let i=Math.min(t-this.pos,a-r);for(let t=0;t<i;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,r.aexists)(this,!1),(0,r.abytes)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,a=e.length;r<a;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,r.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new h(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let g=(0,r.createHasher)(()=>new h(136,1,32));e.s(["keccak_256",0,g],45535);var v=e.i(80841),w=e.i(69936),x=e.i(75107);e.s(["keccak256",0,function(e,t){let r=g((0,v.isHex)(e,{strict:!1})?(0,w.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,x.toHex)(r)}],31095)},95312,e=>{"use strict";var t=e.i(69936),r=e.i(31095);e.s(["hashSignature",0,function(e){return(0,r.keccak256)((0,t.toBytes)(e))}])},88035,e=>{"use strict";e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,function(e,t){let r=e.exec(t);return r?.groups},"integerRegex",0,/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,"isTupleRegex",0,/^\(.+?\).*?$/])},26336,25908,66564,85185,e=>{"use strict";var t=e.i(95312),r=e.i(88035);let n=/^tuple(?<array>(\[(\d*)\])*)$/;function a(e){let t="",a=e.length;for(let i=0;i<a;i++)t+=function e(t){let a=t.type;if(n.test(t.type)&&"components"in t){a="(";let i=t.components.length;for(let r=0;r<i;r++)a+=e(t.components[r]),r<i-1&&(a+=", ");let s=(0,r.execTyped)(n,t.type);return a+=`)${s?.array||""}`,e({...t,type:a})}return("indexed"in t&&t.indexed&&(a=`${a} indexed`),t.name)?`${a} ${t.name}`:a}(e[i]),i!==a-1&&(t+=", ");return t}function i(e){return"function"===e.type?`function ${e.name}(${a(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${a(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${a(e.inputs)})`:"error"===e.type?`error ${e.name}(${a(e.inputs)})`:"constructor"===e.type?`constructor(${a(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}e.s(["formatAbiParameters",0,a],25908),e.s(["formatAbiItem",0,i],66564);var s=e.i(69934);let o=e=>(function(e){let t=!0,r="",n=0,a="",i=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}a+=o,r+=o}}if(!i)throw new s.BaseError("Unable to normalize signature.");return a})("string"==typeof e?e:i(e));e.s(["toSignature",0,o],85185),e.s(["toSignatureHash",0,function(e){return(0,t.hashSignature)(o(e))}],26336)},74620,e=>{"use strict";let t=e.i(26336).toSignatureHash;e.s(["toEventSelector",0,t])},8861,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,r])},23838,76677,96516,e=>{"use strict";e.s(["checksumAddress",()=>c,"getAddress",()=>d],23838);var t=e.i(8861),r=e.i(69936),n=e.i(31095);class a extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}e.s(["LruMap",0,a],76677),e.s(["isAddress",()=>o],96516);let i=/^0x[a-fA-F0-9]{40}$/,s=new a(8192);function o(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(s.has(n))return s.get(n);let a=!!i.test(e)&&(e.toLowerCase()===e||!r||c(e)===e);return s.set(n,a),a}let u=new a(8192);function c(e,t){if(u.has(`${e}.${t}`))return u.get(`${e}.${t}`);let a=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,n.keccak256)((0,r.stringToBytes)(a),"bytes"),s=(t?a.substring(`${t}0x`.length):a).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&i[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let o=`0x${s.join("")}`;return u.set(`${e}.${t}`,o),o}function d(e,r){if(!o(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return c(e,r)}},795,e=>{"use strict";var t=e.i(93429);let r={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new t.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new t.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new t.NegativeOffsetError({offset:e});let r=this.position-e;this.assertPosition(r),this.position=r},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new t.NegativeOffsetError({offset:e});let r=this.position+e;this.assertPosition(r),this.position=r},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};e.s(["createCursor",0,function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(r);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}])},90063,e=>{"use strict";var t=e.i(87286),r=e.i(80841),n=e.i(1319);function a(e,r){if("number"==typeof r&&r>0&&r>(0,n.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,n.size)(e)})}function i(e,r,a){if("number"==typeof r&&"number"==typeof a&&(0,n.size)(e)!==a-r)throw new t.SliceOffsetOutOfBoundsError({offset:a,position:"end",size:(0,n.size)(e)})}function s(e,t,r,{strict:n}={}){a(e,t);let o=e.slice(t,r);return n&&i(o,t,r),o}function o(e,t,r,{strict:n}={}){a(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&i(s,t,r),s}e.s(["slice",0,function(e,t,n,{strict:a}={}){return(0,r.isHex)(e,{strict:!1})?o(e,t,n,{strict:a}):s(e,t,n,{strict:a})},"sliceBytes",0,s,"sliceHex",0,o])},49311,47526,42692,4434,e=>{"use strict";var t=e.i(70204),r=e.i(23838),n=e.i(795),a=e.i(1319),i=e.i(90063),s=e.i(8406),o=e.i(94125),u=e.i(69936),c=e.i(75107),d=e.i(8861),l=e.i(69934),p=e.i(564),f=e.i(96516);function b(e){return"string"==typeof e[0]?y(e):m(e)}function m(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function y(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",0,b,"concatBytes",0,m,"concatHex",0,y],47526);var h=e.i(22411);let g=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;e.s(["arrayRegex",0,/^(.*)\[([0-9]*)\]$/,"bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,g],42692);function v(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,a.size)(i)}let r=[],n=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:u}=e[s];o?(r.push((0,c.numberToHex)(t+i,{size:32})),n.push(u),i+=(0,a.size)(u)):r.push(u)}return b([...r,...n])}function w(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,r){if(e.length!==r.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:r.length});let n=v(function({params:e,values:r}){let n=[];for(let s=0;s<e.length;s++)n.push(function e({param:r,value:n}){let s=w(r.type);if(s){let[a,i]=s;return function(r,{length:n,param:a}){let i=null===n;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!i&&r.length!==n)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:r.length,type:`${a.type}[${n}]`});let s=!1,o=[];for(let t=0;t<r.length;t++){let n=e({param:a,value:r[t]});n.dynamic&&(s=!0),o.push(n)}if(i||s){let e=v(o);if(i){let t=(0,c.numberToHex)(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?b([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:b(o.map(({encoded:e})=>e))}}(n,{length:a,param:{...r,type:i}})}if("tuple"===r.type)return function(t,{param:r}){let n=!1,a=[];for(let i=0;i<r.components.length;i++){let s=r.components[i],o=Array.isArray(t)?i:s.name,u=e({param:s,value:t[o]});a.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?v(a):b(a.map(({encoded:e})=>e))}}(n,{param:r});if("address"===r.type){var o=n;if(!(0,f.isAddress)(o))throw new d.InvalidAddressError({address:o});return{dynamic:!1,encoded:(0,h.padHex)(o.toLowerCase())}}if("bool"===r.type){var u=n;if("boolean"!=typeof u)throw new l.BaseError(`Invalid boolean value: "${u}" (type: ${typeof u}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,h.padHex)((0,c.boolToHex)(u))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=g.exec(r.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,a=t?-n-1n:0n;if(e>n||e<a)throw new p.IntegerOutOfRangeError({max:n.toString(),min:a.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,c.numberToHex)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{param:r}){let[,n]=r.type.split("bytes"),i=(0,a.size)(e);if(!n){let t=e;return i%32!=0&&(t=(0,h.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:b([(0,h.padHex)((0,c.numberToHex)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,h.padHex)(e,{dir:"right"})}}(n,{param:r});if("string"===r.type){var m=n;let e=(0,c.stringToHex)(m),t=Math.ceil((0,a.size)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,h.padHex)((0,i.slice)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:b([(0,h.padHex)((0,c.numberToHex)((0,a.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(r.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[s],value:r[s]}));return n}({params:e,values:r}));return 0===n.length?"0x":n},"getArrayComponents",0,w],4434);function x(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(x);let r=w(e.type);return!!(r&&x({...e,type:r[1]}))}e.s(["decodeAbiParameters",0,function(e,d){let l="string"==typeof d?(0,u.hexToBytes)(d):d,p=(0,n.createCursor)(l);if(0===(0,a.size)(l)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,a.size)(d)&&32>(0,a.size)(d))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof d?d:(0,c.bytesToHex)(d),params:e,size:(0,a.size)(d)});let f=0,b=[];for(let n=0;n<e.length;++n){let a=e[n];p.setPosition(f);let[u,d]=function e(n,a,{staticPosition:u}){var d,l,p;let f=w(a.type);if(f){let[t,r]=f;return function(t,r,{length:n,staticPosition:a}){if(!n){let n=a+(0,o.bytesToNumber)(t.readBytes(32)),i=n+32;t.setPosition(n);let s=(0,o.bytesToNumber)(t.readBytes(32)),u=x(r),c=0,d=[];for(let n=0;n<s;++n){t.setPosition(i+(u?32*n:c));let[a,s]=e(t,r,{staticPosition:i});c+=s,d.push(a)}return t.setPosition(a+32),[d,32]}if(x(r)){let i=a+(0,o.bytesToNumber)(t.readBytes(32)),s=[];for(let a=0;a<n;++a){t.setPosition(i+32*a);let[n]=e(t,r,{staticPosition:i});s.push(n)}return t.setPosition(a+32),[s,32]}let i=0,s=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:a+i});i+=o,s.push(n)}return[s,i]}(n,{...a,type:r},{length:t,staticPosition:u})}if("tuple"===a.type)return function(t,r,{staticPosition:n}){let a=0===r.components.length||r.components.some(({name:e})=>!e),i=a?[]:{},s=0;if(x(r)){let u=n+(0,o.bytesToNumber)(t.readBytes(32));for(let n=0;n<r.components.length;++n){let o=r.components[n];t.setPosition(u+s);let[c,d]=e(t,o,{staticPosition:u});s+=d,i[a?n:o?.name]=c}return t.setPosition(n+32),[i,32]}for(let o=0;o<r.components.length;++o){let u=r.components[o],[c,d]=e(t,u,{staticPosition:n});i[a?o:u?.name]=c,s+=d}return[i,s]}(n,a,{staticPosition:u});if("address"===a.type){let e;return e=n.readBytes(32),[(0,r.checksumAddress)((0,c.bytesToHex)((0,i.sliceBytes)(e,-20))),32]}if("bool"===a.type){return d=n,[(0,o.bytesToBool)(d.readBytes(32),{size:32}),32]}if(a.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,a]=t.type.split("bytes");if(!a){let t=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);let n=(0,o.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let a=e.readBytes(n);return e.setPosition(r+32),[(0,c.bytesToHex)(a),32]}return[(0,c.bytesToHex)(e.readBytes(Number.parseInt(a,10),32)),32]}(n,a,{staticPosition:u});if(a.type.startsWith("uint")||a.type.startsWith("int")){let e,t,r;return l=n,e=(p=a).type.startsWith("int"),t=Number.parseInt(p.type.split("int")[1]||"256",10),r=l.readBytes(32),[t>48?(0,o.bytesToBigInt)(r,{signed:e}):(0,o.bytesToNumber)(r,{signed:e}),32]}if("string"===a.type)return function(e,{staticPosition:t}){let r=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(t+r);let n=(0,o.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let a=e.readBytes(n,32),i=(0,o.bytesToString)((0,s.trim)(a));return e.setPosition(t+32),[i,32]}(n,{staticPosition:u});throw new t.InvalidAbiDecodingTypeError(a.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(p,a,{staticPosition:0});f+=d,b.push(u)}return b}],49311)},37195,61460,15373,89513,13238,46561,59118,88776,2094,e=>{"use strict";var t=e.i(88035);let r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(e){return r.test(e)}function a(e){return(0,t.execTyped)(r,e)}let i=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function o(e){return(0,t.execTyped)(i,e)}let u=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(e){return u.test(e)}function d(e){return(0,t.execTyped)(u,e)}let l=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return l.test(e)}function f(e){return(0,t.execTyped)(l,e)}let b=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function m(e){return b.test(e)}function y(e){return(0,t.execTyped)(b,e)}let h=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return h.test(e)}function v(e){return(0,t.execTyped)(h,e)}let w=/^receive\(\) external payable$/;function x(e){return w.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),$=new Set(["indexed"]),A=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",0,$,"execConstructorSignature",0,y,"execErrorSignature",0,a,"execEventSignature",0,o,"execFallbackSignature",0,v,"execFunctionSignature",0,d,"execStructSignature",0,f,"functionModifiers",0,A,"isConstructorSignature",0,m,"isErrorSignature",0,n,"isEventSignature",0,s,"isFallbackSignature",0,g,"isFunctionSignature",0,c,"isReceiveSignature",0,x,"isStructSignature",0,p,"modifiers",0,E],61460);class I extends Error{constructor(e,t={}){const r=t.cause instanceof I?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof I&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.2.3"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class T extends I{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class P extends I{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}e.s(["InvalidAbiItemError",0,class extends I{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}},"UnknownSolidityTypeError",0,P,"UnknownTypeError",0,T],15373);class B extends I{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class M extends I{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class S extends I{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class O extends I{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class R extends I{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiParameterError",0,class extends I{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}},"InvalidAbiParametersError",0,class extends I{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}},"InvalidAbiTypeParameterError",0,R,"InvalidFunctionModifierError",0,O,"InvalidModifierError",0,S,"InvalidParameterError",0,B,"SolidityProtectedKeywordError",0,M],89513);class z extends I{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class F extends I{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class C extends I{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}e.s(["InvalidSignatureError",0,z,"InvalidStructSignatureError",0,C,"UnknownSignatureError",0,F],13238);class N extends I{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}e.s(["CircularReferenceError",0,N],46561);class j extends I{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}e.s(["InvalidParenthesisError",0,j],59118);let k=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function U(e,t={}){if(c(e))return function(e,t={}){let r=d(e);if(!r)throw new z({signature:e,type:"function"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push(G(n[e],{modifiers:A,structs:t,type:"function"}));let s=[];if(r.returns){let e=q(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(G(e[r],{modifiers:A,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:a,outputs:s}}(e,t);if(s(e))return function(e,t={}){let r=o(e);if(!r)throw new z({signature:e,type:"event"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push(G(n[e],{modifiers:$,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}(e,t);if(n(e))return function(e,t={}){let r=a(e);if(!r)throw new z({signature:e,type:"error"});let n=q(r.parameters),i=[],s=n.length;for(let e=0;e<s;e++)i.push(G(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}(e,t);if(m(e))return function(e,t={}){let r=y(e);if(!r)throw new z({signature:e,type:"constructor"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push(G(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:a}}(e,t);if(g(e)){var r=e;let t=v(r);if(!t)throw new z({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(x(e))return{type:"receive",stateMutability:"payable"};throw new F({signature:e})}let H=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,D=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,L=/^u?int$/;function G(e,r){var n,a;let i,s=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`}(e,r?.type,r?.structs);if(k.has(s))return k.get(s);let o=t.isTupleRegex.test(e),u=(0,t.execTyped)(o?D:H,e);if(!u)throw new B({param:e});if(u.name&&("address"===(n=u.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||t.bytesRegex.test(n)||t.integerRegex.test(n)||_.test(n)))throw new M({param:e,name:u.name});let c=u.name?{name:u.name}:{},d="indexed"===u.modifier?{indexed:!0}:{},l=r?.structs??{},p={};if(o){i="tuple";let e=q(u.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(G(e[n],{structs:l}));p={components:t}}else if(u.type in l)i="tuple",p={components:l[u.type]};else if(L.test(u.type))i=`${u.type}256`;else if("address payable"===u.type)i="address";else if(i=u.type,r?.type!=="struct"&&!V(i))throw new P({type:i});if(u.modifier){if(!r?.modifiers?.has?.(u.modifier))throw new S({param:e,type:r?.type,modifier:u.modifier});if(A.has(u.modifier)&&(a=i,!u.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new O({param:e,type:r?.type,modifier:u.modifier})}let f={type:`${i}${u.array??""}`,...c,...d,...p};return k.set(s,f),f}function q(e,t=[],r="",n=0){let a=e.trim().length;for(let i=0;i<a;i++){let a=e[i],s=e.slice(i+1);switch(a){case",":return 0===n?q(s,[...t,r.trim()]):q(s,t,`${r}${a}`,n);case"(":return q(s,t,`${r}${a}`,n+1);case")":return q(s,t,`${r}${a}`,n-1);default:return q(s,t,`${r}${a}`,n)}}if(""===r)return t;if(0!==n)throw new j({current:r,depth:n});return t.push(r.trim()),t}function V(e){return"address"===e||"bool"===e||"function"===e||"string"===e||t.bytesRegex.test(e)||t.integerRegex.test(e)}let _=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function W(e){let r={},n=e.length;for(let t=0;t<n;t++){let n=e[t];if(!p(n))continue;let a=f(n);if(!a)throw new z({signature:n,type:"struct"});let i=a.properties.split(";"),s=[],o=i.length;for(let e=0;e<o;e++){let t=i[e].trim();if(!t)continue;let r=G(t,{type:"struct"});s.push(r)}if(!s.length)throw new C({signature:n});r[a.name]=s}let a={},i=Object.entries(r),s=i.length;for(let e=0;e<s;e++){let[n,s]=i[e];a[n]=function e(r=[],n={},a=new Set){let i=[],s=r.length;for(let o=0;o<s;o++){let s=r[o];if(t.isTupleRegex.test(s.type))i.push(s);else{let r=(0,t.execTyped)(Z,s.type);if(!r?.type)throw new R({abiParameter:s});let{array:o,type:u}=r;if(u in n){if(a.has(u))throw new N({type:u});i.push({...s,type:`tuple${o??""}`,components:e(n[u],n,new Set([...a,u]))})}else if(V(u))i.push(s);else throw new T({type:u})}}return i}(s,r)}return a}e.s(["isSolidityType",0,V,"parseAbiParameter",0,G,"parseSignature",0,U,"splitParameters",0,q],88776);let Z=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseStructs",0,W],2094),e.s(["parseAbi",0,function(e){let t=W(e),r=[],n=e.length;for(let a=0;a<n;a++){let n=e[a];p(n)||r.push(U(n,t))}return r}],37195)},52012,e=>{"use strict";let t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],r=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],n=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],a=[...n,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],i=[...n,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}];e.s(["addressResolverAbi",0,[{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"}]}],"batchGatewayAbi",0,r,"erc1155Abi",0,[{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"}],"erc1271Abi",0,[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],"erc20Abi",0,[{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"}]}],"erc20Abi_bytes32",0,[{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"}]}],"erc4626Abi",0,[{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"}],"erc6492SignatureValidatorAbi",0,[{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"}],"erc721Abi",0,[{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:[]}],"multicall3Abi",0,t,"textResolverAbi",0,[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],"universalResolverResolveAbi",0,a,"universalResolverReverseAbi",0,i])},79617,e=>{"use strict";var t=e.i(90063),r=e.i(26336);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4)])},27173,e=>{"use strict";var t=e.i(70204),r=e.i(80841),n=e.i(96516),a=e.i(74620),i=e.i(79617);e.s(["getAbiItem",0,function(e){let s,{abi:o,args:u=[],name:c}=e,d=(0,r.isHex)(c,{strict:!1}),l=o.filter(e=>d?"function"===e.type?(0,i.toFunctionSelector)(e)===c:"event"===e.type&&(0,a.toEventSelector)(e)===c:"name"in e&&e.name===c);if(0!==l.length){if(1===l.length)return l[0];for(let e of l){if("inputs"in e){if(!u||0===u.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===u.length&&u.every((t,r)=>{let a="inputs"in e&&e.inputs[r];return!!a&&function e(t,r){let a=typeof t,i=r.type;switch(i){case"address":return(0,n.isAddress)(t,{strict:!1});case"bool":return"boolean"===a;case"function":case"string":return"string"===a;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>"object"===a&&e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===a||"bigint"===a;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===a||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,a)})){if(s&&"inputs"in s&&s.inputs){let r=function e(t,r,a){for(let i in t){let s=t[i],o=r[i];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,a[i]);let u=[s.type,o.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,n.isAddress)(a[i],{strict:!1}))return u}}(e.inputs,s.inputs,u);if(r)throw new t.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:s,type:r[1]})}s=e}}}return s||l[0]}}])},547,e=>{"use strict";var t=e.i(70204),r=e.i(49311),n=e.i(27173);let a="/docs/contract/decodeFunctionResult";e.s(["decodeFunctionResult",0,function(e){let{abi:i,args:s,functionName:o,data:u}=e,c=i[0];if(o){let e=(0,n.getAbiItem)({abi:i,args:s,name:o});if(!e)throw new t.AbiFunctionNotFoundError(o,{docsPath:a});c=e}if("function"!==c.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!c.outputs)throw new t.AbiFunctionOutputsNotFoundError(c.name,{docsPath:a});let d=(0,r.decodeAbiParameters)(c.outputs,u);return d&&d.length>1?d:d&&1===d.length?d[0]:void 0}])},56679,37497,e=>{"use strict";var t=e.i(47526),r=e.i(4434),n=e.i(70204),a=e.i(79617),i=e.i(32881),s=e.i(27173);let o="/docs/contract/encodeFunctionData";function u(e){let{abi:t,args:r,functionName:u}=e,c=t[0];if(u){let e=(0,s.getAbiItem)({abi:t,args:r,name:u});if(!e)throw new n.AbiFunctionNotFoundError(u,{docsPath:o});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:o});return{abi:[c],functionName:(0,a.toFunctionSelector)((0,i.formatAbiItem)(c))}}e.s(["prepareEncodeFunctionData",0,u],37497),e.s(["encodeFunctionData",0,function(e){let{args:n}=e,{abi:a,functionName:i}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:u(e),s=a[0],o="inputs"in s&&s.inputs?(0,r.encodeAbiParameters)(s.inputs,n??[]):void 0;return(0,t.concatHex)([i,o??"0x"])}],56679)},5880,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class n extends t.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class a extends t.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class i extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}e.s(["ChainDoesNotSupportContract",0,r,"ChainMismatchError",0,n,"ChainNotFoundError",0,a,"ClientChainNotConfiguredError",0,i,"InvalidChainIdError",0,s])},4195,e=>{"use strict";var t=e.i(5880);e.s(["getChainContractAddress",0,function({blockNumber:e,chain:r,contract:n}){let a=r?.contracts?.[n];if(!a)throw new t.ChainDoesNotSupportContract({chain:r,contract:{name:n}});if(e&&a.blockCreated&&a.blockCreated>e)throw new t.ChainDoesNotSupportContract({blockNumber:e,chain:r,contract:{name:n,blockCreated:a.blockCreated}});return a.address}])},27343,e=>{"use strict";e.s(["panicReasons",0,{1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},"solidityError",0,{inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},"solidityPanic",0,{inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}])},59953,e=>{"use strict";var t=e.i(27343),r=e.i(70204),n=e.i(90063),a=e.i(79617),i=e.i(49311),s=e.i(32881);e.s(["decodeErrorResult",0,function(e){let{abi:o,data:u,cause:c}=e,d=(0,n.slice)(u,0,4);if("0x"===d)throw new r.AbiDecodingZeroDataError({cause:c});let l=[...o||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&d===(0,a.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!l)throw new r.AbiErrorSignatureNotFoundError(d,{docsPath:"/docs/contract/decodeErrorResult",cause:c});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}}])},61295,34888,e=>{"use strict";let t=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r);e.s(["stringify",0,t],34888),e.s(["formatAbiItemWithArgs",0,function({abiItem:e,args:r,includeFunctionName:n=!0,includeName:a=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${a&&e.name?`${e.name}: `:""}${"object"==typeof r[n]?t(r[n]):r[n]}`).join(", ")})`}],61295)},62570,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class n extends t.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r}
22
+ Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class M extends n.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},93429,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class n extends t.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends t.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",0,r,"PositionOutOfBoundsError",0,n,"RecursiveReadLimitExceededError",0,a])},31095,45535,e=>{"use strict";var t=e.i(9361),r=e.i(70525);let n=BigInt(0),a=BigInt(1),i=BigInt(2),s=BigInt(7),o=BigInt(256),u=BigInt(113),c=[],d=[],l=[];for(let e=0,t=a,r=1,p=0;e<24;e++){[r,p]=[p,(2*r+3*p)%5],c.push(2*(5*p+r)),d.push((e+1)*(e+2)/2%64);let f=n;for(let e=0;e<7;e++)(t=(t<<a^(t>>s)*u)%o)&i&&(f^=a<<(a<<BigInt(e))-a);l.push(f)}let p=(0,t.split)(l,!0),f=p[0],b=p[1],m=(e,r,n)=>n>32?(0,t.rotlBH)(e,r,n):(0,t.rotlSH)(e,r,n),y=(e,r,n)=>n>32?(0,t.rotlBL)(e,r,n):(0,t.rotlSL)(e,r,n);class h extends r.Hash{constructor(e,t,n,a=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=a,this.rounds=i,(0,r.anumber)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,r.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,r.swap32IfBE)(this.state32),function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,a=(t+2)%10,i=n[a],s=n[a+1],o=m(i,s,1)^n[r],u=y(i,s,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=u}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=d[r],i=m(t,a,n),s=y(t,a,n),o=c[r];t=e[o],a=e[o+1],e[o]=i,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=f[r],e[1]^=b[r]}(0,r.clean)(n)}(this.state32,this.rounds),(0,r.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);let{blockLen:t,state:n}=this,a=e.length;for(let r=0;r<a;){let i=Math.min(t-this.pos,a-r);for(let t=0;t<i;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,r.aexists)(this,!1),(0,r.abytes)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,a=e.length;r<a;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,r.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new h(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let g=(0,r.createHasher)(()=>new h(136,1,32));e.s(["keccak_256",0,g],45535);var v=e.i(80841),w=e.i(69936),x=e.i(75107);e.s(["keccak256",0,function(e,t){let r=g((0,v.isHex)(e,{strict:!1})?(0,w.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,x.toHex)(r)}],31095)},95312,e=>{"use strict";var t=e.i(69936),r=e.i(31095);e.s(["hashSignature",0,function(e){return(0,r.keccak256)((0,t.toBytes)(e))}])},88035,e=>{"use strict";e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,function(e,t){let r=e.exec(t);return r?.groups},"integerRegex",0,/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,"isTupleRegex",0,/^\(.+?\).*?$/])},26336,25908,66564,85185,e=>{"use strict";var t=e.i(95312),r=e.i(88035);let n=/^tuple(?<array>(\[(\d*)\])*)$/;function a(e){let t="",a=e.length;for(let i=0;i<a;i++)t+=function e(t){let a=t.type;if(n.test(t.type)&&"components"in t){a="(";let i=t.components.length;for(let r=0;r<i;r++)a+=e(t.components[r]),r<i-1&&(a+=", ");let s=(0,r.execTyped)(n,t.type);return a+=`)${s?.array||""}`,e({...t,type:a})}return("indexed"in t&&t.indexed&&(a=`${a} indexed`),t.name)?`${a} ${t.name}`:a}(e[i]),i!==a-1&&(t+=", ");return t}function i(e){return"function"===e.type?`function ${e.name}(${a(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${a(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${a(e.inputs)})`:"error"===e.type?`error ${e.name}(${a(e.inputs)})`:"constructor"===e.type?`constructor(${a(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}e.s(["formatAbiParameters",0,a],25908),e.s(["formatAbiItem",0,i],66564);var s=e.i(69934);let o=e=>(function(e){let t=!0,r="",n=0,a="",i=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}a+=o,r+=o}}if(!i)throw new s.BaseError("Unable to normalize signature.");return a})("string"==typeof e?e:i(e));e.s(["toSignature",0,o],85185),e.s(["toSignatureHash",0,function(e){return(0,t.hashSignature)(o(e))}],26336)},74620,e=>{"use strict";let t=e.i(26336).toSignatureHash;e.s(["toEventSelector",0,t])},8861,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,r])},76677,e=>{"use strict";class t extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}e.s(["LruMap",0,t])},96516,e=>{"use strict";e.s(["isAddress",()=>i]);var t=e.i(76677),r=e.i(23838);let n=/^0x[a-fA-F0-9]{40}$/,a=new t.LruMap(8192);function i(e,t){let{strict:i=!0}=t??{},s=`${e}.${i}`;if(a.has(s))return a.get(s);let o=!!n.test(e)&&(e.toLowerCase()===e||!i||(0,r.checksumAddress)(e)===e);return a.set(s,o),o}},23838,e=>{"use strict";e.s(["checksumAddress",()=>o,"getAddress",()=>u]);var t=e.i(8861),r=e.i(69936),n=e.i(31095),a=e.i(76677),i=e.i(96516);let s=new a.LruMap(8192);function o(e,t){if(s.has(`${e}.${t}`))return s.get(`${e}.${t}`);let a=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,n.keccak256)((0,r.stringToBytes)(a),"bytes"),o=(t?a.substring(`${t}0x`.length):a).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&i[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let u=`0x${o.join("")}`;return s.set(`${e}.${t}`,u),u}function u(e,r){if(!(0,i.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return o(e,r)}},795,e=>{"use strict";var t=e.i(93429);let r={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new t.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new t.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new t.NegativeOffsetError({offset:e});let r=this.position-e;this.assertPosition(r),this.position=r},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new t.NegativeOffsetError({offset:e});let r=this.position+e;this.assertPosition(r),this.position=r},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};e.s(["createCursor",0,function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(r);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}])},90063,e=>{"use strict";var t=e.i(87286),r=e.i(80841),n=e.i(1319);function a(e,r){if("number"==typeof r&&r>0&&r>(0,n.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,n.size)(e)})}function i(e,r,a){if("number"==typeof r&&"number"==typeof a&&(0,n.size)(e)!==a-r)throw new t.SliceOffsetOutOfBoundsError({offset:a,position:"end",size:(0,n.size)(e)})}function s(e,t,r,{strict:n}={}){a(e,t);let o=e.slice(t,r);return n&&i(o,t,r),o}function o(e,t,r,{strict:n}={}){a(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&i(s,t,r),s}e.s(["slice",0,function(e,t,n,{strict:a}={}){return(0,r.isHex)(e,{strict:!1})?o(e,t,n,{strict:a}):s(e,t,n,{strict:a})},"sliceBytes",0,s,"sliceHex",0,o])},47526,e=>{"use strict";function t(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function r(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",0,function(e){return"string"==typeof e[0]?r(e):t(e)},"concatBytes",0,t,"concatHex",0,r])},4434,42692,e=>{"use strict";var t=e.i(70204),r=e.i(8861),n=e.i(69934),a=e.i(564),i=e.i(96516),s=e.i(47526),o=e.i(22411),u=e.i(1319),c=e.i(90063),d=e.i(75107);let l=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;e.s(["arrayRegex",0,/^(.*)\[([0-9]*)\]$/,"bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,l],42692);function p(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:a}=e[r];n?t+=32:t+=(0,u.size)(a)}let r=[],n=[],a=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:o}=e[i];s?(r.push((0,d.numberToHex)(t+a,{size:32})),n.push(o),a+=(0,u.size)(o)):r.push(o)}return(0,s.concat)([...r,...n])}function f(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,b){if(e.length!==b.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:b.length});let m=p(function({params:e,values:b}){let m=[];for(let y=0;y<e.length;y++)m.push(function e({param:b,value:m}){let y=f(b.type);if(y){let[r,n]=y;return function(r,{length:n,param:a}){let i=null===n;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!i&&r.length!==n)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:r.length,type:`${a.type}[${n}]`});let o=!1,u=[];for(let t=0;t<r.length;t++){let n=e({param:a,value:r[t]});n.dynamic&&(o=!0),u.push(n)}if(i||o){let e=p(u);if(i){let t=(0,d.numberToHex)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,s.concat)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.concat)(u.map(({encoded:e})=>e))}}(m,{length:r,param:{...b,type:n}})}if("tuple"===b.type)return function(t,{param:r}){let n=!1,a=[];for(let i=0;i<r.components.length;i++){let s=r.components[i],o=Array.isArray(t)?i:s.name,u=e({param:s,value:t[o]});a.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?p(a):(0,s.concat)(a.map(({encoded:e})=>e))}}(m,{param:b});if("address"===b.type){var h=m;if(!(0,i.isAddress)(h))throw new r.InvalidAddressError({address:h});return{dynamic:!1,encoded:(0,o.padHex)(h.toLowerCase())}}if("bool"===b.type){var g=m;if("boolean"!=typeof g)throw new n.BaseError(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,o.padHex)((0,d.boolToHex)(g))}}if(b.type.startsWith("uint")||b.type.startsWith("int")){let e=b.type.startsWith("int"),[,,t="256"]=l.exec(b.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new a.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,d.numberToHex)(e,{size:32,signed:t})}}(m,{signed:e,size:Number(t)})}if(b.type.startsWith("bytes"))return function(e,{param:r}){let[,n]=r.type.split("bytes"),a=(0,u.size)(e);if(!n){let t=e;return a%32!=0&&(t=(0,o.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.concat)([(0,o.padHex)((0,d.numberToHex)(a,{size:32})),t])}}if(a!==Number.parseInt(n,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,o.padHex)(e,{dir:"right"})}}(m,{param:b});if("string"===b.type){var v=m;let e=(0,d.stringToHex)(v),t=Math.ceil((0,u.size)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,o.padHex)((0,c.slice)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.concat)([(0,o.padHex)((0,d.numberToHex)((0,u.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(b.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[y],value:b[y]}));return m}({params:e,values:b}));return 0===m.length?"0x":m},"getArrayComponents",0,f],4434)},49311,e=>{"use strict";var t=e.i(70204),r=e.i(23838),n=e.i(795),a=e.i(1319),i=e.i(90063),s=e.i(8406),o=e.i(94125),u=e.i(69936),c=e.i(75107),d=e.i(4434);function l(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(l);let r=(0,d.getArrayComponents)(e.type);return!!(r&&l({...e,type:r[1]}))}e.s(["decodeAbiParameters",0,function(e,p){let f="string"==typeof p?(0,u.hexToBytes)(p):p,b=(0,n.createCursor)(f);if(0===(0,a.size)(f)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,a.size)(p)&&32>(0,a.size)(p))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof p?p:(0,c.bytesToHex)(p),params:e,size:(0,a.size)(p)});let m=0,y=[];for(let n=0;n<e.length;++n){let a=e[n];b.setPosition(m);let[u,p]=function e(n,a,{staticPosition:u}){var p,f,b;let m=(0,d.getArrayComponents)(a.type);if(m){let[t,r]=m;return function(t,r,{length:n,staticPosition:a}){if(!n){let n=a+(0,o.bytesToNumber)(t.readBytes(32)),i=n+32;t.setPosition(n);let s=(0,o.bytesToNumber)(t.readBytes(32)),u=l(r),c=0,d=[];for(let n=0;n<s;++n){t.setPosition(i+(u?32*n:c));let[a,s]=e(t,r,{staticPosition:i});c+=s,d.push(a)}return t.setPosition(a+32),[d,32]}if(l(r)){let i=a+(0,o.bytesToNumber)(t.readBytes(32)),s=[];for(let a=0;a<n;++a){t.setPosition(i+32*a);let[n]=e(t,r,{staticPosition:i});s.push(n)}return t.setPosition(a+32),[s,32]}let i=0,s=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:a+i});i+=o,s.push(n)}return[s,i]}(n,{...a,type:r},{length:t,staticPosition:u})}if("tuple"===a.type)return function(t,r,{staticPosition:n}){let a=0===r.components.length||r.components.some(({name:e})=>!e),i=a?[]:{},s=0;if(l(r)){let u=n+(0,o.bytesToNumber)(t.readBytes(32));for(let n=0;n<r.components.length;++n){let o=r.components[n];t.setPosition(u+s);let[c,d]=e(t,o,{staticPosition:u});s+=d,i[a?n:o?.name]=c}return t.setPosition(n+32),[i,32]}for(let o=0;o<r.components.length;++o){let u=r.components[o],[c,d]=e(t,u,{staticPosition:n});i[a?o:u?.name]=c,s+=d}return[i,s]}(n,a,{staticPosition:u});if("address"===a.type){let e;return e=n.readBytes(32),[(0,r.checksumAddress)((0,c.bytesToHex)((0,i.sliceBytes)(e,-20))),32]}if("bool"===a.type){return p=n,[(0,o.bytesToBool)(p.readBytes(32),{size:32}),32]}if(a.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,a]=t.type.split("bytes");if(!a){let t=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);let n=(0,o.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let a=e.readBytes(n);return e.setPosition(r+32),[(0,c.bytesToHex)(a),32]}return[(0,c.bytesToHex)(e.readBytes(Number.parseInt(a,10),32)),32]}(n,a,{staticPosition:u});if(a.type.startsWith("uint")||a.type.startsWith("int")){let e,t,r;return f=n,e=(b=a).type.startsWith("int"),t=Number.parseInt(b.type.split("int")[1]||"256",10),r=f.readBytes(32),[t>48?(0,o.bytesToBigInt)(r,{signed:e}):(0,o.bytesToNumber)(r,{signed:e}),32]}if("string"===a.type)return function(e,{staticPosition:t}){let r=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(t+r);let n=(0,o.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let a=e.readBytes(n,32),i=(0,o.bytesToString)((0,s.trim)(a));return e.setPosition(t+32),[i,32]}(n,{staticPosition:u});throw new t.InvalidAbiDecodingTypeError(a.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,a,{staticPosition:0});m+=p,y.push(u)}return y}])},37195,61460,15373,89513,13238,46561,59118,88776,2094,e=>{"use strict";var t=e.i(88035);let r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(e){return r.test(e)}function a(e){return(0,t.execTyped)(r,e)}let i=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function o(e){return(0,t.execTyped)(i,e)}let u=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(e){return u.test(e)}function d(e){return(0,t.execTyped)(u,e)}let l=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return l.test(e)}function f(e){return(0,t.execTyped)(l,e)}let b=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function m(e){return b.test(e)}function y(e){return(0,t.execTyped)(b,e)}let h=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return h.test(e)}function v(e){return(0,t.execTyped)(h,e)}let w=/^receive\(\) external payable$/;function x(e){return w.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),$=new Set(["indexed"]),A=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",0,$,"execConstructorSignature",0,y,"execErrorSignature",0,a,"execEventSignature",0,o,"execFallbackSignature",0,v,"execFunctionSignature",0,d,"execStructSignature",0,f,"functionModifiers",0,A,"isConstructorSignature",0,m,"isErrorSignature",0,n,"isEventSignature",0,s,"isFallbackSignature",0,g,"isFunctionSignature",0,c,"isReceiveSignature",0,x,"isStructSignature",0,p,"modifiers",0,E],61460);class I extends Error{constructor(e,t={}){const r=t.cause instanceof I?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof I&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.2.3"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class T extends I{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class P extends I{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}e.s(["InvalidAbiItemError",0,class extends I{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}},"UnknownSolidityTypeError",0,P,"UnknownTypeError",0,T],15373);class B extends I{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class M extends I{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class S extends I{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class O extends I{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class R extends I{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiParameterError",0,class extends I{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}},"InvalidAbiParametersError",0,class extends I{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}},"InvalidAbiTypeParameterError",0,R,"InvalidFunctionModifierError",0,O,"InvalidModifierError",0,S,"InvalidParameterError",0,B,"SolidityProtectedKeywordError",0,M],89513);class z extends I{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class F extends I{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class C extends I{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}e.s(["InvalidSignatureError",0,z,"InvalidStructSignatureError",0,C,"UnknownSignatureError",0,F],13238);class N extends I{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}e.s(["CircularReferenceError",0,N],46561);class j extends I{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}e.s(["InvalidParenthesisError",0,j],59118);let k=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function U(e,t={}){if(c(e))return function(e,t={}){let r=d(e);if(!r)throw new z({signature:e,type:"function"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push(G(n[e],{modifiers:A,structs:t,type:"function"}));let s=[];if(r.returns){let e=q(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(G(e[r],{modifiers:A,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:a,outputs:s}}(e,t);if(s(e))return function(e,t={}){let r=o(e);if(!r)throw new z({signature:e,type:"event"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push(G(n[e],{modifiers:$,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}(e,t);if(n(e))return function(e,t={}){let r=a(e);if(!r)throw new z({signature:e,type:"error"});let n=q(r.parameters),i=[],s=n.length;for(let e=0;e<s;e++)i.push(G(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}(e,t);if(m(e))return function(e,t={}){let r=y(e);if(!r)throw new z({signature:e,type:"constructor"});let n=q(r.parameters),a=[],i=n.length;for(let e=0;e<i;e++)a.push(G(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:a}}(e,t);if(g(e)){var r=e;let t=v(r);if(!t)throw new z({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(x(e))return{type:"receive",stateMutability:"payable"};throw new F({signature:e})}let H=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,D=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,L=/^u?int$/;function G(e,r){var n,a;let i,s=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`}(e,r?.type,r?.structs);if(k.has(s))return k.get(s);let o=t.isTupleRegex.test(e),u=(0,t.execTyped)(o?D:H,e);if(!u)throw new B({param:e});if(u.name&&("address"===(n=u.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||t.bytesRegex.test(n)||t.integerRegex.test(n)||_.test(n)))throw new M({param:e,name:u.name});let c=u.name?{name:u.name}:{},d="indexed"===u.modifier?{indexed:!0}:{},l=r?.structs??{},p={};if(o){i="tuple";let e=q(u.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(G(e[n],{structs:l}));p={components:t}}else if(u.type in l)i="tuple",p={components:l[u.type]};else if(L.test(u.type))i=`${u.type}256`;else if("address payable"===u.type)i="address";else if(i=u.type,r?.type!=="struct"&&!V(i))throw new P({type:i});if(u.modifier){if(!r?.modifiers?.has?.(u.modifier))throw new S({param:e,type:r?.type,modifier:u.modifier});if(A.has(u.modifier)&&(a=i,!u.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new O({param:e,type:r?.type,modifier:u.modifier})}let f={type:`${i}${u.array??""}`,...c,...d,...p};return k.set(s,f),f}function q(e,t=[],r="",n=0){let a=e.trim().length;for(let i=0;i<a;i++){let a=e[i],s=e.slice(i+1);switch(a){case",":return 0===n?q(s,[...t,r.trim()]):q(s,t,`${r}${a}`,n);case"(":return q(s,t,`${r}${a}`,n+1);case")":return q(s,t,`${r}${a}`,n-1);default:return q(s,t,`${r}${a}`,n)}}if(""===r)return t;if(0!==n)throw new j({current:r,depth:n});return t.push(r.trim()),t}function V(e){return"address"===e||"bool"===e||"function"===e||"string"===e||t.bytesRegex.test(e)||t.integerRegex.test(e)}let _=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function W(e){let r={},n=e.length;for(let t=0;t<n;t++){let n=e[t];if(!p(n))continue;let a=f(n);if(!a)throw new z({signature:n,type:"struct"});let i=a.properties.split(";"),s=[],o=i.length;for(let e=0;e<o;e++){let t=i[e].trim();if(!t)continue;let r=G(t,{type:"struct"});s.push(r)}if(!s.length)throw new C({signature:n});r[a.name]=s}let a={},i=Object.entries(r),s=i.length;for(let e=0;e<s;e++){let[n,s]=i[e];a[n]=function e(r=[],n={},a=new Set){let i=[],s=r.length;for(let o=0;o<s;o++){let s=r[o];if(t.isTupleRegex.test(s.type))i.push(s);else{let r=(0,t.execTyped)(Z,s.type);if(!r?.type)throw new R({abiParameter:s});let{array:o,type:u}=r;if(u in n){if(a.has(u))throw new N({type:u});i.push({...s,type:`tuple${o??""}`,components:e(n[u],n,new Set([...a,u]))})}else if(V(u))i.push(s);else throw new T({type:u})}}return i}(s,r)}return a}e.s(["isSolidityType",0,V,"parseAbiParameter",0,G,"parseSignature",0,U,"splitParameters",0,q],88776);let Z=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseStructs",0,W],2094),e.s(["parseAbi",0,function(e){let t=W(e),r=[],n=e.length;for(let a=0;a<n;a++){let n=e[a];p(n)||r.push(U(n,t))}return r}],37195)},52012,e=>{"use strict";let t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],r=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],n=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],a=[...n,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],i=[...n,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}];e.s(["addressResolverAbi",0,[{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"}]}],"batchGatewayAbi",0,r,"erc1155Abi",0,[{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"}],"erc1271Abi",0,[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],"erc20Abi",0,[{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"}]}],"erc20Abi_bytes32",0,[{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"}]}],"erc4626Abi",0,[{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"}],"erc6492SignatureValidatorAbi",0,[{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"}],"erc721Abi",0,[{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:[]}],"multicall3Abi",0,t,"textResolverAbi",0,[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],"universalResolverResolveAbi",0,a,"universalResolverReverseAbi",0,i])},79617,e=>{"use strict";var t=e.i(90063),r=e.i(26336);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4)])},27173,e=>{"use strict";var t=e.i(70204),r=e.i(80841),n=e.i(96516),a=e.i(74620),i=e.i(79617);e.s(["getAbiItem",0,function(e){let s,{abi:o,args:u=[],name:c}=e,d=(0,r.isHex)(c,{strict:!1}),l=o.filter(e=>d?"function"===e.type?(0,i.toFunctionSelector)(e)===c:"event"===e.type&&(0,a.toEventSelector)(e)===c:"name"in e&&e.name===c);if(0!==l.length){if(1===l.length)return l[0];for(let e of l){if("inputs"in e){if(!u||0===u.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===u.length&&u.every((t,r)=>{let a="inputs"in e&&e.inputs[r];return!!a&&function e(t,r){let a=typeof t,i=r.type;switch(i){case"address":return(0,n.isAddress)(t,{strict:!1});case"bool":return"boolean"===a;case"function":case"string":return"string"===a;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>"object"===a&&e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===a||"bigint"===a;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===a||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,a)})){if(s&&"inputs"in s&&s.inputs){let r=function e(t,r,a){for(let i in t){let s=t[i],o=r[i];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,a[i]);let u=[s.type,o.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,n.isAddress)(a[i],{strict:!1}))return u}}(e.inputs,s.inputs,u);if(r)throw new t.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:s,type:r[1]})}s=e}}}return s||l[0]}}])},547,e=>{"use strict";var t=e.i(70204),r=e.i(49311),n=e.i(27173);let a="/docs/contract/decodeFunctionResult";e.s(["decodeFunctionResult",0,function(e){let{abi:i,args:s,functionName:o,data:u}=e,c=i[0];if(o){let e=(0,n.getAbiItem)({abi:i,args:s,name:o});if(!e)throw new t.AbiFunctionNotFoundError(o,{docsPath:a});c=e}if("function"!==c.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!c.outputs)throw new t.AbiFunctionOutputsNotFoundError(c.name,{docsPath:a});let d=(0,r.decodeAbiParameters)(c.outputs,u);return d&&d.length>1?d:d&&1===d.length?d[0]:void 0}])},56679,37497,e=>{"use strict";var t=e.i(47526),r=e.i(4434),n=e.i(70204),a=e.i(79617),i=e.i(32881),s=e.i(27173);let o="/docs/contract/encodeFunctionData";function u(e){let{abi:t,args:r,functionName:u}=e,c=t[0];if(u){let e=(0,s.getAbiItem)({abi:t,args:r,name:u});if(!e)throw new n.AbiFunctionNotFoundError(u,{docsPath:o});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:o});return{abi:[c],functionName:(0,a.toFunctionSelector)((0,i.formatAbiItem)(c))}}e.s(["prepareEncodeFunctionData",0,u],37497),e.s(["encodeFunctionData",0,function(e){let{args:n}=e,{abi:a,functionName:i}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:u(e),s=a[0],o="inputs"in s&&s.inputs?(0,r.encodeAbiParameters)(s.inputs,n??[]):void 0;return(0,t.concatHex)([i,o??"0x"])}],56679)},5880,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class n extends t.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class a extends t.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class i extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}e.s(["ChainDoesNotSupportContract",0,r,"ChainMismatchError",0,n,"ChainNotFoundError",0,a,"ClientChainNotConfiguredError",0,i,"InvalidChainIdError",0,s])},4195,e=>{"use strict";var t=e.i(5880);e.s(["getChainContractAddress",0,function({blockNumber:e,chain:r,contract:n}){let a=r?.contracts?.[n];if(!a)throw new t.ChainDoesNotSupportContract({chain:r,contract:{name:n}});if(e&&a.blockCreated&&a.blockCreated>e)throw new t.ChainDoesNotSupportContract({blockNumber:e,chain:r,contract:{name:n,blockCreated:a.blockCreated}});return a.address}])},27343,e=>{"use strict";e.s(["panicReasons",0,{1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},"solidityError",0,{inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},"solidityPanic",0,{inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}])},59953,e=>{"use strict";var t=e.i(27343),r=e.i(70204),n=e.i(90063),a=e.i(79617),i=e.i(49311),s=e.i(32881);e.s(["decodeErrorResult",0,function(e){let{abi:o,data:u,cause:c}=e,d=(0,n.slice)(u,0,4);if("0x"===d)throw new r.AbiDecodingZeroDataError({cause:c});let l=[...o||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&d===(0,a.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!l)throw new r.AbiErrorSignatureNotFoundError(d,{docsPath:"/docs/contract/decodeErrorResult",cause:c});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}}])},34888,e=>{"use strict";e.s(["stringify",0,(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)])},61295,e=>{"use strict";var t=e.i(34888);e.s(["formatAbiItemWithArgs",0,function({abiItem:e,args:r,includeFunctionName:n=!0,includeName:a=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${a&&e.name?`${e.name}: `:""}${"object"==typeof r[n]?(0,t.stringify)(r[n]):r[n]}`).join(", ")})`}])},62570,e=>{"use strict";var t=e.i(69934);class r extends t.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class n extends t.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r}
23
23
  `,"")}e.s(["AccountStateConflictError",0,r,"StateAssignmentConflictError",0,n,"prettyStateOverride",0,function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e} ${t}:
24
24
  `;return r.nonce&&(n+=` nonce: ${r.nonce}
25
25
  `),r.balance&&(n+=` balance: ${r.balance}
26
26
  `),r.code&&(n+=` code: ${r.code}
27
27
  `),r.state&&(n+=" state:\n",n+=a(r.state)),r.stateDiff&&(n+=" stateDiff:\n",n+=a(r.stateDiff)),n}," State Override:\n").slice(0,-1)}])},63710,e=>{"use strict";e.s(["getAbortError",0,function(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let t=Error("This operation was aborted");return t.name="AbortError",t},"getContractAddress",0,e=>e,"getUrl",0,e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}},"isAbortError",0,function(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}])},78023,e=>{"use strict";var t=e.i(89991),r=e.i(27343),n=e.i(59953),a=e.i(32881),i=e.i(61295),s=e.i(27173),o=e.i(85973),u=e.i(76486),c=e.i(70204),d=e.i(69934),l=e.i(62570),p=e.i(93702),f=e.i(63710);class b extends d.BaseError{constructor(e,{account:r,docsPath:n,chain:a,data:i,gas:s,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:b,to:m,value:y,stateOverride:h}){const g=r?(0,t.parseAccount)(r):void 0;let v=(0,p.prettyPrint)({from:g?.address,to:m,value:void 0!==y&&`${(0,o.formatEther)(y)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:void 0!==c&&`${(0,u.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==d&&`${(0,u.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==f&&`${(0,u.formatGwei)(f)} gwei`,nonce:b});h&&(v+=`
28
28
  ${(0,l.prettyStateOverride)(h)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class m extends d.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:u,sender:c}){const d=(0,s.getAbiItem)({abi:t,args:r,name:u}),l=d?(0,i.formatAbiItemWithArgs)({abiItem:d,args:r,includeFunctionName:!1,includeName:!1}):void 0,b=d?(0,a.formatAbiItem)(d,{includeName:!0}):void 0,m=(0,p.prettyPrint)({address:n&&(0,f.getContractAddress)(n),function:b,args:l&&"()"!==l&&`${[...Array(u?.length??0).keys()].map(()=>" ").join("")}${l}`,sender:c});super(e.shortMessage||`An unknown error occurred while executing the contract function "${u}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],m&&"Contract Call:",m].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=u,this.sender=c}}class y extends d.BaseError{constructor({abi:e,data:t,functionName:s,message:o,cause:u}){let d,l,p,f,b;if(t&&"0x"!==t)try{const{abiItem:s,errorName:o,args:c}=l=(0,n.decodeErrorResult)({abi:e,data:t,cause:u});if("Error"===o)f=c[0];else if("Panic"===o){const[e]=c;f=r.panicReasons[e]}else{const e=s?(0,a.formatAbiItem)(s,{includeName:!0}):void 0,t=s&&c?(0,i.formatAbiItemWithArgs)({abiItem:s,args:c,includeFunctionName:!1,includeName:!1}):void 0;p=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){d=e}else o&&(f=o);d instanceof c.AbiErrorSignatureNotFoundError&&(b=d.signature,p=[`Unable to decode signature "${b}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${b}.`]),super(f&&"execution reverted"!==f||b?[`The contract function "${s}" reverted with the following ${b?"signature":"reason"}:`,f||b].join("\n"):`The contract function "${s}" reverted.`,{cause:d??u,metaMessages:p,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=t,this.reason=f,this.signature=b}}class h extends d.BaseError{constructor({functionName:e,cause:t}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}class g extends d.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class v extends d.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}e.s(["CallExecutionError",0,b,"ContractFunctionExecutionError",0,m,"ContractFunctionRevertedError",0,y,"ContractFunctionZeroDataError",0,h,"CounterfactualDeploymentFailedError",0,g,"RawContractError",0,v])},16819,e=>{"use strict";var t=e.i(70204),r=e.i(90063),n=e.i(79617),a=e.i(49311),i=e.i(32881);e.s(["decodeFunctionData",0,function(e){let{abi:s,data:o}=e,u=(0,r.slice)(o,0,4),c=s.find(e=>"function"===e.type&&u===(0,n.toFunctionSelector)((0,i.formatAbiItem)(e)));if(!c)throw new t.AbiFunctionSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,a.decodeAbiParameters)(c.inputs,(0,r.slice)(o,4)):void 0}}])},48302,e=>{"use strict";var t=e.i(70204),r=e.i(47526),n=e.i(79617),a=e.i(4434),i=e.i(32881),s=e.i(27173);let o="/docs/contract/encodeErrorResult";e.s(["encodeErrorResult",0,function(e){let{abi:u,errorName:c,args:d}=e,l=u[0];if(c){let e=(0,s.getAbiItem)({abi:u,args:d,name:c});if(!e)throw new t.AbiErrorNotFoundError(c,{docsPath:o});l=e}if("error"!==l.type)throw new t.AbiErrorNotFoundError(void 0,{docsPath:o});let p=(0,i.formatAbiItem)(l),f=(0,n.toFunctionSelector)(p),b="0x";if(d&&d.length>0){if(!l.inputs)throw new t.AbiErrorInputsNotFoundError(l.name,{docsPath:o});b=(0,a.encodeAbiParameters)(l.inputs,d)}return(0,r.concatHex)([f,b])}])},55933,e=>{"use strict";var t=e.i(70204),r=e.i(4434),n=e.i(27173);let a="/docs/contract/encodeFunctionResult";e.s(["encodeFunctionResult",0,function(e){let{abi:i,functionName:s,result:o}=e,u=i[0];if(s){let e=(0,n.getAbiItem)({abi:i,name:s});if(!e)throw new t.AbiFunctionNotFoundError(s,{docsPath:a});u=e}if("function"!==u.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!u.outputs)throw new t.AbiFunctionOutputsNotFoundError(u.name,{docsPath:a});let c=(()=>{if(0===u.outputs.length)return[];if(1===u.outputs.length)return[o];if(Array.isArray(o))return o;throw new t.InvalidArrayError(o)})();return(0,r.encodeAbiParameters)(u.outputs,c)}])},61147,e=>{"use strict";var t=e.i(52012),r=e.i(27343),n=e.i(16819),a=e.i(48302),i=e.i(55933);let s="x-batch-gateway:true";async function o(e){let{data:u,ccipRequest:c}=e,{args:[d]}=(0,n.decodeFunctionData)({abi:t.batchGatewayAbi,data:u}),l=[],p=[];return await Promise.all(d.map(async(e,n)=>{try{p[n]=e.urls.includes(s)?await o({data:e.data,ccipRequest:c}):await c(e),l[n]=!1}catch(e){var i;l[n]=!0,p[n]="HttpRequestError"===(i=e).name&&i.status?(0,a.encodeErrorResult)({abi:t.batchGatewayAbi,errorName:"HttpError",args:[i.status,i.shortMessage]}):(0,a.encodeErrorResult)({abi:[r.solidityError],errorName:"Error",args:["shortMessage"in i?i.shortMessage:i.message]})}})),(0,i.encodeFunctionResult)({abi:t.batchGatewayAbi,functionName:"query",result:[l,p]})}e.s(["localBatchGatewayRequest",0,o,"localBatchGatewayUrl",0,s])},95767,83856,e=>{"use strict";var t=e.i(34888),r=e.i(69934),n=e.i(63710);class a extends r.BaseError{constructor({body:e,cause:r,details:a,headers:i,status:s,url:o}){super("HTTP request failed.",{cause:r,details:a,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,n.getUrl)(o)}`,e&&`Request body: ${(0,t.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=s,this.url=o}}class i extends r.BaseError{constructor({body:e,cause:r,details:a,url:i}){super("WebSocket request failed.",{cause:r,details:a,metaMessages:[`URL: ${(0,n.getUrl)(i)}`,e&&`Request body: ${(0,t.stringify)(e)}`].filter(Boolean),name:"WebSocketRequestError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=i}}class s extends r.BaseError{constructor({body:e,error:r,url:a}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${(0,n.getUrl)(a)}`,`Request body: ${(0,t.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=a}}class o extends r.BaseError{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,n.getUrl)(e)}`].filter(Boolean),name:"SocketClosedError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}class u extends r.BaseError{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,n.getUrl)(r)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}e.s(["HttpRequestError",0,a,"RpcRequestError",0,s,"SocketClosedError",0,o,"TimeoutError",0,u,"WebSocketRequestError",0,i],95767);var c=r;class d extends c.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,name:a,shortMessage:i}){super(i,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof s?e.code:t??-1}}class l extends d{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class p extends d{constructor(e){super(e,{code:p.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class f extends d{constructor(e){super(e,{code:f.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class b extends d{constructor(e,{method:t}={}){super(e,{code:b.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class m extends d{constructor(e){super(e,{code:m.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class y extends d{constructor(e){super(e,{code:y.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class h extends d{constructor(e){super(e,{code:h.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class g extends d{constructor(e){super(e,{code:g.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class v extends d{constructor(e){super(e,{code:v.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class w extends d{constructor(e){super(e,{code:w.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class x extends d{constructor(e,{method:t}={}){super(e,{code:x.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class E extends d{constructor(e){super(e,{code:E.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class $ extends d{constructor(e){super(e,{code:$.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class A extends l{constructor(e){super(e,{code:A.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class I extends l{constructor(e){super(e,{code:I.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class T extends l{constructor(e,{method:t}={}){super(e,{code:T.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class P extends l{constructor(e){super(e,{code:P.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class B extends l{constructor(e){super(e,{code:B.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class M extends l{constructor(e){super(e,{code:M.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class S extends l{constructor(e){super(e,{code:S.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class O extends l{constructor(e){super(e,{code:O.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class R extends l{constructor(e){super(e,{code:R.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class z extends l{constructor(e){super(e,{code:z.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(z,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class F extends l{constructor(e){super(e,{code:F.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(F,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class C extends l{constructor(e){super(e,{code:C.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class N extends l{constructor(e){super(e,{code:N.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(N,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class j extends l{constructor(e){super(e,{code:j.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3}),e.s(["AtomicReadyWalletRejectedUpgradeError",0,C,"AtomicityNotSupportedError",0,N,"BundleTooLargeError",0,F,"ChainDisconnectedError",0,B,"DuplicateIdError",0,R,"InternalRpcError",0,y,"InvalidInputRpcError",0,h,"InvalidParamsRpcError",0,m,"InvalidRequestRpcError",0,f,"JsonRpcVersionUnsupportedError",0,$,"LimitExceededRpcError",0,E,"MethodNotFoundRpcError",0,b,"MethodNotSupportedRpcError",0,x,"ParseRpcError",0,p,"ProviderDisconnectedError",0,P,"ProviderRpcError",0,l,"ResourceNotFoundRpcError",0,g,"ResourceUnavailableRpcError",0,v,"RpcError",0,d,"SwitchChainError",0,M,"TransactionRejectedRpcError",0,w,"UnauthorizedProviderError",0,I,"UnknownBundleIdError",0,z,"UnknownRpcError",0,class extends d{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}},"UnsupportedChainIdError",0,O,"UnsupportedNonOptionalCapabilityError",0,S,"UnsupportedProviderMethodError",0,T,"UserRejectedRequestError",0,A,"WalletConnectSessionSettlementError",0,j],83856)},44318,2376,92239,82721,84251,e=>{"use strict";e.s(["IntegerOutOfRangeError",()=>A,"InvalidLengthError",()=>P,"SizeExceedsPaddingSizeError",()=>S,"SizeOverflowError",()=>B,"SliceOffsetOutOfBoundsError",()=>M,"concat",()=>d,"from",()=>l,"fromBoolean",()=>p,"fromBytes",()=>f,"fromNumber",()=>b,"fromString",()=>m,"padLeft",()=>y,"padRight",()=>h,"size",()=>v,"slice",()=>g,"toBigInt",()=>x,"toNumber",()=>E,"trimLeft",()=>w,"validate",()=>$],84251);class t extends Error{static setStaticOptions(e){t.prototype.docsOrigin=e.docsOrigin,t.prototype.showVersion=e.showVersion,t.prototype.version=e.version}constructor(e,r={}){const n=(()=>{if(r.cause instanceof t){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&"string"==typeof r.cause.details?r.cause.details:r.cause?.message?r.cause.message:r.details})(),a=r.cause instanceof t&&r.cause.docsPath||r.docsPath,i=r.docsOrigin??t.prototype.docsOrigin,s=`${i}${a??""}`,o=!!(r.version??t.prototype.showVersion),u=r.version??t.prototype.version;super([e||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...n||a||o?["",n?`Details: ${n}`:void 0,a?`See: ${s}`:void 0,o?`Version: ${u}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=r.cause,this.details=n,this.docs=s,this.docsOrigin=i,this.docsPath=a,this.shortMessage=e,this.showVersion=o,this.version=u}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}function r(e,t){if(v(e)>t)throw new B({givenSize:v(e),maxSize:t})}function n(e,t){if("number"==typeof t&&t>0&&t>v(e)-1)throw new M({offset:t,position:"start",size:v(e)})}function a(e,t,r){if("number"==typeof t&&"number"==typeof r&&v(e)!==r-t)throw new M({offset:r,position:"end",size:v(e)})}function i(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;let a=e.replace("0x","");if(a.length>2*n)throw new S({size:Math.ceil(a.length/2),targetSize:n,type:"Hex"});return`0x${a["right"===r?"padEnd":"padStart"](2*n,"0")}`}function s(e,t={}){let{dir:r="left"}=t,n=e.replace("0x",""),a=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())a++;else break;return"0"===(n="left"===r?n.slice(a):n.slice(0,n.length-a))?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`}function o(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}Object.defineProperty(t,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"ox@0.1.1"}}),t.setStaticOptions(t.defaultStaticOptions),e.s(["BaseError",0,t],2376),e.s(["assertEndOffset",()=>a,"assertSize",()=>r,"assertStartOffset",()=>n,"pad",()=>i,"trim",()=>s],92239),e.s(["stringify",0,o],82721);let u=new TextEncoder,c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function l(e){return e instanceof Uint8Array?f(e):Array.isArray(e)?f(new Uint8Array(e)):e}function p(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(r(n,t.size),y(n,t.size)):n}function f(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=c[e[t]];let a=`0x${n}`;return"number"==typeof t.size?(r(a,t.size),h(a,t.size)):a}function b(e,t={}){let r,{signed:n,size:a}=t,i=BigInt(e);a?r=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let s="bigint"==typeof r&&n?-r-1n:0;if(r&&i>r||i<s){let t="bigint"==typeof e?"n":"";throw new A({max:r?`${r}${t}`:void 0,min:`${s}${t}`,signed:n,size:a,value:`${e}${t}`})}let o=(n&&i<0?BigInt.asUintN(8*a,BigInt(i)):i).toString(16),u=`0x${o}`;return a?y(u,a):u}function m(e,t={}){return f(u.encode(e),t)}function y(e,t){return i(e,{dir:"left",size:t})}function h(e,t){return i(e,{dir:"right",size:t})}function g(e,t,r,i={}){let{strict:s}=i;n(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return s&&a(o,t,r),o}function v(e){return Math.ceil((e.length-2)/2)}function w(e){return s(e,{dir:"left"})}function x(e,t={}){let{signed:n}=t;t.size&&r(e,t.size);let a=BigInt(e);if(!n)return a;let i=(1n<<8n*BigInt((e.length-2)/2))-1n;return a<=i>>1n?a:a-i-1n}function E(e,t={}){let{signed:r,size:n}=t;return r||n?Number(x(e,t)):Number(e)}function $(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new I(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new T(e)}(e,{strict:r}),!0}catch{return!1}}class A extends t{constructor({max:e,min:t,signed:r,size:n,value:a}){super(`Number \`${a}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class I extends t{constructor(e){super(`Value \`${"object"==typeof e?o(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class T extends t{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class P extends t{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class B extends t{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class M extends t{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class S extends t{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function O(e){return{address:e.address,amount:b(e.amount),index:b(e.index),validatorIndex:b(e.validatorIndex)}}e.s(["toRpc",0,function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:b(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:b(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:b(e.gasLimit)},..."bigint"==typeof e.number&&{number:b(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:b(e.prevRandao)},..."bigint"==typeof e.time&&{time:b(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(O)}}}],44318)},4119,72503,e=>{"use strict";e.s(["aggregate3Signature",0,"0x82ad56cb"],4119),e.s(["deploylessCallViaBytecodeBytecode",0,"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe","deploylessCallViaFactoryBytecode",0,"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe","erc6492SignatureValidatorByteCode",0,"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572","multicall3Bytecode",0,"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"],72503)},89169,e=>{"use strict";var t=e.i(70204),r=e.i(47526),n=e.i(4434);let a="/docs/contract/encodeDeployData";e.s(["encodeDeployData",0,function(e){let{abi:i,args:s,bytecode:o}=e;if(!s||0===s.length)return o;let u=i.find(e=>"type"in e&&"constructor"===e.type);if(!u)throw new t.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in u)||!u.inputs||0===u.inputs.length)throw new t.AbiConstructorParamsNotFoundError({docsPath:a});let c=(0,n.encodeAbiParameters)(u.inputs,s);return(0,r.concatHex)([o,c])}])},6685,e=>{"use strict";var t=e.i(8861),r=e.i(96516);e.s(["isAddressEqual",0,function(e,n){if(!(0,r.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});if(!(0,r.isAddress)(n,{strict:!1}))throw new t.InvalidAddressError({address:n});return e.toLowerCase()===n.toLowerCase()}])},6580,e=>{"use strict";var t=e.i(69934),r=e.i(75107);e.s(["formatBlockParameter",0,function(e){let{blockHash:n,blockNumber:a,blockTag:i,requireCanonical:s}=e;if(void 0!==s&&!n)throw new t.BaseError("`requireCanonical` can only be provided when `blockHash` is set.");return n?s?{blockHash:n,requireCanonical:s}:{blockHash:n}:"bigint"==typeof a?(0,r.numberToHex)(a):i??"latest"}])},53532,e=>{"use strict";var t=e.i(76486),r=e.i(69934);class n extends r.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(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 a extends r.BaseError{constructor({cause:e,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(a,"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:e,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}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:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class o extends r.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
29
- Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends r.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class c extends r.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends r.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class l extends r.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends r.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class f extends r.BaseError{constructor({cause:e,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,t.formatGwei)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(f,"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 b extends r.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}e.s(["ExecutionRevertedError",0,n,"FeeCapTooHighError",0,a,"FeeCapTooLowError",0,i,"InsufficientFundsError",0,c,"IntrinsicGasTooHighError",0,d,"IntrinsicGasTooLowError",0,l,"NonceMaxValueError",0,u,"NonceTooHighError",0,s,"NonceTooLowError",0,o,"TipAboveFeeCapError",0,f,"TransactionTypeNotSupportedError",0,p,"UnknownNodeError",0,b])},79690,67078,64404,45024,20531,9486,71706,26051,e=>{"use strict";var t=e.i(78023),r=e.i(53532),n=e.i(69934),a=e.i(95767),i=e.i(83856);function s(e,t){let a=(e.details||"").toLowerCase(),i=e instanceof n.BaseError?e.walk(e=>e?.code===r.ExecutionRevertedError.code):e;return i instanceof n.BaseError?new r.ExecutionRevertedError({cause:e,message:i.details}):r.ExecutionRevertedError.nodeMessage.test(a)?new r.ExecutionRevertedError({cause:e,message:e.details}):r.FeeCapTooHighError.nodeMessage.test(a)?new r.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):r.FeeCapTooLowError.nodeMessage.test(a)?new r.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):r.NonceTooHighError.nodeMessage.test(a)?new r.NonceTooHighError({cause:e,nonce:t?.nonce}):r.NonceTooLowError.nodeMessage.test(a)?new r.NonceTooLowError({cause:e,nonce:t?.nonce}):r.NonceMaxValueError.nodeMessage.test(a)?new r.NonceMaxValueError({cause:e,nonce:t?.nonce}):r.InsufficientFundsError.nodeMessage.test(a)?new r.InsufficientFundsError({cause:e}):r.IntrinsicGasTooHighError.nodeMessage.test(a)?new r.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):r.IntrinsicGasTooLowError.nodeMessage.test(a)?new r.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):r.TransactionTypeNotSupportedError.nodeMessage.test(a)?new r.TransactionTypeNotSupportedError({cause:e}):r.TipAboveFeeCapError.nodeMessage.test(a)?new r.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new r.UnknownNodeError({cause:e})}e.s(["containsNodeError",0,function(e){return e instanceof i.TransactionRejectedRpcError||e instanceof i.InvalidInputRpcError||e instanceof a.RpcRequestError&&e.code===r.ExecutionRevertedError.code},"getNodeError",0,s],67078),e.s(["getCallError",0,function(e,{docsPath:n,...a}){let i,o=(i=s(e,a))instanceof r.UnknownNodeError?e:i;return new t.CallExecutionError(o,{docsPath:n,...a})}],79690),e.s(["extract",0,function(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let a of Object.keys(n))a in e&&(r[a]=e[a]),n[a]&&"object"==typeof n[a]&&!Array.isArray(n[a])&&t(n[a])}(t(e||{})),r}],64404);var o=e.i(75107);function u(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,a)=>{let i=t(e,a);if(r)for(let e of r)delete i[e];return{...i,...n(e,a)}},type:e})}e.s(["defineFormatter",0,u],45024);let c={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function d(e,t){let r={};return void 0!==e.authorizationList&&(r.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,o.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,o.numberToHex)(BigInt(e.s)):e.s,chainId:(0,o.numberToHex)(e.chainId),nonce:(0,o.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,o.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,o.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(r.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?r.blobs=e.blobs.map(e=>(0,o.bytesToHex)(e)):r.blobs=e.blobs),void 0!==e.data&&(r.data=e.data),e.account&&(r.from=e.account.address),void 0!==e.from&&(r.from=e.from),void 0!==e.gas&&(r.gas=(0,o.numberToHex)(e.gas)),void 0!==e.gasPrice&&(r.gasPrice=(0,o.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=(0,o.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(r.maxFeePerGas=(0,o.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=(0,o.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(r.nonce=(0,o.numberToHex)(e.nonce)),void 0!==e.to&&(r.to=e.to),void 0!==e.type&&(r.type=c[e.type]),void 0!==e.value&&(r.value=(0,o.numberToHex)(e.value)),r}let l=u("transactionRequest",d);function p(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}e.s(["defineTransactionRequest",0,l,"formatTransactionRequest",0,d,"rpcTransactionType",0,c],20531),e.s(["withResolvers",0,p],9486);let f=new Map;e.s(["createBatchScheduler",0,function({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:a}){let i=async()=>{let t=o();s();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{a&&Array.isArray(e)&&e.sort(a);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},s=()=>f.delete(t),o=()=>f.get(t)||[],u=e=>f.set(t,[...o(),e]);return{flush:s,async schedule(e){let{promise:t,resolve:a,reject:s}=p();return(r?.([...o().map(({args:e})=>e),e])&&i(),o().length>0)?u({args:e,resolve:a,reject:s}):(u({args:e,resolve:a,reject:s}),setTimeout(i,n)),t}}}],71706);var b=e.i(8861),m=e.i(87286),y=e.i(62570),h=e.i(96516);function g(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new m.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new m.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}e.s(["serializeStateOverride",0,function(e){if(!e)return;let t={};for(let{address:r,...n}of e){if(!(0,h.isAddress)(r,{strict:!1}))throw new b.InvalidAddressError({address:r});if(t[r])throw new y.AccountStateConflictError({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:a,code:i}=e,s={};if(void 0!==i&&(s.code=i),void 0!==t&&(s.balance=(0,o.numberToHex)(t)),void 0!==r&&(s.nonce=(0,o.numberToHex)(r)),void 0!==n&&(s.state=g(n)),void 0!==a){if(s.state)throw new y.StateAssignmentConflictError;s.stateDiff=g(a)}return s}(n)}return t}],26051)},74768,e=>{"use strict";e.s(["maxInt104",0,2n**(104n-1n)-1n,"maxInt112",0,2n**(112n-1n)-1n,"maxInt120",0,2n**(120n-1n)-1n,"maxInt128",0,2n**(128n-1n)-1n,"maxInt136",0,2n**(136n-1n)-1n,"maxInt144",0,2n**(144n-1n)-1n,"maxInt152",0,2n**(152n-1n)-1n,"maxInt16",0,2n**(16n-1n)-1n,"maxInt160",0,2n**(160n-1n)-1n,"maxInt168",0,2n**(168n-1n)-1n,"maxInt176",0,2n**(176n-1n)-1n,"maxInt184",0,2n**(184n-1n)-1n,"maxInt192",0,2n**(192n-1n)-1n,"maxInt200",0,2n**(200n-1n)-1n,"maxInt208",0,2n**(208n-1n)-1n,"maxInt216",0,2n**(216n-1n)-1n,"maxInt224",0,2n**(224n-1n)-1n,"maxInt232",0,2n**(232n-1n)-1n,"maxInt24",0,2n**(24n-1n)-1n,"maxInt240",0,2n**(240n-1n)-1n,"maxInt248",0,2n**(248n-1n)-1n,"maxInt256",0,2n**(256n-1n)-1n,"maxInt32",0,2n**(32n-1n)-1n,"maxInt40",0,2n**(40n-1n)-1n,"maxInt48",0,2n**(48n-1n)-1n,"maxInt56",0,2n**(56n-1n)-1n,"maxInt64",0,2n**(64n-1n)-1n,"maxInt72",0,2n**(72n-1n)-1n,"maxInt8",0,2n**(8n-1n)-1n,"maxInt80",0,2n**(80n-1n)-1n,"maxInt88",0,2n**(88n-1n)-1n,"maxInt96",0,2n**(96n-1n)-1n,"maxUint104",0,2n**104n-1n,"maxUint112",0,2n**112n-1n,"maxUint120",0,2n**120n-1n,"maxUint128",0,2n**128n-1n,"maxUint136",0,2n**136n-1n,"maxUint144",0,2n**144n-1n,"maxUint152",0,2n**152n-1n,"maxUint16",0,2n**16n-1n,"maxUint160",0,2n**160n-1n,"maxUint168",0,2n**168n-1n,"maxUint176",0,2n**176n-1n,"maxUint184",0,2n**184n-1n,"maxUint192",0,2n**192n-1n,"maxUint200",0,2n**200n-1n,"maxUint208",0,2n**208n-1n,"maxUint216",0,2n**216n-1n,"maxUint224",0,2n**224n-1n,"maxUint232",0,2n**232n-1n,"maxUint24",0,2n**24n-1n,"maxUint240",0,2n**240n-1n,"maxUint248",0,2n**248n-1n,"maxUint256",0,2n**256n-1n,"maxUint32",0,2n**32n-1n,"maxUint40",0,2n**40n-1n,"maxUint48",0,2n**48n-1n,"maxUint56",0,2n**56n-1n,"maxUint64",0,2n**64n-1n,"maxUint72",0,2n**72n-1n,"maxUint8",0,2n**8n-1n,"maxUint80",0,2n**80n-1n,"maxUint88",0,2n**88n-1n,"maxUint96",0,2n**96n-1n,"minInt104",0,-(2n**(104n-1n)),"minInt112",0,-(2n**(112n-1n)),"minInt120",0,-(2n**(120n-1n)),"minInt128",0,-(2n**(128n-1n)),"minInt136",0,-(2n**(136n-1n)),"minInt144",0,-(2n**(144n-1n)),"minInt152",0,-(2n**(152n-1n)),"minInt16",0,-(2n**(16n-1n)),"minInt160",0,-(2n**(160n-1n)),"minInt168",0,-(2n**(168n-1n)),"minInt176",0,-(2n**(176n-1n)),"minInt184",0,-(2n**(184n-1n)),"minInt192",0,-(2n**(192n-1n)),"minInt200",0,-(2n**(200n-1n)),"minInt208",0,-(2n**(208n-1n)),"minInt216",0,-(2n**(216n-1n)),"minInt224",0,-(2n**(224n-1n)),"minInt232",0,-(2n**(232n-1n)),"minInt24",0,-(2n**(24n-1n)),"minInt240",0,-(2n**(240n-1n)),"minInt248",0,-(2n**(248n-1n)),"minInt256",0,-(2n**(256n-1n)),"minInt32",0,-(2n**(32n-1n)),"minInt40",0,-(2n**(40n-1n)),"minInt48",0,-(2n**(48n-1n)),"minInt56",0,-(2n**(56n-1n)),"minInt64",0,-(2n**(64n-1n)),"minInt72",0,-(2n**(72n-1n)),"minInt8",0,-(2n**(8n-1n)),"minInt80",0,-(2n**(80n-1n)),"minInt88",0,-(2n**(88n-1n)),"minInt96",0,-(2n**(96n-1n))])},89509,53464,e=>{"use strict";var t=e.i(37195),r=e.i(44318),n=e.i(89991),a=e.i(52012),i=e.i(4119),s=e.i(72503),o=e.i(69934),u=e.i(5880),c=e.i(78023),d=e.i(63710),l=e.i(547),p=e.i(89169),f=e.i(56679),b=e.i(6685),m=e.i(6580),y=e.i(4195),h=e.i(79690),g=e.i(64404),v=e.i(20531),w=e.i(71706),x=e.i(26051),E=e.i(74768),$=e.i(8861),A=e.i(53532),I=e.i(96516);function T(e){let{account:t,maxFeePerGas:r,maxPriorityFeePerGas:a,to:i}=e,s=t?(0,n.parseAccount)(t):void 0;if(s&&!(0,I.isAddress)(s.address))throw new $.InvalidAddressError({address:s.address});if(i&&!(0,I.isAddress)(i))throw new $.InvalidAddressError({address:i});if(r&&r>E.maxUint256)throw new A.FeeCapTooHighError({maxFeePerGas:r});if(a&&r&&a>r)throw new A.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:a})}async function P(a,l){let{account:f=a.account,authorizationList:y,batch:w=!!a.batch?.multicall,blockHash:E,blockNumber:$,blockTag:A=a.experimental_blockTag??"latest",requireCanonical:I,accessList:P,blobs:B,blockOverrides:M,code:z,data:F,factory:C,factoryData:N,gas:j,gasPrice:k,maxFeePerBlobGas:U,maxFeePerGas:H,maxPriorityFeePerGas:D,nonce:L,requestOptions:G,to:q,value:V,stateOverride:_,...W}=l,Z=f?(0,n.parseAccount)(f):void 0;if(z&&(C||N))throw new o.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(z&&q)throw new o.BaseError("Cannot provide both `code` & `to` as parameters.");let J=z&&F,X=C&&N&&q&&F,K=J||X,Y=J?R({code:z,data:F}):X?function(e){let{data:r,factory:n,factoryData:a,to:i}=e;return(0,p.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:s.deploylessCallViaFactoryBytecode,args:[i,r,n,a]})}({data:F,factory:C,factoryData:N,to:q}):F;try{let e;T(l);let t=(0,m.formatBlockParameter)({blockHash:E,blockNumber:$,blockTag:A,requireCanonical:I}),n=M?r.toRpc(M):void 0,s=(0,x.serializeStateOverride)(_),o=a.chain?.formatters?.transactionRequest?.format,c=(o||v.formatTransactionRequest)({...(0,g.extract)(W,{format:o}),accessList:P,account:Z,authorizationList:y,blobs:B,data:Y,gas:j,gasPrice:k,maxFeePerBlobGas:U,maxFeePerGas:H,maxPriorityFeePerGas:D,nonce:L,to:K?void 0:q,value:V},"call");if(w&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(i.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:c})&&!n&&void 0===E)try{var Q,ee;let{deployless:e=!1}="object"==typeof a.batch?.multicall?a.batch.multicall:{},t=O(a,{blockNumber:$,deployless:e});if(!t||(Q=s,ee=t,!(Q&&Object.keys(Q).some(e=>(0,b.isAddressEqual)(e,ee)))))return await S(a,{...c,blockHash:E,blockNumber:$,blockTag:A,multicallAddress:t,requestOptions:G,requireCanonical:I,rpcStateOverride:s})}catch(e){if(!(e instanceof u.ClientChainNotConfiguredError)&&!(e instanceof u.ChainDoesNotSupportContract))throw e}let d=(e=[c,t],s&&n?[...e,s,n]:s?[...e,s]:n?[...e,{},n]:e),p=await a.request({method:"eth_call",params:d},G);if("0x"===p)return{data:void 0};return{data:p}}catch(i){if(G?.signal?.aborted)throw(0,d.getAbortError)(G.signal);if((0,d.isAbortError)(i))throw i;let t=function(e){if(!(e instanceof o.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(i),{offchainLookup:r,offchainLookupSignature:n}=await e.A(1139);if(!1!==a.ccipRead&&t?.slice(0,10)===n&&q)return{data:await r(a,{data:t,requestOptions:G,to:q})};if(K&&t?.slice(0,10)==="0x101bb98d")throw new c.CounterfactualDeploymentFailedError({factory:C});throw(0,h.getCallError)(i,{...l,account:Z,chain:a.chain})}}e.s(["assertRequest",0,T],53464);let B=0,M=new WeakMap;async function S(e,t){let{batchSize:r=1024,deployless:n=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockHash:o,blockNumber:u,blockTag:d=e.experimental_blockTag??"latest",requireCanonical:p,data:b,multicallAddress:y,requestOptions:h,rpcStateOverride:g,to:v}=t,x=void 0!==y?y:O(e,{blockNumber:u,deployless:n}),E=(0,m.formatBlockParameter)({blockHash:o,blockNumber:u,blockTag:d,requireCanonical:p}),$="string"==typeof E?E:JSON.stringify(E),A=g?`.${JSON.stringify(g)}`:"",{schedule:I}=(0,w.createBatchScheduler)({id:`${e.uid}.${$}.${function(e){if(!e)return"default";let t=M.get(e);if(void 0!==t)return t;let r=B++;return M.set(e,r),r}(h)}${A}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,f.encodeFunctionData)({abi:a.multicall3Abi,args:[r],functionName:"aggregate3"}),i={...null===x?{data:R({code:s.multicall3Bytecode,data:n})}:{to:x,data:n}},o=await e.request({method:"eth_call",params:g?[i,E,g]:[i,E]},h);return(0,l.decodeFunctionResult)({abi:a.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:T,success:P}]=await I({data:b,to:v});if(!P)throw new c.RawContractError({data:T});return"0x"===T?{data:void 0}:{data:T}}function O(e,t){let{blockNumber:r,deployless:n}=t;if(n)return null;if(e.chain)return(0,y.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"multicall3"});throw new u.ClientChainNotConfiguredError}function R(e){let{code:r,data:n}=e;return(0,p.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(bytes, bytes)"]),bytecode:s.deploylessCallViaBytecodeBytecode,args:[r,n]})}e.s(["call",0,P],89509)}]);
29
+ Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends r.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class c extends r.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends r.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class l extends r.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends r.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class f extends r.BaseError{constructor({cause:e,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,t.formatGwei)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(f,"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 b extends r.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}e.s(["ExecutionRevertedError",0,n,"FeeCapTooHighError",0,a,"FeeCapTooLowError",0,i,"InsufficientFundsError",0,c,"IntrinsicGasTooHighError",0,d,"IntrinsicGasTooLowError",0,l,"NonceMaxValueError",0,u,"NonceTooHighError",0,s,"NonceTooLowError",0,o,"TipAboveFeeCapError",0,f,"TransactionTypeNotSupportedError",0,p,"UnknownNodeError",0,b])},67078,e=>{"use strict";var t=e.i(69934),r=e.i(53532),n=e.i(95767),a=e.i(83856);e.s(["containsNodeError",0,function(e){return e instanceof a.TransactionRejectedRpcError||e instanceof a.InvalidInputRpcError||e instanceof n.RpcRequestError&&e.code===r.ExecutionRevertedError.code},"getNodeError",0,function(e,n){let a=(e.details||"").toLowerCase(),i=e instanceof t.BaseError?e.walk(e=>e?.code===r.ExecutionRevertedError.code):e;return i instanceof t.BaseError?new r.ExecutionRevertedError({cause:e,message:i.details}):r.ExecutionRevertedError.nodeMessage.test(a)?new r.ExecutionRevertedError({cause:e,message:e.details}):r.FeeCapTooHighError.nodeMessage.test(a)?new r.FeeCapTooHighError({cause:e,maxFeePerGas:n?.maxFeePerGas}):r.FeeCapTooLowError.nodeMessage.test(a)?new r.FeeCapTooLowError({cause:e,maxFeePerGas:n?.maxFeePerGas}):r.NonceTooHighError.nodeMessage.test(a)?new r.NonceTooHighError({cause:e,nonce:n?.nonce}):r.NonceTooLowError.nodeMessage.test(a)?new r.NonceTooLowError({cause:e,nonce:n?.nonce}):r.NonceMaxValueError.nodeMessage.test(a)?new r.NonceMaxValueError({cause:e,nonce:n?.nonce}):r.InsufficientFundsError.nodeMessage.test(a)?new r.InsufficientFundsError({cause:e}):r.IntrinsicGasTooHighError.nodeMessage.test(a)?new r.IntrinsicGasTooHighError({cause:e,gas:n?.gas}):r.IntrinsicGasTooLowError.nodeMessage.test(a)?new r.IntrinsicGasTooLowError({cause:e,gas:n?.gas}):r.TransactionTypeNotSupportedError.nodeMessage.test(a)?new r.TransactionTypeNotSupportedError({cause:e}):r.TipAboveFeeCapError.nodeMessage.test(a)?new r.TipAboveFeeCapError({cause:e,maxFeePerGas:n?.maxFeePerGas,maxPriorityFeePerGas:n?.maxPriorityFeePerGas}):new r.UnknownNodeError({cause:e})}])},79690,e=>{"use strict";var t=e.i(78023),r=e.i(53532),n=e.i(67078);e.s(["getCallError",0,function(e,{docsPath:a,...i}){let s,o=(s=(0,n.getNodeError)(e,i))instanceof r.UnknownNodeError?e:s;return new t.CallExecutionError(o,{docsPath:a,...i})}])},64404,e=>{"use strict";e.s(["extract",0,function(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let a of Object.keys(n))a in e&&(r[a]=e[a]),n[a]&&"object"==typeof n[a]&&!Array.isArray(n[a])&&t(n[a])}(t(e||{})),r}])},20531,45024,e=>{"use strict";var t=e.i(75107);function r(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,a)=>{let i=t(e,a);if(r)for(let e of r)delete i[e];return{...i,...n(e,a)}},type:e})}e.s(["defineFormatter",0,r],45024);let n={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e,r){let a={};return void 0!==e.authorizationList&&(a.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,t.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,t.numberToHex)(BigInt(e.s)):e.s,chainId:(0,t.numberToHex)(e.chainId),nonce:(0,t.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,t.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,t.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(a.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(a.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?a.blobs=e.blobs.map(e=>(0,t.bytesToHex)(e)):a.blobs=e.blobs),void 0!==e.data&&(a.data=e.data),e.account&&(a.from=e.account.address),void 0!==e.from&&(a.from=e.from),void 0!==e.gas&&(a.gas=(0,t.numberToHex)(e.gas)),void 0!==e.gasPrice&&(a.gasPrice=(0,t.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(a.maxFeePerBlobGas=(0,t.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(a.maxFeePerGas=(0,t.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=(0,t.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(a.nonce=(0,t.numberToHex)(e.nonce)),void 0!==e.to&&(a.to=e.to),void 0!==e.type&&(a.type=n[e.type]),void 0!==e.value&&(a.value=(0,t.numberToHex)(e.value)),a}let i=r("transactionRequest",a);e.s(["defineTransactionRequest",0,i,"formatTransactionRequest",0,a,"rpcTransactionType",0,n],20531)},9486,e=>{"use strict";e.s(["withResolvers",0,function(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}])},71706,e=>{"use strict";var t=e.i(9486);let r=new Map;e.s(["createBatchScheduler",0,function({fn:e,id:n,shouldSplitBatch:a,wait:i=0,sort:s}){let o=async()=>{let t=c();u();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},u=()=>r.delete(n),c=()=>r.get(n)||[],d=e=>r.set(n,[...c(),e]);return{flush:u,async schedule(e){let{promise:r,resolve:n,reject:s}=(0,t.withResolvers)();return(a?.([...c().map(({args:e})=>e),e])&&o(),c().length>0)?d({args:e,resolve:n,reject:s}):(d({args:e,resolve:n,reject:s}),setTimeout(o,i)),r}}}])},26051,e=>{"use strict";var t=e.i(8861),r=e.i(87286),n=e.i(62570),a=e.i(96516),i=e.i(75107);function s(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new r.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new r.InvalidBytesLengthError({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}e.s(["serializeStateOverride",0,function(e){if(!e)return;let r={};for(let{address:o,...u}of e){if(!(0,a.isAddress)(o,{strict:!1}))throw new t.InvalidAddressError({address:o});if(r[o])throw new n.AccountStateConflictError({address:o});r[o]=function(e){let{balance:t,nonce:r,state:a,stateDiff:o,code:u}=e,c={};if(void 0!==u&&(c.code=u),void 0!==t&&(c.balance=(0,i.numberToHex)(t)),void 0!==r&&(c.nonce=(0,i.numberToHex)(r)),void 0!==a&&(c.state=s(a)),void 0!==o){if(c.state)throw new n.StateAssignmentConflictError;c.stateDiff=s(o)}return c}(u)}return r}])},74768,e=>{"use strict";e.s(["maxInt104",0,2n**(104n-1n)-1n,"maxInt112",0,2n**(112n-1n)-1n,"maxInt120",0,2n**(120n-1n)-1n,"maxInt128",0,2n**(128n-1n)-1n,"maxInt136",0,2n**(136n-1n)-1n,"maxInt144",0,2n**(144n-1n)-1n,"maxInt152",0,2n**(152n-1n)-1n,"maxInt16",0,2n**(16n-1n)-1n,"maxInt160",0,2n**(160n-1n)-1n,"maxInt168",0,2n**(168n-1n)-1n,"maxInt176",0,2n**(176n-1n)-1n,"maxInt184",0,2n**(184n-1n)-1n,"maxInt192",0,2n**(192n-1n)-1n,"maxInt200",0,2n**(200n-1n)-1n,"maxInt208",0,2n**(208n-1n)-1n,"maxInt216",0,2n**(216n-1n)-1n,"maxInt224",0,2n**(224n-1n)-1n,"maxInt232",0,2n**(232n-1n)-1n,"maxInt24",0,2n**(24n-1n)-1n,"maxInt240",0,2n**(240n-1n)-1n,"maxInt248",0,2n**(248n-1n)-1n,"maxInt256",0,2n**(256n-1n)-1n,"maxInt32",0,2n**(32n-1n)-1n,"maxInt40",0,2n**(40n-1n)-1n,"maxInt48",0,2n**(48n-1n)-1n,"maxInt56",0,2n**(56n-1n)-1n,"maxInt64",0,2n**(64n-1n)-1n,"maxInt72",0,2n**(72n-1n)-1n,"maxInt8",0,2n**(8n-1n)-1n,"maxInt80",0,2n**(80n-1n)-1n,"maxInt88",0,2n**(88n-1n)-1n,"maxInt96",0,2n**(96n-1n)-1n,"maxUint104",0,2n**104n-1n,"maxUint112",0,2n**112n-1n,"maxUint120",0,2n**120n-1n,"maxUint128",0,2n**128n-1n,"maxUint136",0,2n**136n-1n,"maxUint144",0,2n**144n-1n,"maxUint152",0,2n**152n-1n,"maxUint16",0,2n**16n-1n,"maxUint160",0,2n**160n-1n,"maxUint168",0,2n**168n-1n,"maxUint176",0,2n**176n-1n,"maxUint184",0,2n**184n-1n,"maxUint192",0,2n**192n-1n,"maxUint200",0,2n**200n-1n,"maxUint208",0,2n**208n-1n,"maxUint216",0,2n**216n-1n,"maxUint224",0,2n**224n-1n,"maxUint232",0,2n**232n-1n,"maxUint24",0,2n**24n-1n,"maxUint240",0,2n**240n-1n,"maxUint248",0,2n**248n-1n,"maxUint256",0,2n**256n-1n,"maxUint32",0,2n**32n-1n,"maxUint40",0,2n**40n-1n,"maxUint48",0,2n**48n-1n,"maxUint56",0,2n**56n-1n,"maxUint64",0,2n**64n-1n,"maxUint72",0,2n**72n-1n,"maxUint8",0,2n**8n-1n,"maxUint80",0,2n**80n-1n,"maxUint88",0,2n**88n-1n,"maxUint96",0,2n**96n-1n,"minInt104",0,-(2n**(104n-1n)),"minInt112",0,-(2n**(112n-1n)),"minInt120",0,-(2n**(120n-1n)),"minInt128",0,-(2n**(128n-1n)),"minInt136",0,-(2n**(136n-1n)),"minInt144",0,-(2n**(144n-1n)),"minInt152",0,-(2n**(152n-1n)),"minInt16",0,-(2n**(16n-1n)),"minInt160",0,-(2n**(160n-1n)),"minInt168",0,-(2n**(168n-1n)),"minInt176",0,-(2n**(176n-1n)),"minInt184",0,-(2n**(184n-1n)),"minInt192",0,-(2n**(192n-1n)),"minInt200",0,-(2n**(200n-1n)),"minInt208",0,-(2n**(208n-1n)),"minInt216",0,-(2n**(216n-1n)),"minInt224",0,-(2n**(224n-1n)),"minInt232",0,-(2n**(232n-1n)),"minInt24",0,-(2n**(24n-1n)),"minInt240",0,-(2n**(240n-1n)),"minInt248",0,-(2n**(248n-1n)),"minInt256",0,-(2n**(256n-1n)),"minInt32",0,-(2n**(32n-1n)),"minInt40",0,-(2n**(40n-1n)),"minInt48",0,-(2n**(48n-1n)),"minInt56",0,-(2n**(56n-1n)),"minInt64",0,-(2n**(64n-1n)),"minInt72",0,-(2n**(72n-1n)),"minInt8",0,-(2n**(8n-1n)),"minInt80",0,-(2n**(80n-1n)),"minInt88",0,-(2n**(88n-1n)),"minInt96",0,-(2n**(96n-1n))])},53464,e=>{"use strict";var t=e.i(89991),r=e.i(74768),n=e.i(8861),a=e.i(53532),i=e.i(96516);e.s(["assertRequest",0,function(e){let{account:s,maxFeePerGas:o,maxPriorityFeePerGas:u,to:c}=e,d=s?(0,t.parseAccount)(s):void 0;if(d&&!(0,i.isAddress)(d.address))throw new n.InvalidAddressError({address:d.address});if(c&&!(0,i.isAddress)(c))throw new n.InvalidAddressError({address:c});if(o&&o>r.maxUint256)throw new a.FeeCapTooHighError({maxFeePerGas:o});if(u&&o&&u>o)throw new a.TipAboveFeeCapError({maxFeePerGas:o,maxPriorityFeePerGas:u})}])},89509,e=>{"use strict";var t=e.i(37195),r=e.i(44318),n=e.i(89991),a=e.i(52012),i=e.i(4119),s=e.i(72503),o=e.i(69934),u=e.i(5880),c=e.i(78023),d=e.i(63710),l=e.i(547),p=e.i(89169),f=e.i(56679),b=e.i(6685),m=e.i(6580),y=e.i(4195),h=e.i(79690),g=e.i(64404),v=e.i(20531),w=e.i(71706),x=e.i(26051),E=e.i(53464);async function $(a,l){let{account:f=a.account,authorizationList:y,batch:w=!!a.batch?.multicall,blockHash:$,blockNumber:A,blockTag:I=a.experimental_blockTag??"latest",requireCanonical:M,accessList:S,blobs:O,blockOverrides:R,code:z,data:F,factory:C,factoryData:N,gas:j,gasPrice:k,maxFeePerBlobGas:U,maxFeePerGas:H,maxPriorityFeePerGas:D,nonce:L,requestOptions:G,to:q,value:V,stateOverride:_,...W}=l,Z=f?(0,n.parseAccount)(f):void 0;if(z&&(C||N))throw new o.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(z&&q)throw new o.BaseError("Cannot provide both `code` & `to` as parameters.");let J=z&&F,X=C&&N&&q&&F,K=J||X,Y=J?B({code:z,data:F}):X?function(e){let{data:r,factory:n,factoryData:a,to:i}=e;return(0,p.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:s.deploylessCallViaFactoryBytecode,args:[i,r,n,a]})}({data:F,factory:C,factoryData:N,to:q}):F;try{let e;(0,E.assertRequest)(l);let t=(0,m.formatBlockParameter)({blockHash:$,blockNumber:A,blockTag:I,requireCanonical:M}),n=R?r.toRpc(R):void 0,s=(0,x.serializeStateOverride)(_),o=a.chain?.formatters?.transactionRequest?.format,c=(o||v.formatTransactionRequest)({...(0,g.extract)(W,{format:o}),accessList:S,account:Z,authorizationList:y,blobs:O,data:Y,gas:j,gasPrice:k,maxFeePerBlobGas:U,maxFeePerGas:H,maxPriorityFeePerGas:D,nonce:L,to:K?void 0:q,value:V},"call");if(w&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(i.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:c})&&!n&&void 0===$)try{var Q,ee;let{deployless:e=!1}="object"==typeof a.batch?.multicall?a.batch.multicall:{},t=P(a,{blockNumber:A,deployless:e});if(!t||(Q=s,ee=t,!(Q&&Object.keys(Q).some(e=>(0,b.isAddressEqual)(e,ee)))))return await T(a,{...c,blockHash:$,blockNumber:A,blockTag:I,multicallAddress:t,requestOptions:G,requireCanonical:M,rpcStateOverride:s})}catch(e){if(!(e instanceof u.ClientChainNotConfiguredError)&&!(e instanceof u.ChainDoesNotSupportContract))throw e}let d=(e=[c,t],s&&n?[...e,s,n]:s?[...e,s]:n?[...e,{},n]:e),p=await a.request({method:"eth_call",params:d},G);if("0x"===p)return{data:void 0};return{data:p}}catch(i){if(G?.signal?.aborted)throw(0,d.getAbortError)(G.signal);if((0,d.isAbortError)(i))throw i;let t=function(e){if(!(e instanceof o.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(i),{offchainLookup:r,offchainLookupSignature:n}=await e.A(1139);if(!1!==a.ccipRead&&t?.slice(0,10)===n&&q)return{data:await r(a,{data:t,requestOptions:G,to:q})};if(K&&t?.slice(0,10)==="0x101bb98d")throw new c.CounterfactualDeploymentFailedError({factory:C});throw(0,h.getCallError)(i,{...l,account:Z,chain:a.chain})}}let A=0,I=new WeakMap;async function T(e,t){let{batchSize:r=1024,deployless:n=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockHash:o,blockNumber:u,blockTag:d=e.experimental_blockTag??"latest",requireCanonical:p,data:b,multicallAddress:y,requestOptions:h,rpcStateOverride:g,to:v}=t,x=void 0!==y?y:P(e,{blockNumber:u,deployless:n}),E=(0,m.formatBlockParameter)({blockHash:o,blockNumber:u,blockTag:d,requireCanonical:p}),$="string"==typeof E?E:JSON.stringify(E),T=g?`.${JSON.stringify(g)}`:"",{schedule:M}=(0,w.createBatchScheduler)({id:`${e.uid}.${$}.${function(e){if(!e)return"default";let t=I.get(e);if(void 0!==t)return t;let r=A++;return I.set(e,r),r}(h)}${T}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,f.encodeFunctionData)({abi:a.multicall3Abi,args:[r],functionName:"aggregate3"}),i={...null===x?{data:B({code:s.multicall3Bytecode,data:n})}:{to:x,data:n}},o=await e.request({method:"eth_call",params:g?[i,E,g]:[i,E]},h);return(0,l.decodeFunctionResult)({abi:a.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:S,success:O}]=await M({data:b,to:v});if(!O)throw new c.RawContractError({data:S});return"0x"===S?{data:void 0}:{data:S}}function P(e,t){let{blockNumber:r,deployless:n}=t;if(n)return null;if(e.chain)return(0,y.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"multicall3"});throw new u.ClientChainNotConfiguredError}function B(e){let{code:r,data:n}=e;return(0,p.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(bytes, bytes)"]),bytecode:s.deploylessCallViaBytecodeBytecode,args:[r,n]})}e.s(["call",0,$])}]);