@latticexyz/explorer 2.2.15-entrykit-9f7c977a92973d8e7290aafb7ebf6f2d1d8f4b99 → 2.2.15-entrykit-16d558c7c668f7906022d8ebebac79d6e9641cd6

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 (77) hide show
  1. package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/explorer/.next/app-build-manifest.json +49 -48
  3. package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/packages/explorer/.next/build-manifest.json +5 -5
  5. package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/packages/explorer/.next/react-loadable-manifest.json +1 -1
  7. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +2 -2
  9. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js.nft.json +1 -1
  10. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +1 -1
  12. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js.nft.json +1 -1
  13. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +3 -3
  15. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js.nft.json +1 -1
  16. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js +1 -1
  18. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js.nft.json +1 -1
  19. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
  24. package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
  25. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
  26. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
  27. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
  28. package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +1 -1
  29. package/.next/standalone/packages/explorer/.next/server/chunks/6135.js +1 -1
  30. package/.next/standalone/packages/explorer/.next/server/chunks/6561.js +1 -1
  31. package/.next/standalone/packages/explorer/.next/server/chunks/7111.js +1 -1
  32. package/.next/standalone/packages/explorer/.next/server/chunks/{6673.js → 7563.js} +10 -10
  33. package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
  34. package/.next/standalone/packages/explorer/.next/server/middleware-react-loadable-manifest.js +1 -1
  35. package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
  36. package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
  37. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
  38. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
  39. package/.next/standalone/packages/explorer/.next/static/chunks/{1698-e03eac3f160ade30.js → 1383-e2c11b5cc4858750.js} +17 -2
  40. package/.next/standalone/packages/explorer/.next/static/chunks/2023-4bfdbec835f91aa7.js +36 -0
  41. package/.next/standalone/packages/explorer/.next/static/chunks/3787-ab5ef282b991e902.js +32 -0
  42. package/.next/standalone/packages/explorer/.next/static/chunks/3823-7329a34245b2494c.js +1 -0
  43. package/.next/standalone/packages/explorer/.next/static/chunks/{4296-7c5fc051c9ad6564.js → 4296-6974321c642e79d4.js} +10 -10
  44. package/.next/standalone/packages/explorer/.next/static/chunks/4384.46b7462902af973e.js +1 -0
  45. package/.next/standalone/packages/explorer/.next/static/chunks/5020-3078c3befa6d47b7.js +5 -0
  46. package/.next/standalone/packages/explorer/.next/static/chunks/8866-d05d7f28ed8cb460.js +1 -0
  47. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/layout-b94be3cfccaf4baf.js +1 -0
  48. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page-be2d1430a13065e4.js +1 -0
  49. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/{page-d271978ba1e554b6.js → page-570996b3ed4e034e.js} +1 -1
  50. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-e4733db9e8e63e8a.js +1 -0
  51. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-d5878c523365f737.js +21 -0
  52. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/{page-9eaf2744d443531f.js → page-e15544c0deaa1c79.js} +1 -1
  53. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-1285d443cfd10bd6.js +26 -0
  54. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/layout-00c74847ebc8ba17.js +1 -0
  55. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-fd97ea319d872e92.js +21 -0
  56. package/.next/standalone/packages/explorer/.next/static/chunks/{webpack-577c7d795cdceb2f.js → webpack-7c421e0aba419cc2.js} +1 -1
  57. package/.next/standalone/packages/explorer/.next/static/css/5d593234b2f56e1a.css +3 -0
  58. package/dist/exports/observer.d.ts +18 -5
  59. package/dist/exports/observer.js +55 -11
  60. package/dist/exports/observer.js.map +1 -1
  61. package/package.json +9 -9
  62. package/.next/standalone/packages/explorer/.next/static/chunks/2217-e58584a4e0c441d1.js +0 -16
  63. package/.next/standalone/packages/explorer/.next/static/chunks/2298-be4aacc7793f849b.js +0 -1
  64. package/.next/standalone/packages/explorer/.next/static/chunks/2634-47dc28ca7da02e02.js +0 -17
  65. package/.next/standalone/packages/explorer/.next/static/chunks/4114-500e58284e002a69.js +0 -36
  66. package/.next/standalone/packages/explorer/.next/static/chunks/4384.9ea066e42652f074.js +0 -1
  67. package/.next/standalone/packages/explorer/.next/static/chunks/5020-515bd67e1c6d9896.js +0 -5
  68. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/layout-eb9dedd2148070ac.js +0 -1
  69. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page-010b6bac0808b0eb.js +0 -1
  70. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-da36067fd12d94ac.js +0 -1
  71. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-152199b2ebffde24.js +0 -21
  72. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-3556bad2873445f5.js +0 -11
  73. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/layout-560a0a9056041e53.js +0 -1
  74. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-8bd9c205964e4015.js +0 -6
  75. package/.next/standalone/packages/explorer/.next/static/css/79c04f5b87a8e0bd.css +0 -3
  76. /package/.next/standalone/packages/explorer/.next/static/{PX5kuNCjyW18G1iPTF_vh → 2o6W4AXQF1a2nJxyXwVxR}/_buildManifest.js +0 -0
  77. /package/.next/standalone/packages/explorer/.next/static/{PX5kuNCjyW18G1iPTF_vh → 2o6W4AXQF1a2nJxyXwVxR}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2298],{23255:function(t,e,n){function r(t){if(!Number.isSafeInteger(t)||t<0)throw Error(`positive integer expected, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array||null!=t&&"object"==typeof t&&"Uint8Array"===t.constructor.name))throw Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw Error("Hash instance has been destroyed");if(e&&t.finished)throw Error("Hash#digest() has already been called")}function u(t,e){i(t);let n=e.outputLen;if(t.length<n)throw Error(`digestInto() expects output buffer of length at least ${n}`)}n.d(e,{Gg:function(){return o},J8:function(){return u},Rx:function(){return r},aI:function(){return i},vp:function(){return s}})},48345:function(t,e,n){n.d(e,{kb:function(){return d},l1:function(){return c},eV:function(){return h},GL:function(){return o},iA:function(){return a},O6:function(){return p},np:function(){return u},O0:function(){return l},Jq:function(){return s},hE:function(){return g}});let r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var i=n(23255);let s=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),o=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),u=(t,e)=>t<<32-e|t>>>e,a=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],f=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function c(t){for(let e=0;e<t.length;e++)t[e]=f(t[e])}function l(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}(t)),(0,i.aI)(t),t}function h(...t){let e=0;for(let n=0;n<t.length;n++){let r=t[n];(0,i.aI)(r),e+=r.length}let n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){let i=t[e];n.set(i,r),r+=i.length}return n}class d{clone(){return this._cloneInto()}}function g(t){let e=e=>t().update(l(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function p(t=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(t));if(r&&"function"==typeof r.randomBytes)return r.randomBytes(t);throw Error("crypto.getRandomValues must be defined")}},67832:function(t,e,n){n.d(e,{b:function(){return i}});var r=n(86708);class i extends r.G{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},86708:function(t,e,n){n.d(e,{G:function(){return s}});let r="2.21.19",i={getDocsUrl:({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,version:r};class s extends Error{constructor(t,e={}){let n=e.cause instanceof s?e.cause.details:e.cause?.message?e.cause.message:e.details,o=e.cause instanceof s&&e.cause.docsPath||e.docsPath,u=i.getDocsUrl?.({...e,docsPath:o});super([t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...n?[`Details: ${n}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),e.cause?{cause:e.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=o,this.metaMessages=e.metaMessages,this.name=e.name??this.name,this.shortMessage=t,this.version=r}walk(t){return function t(e,n){return n?.(e)?e:e&&"object"==typeof e&&"cause"in e?t(e.cause,n):n?null:e}(this,t)}}},82181:function(t,e,n){n.d(e,{$s:function(){return s},W_:function(){return o},mV:function(){return i}});var r=n(86708);class i extends r.G{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class s extends r.G{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends r.G{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${e} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}},78326:function(t,e,n){n.d(e,{J5:function(){return i},M6:function(){return o},yr:function(){return s}});var r=n(86708);class i extends r.G{constructor({max:t,min:e,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`,{name:"IntegerOutOfRangeError"})}}class s extends r.G{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends r.G{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}},46812:function(t,e,n){n.d(e,{K:function(){return c},x:function(){return f}});var r=n(67832),i=n(8681),s=n(56026),o=n(74024),u=n(15254);let a=new o.k(8192);function f(t,e){if(a.has(`${t}.${e}`))return a.get(`${t}.${e}`);let n=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),r=(0,s.w)((0,i.qX)(n),"bytes"),o=(e?n.substring(`${e}0x`.length):n).split("");for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&o[t]&&(o[t]=o[t].toUpperCase()),(15&r[t>>1])>=8&&o[t+1]&&(o[t+1]=o[t+1].toUpperCase());let u=`0x${o.join("")}`;return a.set(`${t}.${e}`,u),u}function c(t,e){if(!(0,u.U)(t,{strict:!1}))throw new r.b({address:t});return f(t,e)}},15254:function(t,e,n){n.d(e,{U:function(){return u}});var r=n(74024),i=n(46812);let s=/^0x[a-fA-F0-9]{40}$/,o=new r.k(8192);function u(t,e){let{strict:n=!0}=e??{},r=`${t}.${n}`;if(o.has(r))return o.get(r);let u=!!s.test(t)&&(t.toLowerCase()===t||!n||(0,i.x)(t)===t);return o.set(r,u),u}},25006:function(t,e,n){n.d(e,{v:function(){return r}});function r(t,{strict:e=!0}={}){return!!t&&"string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x"))}},14623:function(t,e,n){n.d(e,{gc:function(){return s},vk:function(){return i}});var r=n(82181);function i(t,{dir:e,size:n=32}={}){return"string"==typeof t?s(t,{dir:e,size:n}):function(t,{dir:e,size:n=32}={}){if(null===n)return t;if(t.length>n)throw new r.$s({size:t.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let s="right"===e;i[s?r:n-r-1]=t[s?r:t.length-r-1]}return i}(t,{dir:e,size:n})}function s(t,{dir:e,size:n=32}={}){if(null===n)return t;let i=t.replace("0x","");if(i.length>2*n)throw new r.$s({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===e?"padEnd":"padStart"](2*n,"0")}`}},80002:function(t,e,n){n.d(e,{d:function(){return i}});var r=n(25006);function i(t){return(0,r.v)(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}},6435:function(t,e,n){n.d(e,{f:function(){return r}});function r(t,{dir:e="left"}={}){let n="string"==typeof t?t.replace("0x",""):t,r=0;for(let t=0;t<n.length-1&&"0"===n["left"===e?t:n.length-t-1].toString();t++)r++;return(n="left"===e?n.slice(r):n.slice(0,n.length-r),"string"==typeof t)?(1===n.length&&"right"===e&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}},58435:function(t,e,n){n.d(e,{Yf:function(){return u},ly:function(){return f},rR:function(){return c},y_:function(){return a}});var r=n(78326),i=n(80002),s=n(6435),o=n(8681);function u(t,{size:e}){if((0,i.d)(t)>e)throw new r.M6({givenSize:(0,i.d)(t),maxSize:e})}function a(t,e={}){let{signed:n}=e;e.size&&u(t,{size:e.size});let r=BigInt(t);if(!n)return r;let i=(t.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function f(t,e={}){return Number(a(t,e))}function c(t,e={}){let n=(0,o.nr)(t);return e.size&&(u(n,{size:e.size}),n=(0,s.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},8681:function(t,e,n){n.d(e,{O0:function(){return f},nr:function(){return h},qX:function(){return d}});var r=n(86708),i=n(25006),s=n(14623),o=n(58435),u=n(72417);let a=new TextEncoder;function f(t,e={}){return"number"==typeof t||"bigint"==typeof t?h((0,u.eC)(t,e)):"boolean"==typeof t?function(t,e={}){let n=new Uint8Array(1);return(n[0]=Number(t),"number"==typeof e.size)?((0,o.Yf)(n,{size:e.size}),(0,s.vk)(n,{size:e.size})):n}(t,e):(0,i.v)(t)?h(t,e):d(t,e)}let c={zero:48,nine:57,A:65,F:70,a:97,f:102};function l(t){return t>=c.zero&&t<=c.nine?t-c.zero:t>=c.A&&t<=c.F?t-(c.A-10):t>=c.a&&t<=c.f?t-(c.a-10):void 0}function h(t,e={}){let n=t;e.size&&((0,o.Yf)(n,{size:e.size}),n=(0,s.vk)(n,{dir:"right",size:e.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let u=i.length/2,a=new Uint8Array(u);for(let t=0,e=0;t<u;t++){let n=l(i.charCodeAt(e++)),s=l(i.charCodeAt(e++));if(void 0===n||void 0===s)throw new r.G(`Invalid byte sequence ("${i[e-2]}${i[e-1]}" in "${i}").`);a[t]=16*n+s}return a}function d(t,e={}){let n=a.encode(t);return"number"==typeof e.size?((0,o.Yf)(n,{size:e.size}),(0,s.vk)(n,{dir:"right",size:e.size})):n}},72417:function(t,e,n){n.d(e,{$G:function(){return h},C4:function(){return a},NC:function(){return u},ci:function(){return f},eC:function(){return c}});var r=n(78326),i=n(14623),s=n(58435);let o=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function u(t,e={}){return"number"==typeof t||"bigint"==typeof t?c(t,e):"string"==typeof t?h(t,e):"boolean"==typeof t?a(t,e):f(t,e)}function a(t,e={}){let n=`0x${Number(t)}`;return"number"==typeof e.size?((0,s.Yf)(n,{size:e.size}),(0,i.vk)(n,{size:e.size})):n}function f(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=o[t[e]];let r=`0x${n}`;return"number"==typeof e.size?((0,s.Yf)(r,{size:e.size}),(0,i.vk)(r,{dir:"right",size:e.size})):r}function c(t,e={}){let n;let{signed:s,size:o}=e,u=BigInt(t);o?n=s?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof t&&(n=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof n&&s?-n-1n:0;if(n&&u>n||u<a){let e="bigint"==typeof t?"n":"";throw new r.J5({max:n?`${n}${e}`:void 0,min:`${a}${e}`,signed:s,size:o,value:`${t}${e}`})}let f=`0x${(s&&u<0?(1n<<BigInt(8*o))+BigInt(u):u).toString(16)}`;return o?(0,i.vk)(f,{size:o}):f}let l=new TextEncoder;function h(t,e={}){return f(l.encode(t),e)}},56026:function(t,e,n){n.d(e,{w:function(){return B}});var r=n(23255);let i=BigInt(4294967296-1),s=BigInt(32),o=(t,e,n)=>t<<n|e>>>32-n,u=(t,e,n)=>e<<n|t>>>32-n,a=(t,e,n)=>e<<n-32|t>>>64-n,f=(t,e,n)=>t<<n-32|e>>>64-n;var c=n(48345);let l=[],h=[],d=[],g=BigInt(0),p=BigInt(1),b=BigInt(2),y=BigInt(7),w=BigInt(256),$=BigInt(113);for(let t=0,e=p,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],l.push(2*(5*r+n)),h.push((t+1)*(t+2)/2%64);let i=g;for(let t=0;t<7;t++)(e=(e<<p^(e>>y)*$)%w)&b&&(i^=p<<(p<<BigInt(t))-p);d.push(i)}let[v,m]=function(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let o=0;o<t.length;o++){let{h:u,l:a}=function(t,e=!1){return e?{h:Number(t&i),l:Number(t>>s&i)}:{h:0|Number(t>>s&i),l:0|Number(t&i)}}(t[o],e);[n[o],r[o]]=[u,a]}return[n,r]}(d,!0),x=(t,e,n)=>n>32?a(t,e,n):o(t,e,n),z=(t,e,n)=>n>32?f(t,e,n):u(t,e,n);class A extends c.kb{constructor(t,e,n,i=!1,s=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.Rx)(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,c.Jq)(this.state)}keccak(){c.iA||(0,c.l1)(this.state32),function(t,e=24){let n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){let r=(e+8)%10,i=(e+2)%10,s=n[i],o=n[i+1],u=x(s,o,1)^n[r],a=z(s,o,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=u,t[e+n+1]^=a}let e=t[2],i=t[3];for(let n=0;n<24;n++){let r=h[n],s=x(e,i,r),o=z(e,i,r),u=l[n];e=t[u],i=t[u+1],t[u]=s,t[u+1]=o}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=v[r],t[1]^=m[r]}n.fill(0)}(this.state32,this.rounds),c.iA||(0,c.l1)(this.state32),this.posOut=0,this.pos=0}update(t){(0,r.Gg)(this);let{blockLen:e,state:n}=this,i=(t=(0,c.O0)(t)).length;for(let r=0;r<i;){let s=Math.min(e-this.pos,i-r);for(let e=0;e<s;e++)n[this.pos++]^=t[r++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,(128&e)!=0&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){(0,r.Gg)(this,!1),(0,r.aI)(t),this.finish();let e=this.state,{blockLen:n}=this;for(let r=0,i=t.length;r<i;){this.posOut>=n&&this.keccak();let s=Math.min(n-this.posOut,i-r);t.set(e.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return t}xofInto(t){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,r.Rx)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,r.J8)(t,this),this.finished)throw Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:e,suffix:n,outputLen:r,rounds:i,enableXOF:s}=this;return t||(t=new A(e,n,r,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=r,t.enableXOF=s,t.destroyed=this.destroyed,t}}let I=(0,c.hE)(()=>new A(136,1,32));var k=n(25006),E=n(8681),O=n(72417);function B(t,e){let n=I((0,k.v)(t,{strict:!1})?(0,E.O0)(t):t);return"bytes"===(e||"hex")?n:(0,O.NC)(n)}},74024:function(t,e,n){n.d(e,{k:function(){return r}});class r extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){let t=this.keys().next().value;t&&this.delete(t)}return this}}}}]);
@@ -1,17 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2634],{23822:function(e,t,n){/**
2
- * @license React
3
- * use-sync-external-store-shim.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var r=n(46760),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useState,a=r.useEffect,o=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return o(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),a(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},50675:function(e,t,n){/**
10
- * @license React
11
- * use-sync-external-store-shim/with-selector.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var r=n(46760),i=n(33222),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,o=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=o(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=a(e,(h=c(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return o=t}return o=e}if(t=o,s(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,o=n)}var a,o,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],h[1]);return u(function(){d.hasValue=!0,d.value=f},[f]),l(f),f}},33222:function(e,t,n){e.exports=n(23822)},23064:function(e,t,n){e.exports=n(50675)},81167:function(e,t,n){n.d(t,{j:function(){return s}});var r=n(52360),i=n(31843),s=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},66714:function(e,t,n){n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),s=r=>{t?e.push(r):i(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},30505:function(e,t,n){n.d(t,{N:function(){return s}});var r=n(52360),i=n(31843),s=new class extends r.l{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}}},35789:function(e,t,n){n.d(t,{A:function(){return o},z:function(){return u}});var r=n(31843),i=n(66714),s=n(28066),a=n(39887),o=class extends a.F{#i;#s;#a;#o;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#i=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#i)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#c?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return(i(n),this.#c=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(a),this.options.behavior?.onFetch(a,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:"fetch",meta:a.fetchOptions?.meta});let o=e=>{(0,s.DV)(e)&&e.silent||this.#l({type:"error",error:e}),(0,s.DV)(e)||(this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#o=(0,s.Mz)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){o(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#l(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,s.DV)(n)&&n.revert&&this.#s)return{...this.#s,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},39887:function(e,t,n){n.d(t,{F:function(){return i}});var r=n(31843),i=class{#h;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#h=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#h&&(clearTimeout(this.#h),this.#h=void 0)}}},28066:function(e,t,n){n.d(t,{DV:function(){return c},Kw:function(){return o},Mz:function(){return l}});var r=n(81167),i=n(30505),s=n(31843);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function l(e){let t,n,c,l=!1,h=0,d=!1,f=new Promise((e,t)=>{n=e,c=t}),p=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),y=()=>o(e.networkMode)&&e.canRun(),m=r=>{d||(d=!0,e.onSuccess?.(r),t?.(),n(r))},b=n=>{d||(d=!0,e.onError?.(n),t?.(),c(n))},v=()=>new Promise(n=>{t=e=>{(d||p())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),g=()=>{let t;if(d)return;let n=0===h?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(d)return;let n=e.retry??(s.sk?0:3),r=e.retryDelay??a,i="function"==typeof r?r(h,t):r,o=!0===n||"number"==typeof n&&h<n||"function"==typeof n&&n(h,t);if(l||!o){b(t);return}h++,e.onFail?.(h,t),(0,s._v)(i).then(()=>p()?void 0:v()).then(()=>{l?b(t):g()})})};return{promise:f,cancel:t=>{d||(b(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:y,start:()=>(y()?g():v().then(g),f)}}},52360:function(e,t,n){n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},31843:function(e,t,n){n.d(t,{CN:function(){return R},Ht:function(){return O},KC:function(){return u},Kp:function(){return o},Nc:function(){return c},PN:function(){return a},Rm:function(){return d},SE:function(){return s},VS:function(){return y},VX:function(){return S},X7:function(){return h},Ym:function(){return f},ZT:function(){return i},_v:function(){return g},_x:function(){return l},cG:function(){return I},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==d(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!s||!!s(t))}function h(e,t){let{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(s))return!1}else if(!p(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function d(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!v(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(v(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=m(t)&&m(n);if(r||b(t)&&b(n)){let i=r?t:Object.keys(t),s=i.length,a=r?n:Object.keys(n),o=a.length,u=r?[]:{},c=0;for(let s=0;s<o;s++){let o=r?s:a[s];(!r&&i.includes(o)||r)&&void 0===t[o]&&void 0===n[o]?(u[o]=void 0,c++):(u[o]=e(t[o],n[o]),u[o]===t[o]&&void 0!==t[o]&&c++)}return s===o&&c===s?t:u}return n}(e,t):t}function S(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function O(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var R=Symbol();function I(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==R?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},86655:function(e,t,n){n.d(t,{NL:function(){return a},aH:function(){return o}});var r=n(46760),i=n(25418),s=r.createContext(void 0),a=e=>{let t=r.useContext(s);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},o=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:n})}},59485:function(e,t,n){let r;n.d(t,{a:function(){return C}});var i=n(31843),s=n(66714),a=n(81167),o=n(52360),u=n(35789),c=class extends o.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#f=null,this.bindMethods(),this.setOptions(t)}#d;#p=void 0;#y=void 0;#m=void 0;#b;#v;#f;#g;#w;#S;#O;#R;#I;#P=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#p.addObserver(this),l(this.#p,this.options)?this.#E():this.updateResult(),this.#C())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#p,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#p,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#$(),this.#x(),this.#p.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#p;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.Nc)(this.options.enabled,this.#p))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#p.setOptions(this.options),n._defaulted&&!(0,i.VS)(this.options,n)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#p,observer:this});let s=this.hasListeners();s&&d(this.#p,r,this.options,n)&&this.#E(),this.updateResult(t),s&&(this.#p!==r||(0,i.Nc)(this.options.enabled,this.#p)!==(0,i.Nc)(n.enabled,this.#p)||(0,i.KC)(this.options.staleTime,this.#p)!==(0,i.KC)(n.staleTime,this.#p))&&this.#k();let a=this.#F();s&&(this.#p!==r||(0,i.Nc)(this.options.enabled,this.#p)!==(0,i.Nc)(n.enabled,this.#p)||a!==this.#I)&&this.#M(a)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,i.VS)(this.getCurrentResult(),n)||(this.#m=n,this.#v=this.options,this.#b=this.#p.state),n}getCurrentResult(){return this.#m}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#P.add(e)}getCurrentQuery(){return this.#p}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#E({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#m))}#E(e){this.#T();let t=this.#p.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.ZT)),t}#k(){this.#$();let e=(0,i.KC)(this.options.staleTime,this.#p);if(i.sk||this.#m.isStale||!(0,i.PN)(e))return;let t=(0,i.Kp)(this.#m.dataUpdatedAt,e);this.#O=setTimeout(()=>{this.#m.isStale||this.updateResult()},t+1)}#F(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#p):this.options.refetchInterval)??!1}#M(e){this.#x(),this.#I=e,!i.sk&&!1!==(0,i.Nc)(this.options.enabled,this.#p)&&(0,i.PN)(this.#I)&&0!==this.#I&&(this.#R=setInterval(()=>{(this.options.refetchIntervalInBackground||a.j.isFocused())&&this.#E()},this.#I))}#C(){this.#k(),this.#M(this.#F())}#$(){this.#O&&(clearTimeout(this.#O),this.#O=void 0)}#x(){this.#R&&(clearInterval(this.#R),this.#R=void 0)}createResult(e,t){let n;let r=this.#p,s=this.options,a=this.#m,o=this.#b,c=this.#v,h=e!==r?e.state:this.#y,{state:p}=e,y={...p},m=!1;if(t._optimisticResults){let n=this.hasListeners(),i=!n&&l(e,t),a=n&&d(e,r,t,s);(i||a)&&(y={...y,...(0,u.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:g}=y;if(t.select&&void 0!==y.data){if(a&&y.data===o?.data&&t.select===this.#g)n=this.#w;else try{this.#g=t.select,n=t.select(y.data),n=(0,i.oE)(a?.data,n,t),this.#w=n,this.#f=null}catch(e){this.#f=e}}else n=y.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===g){let e;if(a?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#S?.state.data,this.#S):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#f=null}catch(e){this.#f=e}void 0!==e&&(g="success",n=(0,i.oE)(a?.data,e,t),m=!0)}this.#f&&(b=this.#f,n=this.#w,v=Date.now(),g="error");let w="fetching"===y.fetchStatus,S="pending"===g,O="error"===g,R=S&&w,I=void 0!==n;return{status:g,fetchStatus:y.fetchStatus,isPending:S,isSuccess:"success"===g,isError:O,isInitialLoading:R,isLoading:R,data:n,dataUpdatedAt:y.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:w,isRefetching:w&&!S,isLoadingError:O&&!I,isPaused:"paused"===y.fetchStatus,isPlaceholderData:m,isRefetchError:O&&I,isStale:f(e,t),refetch:this.refetch}}updateResult(e){let t=this.#m,n=this.createResult(this.#p,this.options);if(this.#b=this.#p.state,this.#v=this.options,void 0!==this.#b.data&&(this.#S=this.#p),(0,i.VS)(n,t))return;this.#m=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#P.size)return!0;let r=new Set(n??this.#P);return this.options.throwOnError&&r.add("error"),Object.keys(this.#m).some(e=>this.#m[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#j({...r,...e})}#T(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#p)return;let t=this.#p;this.#p=e,this.#y=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#C()}#j(e){s.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#m)}),this.#d.getQueryCache().notify({query:this.#p,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,n){if(!1!==(0,i.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&f(e,t)}return!1}function d(e,t,n,r){return(e!==t||!1===(0,i.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&f(e,n)}function f(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&e.isStaleByTime((0,i.KC)(t.staleTime,e))}var p=n(46760);n(25418);var y=p.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),m=()=>p.useContext(y),b=n(86655),v=p.createContext(!1),g=()=>p.useContext(v);v.Provider;var w=n(24589),S=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},O=e=>{p.useEffect(()=>{e.clearReset()},[e])},R=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(0,w.L)(r,[t.error,i])},I=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},P=(e,t)=>e?.suspense&&t.isPending,E=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function C(e,t){return function(e,t,n){var r,i,a,o;let u=(0,b.NL)(n),c=g(),l=m(),h=u.defaultQueryOptions(e);null===(i=u.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=c?"isRestoring":"optimistic",I(h),S(h,l),O(l);let[d]=p.useState(()=>new t(u,h)),f=d.getOptimisticResult(h);if(p.useSyncExternalStore(p.useCallback(e=>{let t=c?()=>void 0:d.subscribe(s.V.batchCalls(e));return d.updateResult(),t},[d,c]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(h,{listeners:!1})},[h,d]),P(h,f))throw E(h,d,l);if(R({result:f,errorResetBoundary:l,throwOnError:h.throwOnError,query:u.getQueryCache().get(h.queryHash)}))throw f.error;return null===(o=u.getDefaultOptions().queries)||void 0===o||null===(a=o._experimental_afterQuery)||void 0===a||a.call(o,h,f),h.notifyOnChangeProps?f:d.trackResult(f)}(e,c,t)}},24589:function(e,t,n){function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},30973:function(e,t,n){n.d(t,{G:function(){return u}});var r,i,s=n(46881);let a=()=>`@wagmi/core@${s.i}`;var o=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class u extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return a()}constructor(e,t={}){super(),r.add(this),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:"WagmiCoreError"});let n=t.cause instanceof u?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof u&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return o(this,r,"m",i).call(this,this,e)}}r=new WeakSet,i=function e(t,n){return n?.(t)?t:t.cause?o(this,r,"m",e).call(this,t.cause,n):t}},24339:function(e,t,n){function r(e){return JSON.stringify(e,(e,t)=>!function(e){if(!i(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(i(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:s,maxPages:a,meta:o,networkMode:u,queryFn:c,queryHash:l,queryKey:h,queryKeyHashFn:d,retry:f,retryDelay:p,structuralSharing:y,getPreviousPageParam:m,getNextPageParam:b,initialPageParam:v,_optimisticResults:g,enabled:w,notifyOnChangeProps:S,placeholderData:O,refetchInterval:R,refetchIntervalInBackground:I,refetchOnMount:P,refetchOnReconnect:E,refetchOnWindowFocus:C,retryOnMount:$,select:x,staleTime:T,suspense:k,throwOnError:F,config:M,connector:j,query:A,...Q}=e;return Q}n.d(t,{OP:function(){return s},kq:function(){return r}})},84151:function(e,t,n){n.d(t,{s:function(){return r}});function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}},46881:function(e,t,n){n.d(t,{i:function(){return r}});let r="2.13.5"},18773:function(e,t,n){n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},30281:function(e,t,n){n.d(t,{F:function(){return s},Hk:function(){return a},a_:function(){return i}});var r=n(18773);class i extends r.G{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"})}}class s extends r.G{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 a extends r.G{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"})}}},96235:function(e,t,n){n.d(t,{$r:function(){return i},TT:function(){return a},_D:function(){return u},aZ:function(){return c},jO:function(){return s},zL:function(){return o}});var r=n(18773);class i extends r.G{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"})}}class s extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class a extends r.G{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 o extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class u extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.G{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"})}}},57319:function(e,t,n){n.d(t,{H6:function(){return a},Vs:function(){return s},wn:function(){return i}});var r=n(18773);class i extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class s extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.G{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"})}}},29052:function(e,t,n){n.d(t,{Dt:function(){return P},EC:function(){return w},LY:function(){return R},N0:function(){return p},PI:function(){return v},QM:function(){return O},SA:function(){return a},Wg:function(){return I},_c:function(){return s},a4:function(){return b},c3:function(){return u},g1:function(){return y},l$:function(){return d},rh:function(){return h},wA:function(){return c}});var r=n(41923);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function a(e){return(0,r.Zw)(i,e)}let o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return o.test(e)}function c(e){return(0,r.Zw)(o,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function h(e){return l.test(e)}function d(e){return(0,r.Zw)(l,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return f.test(e)}function y(e){return(0,r.Zw)(f,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return m.test(e)}function v(e){return(0,r.Zw)(m,e)}let g=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return g.test(e)}let S=/^receive\(\) external payable$/;function O(e){return S.test(e)}let R=new Set(["memory","indexed","storage","calldata"]),I=new Set(["indexed"]),P=new Set(["calldata","memory","storage"])},31991:function(e,t,n){n.d(t,{D:function(){return h}});var r=n(41923),i=n(30281),s=n(96235),a=n(57319),o=n(18773);class u extends o.G{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"})}}var c=n(29052),l=n(34468);function h(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.N0)(n))continue;let i=(0,c.g1)(n);if(!i)throw new a.wn({signature:n,type:"struct"});let s=i.properties.split(";"),o=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});o.push(n)}if(!o.length)throw new a.H6({signature:n});t[i.name]=o}let o={},h=Object.entries(t),f=h.length;for(let e=0;e<f;e++){let[n,a]=h[e];o[n]=function e(t,n,a=new Set){let o=[],c=t.length;for(let h=0;h<c;h++){let c=t[h];if(r.cN.test(c.type))o.push(c);else{let t=(0,r.Zw)(d,c.type);if(!t?.type)throw new s.aZ({abiParameter:c});let{array:h,type:f}=t;if(f in n){if(a.has(f))throw new u({type:f});o.push({...c,type:`tuple${h??""}`,components:e(n[f]??[],n,new Set([...a,f]))})}else if((0,l.uN)(f))o.push(c);else throw new i.F({type:f})}}return o}(a,t)}return o}let d=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},34468:function(e,t,n){n.d(t,{uN:function(){return b},C$:function(){return y},cK:function(){return h},Q4:function(){return m}});var r=n(41923),i=n(30281),s=n(96235),a=n(57319),o=n(18773);class u extends o.G{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"})}}let c=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}]]);var l=n(29052);function h(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new a.wn({signature:e,type:"function"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let o=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)o.push(y(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:o}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new a.wn({signature:e,type:"event"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new a.wn({signature:e,type:"error"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new a.wn({signature:e,type:"constructor"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let d=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function y(e,t){var n,a,o;let u;let h=(n=t?.type)?`${n}:${e}`:e;if(c.has(h))return c.get(h);let g=r.cN.test(e),w=(0,r.Zw)(g?f:d,e);if(!w)throw new s.jO({param:e});if(w.name&&("address"===(a=w.name)||"bool"===a||"function"===a||"string"===a||"tuple"===a||r.eL.test(a)||r.lh.test(a)||v.test(a)))throw new s.TT({param:e,name:w.name});let S=w.name?{name:w.name}:{},O="indexed"===w.modifier?{indexed:!0}:{},R=t?.structs??{},I={};if(g){u="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(y(e[r],{structs:R}));I={components:t}}else if(w.type in R)u="tuple",I={components:R[w.type]};else if(p.test(w.type))u=`${w.type}256`;else if(u=w.type,t?.type!=="struct"&&!b(u))throw new i.Hk({type:u});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new s.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(o=u,!w.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new s._D({param:e,type:t?.type,modifier:w.modifier})}let P={type:`${u}${w.array??""}`,...S,...O,...I};return c.set(h,P),P}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],a=e.slice(s+1);switch(i){case",":return 0===r?m(a,[...t,n.trim()]):m(a,t,`${n}${i}`,r);case"(":return m(a,t,`${n}${i}`,r+1);case")":return m(a,t,`${n}${i}`,r-1);default:return m(a,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new u({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let v=/^(?: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)$/},41923:function(e,t,n){function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return a},eL:function(){return i},lh:function(){return s}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/},8258:function(e,t,n){n.d(t,{z:function(){return o}});let r=new Map,i=new Map;async function s(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let s=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),s=t(e,i);return{clear:()=>{n.clear(),s.clear()},promise:n,response:s}}(t),a=s.response.get();if(a&&n>0&&new Date().getTime()-a.created.getTime()<n)return a.data;let o=s.promise.get();o||(o=e(),s.promise.set(o));try{let e=await o;return s.response.set({created:new Date,data:e}),e}finally{s.promise.clear()}}let a=e=>`blockNumber.${e}`;async function o(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await s(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},17263:function(e,t,n){n.d(t,{f:function(){return a}});var r=n(29334),i=n(72417),s=n(37365);async function a(e,{blockHash:t,blockNumber:n,blockTag:a,hash:o,index:u}){let c=a||"latest",l=void 0!==n?(0,i.eC)(n):void 0,h=null;if(o?h=await e.request({method:"eth_getTransactionByHash",params:[o]},{dedupe:!0}):t?h=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.eC)(u)]},{dedupe:!0}):(l||c)&&(h=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,(0,i.eC)(u)]},{dedupe:!!l})),!h)throw new r.Bh({blockHash:t,blockNumber:n,blockTag:c,hash:o,index:u});return(e.chain?.formatters?.transaction?.format||s.Tr)(h)}},92911:function(e,t,n){n.d(t,{a:function(){return a}});var r=n(87510),i=n(8258),s=n(17263);async function a(e,{hash:t,transactionReceipt:n}){let[a,o]=await Promise.all([(0,r.s)(e,i.z,"getBlockNumber")({}),t?(0,r.s)(e,s.f,"getTransaction")({hash:t}):void 0]),u=n?.blockNumber||o?.blockNumber;return u?a-u+1n:0n}},87510:function(e,t,n){n.d(t,{s:function(){return r}});function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}},17019:function(e,t,n){n.d(t,{V:function(){return o},F:function(){return u}});var r=n(46760);let i=!1;async function s(e,t={}){let n;if(i)return[];i=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let r=[];if(t.connectors?.length)for(let n of t.connectors){let t;t="function"==typeof n?e._internal.connectors.setup(n):n,r.push(t)}else r.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let s={};for(let[,t]of e.state.connections)s[t.connector.id]=1;n&&(s[n]=0);let a=Object.keys(s).length>0?[...r].sort((e,t)=>(s[e.id]??10)-(s[t.id]??10)):r,o=!1,u=[],c=[];for(let t of a){let n=await t.getProvider().catch(()=>void 0);if(!n||c.some(e=>e===n)||!await t.isAuthorized())continue;let r=await t.connect({isReconnecting:!0}).catch(()=>null);r&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let n=new Map(o?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:o?e.current:t.uid,connections:n}}),u.push({accounts:r.accounts,chainId:r.chainId,connector:t}),c.push(n),o=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(o?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),i=!1,u}function a(e){let{children:t,config:n,initialState:i,reconnectOnMount:a=!0}=e,{onMount:o}=function(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){if(e._internal.ssr){await e._internal.store.persist.rehydrate();let t=e._internal.mipd?.getProviders().map(e._internal.connectors.providerDetailToConnector).map(e._internal.connectors.setup);e._internal.connectors.setState(e=>[...e,...t??[]])}r?s(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:i,reconnectOnMount:a});n._internal.ssr||o();let u=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(u.current&&n._internal.ssr)return o(),()=>{u.current=!1}},[]),t}let o=(0,r.createContext)(void 0);function u(e){let{children:t,config:n}=e;return(0,r.createElement)(a,e,(0,r.createElement)(o.Provider,{value:n},t))}},39870:function(e,t,n){function r(e){return e.state.chainId}n.d(t,{x:function(){return a}});var i=n(46760),s=n(24143);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},24143:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(46760),i=n(17019),s=n(30973);let a=()=>"wagmi@2.12.11";class o extends s.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return a()}}class u extends o{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null!==(e=t.config)&&void 0!==e?e:(0,r.useContext)(i.V);if(!n)throw new u;return n}},65684:function(e,t,n){n.d(t,{aM:function(){return s}});var r=n(59485),i=n(24339);function s(e){let t=(0,r.a)({...e,queryKeyHashFn:i.kq});return t.queryKey=e.queryKey,t}}}]);
@@ -1,36 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4114],{65480:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,a),!0;case 6:return l.fn.call(l.context,t,r,i,a,o),!0}for(u=1,c=Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(h=1,c=Array(d-1);h<d;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},41766:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
2
- * @license lucide-react v0.408.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */let r=(0,n(47605).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},84321:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
7
- * @license lucide-react v0.408.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */let r=(0,n(47605).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},76081:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
12
- * @license lucide-react v0.408.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */let r=(0,n(47605).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},21805:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
17
- * @license lucide-react v0.408.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */let r=(0,n(47605).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},264:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
22
- * @license lucide-react v0.408.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */let r=(0,n(47605).Z)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},64541:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
27
- * @license lucide-react v0.408.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */let r=(0,n(47605).Z)("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]])},12010:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
32
- * @license lucide-react v0.408.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */let r=(0,n(47605).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},90966:function(){},32525:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(46760),i=n(38098),a=n(25418),o="horizontal",s=["horizontal","vertical"],c=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=o,...c}=e,u=s.includes(r)?r:o;return(0,a.jsx)(i.WV.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var u=c},1130:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(33216),i="#1A1B1F",a={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:i},orange:{accentColor:"#FF983D",accentColorForeground:i},pink:{accentColor:"#FF7AB8",accentColorForeground:i},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},o=a.blue,s=function(){let{accentColor:e=o.accentColor,accentColorForeground:t=o.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:i,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};s.accentColors=a},10286:function(e,t,n){"use strict";n.d(t,{S:function(){return g}});var r=n(31843),i=n(35789),a=n(66714),o=n(52360),s=class extends o.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let a=t.queryKey,o=t.queryHash??(0,r.Rm)(a,t),s=this.get(o);return s||(s=new i.A({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(77202),u=class extends o.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#n=Date.now()}#t;#n;build(e,t,n){let r=new c.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=l(e),n=this.#t.get(t)??[];n.push(e),this.#t.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=l(e);if(this.#t.has(t)){let n=this.#t.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#t.delete(t):this.#t.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(l(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(l(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function l(e){return e.options.scope?.id??String(e.mutationId)}var d=n(81167),h=n(30505);function f(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var g=class{#r;#i;#a;#o;#s;#c;#u;#l;constructor(e={}){this.#r=e.queryCache||new s,this.#i=e.mutationCache||new u,this.#a=e.defaultOptions||{},this.#o=new Map,this.#s=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#u=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#u?.(),this.#u=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),i=this.#r.build(this,n);return e.revalidateIfStale&&i.isStaleByTime((0,r.KC)(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#r.get(i.queryHash),o=a?.state.data,s=(0,r.SE)(t,o);if(void 0!==s)return this.#r.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return a.V.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;a.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r,r={type:"active",...e};return a.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(a.V.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return a.V.batch(()=>{if(this.#r.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(a.V.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let i=async()=>{let n;let i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],s=e.state.data?.pageParams||[],c=!1,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},l=(0,r.cG)(e.options,e.fetchOptions),d=async(t,n,i)=>{if(c)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:n,direction:i?"backward":"forward",meta:e.options.meta};u(a);let o=await l(a),{maxPages:s}=e.options,d=i?r.Ht:r.VX;return{pages:d(t.pages,o,s),pageParams:d(t.pageParams,n,s)}};if(a&&o.length){let e="backward"===a,t={pages:o,pageParams:s},r=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:f)(i,t);n=await d(t,r,e)}else{n=await d({pages:[],pageParams:[]},s[0]??i.initialPageParam);let e=t??o.length;for(let t=1;t<e;t++){let e=f(i,n);if(null==e)break;n=await d(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=i}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#i}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#o.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#s.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#i.clear()}}},87244:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(87288),i=n(18701),a=n(46812),o=n(98094),s=n(29673),c=n(28956),u=n(72417);function l(e={}){let t,d,h,f,g,p,m,y;return(0,r.K)(r=>({id:"metaMaskSDK",name:"MetaMask",type:l.type,async setup(){let e=await this.getProvider();e&&!p&&(p=this.onConnect.bind(this),e.on("connect",p))},async connect({chainId:e,isReconnecting:n}={}){let r=await this.getProvider();m||(m=this.onDisplayUri,r.on("display_uri",m));let i=[];n&&(i=await this.getAccounts().catch(()=>[]));try{i?.length||(i=(await t.connect()).map(e=>(0,a.K)(e)));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===o.ab.code)throw e;return{id:n}});n=t?.id??n}return m&&(r.removeListener("display_uri",m),m=void 0),p&&(r.removeListener("connect",p),p=void 0),f||(f=this.onAccountsChanged.bind(this),r.on("accountsChanged",f)),g||(g=this.onChainChanged.bind(this),r.on("chainChanged",g)),y||(y=this.onDisconnect.bind(this),r.on("disconnect",y)),{accounts:i,chainId:n}}catch(e){if(e.code===o.ab.code)throw new o.ab(e);if(e.code===o.pT.code)throw new o.pT(e);throw e}},async disconnect(){let e=await this.getProvider();f&&(e.removeListener("accountsChanged",f),f=void 0),g&&(e.removeListener("chainChanged",g),g=void 0),y&&(e.removeListener("disconnect",y),y=void 0),p||(p=this.onConnect.bind(this),e.on("connect",p)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,a.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function i(){return t=new(await (async()=>{let{default:e}=await Promise.all([n.e(3062),n.e(4735)]).then(n.t.bind(n,49908,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({_source:"wagmi",...e,readonlyRPCMap:Object.fromEntries(r.chains.map(e=>{let[t]=function(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}({chain:e,transports:r.transports});return[e.id,t]})),dappMetadata:e.dappMetadata??{name:"wagmi"},useDeeplink:e.useDeeplink??!0}),await t.init(),t.getProvider()}return d||(h||(h=i()),d=await h),d},async isAuthorized(){try{return!!(await (0,s.J)(()=>(0,c.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),a=r.chains.find(e=>e.id===t);if(!a)throw new o.x3(new i.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&r.emitter.emit("change",{chainId:t})}),new Promise(e=>r.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),a}catch(r){if(4902===r.code||r?.data?.originalError?.code===4902)try{let r,i;let{default:s,...c}=a.blockExplorers??{};e?.blockExplorerUrls?r=e.blockExplorerUrls:s&&(r=[s.url,...Object.values(c).map(e=>e.url)]),i=e?.rpcUrls?.length?e.rpcUrls:[a.rpcUrls.default?.http[0]??""];let l={blockExplorerUrls:r,chainId:(0,u.eC)(t),chainName:e?.chainName??a.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??a.nativeCurrency,rpcUrls:i};if(await n.request({method:"wallet_addEthereumChain",params:[l]}),await this.getChainId()!==t)throw new o.ab(Error("User rejected switch after adding network."));return a}catch(e){throw new o.ab(e)}if(r.code===o.ab.code)throw new o.ab(r);throw new o.x3(r)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(r.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else r.emitter.emit("change",{accounts:e.map(e=>(0,a.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);r.emitter.emit("connect",{accounts:t,chainId:n});let i=await this.getProvider();p&&(i.removeListener("connect",p),p=void 0),f||(f=this.onAccountsChanged.bind(this),i.on("accountsChanged",f)),g||(g=this.onChainChanged.bind(this),i.on("chainChanged",g)),y||(y=this.onDisconnect.bind(this),i.on("disconnect",y))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(r.emitter.emit("disconnect"),f||(f=this.onAccountsChanged.bind(this),t.on("accountsChanged",f)),g&&(t.removeListener("chainChanged",g),g=void 0),y&&(t.removeListener("disconnect",y),y=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p)))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})}}))}l.type="metaMask"},62856:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(87288),i=n(4858),a=n(46812),o=n(28956);function s(e={}){let t,c;let{shimDisconnect:u=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:s.type,async connect(){let e=await this.getProvider();if(!e)throw new i.M;let t=await this.getAccounts(),n=await this.getChainId();return c||(c=this.onDisconnect.bind(this),e.on("disconnect",c)),u&&await r.storage?.removeItem("safe.disconnected"),{accounts:t,chainId:n}},async disconnect(){let e=await this.getProvider();if(!e)throw new i.M;c&&(e.removeListener("disconnect",c),c=void 0),u&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new i.M;return(await e.request({method:"eth_accounts"})).map(a.K)},async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await n.e(4732).then(n.bind(n,44732)),i=new r(e),a=await (0,o.F)(()=>i.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!a)throw Error("Could not load Safe information");let{SafeAppProvider:s}=await n.e(5956).then(n.t.bind(n,15956,19));t=new s(a,i)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new i.M;return Number(e.chainId)},async isAuthorized(){try{if(u&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}s.type="safe"},30393:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(17263),i=n(84151);function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.f,"getTransaction")(a)}},87288:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},89821:function(e,t,n){"use strict";n.d(t,{L:function(){return f}});var r=n(46812),i=n(98094),a=n(28956),o=n(29673),s=n(72417),c=n(18701),u=n(4858),l=n(87288);let d=/(rabby|trustwallet)/,h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:g(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>g(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:g(e,"isPhantom")}};function f(e={}){let t,n,p,m;let{shimDisconnect:y=!0,unstable_shimAsyncInject:w}=e;function v(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,l.K)(l=>({get icon(){return v().icon},get id(){return v().id},get name(){return v().name},get supportsSimulation(){return d.test(this.id.toLowerCase())},type:f.type,async setup(){let n=await this.getProvider();n&&e.target&&(p||(p=this.onConnect.bind(this),n.on("connect",p)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:a,isReconnecting:o}={}){let s=await this.getProvider();if(!s)throw new u.M;let c=[];if(o)c=await this.getAccounts().catch(()=>[]);else if(y)try{let e=await s.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw e}try{c?.length||o||(c=(await s.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),p&&(s.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),s.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),s.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),s.on("disconnect",m));let u=await this.getChainId();if(a&&u!==a){let e=await this.switchChain({chainId:a}).catch(e=>{if(e.code===i.ab.code)throw e;return{id:u}});u=e?.id??u}return y&&await l.storage?.removeItem(`${this.id}.disconnected`),e.target||await l.storage?.setItem("injected.connected",!0),{accounts:c,chainId:u}}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw new i.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.M;n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p));try{await (0,a.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}y&&await l.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await l.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new u.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=v();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?g(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(y&&await l.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await l.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==w&&!1!==w){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof w?w:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new u.M}return!!(await (0,o.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.M;let r=l.chains.find(e=>e.id===t);if(!r)throw new i.x3(new c.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&l.emitter.emit("change",{chainId:t})}),new Promise(e=>l.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),r}catch(a){if(4902===a.code||a?.data?.originalError?.code===4902)try{let a,o;let{default:c,...u}=r.blockExplorers??{};e?.blockExplorerUrls?a=e.blockExplorerUrls:c&&(a=[c.url,...Object.values(u).map(e=>e.url)]),o=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let l={blockExplorerUrls:a,chainId:(0,s.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:o};if(await n.request({method:"wallet_addEthereumChain",params:[l]}),await this.getChainId()!==t)throw new i.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new i.ab(e)}if(a.code===i.ab.code)throw new i.ab(a);throw new i.x3(a)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),y&&await l.storage?.removeItem(`${this.id}.disconnected`)}else l.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let i=Number(e.chainId);l.emitter.emit("connect",{accounts:r,chainId:i});let a=await this.getProvider();a&&(p&&(a.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),a.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),a.on("disconnect",m)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))))}}))}function g(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}f.type="injected"},32226:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return P}});var i=n(82095);let a=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let a=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,o=e(r.getState());a=n=>{let r=e(n);if(!i(o,r)){let e=o;t(o=r,e)}},(null==n?void 0:n.fireImmediately)&&t(o,o)}return i(a)},e(t,n,r)},o=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>o(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>o(t)(e)}}},s=(e,t)=>(n,r,i)=>{let a,s,c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,l=new Set,d=new Set;try{a=c.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),n(...e)},r,i);let h=o(c.serialize),f=()=>{let e;let t=h({state:c.partialize({...r()}),version:c.version}).then(e=>a.setItem(c.name,e)).catch(t=>{e=t});if(e)throw e;return t},g=i.setState;i.setState=(e,t)=>{g(e,t),f()};let p=e((...e)=>{n(...e),f()},r,i),m=()=>{var e;if(!a)return;u=!1,l.forEach(e=>e(r()));let t=(null==(e=c.onRehydrateStorage)?void 0:e.call(c,r()))||void 0;return o(a.getItem.bind(a))(c.name).then(e=>{if(e)return c.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===c.version)return e.state;if(c.migrate)return c.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(s=c.merge(e,null!=(t=r())?t:p),!0),f()}).then(()=>{null==t||t(s,void 0),u=!0,d.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{c={...c,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),s||p},c=(e,t)=>(n,r,i)=>{let a,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=n.getItem(e))?t:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,l=new Set,d=s.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},r,i);let h=()=>{let e=s.partialize({...r()});return d.setItem(s.name,{state:e,version:s.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),h()};let g=e((...e)=>{n(...e),h()},r,i),p=()=>{var e,t;if(!d)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:g)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:g))||void 0;return o(d.getItem.bind(d))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(a=s.merge(e,null!=(t=r())?t:g),!0),h()}).then(()=>{null==i||i(a,void 0),a=r(),c=!0,l.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},s.skipHydration||p(),a||g},u=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),s(e,t)):c(e,t),l=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,a),a},d=e=>e?l(e):l;var h=n(89821),f=n(82636);class g{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new f.v})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function p(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function m(e,t){return e.slice(0,t).join(".")||"."}function y(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function w(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,i=[],a=[];return function(o,s){if("object"==typeof s){if(i.length){let e=y(i,this);0===e?i[i.length]=this:(i.splice(e),a.splice(e)),a[a.length]=o;let n=y(i,s);if(0!==n)return r?t.call(this,o,s,m(a,n)):`[ref=${m(a,n)}]`}else i[0]=s,a[0]=o}return n?e.call(this,o,s):s}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}let v={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var b=n(18701);let C=256;var I=n(46881);function P(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:o=function(e){let{deserialize:t=p,key:n="wagmi",serialize:r=w,storage:i=v}=e;function a(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:n,async getItem(e,r){let o=i.getItem(`${n}.${e}`),s=await a(o);return s?t(s)??null:r??null},async setItem(e,t){let o=`${n}.${e}`;null===t?await a(i.removeItem(o)):await a(i.setItem(o,r(t)))},async removeItem(e){await a(i.removeItem(`${n}.${e}`))}}}({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:v}),syncConnectedChain:s=!0,ssr:c=!1,...l}=e,f="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,m=d(()=>l.chains),y=d(()=>[...l.connectors??[],...c?[]:f?.getProviders().map(S)??[]].map(P));function P(e){let t=new g(function(e=11){if(!r||C+e>512){r="",C=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(C,C+++e)}()),n={...e({emitter:t,chains:m.getState(),storage:o,transports:l.transports}),emitter:t,uid:t.uid};return t.on("connect",M),n.setup?.(),n}function S(e){let{info:t}=e,n=e.provider;return(0,h.L)({target:{...t,id:t.rdns,provider:n}})}let k=new Map;function x(){return{chainId:m.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let O="0.0.0-canary-";t=I.i.startsWith(O)?Number.parseInt(I.i.replace(O,"")):Number.parseInt(I.i.split(".")[0]??"0");let q=d(a(o?u(x,{migrate(e,n){if(n===t)return e;let r=x(),i=_(e,r.chainId);return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:a}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=_(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:c,storage:o,version:t}):x));function _(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&m.getState().some(t=>t.id===e.chainId)?e.chainId:t}function A(e){q.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function M(e){"connecting"!==q.getState().status&&"reconnecting"!==q.getState().status&&q.setState(t=>{let n=y.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",A),n.emitter.listenerCount("change")||n.emitter.on("change",A),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",E),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function E(e){q.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",A),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",E),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",M)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return s&&q.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(m.getState().some(t=>t.id===e))return q.setState(t=>({...t,chainId:e??t.chainId}))}),f?.subscribe(e=>{let t=new Map;for(let e of y.getState())t.set(e.id,!0);let n=[];for(let r of e){let e=P(S(r));t.has(e.id)||n.push(e)}(!o||q.persist.hasHydrated())&&y.setState(e=>[...e,...n],!0)}),{get chains(){return m.getState()},get connectors(){return y.getState()},storage:o,getClient:function(e={}){let t;let n=e.chainId??q.getState().chainId,r=m.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new b.X4;{let e=k.get(q.getState().chainId);if(e&&!r)return e;if(!r)throw new b.X4}{let e=k.get(n);if(e)return e}if(l.client)t=l.client({chain:r});else{let e=r.id,n=m.getState().map(e=>e.id),a={};for(let[t,r]of Object.entries(l))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)a[t]=r[e];else{if(n.some(e=>e in r))continue;a[t]=r}}else a[t]=r}t=(0,i.e)({...a,chain:r,batch:a.batch??{multicall:!0},transport:t=>l.transports[e]({...t,connectors:y})})}return k.set(n,t),t},get state(){return q.getState()},setState(e){let t;t="function"==typeof e?e(q.getState()):e;let n=x();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),q.setState(t,!0)},subscribe:(e,t,n)=>q.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:f,store:q,ssr:!!c,syncConnectedChain:s,transports:l.transports,chains:{setState(e){let t="function"==typeof e?e(m.getState()):e;if(0!==t.length)return m.setState(t,!0)},subscribe:e=>m.subscribe(e)},connectors:{providerDetailToConnector:S,setup:P,setState:e=>y.setState("function"==typeof e?e(y.getState()):e,!0),subscribe:e=>y.subscribe(e)},events:{change:A,connect:M,disconnect:E}}}}},82636:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=n(65480)},85598:function(e,t,n){"use strict";n.d(t,{L:function(){return v}});var r=n(89922),i=n(72417),a=n(67832),o=n(15254),s=n(6431),c=n(95033);async function u({hash:e,privateKey:t,to:n="object"}){let{r:a,s:o,recovery:s}=r.secp256k1.sign(e.slice(2),t.slice(2)),u={r:(0,i.eC)(a,{size:32}),s:(0,i.eC)(o,{size:32}),v:s?28n:27n,yParity:s};return"bytes"===n||"hex"===n?(0,c.V)({...u,to:n}):u}var l=n(56114);async function d(e){let{contractAddress:t,chainId:n,nonce:r,privateKey:i,to:a="object"}=e,o=await u({hash:(0,l.t)({contractAddress:t,chainId:n,nonce:r}),privateKey:i,to:a});return"object"===a?{contractAddress:t,chainId:n,nonce:r,...o}:o}var h=n(5878);async function f({message:e,privateKey:t}){return await u({hash:(0,h.r)(e),privateKey:t,to:"hex"})}var g=n(56026),p=n(10359);async function m(e){let{privateKey:t,transaction:n,serializer:r=p.D}=e,i="eip4844"===n.type?{...n,sidecars:!1}:n,a=await u({hash:(0,g.w)(r(i)),privateKey:t});return r(n,a)}var y=n(52440);async function w(e){let{privateKey:t,...n}=e;return await u({hash:(0,y.Jv)(n),privateKey:t,to:"hex"})}function v(e,t={}){let{nonceManager:n}=t,c=(0,i.NC)(r.secp256k1.getPublicKey(e.slice(2),!1));return{...function(e){if("string"==typeof e){if(!(0,o.U)(e,{strict:!1}))throw new a.b({address:e});return{address:e,type:"json-rpc"}}if(!(0,o.U)(e.address,{strict:!1}))throw new a.b({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,experimental_signAuthorization:e.experimental_signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}({address:(0,s.y)(c),nonceManager:n,sign:async({hash:t})=>u({hash:t,privateKey:e,to:"hex"}),experimental_signAuthorization:async t=>d({...t,privateKey:e}),signMessage:async({message:t})=>f({message:t,privateKey:e}),signTransaction:async(t,{serializer:n}={})=>m({privateKey:e,transaction:t,serializer:n}),signTypedData:async t=>w({...t,privateKey:e})}),publicKey:c,source:"privateKey"}}},28090:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var r=n(10042),i=n(86708);class a extends i.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var o=n(15514),s=n(28956),c=n(49476);let u={current:0,take(){return this.current++},reset(){this.current=0}};var l=n(3638);function d(e,t={}){let{batch:n,fetchOptions:i,key:d="http",name:h="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:g,retryDelay:p}=t;return({chain:m,retryCount:y,timeout:w})=>{let{batchSize:v=1e3,wait:b=0}="object"==typeof n?n:{},C=t.retryCount??y,I=w??t.timeout??1e4,P=e||m?.rpcUrls.default.http[0];if(!P)throw new a;let S=function(e,t={}){return{async request(n){let{body:i,onRequest:a=t.onRequest,onResponse:o=t.onResponse,timeout:l=t.timeout??1e4}=n,d={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:h,method:f,signal:g}=d;try{let t;let n=await (0,s.F)(async({signal:t})=>{let n={...d,body:Array.isArray(i)?(0,c.P)(i.map(e=>({jsonrpc:"2.0",id:e.id??u.take(),...e}))):(0,c.P)({jsonrpc:"2.0",id:i.id??u.take(),...i}),headers:{"Content-Type":"application/json",...h},method:f||"POST",signal:g||(l>0?t:null)},r=new Request(e,n);return a&&await a(r),await fetch(e,n)},{errorInstance:new r.W5({body:i,url:e}),timeout:l,signal:!0});if(o&&await o(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new r.Gg({body:i,details:(0,c.P)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Gg||t instanceof r.W5)throw t;throw new r.Gg({body:i,cause:t,url:e})}}}}(P,{fetchOptions:i,onRequest:f,onResponse:g,timeout:I});return(0,l.q)({key:d,name:h,async request({method:e,params:t}){let i={method:e,params:t},{schedule:a}=(0,o.S)({id:P,wait:b,shouldSplitBatch:e=>e.length>v,fn:e=>S.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>n?a(e):[await S.request({body:e})],[{error:c,result:u}]=await s(i);if(c)throw new r.bs({body:i,error:c,url:P});return u},retryCount:C,retryDelay:p,timeout:I,type:"http"},{fetchOptions:i,url:P})}}},47268:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(16096),i=n(41690),a=n(83258),o=n(24240),s=n(43067);function c(e){let{abi:t,data:n}=e,c=(0,i.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.C)((0,s.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,o.r)(u.inputs,(0,i.tP)(n,4)):void 0}}},28956:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let o;try{let s=new AbortController;n>0&&(o=setTimeout(()=>{r?s.abort():a(t)},n)),i(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&a(t),a(e)}finally{clearTimeout(o)}})()})}n.d(t,{F:function(){return r}})},52724:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(86655),i=n(8258),a=n(84151),o=n(24339),s=n(65684),c=n(39870),u=n(24143),l=n(75487),d=n(46760);function h(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:h={},watch:f}=n,g=(0,u.Z)(n),p=(0,r.NL)(),m=(0,c.x)({config:g}),y=null!==(e=n.chainId)&&void 0!==e?e:m,w=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await function(e,t={}){let{chainId:n,...r}=t,o=e.getClient({chainId:n});return(0,a.s)(o,i.z,"getBlockNumber")(r)}(e,r)??null},queryKey:function(e={}){return["blockNumber",(0,o.OP)(e)]}(t)}}(g,{...n,chainId:y});return!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlockNumber:r,config:i,...o}=t,s=(0,u.Z)(t),h=(0,c.x)({config:s}),f=null!==(e=t.chainId)&&void 0!==e?e:h;(0,d.useEffect)(()=>{if(n&&r)return function(e,t){let n,r;let{syncConnectedChain:i=e._internal.syncConnectedChain,...o}=t,s=t=>{n&&n();let r=e.getClient({chainId:t});return n=(0,a.s)(r,l.q,"watchBlockNumber")(o)},c=s(t.chainId);return i&&!t.chainId&&(r=e.subscribe(({chainId:e})=>e,async e=>s(e))),()=>{c?.(),r?.()}}(s,{...o,chainId:f,onBlockNumber:r})},[f,s,n,r,o.onError,o.emitMissed,o.emitOnBegin,o.poll,o.pollingInterval,o.syncConnectedChain])}({...{config:n.config,chainId:n.chainId,..."object"==typeof f?f:{}},enabled:!!((null===(t=h.enabled)||void 0===t||t)&&("object"==typeof f?f.enabled:f)),onBlockNumber(e){p.setQueryData(w.queryKey,e)}}),(0,s.aM)({...h,...w})}},39854:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(15899),i=n(84151),a=n(46760),o=n(39870),s=n(24143);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlock:c,config:u,...l}=t,d=(0,s.Z)(t),h=(0,o.x)({config:d}),f=null!==(e=t.chainId)&&void 0!==e?e:h;(0,a.useEffect)(()=>{if(n&&c)return function(e,t){let n,a;let{syncConnectedChain:o=e._internal.syncConnectedChain,...s}=t,c=t=>{n&&n();let a=e.getClient({chainId:t});return n=(0,i.s)(a,r.p,"watchBlocks")(s)},u=c(t.chainId);return o&&!t.chainId&&(a=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{u?.(),a?.()}}(d,{...l,chainId:f,onBlock:c})},[f,d,n,c,l.blockTag,l.emitMissed,l.emitOnBegin,l.includeTransactions,l.onError,l.poll,l.pollingInterval,l.syncConnectedChain])}},88620:function(e,t,n){"use strict";n.d(t,{oR:function(){return a}});var r=n(46760);let{useSyncExternalStoreWithSelector:i}=n(23064);function a(e,t=e.getState,n){let a=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(a),a}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4384],{4384:function(e,t,a){a.d(t,{offchainLookup:function(){return g},offchainLookupSignature:function(){return m}});var s=a(4815),r=a(49476),n=a(86708),o=a(6255);class c extends n.G{constructor({callbackSelector:e,cause:t,data:a,extraData:s,sender:r,urls:n}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&[" Gateway URL(s):",...n.map(e=>` ${(0,o.G)(e)}`)],` Sender: ${r}`,` Data: ${a}`,` Callback selector: ${e}`,` Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class u extends n.G{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.G)(t)}`,`Response: ${(0,r.P)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class i extends n.G{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}var d=a(10042),f=a(59867),l=a(25756),p=a(92130),h=a(79022),y=a(25006);let m="0x556f1830",w={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function g(e,{blockNumber:t,blockTag:a,data:r,to:n}){let{args:o}=(0,f.p)({data:r,abi:[w]}),[u,d,y,m,g]=o,{ccipRead:b}=e,G=b&&"function"==typeof b?.request?b.request:k;try{if(!(0,p.E)(n,u))throw new i({sender:u,to:n});let r=await G({data:y,sender:u,urls:d}),{data:o}=await (0,s.R)(e,{blockNumber:t,blockTag:a,data:(0,h.zo)([m,(0,l.E)([{type:"bytes"},{type:"bytes"}],[r,g])]),to:n});return o}catch(e){throw new c({callbackSelector:m,cause:e,data:r,extraData:g,sender:u,urls:d})}}async function k({data:e,sender:t,urls:a}){let s=Error("An unknown error occurred.");for(let n=0;n<a.length;n++){let o=a[n],c=o.includes("{data}")?"GET":"POST",i="POST"===c?{data:e,sender:t}:void 0;try{let a;let n=await fetch(o.replace("{sender}",t).replace("{data}",e),{body:JSON.stringify(i),method:c});if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){s=new d.Gg({body:i,details:a?.error?(0,r.P)(a.error):n.statusText,headers:n.headers,status:n.status,url:o});continue}if(!(0,y.v)(a)){s=new u({result:a,url:o});continue}return a}catch(e){s=new d.Gg({body:i,details:e.message,url:o})}}throw s}}}]);