missions.omni.network
Open in
urlscan Pro
76.76.21.22
Public Scan
URL:
https://missions.omni.network/_next/static/chunks/623-bc9c448e9607f280.js
Submission: On August 23 via api from US — Scanned from DE
Submission: On August 23 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[623],{8958: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,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new i(r,a||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),o.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},o.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,s=Array(a);i<a;i++)s[i]=r[i].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var c,u,l=this._events[o],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,s),!0}for(u=1,c=Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var f,h=l.length;for(u=0;u<h;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(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];l[u].fn.apply(l[u].context,c)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,a);else{for(var c=0,u=[],l=o.length;c<l;c++)(o[c].fn!==t||i&&!o[c].once||r&&o[c].context!==r)&&u.push(o[c]);u.length?this._events[a]=1===u.length?u[0]:u:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},2040:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(6003)},8707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(6927),i=n(5909),a=i._(n(6006)),s=r._(n(9209)),o=n(3930),c=n(8706),u=n(3278);n(4745);let l=r._(n(8685)),d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(e){return void 0!==e.default}function h(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function p(e,t,n,r,i,a,s){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let o="decode"in e?e.decode():Promise.resolve();o.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&a(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function m(e){let[t,n]=a.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:i,qualityInt:s,className:o,imgStyle:c,blurStyle:u,isLazy:l,fetchPriority:d,fill:f,placeholder:h,loading:g,srcString:b,config:y,unoptimized:w,loader:v,onLoadRef:A,onLoadingCompleteRef:C,setBlurComplete:P,setShowAltText:E,onLoad:O,onError:I,...x}=e;return g=l?"lazy":g,a.default.createElement("img",{...x,...m(d),loading:g,width:i,height:r,decoding:"async","data-nimg":f?"fill":"1",className:o,style:{...c,...u},...n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(I&&(e.src=e.src),e.complete&&p(e,b,h,A,C,P,w))},[b,h,A,C,P,I,w,t]),onLoad:e=>{let t=e.currentTarget;p(t,b,h,A,C,P,w)},onError:e=>{E(!0),"blur"===h&&P(!0),I&&I(e)}})}),b=(0,a.forwardRef)((e,t)=>{var n;let r,i,{src:p,sizes:b,unoptimized:y=!1,priority:w=!1,loading:v,className:A,quality:C,width:P,height:E,fill:O,style:I,onLoad:x,onLoadingComplete:S,placeholder:B="empty",blurDataURL:j,fetchPriority:M,layout:k,objectFit:D,objectPosition:R,lazyBoundary:N,lazyRoot:F,...L}=e,T=(0,a.useContext)(u.ImageConfigContext),U=(0,a.useMemo)(()=>{let e=d||T||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[T]),Q=L.loader||l.default;delete L.loader;let q="__next_img_default"in Q;if(q){if("custom"===U.loader)throw Error('Image with src "'+p+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=Q;Q=t=>{let{config:n,...r}=t;return e(r)}}if(k){"fill"===k&&(O=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(I={...I,...e});let t={responsive:"100vw",fill:"100vw"}[k];t&&!b&&(b=t)}let G="",z=h(P),W=h(E);if("object"==typeof(n=p)&&(f(n)||void 0!==n.src)){let e=f(p)?p.default:p;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,i=e.blurHeight,j=j||e.blurDataURL,G=e.src,!O){if(z||W){if(z&&!W){let t=z/e.width;W=Math.round(e.height*t)}else if(!z&&W){let t=W/e.height;z=Math.round(e.width*t)}}else z=e.width,W=e.height}}let K=!w&&("lazy"===v||void 0===v);(!(p="string"==typeof p?p:G)||p.startsWith("data:")||p.startsWith("blob:"))&&(y=!0,K=!1),U.unoptimized&&(y=!0),q&&p.endsWith(".svg")&&!U.dangerouslyAllowSVG&&(y=!0),w&&(M="high");let[H,J]=(0,a.useState)(!1),[V,Y]=(0,a.useState)(!1),Z=h(C),X=Object.assign(O?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:D,objectPosition:R}:{},V?{}:{color:"transparent"},I),$="blur"===B&&j&&!H?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,o.getImageBlurSvg)({widthInt:z,heightInt:W,blurWidth:r,blurHeight:i,blurDataURL:j,objectFit:X.objectFit})+'")'}:{},_=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:s,loader:o}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:c,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let a=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:a,kind:"x"}}(t,i,s),l=c.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:c.map((e,r)=>o({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:o({config:t,src:n,quality:a,width:c[l]})}}({config:U,src:p,unoptimized:y,width:z,quality:Z,sizes:b,loader:Q}),ee=p,et=(0,a.useRef)(x);(0,a.useEffect)(()=>{et.current=x},[x]);let en=(0,a.useRef)(S);(0,a.useEffect)(()=>{en.current=S},[S]);let er={isLazy:K,imgAttributes:_,heightInt:W,widthInt:z,qualityInt:Z,className:A,imgStyle:X,blurStyle:$,loading:v,config:U,fetchPriority:M,fill:O,unoptimized:y,placeholder:B,loader:Q,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:J,setShowAltText:Y,...L};return a.default.createElement(a.default.Fragment,null,a.default.createElement(g,{...er,ref:t}),w?a.default.createElement(s.default,null,a.default.createElement("link",{key:"__nimg-"+_.src+_.srcSet+_.sizes,rel:"preload",as:"image",href:_.srcSet?void 0:_.src,imageSrcSet:_.srcSet,imageSizes:_.sizes,crossOrigin:L.crossOrigin,referrerPolicy:L.referrerPolicy,...m(M)})):null)}),y=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return a}});let r=n(6927),i=r._(n(6006)),a=i.default.createContext({})},7060:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},9209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return l},default:function(){return p}});let r=n(6927),i=n(5909),a=i._(n(6006)),s=r._(n(9797)),o=n(1909),c=n(5415),u=n(7060);function l(e){void 0===e&&(e=!1);let t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(4745);let f=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:n}=t;return e.reduce(d,[]).reverse().concat(l(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let a=!0,s=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){s=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?a=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){let t=f[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)n.has(t)?a=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!s)&&n.has(e)?a=!1:(n.add(e),r[t]=n)}}}}return a}}()).reverse().map((e,t)=>{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:r})})}let p=function(e){let{children:t}=e,n=(0,a.useContext)(o.AmpStateContext),r=(0,a.useContext)(c.HeadManagerContext);return a.default.createElement(s.default,{reduceComponentsToState:h,headManager:r,inAmpMode:(0,u.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3930:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:s}=e,o=r||t,c=i||n,u=a.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return o&&c?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+o+" "+c+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&i?"1":"20")+"'/%3E"+u+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+a+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},3278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let r=n(6927),i=r._(n(6006)),a=n(8706),s=i.default.createContext(a.imageConfigDefault)},8706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},8685:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},9797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(5909),i=r._(n(6006)),a=i.useLayoutEffect,s=i.useEffect;function o(e){let{headManager:t,reduceComponentsToState:n}=e;function r(){if(t&&t.mountedInstances){let r=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return a(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),a(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},4745:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},6003:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c=[],u=!1,l=-1;function d(){u&&r&&(u=!1,r.length?c=r.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=c.length;t;){for(r=c,c=[];++l<t;)r&&r[l].run();l=-1,t=c.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||o(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},s=!0;try{t[e](a,a.exports,r),s=!1}finally{s&&delete n[e]}return a.exports}r.ab="//";var i=r(229);e.exports=i}()},3177:function(e,t,n){"use strict";/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(6006),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:l,props:a,_owner:o.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},9268:function(e,t,n){"use strict";e.exports=n(3177)},6394:function(e,t,n){e.exports=n(8707)},1563:function(e,t,n){"use strict";n.d(t,{jc:function(){return m},o5:function(){return p}});let r=Symbol(),i=Symbol(),a=(e,t)=>new Proxy(e,t),s=Object.getPrototypeOf,o=new WeakMap,c=e=>e&&(o.has(e)?o.get(e):s(e)===Object.prototype||s(e)===Array.prototype),u=e=>"object"==typeof e&&null!==e,l=e=>{if(Array.isArray(e))return Array.from(e);let t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(s(e),t)},d=e=>e[i]||e,f=(e,t,n,s)=>{if(!c(e))return e;let o=s&&s.get(e);if(!o){let t=d(e);o=Object.values(Object.getOwnPropertyDescriptors(t)).some(e=>!e.configurable&&!e.writable)?[t,l(t)]:[t],null==s||s.set(e,o)}let[u,h]=o,p=n&&n.get(u);return p&&!!h===p[1].f||((p=((e,t)=>{let n={f:t},a=!1,s=(t,r)=>{if(!a){let i=n.a.get(e);if(i||(i={},n.a.set(e,i)),"w"===t)i.w=!0;else{let e=i[t];e||(e=new Set,i[t]=e),e.add(r)}}},o={get:(t,r)=>r===i?e:(s("k",r),f(Reflect.get(t,r),n.a,n.c,n.t)),has:(t,i)=>i===r?(a=!0,n.a.delete(e),!0):(s("h",i),Reflect.has(t,i)),getOwnPropertyDescriptor:(e,t)=>(s("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(s("w"),Reflect.ownKeys(e))};return t&&(o.set=o.deleteProperty=()=>!1),[o,n]})(u,!!h))[1].p=a(h||u,p[0]),n&&n.set(u,p)),p[1].a=t,p[1].c=n,p[1].t=s,p[1].p},h=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!u(e)||!u(t))return!0;let i=n.get(d(e));if(!i)return!0;if(r){let n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let a=null;try{for(let n of i.h||[])if(a=Reflect.has(e,n)!==Reflect.has(t,n))return a;if(!0===i.w){if(a=((e,t)=>{let n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((e,t)=>e!==r[t])})(e,t))return a}else for(let n of i.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n))return a;for(let s of i.k||[])if(a=h(e[s],t[s],n,r))return a;return null===a&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},p=e=>c(e)&&e[i]||null,m=(e,t=!0)=>{o.set(e,t)}},8727:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(6006),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,o=r.useLayoutEffect,c=r.useDebugValue;function u(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=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return o(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),s(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},4464:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(6006),i=n(3276),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u(function(){function e(e){if(!c){if(c=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,o=n)}var s,o,c=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]);var h=s(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},3276:function(e,t,n){"use strict";e.exports=n(8727)},7737:function(e,t,n){"use strict";e.exports=n(4464)},4699:function(e,t,n){"use strict";n.d(t,{_:function(){return f}});var r,i=n(374);function a(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==typeof e?Number(e):e}var s=n(8748),o=n(7977),c=n(2666),u=n(4888),l=n(9879),d=n(8676),f=class extends s.wR{constructor({chains:e,options:t}={}){let n={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let e=window.ethereum;return e?.providers?e.providers[0]:e},...t};super({chains:e,options:n}),(0,s.ov)(this,"id","injected"),(0,s.ov)(this,"name"),(0,s.ov)(this,"ready"),(0,s.Ko)(this,r,void 0),(0,s.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,s.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,o.K)(e[0])})}),(0,s.ov)(this,"onChainChanged",e=>{let t=a(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})}),(0,s.ov)(this,"onDisconnect",async e=>{if(1013===e.code){let e=await this.getProvider();if(e){let e=await this.getAccount();if(e)return}}this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey)});let i=n.getProvider();if("string"==typeof n.name)this.name=n.name;else if(i){let e=function(e){if(!e)return"Injected";let t=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isStatus?"Status":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(e.providers?.length){let n=new Set,r=1;for(let i of e.providers){let e=t(i);e||(e=`Unknown Wallet #${r}`,r+=1),n.add(e)}let i=[...n];return i.length?i:i[0]??"Injected"}return t(e)??"Injected"}(i);n.name?this.name=n.name(e):"string"==typeof e?this.name=e:this.name=e[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new i.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),r=(0,o.K)(n[0]),a=await this.getChainId(),s=this.isChainUnsupported(a);if(e&&a!==e){let t=await this.switchChain(e);a=t.id,s=this.isChainUnsupported(a)}return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:r,chain:{id:a,unsupported:s}}}catch(e){if(this.isUserRejectedRequestError(e))throw new c.ab(e);if(-32002===e.code)throw new c.pT(e);throw e}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new i.N;let t=await e.request({method:"eth_accounts"});return(0,o.K)(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new i.N;return e.request({method:"eth_chainId"}).then(a)}async getProvider(){let e=this.options.getProvider();return e&&(0,s.qx)(this,r,e),(0,s.ac)(this,r)}async getWalletClient({chainId:e}={}){let[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,u.K)({account:n,chain:r,transport:(0,l.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getProvider();if(!e)throw new i.N;let t=await this.getAccount();return!!t}catch{return!1}}async switchChain(e){let t=await this.getProvider();if(!t)throw new i.N;let n=(0,d.eC)(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(t=>this.on("change",({chain:n})=>{n?.id===e&&t()}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let r=this.chains.find(t=>t.id===e);if(!r)throw new i.B({chainId:e,connectorId:this.id});if(4902===a.code||a?.data?.originalError?.code===4902)try{await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[r.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]});let i=await this.getChainId();if(i!==e)throw new c.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new c.ab(e)}if(this.isUserRejectedRequestError(a))throw new c.ab(a);throw new c.x3(a)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){let a=await this.getProvider();if(!a)throw new i.N;return a.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}isUserRejectedRequestError(e){return 4001===e.code}};r=new WeakMap},8748:function(e,t,n){"use strict";n.d(t,{wR:function(){return g},Ko:function(){return h},ac:function(){return f},U9:function(){return m},qx:function(){return p},ov:function(){return l}});var r=n(8958),i=n(778);n(9171),n(8676),n(5867),n(4283),n(202),n(1378),n(940),n(9372),n(2973),n(1033),n(2551),n(7612);var a=(n(5595),n(4617));n(7732);let s=(0,i.ax)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),o=(0,i.ax)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var c=Object.defineProperty,u=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t,n)=>(u(e,"symbol"!=typeof t?t+"":t,n),n),d=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},f=(e,t,n)=>(d(e,t,"read from private field"),n?n.call(e):t.get(e)),h=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},p=(e,t,n,r)=>(d(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),m=(e,t,n)=>(d(e,t,"access private method"),n),g=class extends r{constructor({chains:e=[o,s],options:t}){super(),l(this,"chains"),l(this,"options"),l(this,"storage"),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}}},374:function(e,t,n){"use strict";n.d(t,{B:function(){return i},N:function(){return a}});var r=n(8748),i=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),(0,r.ov)(this,"name","ChainNotConfiguredForConnectorError")}},a=class extends Error{constructor(){super(...arguments),(0,r.ov)(this,"name","ConnectorNotFoundError"),(0,r.ov)(this,"message","Connector not found")}}},3425:function(e,t,n){"use strict";n.d(t,{QB:function(){return nf},$j:function(){return nB},_g:function(){return nx},o6:function(){return nE},vZ:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,i;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let a=Object.keys(t);if((r=a.length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}},zP:function(){return nj},EG:function(){return nL},w6:function(){return nz},Lk:function(){return nW},D0:function(){return nT},Hy:function(){return nU},wp:function(){return nP},If:function(){return nQ},uH:function(){return nq},QC:function(){return nG}});var r,i,a,s,o,c=n(4699),u=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l=(e,t,n)=>(u(e,t,"read from private field"),n?n.call(e):t.get(e)),d=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},f=(e,t,n,r)=>(u(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),h=(e,t,n)=>(u(e,t,"access private method"),n),p=n(5366),m=n(5073),g=n(397),b=n(4262),y=n(778),w=n(5595),v=n(8676),A=n(782),C=n(9372),P=n(3754);function E(e,t){if(!(e instanceof C.G))return!1;let n=e.walk(e=>e instanceof P.Lu);return n instanceof P.Lu&&(!!(n.data?.errorName==="ResolverNotFound"||n.data?.errorName==="ResolverWildcardNotSupported"||n.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&n.reason===A.$[50])}var O=n(7612),I=n(4617),x=n(6844),S=n(4720);function B(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,S.v)(t)?t:null}function j(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,v.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let r=B(n[e]),i=r?(0,I.O0)(r):(0,x.w)((0,I.qX)(n[e]),"bytes");t=(0,x.w)((0,O.zo)([t,i]),"bytes")}return(0,v.ci)(t)}function M(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,I.qX)(t).byteLength+2),r=0,i=t.split(".");for(let e=0;e<i.length;e++){let t=(0,I.qX)(i[e]);t.byteLength>255&&(t=(0,I.qX)(`[${(function(e){let t=new Uint8Array(32).fill(0);return e?B(e)||(0,x.w)((0,I.qX)(e)):(0,v.ci)(t)})(i[e]).slice(2)}]`)),n[r]=t.length,n.set(t,r+1),r+=t.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var k=n(4570);function D(e,{abi:t,address:n,args:r,docsPath:i,functionName:a,sender:s}){let{code:o,data:c,message:u,shortMessage:l}=e instanceof P.VQ?e:e instanceof C.G?e.walk(e=>"data"in e)||e.walk():{},d=e;return e instanceof k.wb?d=new P.Dk({functionName:a}):3===o&&(c||u||l)&&(d=new P.Lu({abi:t,data:"object"==typeof c?c.data:c,functionName:a,message:l??u})),new P.uq(d,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:s})}var R=n(6970);async function N(e,{abi:t,address:n,args:r,functionName:i,...a}){let s=(0,b.R)({abi:t,args:r,functionName:i});try{let{data:o}=await (0,R.R)(e,{data:s,to:n,...a});return(0,g.k)({abi:t,args:r,functionName:i,data:o||"0x"})}catch(e){throw D(e,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:i})}}async function F(e,{blockNumber:t,blockTag:n,coinType:r,name:i,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,y.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,b.R)({abi:m.X$,functionName:"addr",...null!=r?{args:[j(i),BigInt(r)]}:{args:[j(i)]}}),o=await N(e,{address:s,abi:m.k3,functionName:"resolve",args:[(0,v.NC)(M(i)),a],blockNumber:t,blockTag:n});if("0x"===o[0])return null;let c=(0,w.f)((0,g.k)({abi:m.X$,args:null!=r?[j(i),BigInt(r)]:void 0,functionName:"addr",data:o[0]}));if("0x"===c||"0x00"===(0,w.f)(c))return null;return c}catch(e){if(E(e,"resolve"))return null;throw e}}class L extends C.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class T extends C.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class U extends C.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class Q extends C.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}let q=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,G=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,z=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,W=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function K(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function H(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function J({uri:e,gatewayUrls:t}){let n=z.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=H(t?.ipfs,"https://ipfs.io"),i=H(t?.arweave,"https://arweave.net"),a=e.match(q),{protocol:s,subpath:o,target:c,subtarget:u=""}=a?.groups||{},l="ipns:/"===s||"ipns/"===o,d="ipfs:/"===s||"ipfs/"===o||G.test(e);if(e.startsWith("http")&&!l&&!d){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((l||d)&&c)return{uri:`${r}/${l?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&c)return{uri:`${i}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(W,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new U({uri:e})}function V(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new L({data:e});return e.image||e.image_url||e.image_data}async function Y({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json()),r=await Z({gatewayUrls:e,uri:V(n)});return r}catch{throw new U({uri:t})}}async function Z({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=J({uri:t,gatewayUrls:e});if(r)return n;let i=await K(n);if(i)return n;throw new U({uri:t})}async function X(e,{nft:t}){if("erc721"===t.namespace)return N(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return N(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new Q({namespace:t.namespace})}async function $(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?_(e,{gatewayUrls:t,record:n}):Z({uri:n,gatewayUrls:t})}async function _(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,i]=t.split("/"),[a,s]=n.split(":"),[o,c]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new T({reason:"Only EIP-155 supported"});if(!s)throw new T({reason:"Chain ID not found"});if(!c)throw new T({reason:"Contract address not found"});if(!i)throw new T({reason:"Token ID not found"});if(!o)throw new T({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:o.toLowerCase(),contractAddress:c,tokenID:i}}(n),i=await X(e,{nft:r}),{uri:a,isOnChain:s,isEncoded:o}=J({uri:i,gatewayUrls:t});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){let e=o?atob(a.replace("data:application/json;base64,","")):a,n=JSON.parse(e);return Z({uri:V(n),gatewayUrls:t})}let c=r.tokenID;return"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0")),Y({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function ee(e,{blockNumber:t,blockTag:n,name:r,key:i,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,y.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=await N(e,{address:s,abi:m.k3,functionName:"resolve",args:[(0,v.NC)(M(r)),(0,b.R)({abi:m.nZ,functionName:"text",args:[j(r),i]})],blockNumber:t,blockTag:n});if("0x"===a[0])return null;let o=(0,g.k)({abi:m.nZ,functionName:"text",data:a[0]});return""===o?null:o}catch(e){if(E(e,"resolve"))return null;throw e}}async function et(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:i,universalResolverAddress:a}){let s=await ee(e,{blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:a});if(!s)return null;try{return await $(e,{record:s,gatewayUrls:r})}catch{return null}}async function en(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,y.LI)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let s=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let t=await N(e,{address:a,abi:m.du,functionName:"reverse",args:[(0,v.NC)(M(s))],blockNumber:n,blockTag:r});return t[0]}catch(e){if(E(e,"reverse"))return null;throw e}}async function er(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,y.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[s]=await N(e,{address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,v.NC)(M(r))],blockNumber:t,blockTag:n});return s}function ei(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:i,transport:a})=>{"success"===i&&t===e&&(n[r]=a.request)}),t=>n[t]||e.request}async function ea(e){let t=ei(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class es extends C.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var eo=n(6914);let ec=e=>"string"==typeof e?(0,eo.F)(e):(0,eo.J)(e);var eu=n(6270),el=n(4528),ed=n(8029);function ef({abi:e,eventName:t,args:n}){let r=e[0];if(t&&!(r=(0,ed.m)({abi:e,args:n,name:t})))throw new k.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==r.type)throw new k.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let i=(0,el.t)(r),a=ec(i),s=[];if(n&&"inputs"in r){let e=r.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>eh({param:e,value:t[n][i]})):t[n]?eh({param:e,value:t[n]}):null)??[])}return[a,...s]}function eh({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,x.w)((0,I.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new es(e.type);return(0,eu.E)([e],[t])}async function ep(e,{address:t,abi:n,args:r,eventName:i,fromBlock:a,strict:s,toBlock:o}){let c=ei(e,{method:"eth_newFilter"}),u=i?ef({abi:n,args:r,eventName:i}):void 0,l=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,v.eC)(a):a,toBlock:"bigint"==typeof o?(0,v.eC)(o):o,topics:u}]});return{abi:n,args:r,eventName:i,id:l,request:c(l),strict:s,type:"event"}}async function em(e,{address:t,args:n,event:r,fromBlock:i,strict:a,toBlock:s}={}){let o=ei(e,{method:"eth_newFilter"}),c=[];r&&(c=ef({abi:[r],eventName:r.name,args:n}));let u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof i?(0,v.eC)(i):i,toBlock:"bigint"==typeof s?(0,v.eC)(s):s,...c.length?{topics:c}:{}}]});return{abi:r?[r]:void 0,args:n,eventName:r?r.name:void 0,id:u,request:o(u),strict:a,type:"event"}}async function eg(e){let t=ei(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var eb=n(25),ey=n(161);async function ew(e,{abi:t,address:n,args:r,functionName:i,...a}){let s=(0,b.R)({abi:t,args:r,functionName:i});try{let t=await (0,ey.Q)(e,{data:s,to:n,...a});return t}catch(s){let e=a.account?(0,eb.T)(a.account):void 0;throw D(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:i,sender:e?.address})}}async function ev(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=n?(0,v.eC)(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,i||r]});return BigInt(a)}var eA=n(4446);let eC=new Map,eP=new Map;async function eE(e,{cacheKey:t,maxAge:n=1/0}){let r=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,eC),r=t(e,eP);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(t),i=r.response.get();if(i&&n>0){let e=new Date().getTime()-i.created.getTime();if(e<n)return i.data}let a=r.promise.get();a||(a=e(),r.promise.set(a));try{let e=await a;return r.response.set({created:new Date,data:e}),e}finally{r.promise.clear()}}let eO=e=>`blockNumber.${e}`;async function eI(e,{maxAge:t=e.pollingInterval}={}){let n=await eE(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eO(e.uid),maxAge:t});return BigInt(n)}var ex=n(9171);async function eS(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i;let a=void 0!==n?(0,v.eC)(n):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]}),(0,ex.ly)(i)}async function eB(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=void 0!==n?(0,v.eC)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,i||r]});if("0x"!==a)return a}var ej=n(225);async function eM(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){let a=n?(0,v.eC)(n):void 0,s=await e.request({method:"eth_feeHistory",params:[(0,v.eC)(t),a||r,i]});return{baseFeePerGas:s.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:s.gasUsedRatio,oldestBlock:BigInt(s.oldestBlock),reward:s.reward?.map(e=>e.map(e=>BigInt(e)))}}var ek=n(9157);let eD="/docs/contract/decodeEventLog";function eR({abi:e,data:t,strict:n,topics:r}){let i=n??!0,[a,...s]=r;if(!a)throw new k.FM({docsPath:eD});let o=e.find(e=>"event"===e.type&&a===ec((0,el.t)(e)));if(!(o&&"name"in o)||"event"!==o.type)throw new k.lC(a,{docsPath:eD});let{name:c,inputs:u}=o,l=u?.some(e=>!("name"in e&&e.name)),d=l?[]:{},f=u.filter(e=>"indexed"in e&&e.indexed);if(s.length>0)for(let e=0;e<f.length;e++){let t=f[e],n=s[e];if(!n)throw new k.Gy({abiItem:o,param:t});d[t.name||e]=function({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;let n=(0,ek.r)([e],t)||[];return n[0]}({param:t,value:n})}let h=u.filter(e=>!("indexed"in e&&e.indexed));if(h.length>0){if(t&&"0x"!==t)try{let e=(0,ek.r)(h,t);if(e){if(l)d=[...d,...e];else for(let t=0;t<h.length;t++)d[h[t].name]=e[t]}}catch(e){if(i){if(e instanceof k.xB)throw new k.SM({abiItem:o,data:e.data,params:e.params,size:e.size});throw e}}else if(i)throw new k.SM({abiItem:o,data:"0x",params:h,size:0})}return{eventName:c,args:Object.values(d).length>0?d:void 0}}var eN=n(6945);async function eF(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});return r.map(e=>{if("string"==typeof e)return e;try{let{eventName:r,args:i}="abi"in t&&t.abi?eR({abi:t.abi,data:e.data,topics:e.topics,strict:n}):{eventName:void 0,args:void 0};return(0,eN.U)(e,{args:i,eventName:r})}catch(i){let n,r;if(i instanceof k.SM||i instanceof k.Gy){if("strict"in t&&t.strict)return;n=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eN.U)(e,{args:r?[]:{},eventName:n})}}).filter(Boolean)}async function eL(e,{filter:t}){let n=t.strict??!1,r=await t.request({method:"eth_getFilterLogs",params:[t.id]});return r.map(e=>{try{let{eventName:r,args:i}="abi"in t&&t.abi?eR({abi:t.abi,data:e.data,topics:e.topics,strict:n}):{eventName:void 0,args:void 0};return(0,eN.U)(e,{args:i,eventName:r})}catch(i){let n,r;if(i instanceof k.SM||i instanceof k.Gy){if("strict"in t&&t.strict)return;n=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eN.U)(e,{args:r?[]:{},eventName:n})}}).filter(Boolean)}var eT=n(4037);async function eU(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,args:s,strict:o}={}){let c=o??!1,u=[];return a&&(u=ef({abi:[a],eventName:a.name,args:s})),(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:u,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:u,fromBlock:"bigint"==typeof r?(0,v.eC)(r):r,toBlock:"bigint"==typeof i?(0,v.eC)(i):i}]})).map(e=>{try{let{eventName:t,args:n}=a?eR({abi:[a],data:e.data,topics:e.topics,strict:c}):{eventName:void 0,args:void 0};return(0,eN.U)(e,{args:n,eventName:t})}catch(r){let t,n;if(r instanceof k.SM||r instanceof k.Gy){if(c)return;t=r.abiItem.name,n=r.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eN.U)(e,{args:n?[]:{},eventName:t})}}).filter(Boolean)}async function eQ(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let a=void 0!==n?(0,v.eC)(n):void 0,s=await e.request({method:"eth_getStorageAt",params:[t,i,a||r]});return s}var eq=n(7732),eG=n(4283);async function ez(e,{blockHash:t,blockNumber:n,blockTag:r="latest",hash:i,index:a}){let s=void 0!==n?(0,v.eC)(n):void 0,o=null;if(i?o=await e.request({method:"eth_getTransactionByHash",params:[i]}):t?o=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,v.eC)(a)]}):(s||r)&&(o=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||r,(0,v.eC)(a)]})),!o)throw new eq.Bh({blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a});let c=e.chain?.formatters?.transaction?.format||eG.Tr;return c(o)}async function eW(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([eI(e),t?ez(e,{hash:t}):void 0]),a=n?.blockNumber||i?.blockNumber;return a?r-a+1n:0n}var eK=n(4671),eH=n(202);async function eJ(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new eq.Yb({hash:t});let r=e.chain?.formatters?.transactionReceipt?.format||eH.f;return r(n)}async function eV(e,t){let{allowFailure:n=!0,batchSize:r,blockNumber:i,blockTag:a,contracts:s,multicallAddress:o}=t,c=r??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),u=o;if(!u){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");u=(0,y.LI)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let l=[[]],d=0,f=0;for(let e=0;e<s.length;e++){let{abi:t,address:r,args:i,functionName:a}=s[e];try{let e=(0,b.R)({abi:t,args:i,functionName:a});f+=e.length,c>0&&f>c&&(d++,f=(e.length-2)/2,l[d]=[]),l[d]=[...l[d],{allowFailure:!0,callData:e,target:r}]}catch(s){let e=D(s,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:a});if(!n)throw e;l[d]=[...l[d],{allowFailure:!0,callData:"0x",target:r}]}}let h=await Promise.all(l.map(t=>N(e,{abi:m.F8,address:u,args:[t],blockNumber:i,blockTag:a,functionName:"aggregate3"})));return h.flat().map(({returnData:e,success:t},r)=>{let i=l.flat(),{callData:a}=i[r],{abi:o,address:c,functionName:u,args:d}=s[r];try{if("0x"===a)throw new k.wb;if(!t)throw new P.VQ({data:e});let r=(0,g.k)({abi:o,args:d,data:e,functionName:u});return n?{result:r,status:"success"}:r}catch(t){let e=D(t,{abi:o,address:c,args:d,docsPath:"/docs/contract/multicall",functionName:u});if(!n)throw e;return{error:e,result:void 0,status:"failure"}}})}async function eY(e,{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}){let o=s.account?(0,eb.T)(s.account):void 0,c=(0,b.R)({abi:t,args:r,functionName:a});try{let{data:o}=await (0,R.R)(e,{batch:!1,data:`${c}${i?i.replace("0x",""):""}`,to:n,...s}),u=(0,g.k)({abi:t,args:r,functionName:a,data:o||"0x"});return{result:u,request:{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}}}catch(e){throw D(e,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:o?.address})}}async function eZ(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}BigInt(0),BigInt(1),BigInt(2),Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));var eX=n(2801);async function e$(e,{address:t,hash:n,signature:r,...i}){let a=(0,S.v)(r)?r:(0,v.NC)(r);try{let{data:r}=await (0,R.R)(e,{data:(0,eX.w)({abi:m.$o,args:[t,n,a],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return function(e,t){let n=(0,S.v)(e)?(0,I.O0)(e):e,r=(0,S.v)(t)?(0,I.O0)(t):t;return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,r)}(r??"0x0","0x1")}catch(e){if(e instanceof P.cg)return!1;throw e}}async function e_(e,{address:t,message:n,signature:r,...i}){let a=function(e,t){let n="string"==typeof e?(0,I.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,I.O0)(e.raw),r=(0,I.qX)(`\x19Ethereum Signed Message: ${n.length}`);return(0,x.w)((0,O.zo)([r,n]),void 0)}(n);return e$(e,{address:t,hash:a,signature:r,...i})}var e0=n(666);function e1({data:e,primaryType:t,types:n}){let r=function e({data:t,primaryType:n,types:r}){let i=[{type:"bytes32"}],a=[function({primaryType:e,types:t}){let n=(0,v.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let i=t.match(/^\w*/u),a=i?.[0];if(r.has(a)||void 0===n[a])return r;for(let t of(r.add(a),n[a]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});r.delete(e);let i=[e,...Array.from(r).sort()];for(let e of i)n+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,x.w)(n)}({primaryType:n,types:r})];for(let s of r[n]){let[n,o]=function t({types:n,name:r,type:i,value:a}){if(void 0!==n[i])return[{type:"bytes32"},(0,x.w)(e({data:a,primaryType:i,types:n}))];if("bytes"===i){let e=a.length%2?"0":"";return a=`0x${e+a.slice(2)}`,[{type:"bytes32"},(0,x.w)(a)]}if("string"===i)return[{type:"bytes32"},(0,x.w)((0,v.NC)(a))];if(i.lastIndexOf("]")===i.length-1){let e=i.slice(0,i.lastIndexOf("[")),s=a.map(i=>t({name:r,type:e,types:n,value:i}));return[{type:"bytes32"},(0,x.w)((0,eu.E)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:i},a]}({types:r,name:s.name,type:s.type,value:t[s.name]});i.push(n),a.push(o)}return(0,eu.E)(i,a)}({data:e,primaryType:t,types:n});return(0,x.w)(r)}async function e6(e,{address:t,signature:n,message:r,primaryType:i,types:a,domain:s,...o}){let c=function({domain:e,message:t,primaryType:n,types:r}){let i=void 0===e?{}:e,a={EIP712Domain:["string"==typeof i?.name&&{name:"name",type:"string"},i?.version&&{name:"version",type:"string"},"number"==typeof i?.chainId&&{name:"chainId",type:"uint256"},i?.verifyingContract&&{name:"verifyingContract",type:"address"},i?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...r};(0,e0.i)({domain:i,message:t,primaryType:n,types:a});let s=["0x1901"];return i&&s.push(function({domain:e,types:t}){return e1({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:a})),"EIP712Domain"!==n&&s.push(e1({data:t,primaryType:n,types:a})),(0,x.w)((0,O.zo)(s))}({message:r,primaryType:i,types:a,domain:s});return e$(e,{address:t,hash:c,signature:n,...o})}let e2=new Map,e5=new Map,e8=0;function e3(e,t,n){let r=++e8,i=()=>e2.get(e)||[],a=()=>{let t=i();e2.set(e,t.filter(e=>e.id!==r))},s=()=>{let t=e5.get(e);1===i().length&&t&&t(),a()},o=i();if(e2.set(e,[...o,{id:r,fns:t}]),o&&o.length>0)return s;let c={};for(let e in t)c[e]=(...t)=>{let n=i();0!==n.length&&n.forEach(n=>n.fns[e]?.(...t))};let u=n(c);return"function"==typeof u&&e5.set(e,u),s}var e4=n(8901),e9=n(7730),e7=n(1329);function te(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let i=!0,a=()=>i=!1,s=async()=>{let s;t&&(s=await e({unpoll:a}));let o=await n?.(s)??r;await (0,e7.D)(o);let c=async()=>{i&&(await e({unpoll:a}),await (0,e7.D)(r),c())};c()};return s(),a}function tt(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:a,pollingInterval:s=e.pollingInterval}){let o,c,u;let l=void 0!==a?a:"webSocket"!==e.transport.type;return l?(()=>{let a=(0,e9.P)(["watchBlockNumber",e.uid,t,n,s]);return e3(a,{onBlockNumber:r,onError:i},r=>te(async()=>{try{let t=await eI(e,{maxAge:0});if(o){if(t===o)return;if(t-o>1&&n)for(let e=o+1n;e<t;e++)r.onBlockNumber(e,o),o=e}(!o||t>o)&&(r.onBlockNumber(t,o),o=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:s}))})():(c=!0,u=()=>c=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!c)return;let t=(0,ex.y_)(e.result?.number);r(t,o),o=t},onError(e){i?.(e)}});u=t,c||u()}catch(e){i?.(e)}})(),u)}async function tn(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:i=e.pollingInterval,timeout:a}){let s,o,c;let u=(0,e9.P)(["waitForTransactionReceipt",e.uid,n]),l=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new eq.mc({hash:n})),a);let h=e3(u,{onReplaced:r,resolve:d,reject:f},r=>{let a=tt(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(l)return;let u=i,d=e=>{a(),e(),h()};try{if(c){if(u-c.blockNumber+1n<t)return;d(()=>r.resolve(c));return}if(s||(l=!0,await (0,e4.J)(async()=>{(s=await ez(e,{hash:n})).blockNumber&&(u=s.blockNumber)},{delay:({count:e})=>200*~~(1<<e),retryCount:6}),l=!1),c=await eJ(e,{hash:n}),t>0&&u-c.blockNumber+1n<t)return;d(()=>r.resolve(c))}catch(n){if(s&&(n instanceof eq.Bh||n instanceof eq.Yb)){o=s;let n=await (0,eA.Q)(e,{blockNumber:u,includeTransactions:!0}),i=n.transactions.find(({from:e,nonce:t})=>e===o.from&&t===o.nonce);if(!i||u-(c=await eJ(e,{hash:i.hash})).blockNumber+1n<t)return;let a="replaced";i.to===o.to&&i.value===o.value?a="repriced":i.from===i.to&&0n===i.value&&(a="cancelled"),d(()=>{r.onReplaced?.({reason:a,replacedTransaction:o,transaction:i,transactionReceipt:c}),r.resolve(c)})}else d(()=>r.reject(n))}}})})})}var tr=n(5867);function ti(e){return{call:t=>(0,R.R)(e,t),createBlockFilter:()=>ea(e),createContractEventFilter:t=>ep(e,t),createEventFilter:t=>em(e,t),createPendingTransactionFilter:()=>eg(e),estimateContractGas:t=>ew(e,t),estimateGas:t=>(0,ey.Q)(e,t),getBalance:t=>ev(e,t),getBlock:t=>(0,eA.Q)(e,t),getBlockNumber:t=>eI(e,t),getBlockTransactionCount:t=>eS(e,t),getBytecode:t=>eB(e,t),getChainId:()=>(0,ej.L)(e),getEnsAddress:t=>F(e,t),getEnsAvatar:t=>et(e,t),getEnsName:t=>en(e,t),getEnsResolver:t=>er(e,t),getEnsText:t=>ee(e,t),getFeeHistory:t=>eM(e,t),getFilterChanges:t=>eF(e,t),getFilterLogs:t=>eL(e,t),getGasPrice:()=>(0,eT.o)(e),getLogs:t=>eU(e,t),getStorageAt:t=>eQ(e,t),getTransaction:t=>ez(e,t),getTransactionConfirmations:t=>eW(e,t),getTransactionCount:t=>(0,eK.K)(e,t),getTransactionReceipt:t=>eJ(e,t),multicall:t=>eV(e,t),readContract:t=>N(e,t),simulateContract:t=>eY(e,t),verifyMessage:t=>e_(e,t),verifyTypedData:t=>e6(e,t),uninstallFilter:t=>eZ(e,t),waitForTransactionReceipt:t=>tn(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:a,includeTransactions:s=!1,poll:o,pollingInterval:c=e.pollingInterval}){let u,l,d;let f=void 0!==o?o:"webSocket"!==e.transport.type;return f?(()=>{let o=(0,e9.P)(["watchBlocks",e.uid,n,r,s,c]);return e3(o,{onBlock:i,onError:a},i=>te(async()=>{try{let r=await (0,eA.Q)(e,{blockTag:t,includeTransactions:s});if(r.number&&u?.number){if(r.number===u.number)return;if(r.number-u.number>1&&n)for(let t=u?.number+1n;t<r.number;t++){let n=await (0,eA.Q)(e,{blockNumber:t,includeTransactions:s});i.onBlock(n,u),u=n}}(!u?.number||"pending"===t&&!r?.number||r.number&&r.number>u.number)&&(i.onBlock(r,u),u=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:c}))})():(l=!0,d=()=>l=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!l)return;let n=e.chain?.formatters?.block?.format||tr.Z,r=n(t.result);i(r,u),u=r},onError(e){a?.(e)}});d=t,l||d()}catch(e){a?.(e)}})(),d)})(e,t),watchBlockNumber:t=>tt(e,t),watchContractEvent:t=>(function(e,{abi:t,address:n,args:r,batch:i=!0,eventName:a,onError:s,onLogs:o,pollingInterval:c=e.pollingInterval,strict:u}){let l=(0,e9.P)(["watchContractEvent",n,r,i,e.uid,a,c]),d=u??!1;return e3(l,{onLogs:o,onError:s},s=>{let o,u;let l=!1,f=te(async()=>{if(!l){try{u=await ep(e,{abi:t,address:n,args:r,eventName:a,strict:d})}catch{}l=!0;return}try{let c;if(u)c=await eF(e,{filter:u});else{let i=await eI(e);c=o&&o!==i?await eU(e,{address:n,args:r,fromBlock:o+1n,toBlock:i,event:(0,ed.m)({abi:t,name:a})}):[],o=i}if(0===c.length)return;i?s.onLogs(c):c.forEach(e=>s.onLogs([e]))}catch(e){s.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await eZ(e,{filter:u}),f()}})})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,onError:a,onLogs:s,pollingInterval:o=e.pollingInterval,strict:c}){let u=(0,e9.P)(["watchEvent",t,n,r,e.uid,i,o]),l=c??!1;return e3(u,{onLogs:s,onError:a},a=>{let s,c;let u=!1,d=te(async()=>{if(!u){try{c=await em(e,{address:t,args:n,event:i,strict:l})}catch{}u=!0;return}try{let o;if(c)o=await eF(e,{filter:c});else{let r=await eI(e);o=s&&s!==r?await eU(e,{address:t,args:n,fromBlock:s+1n,toBlock:r,event:i}):[],s=r}if(0===o.length)return;r?a.onLogs(o):o.forEach(e=>a.onLogs([e]))}catch(e){a.onError?.(e)}},{emitOnBegin:!0,interval:o});return async()=>{c&&await eZ(e,{filter:c}),d()}})})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){let s,o;let c=void 0!==i?i:"webSocket"!==e.transport.type;return c?(()=>{let i=(0,e9.P)(["watchPendingTransactions",e.uid,t,a]);return e3(i,{onTransactions:r,onError:n},n=>{let r;let i=te(async()=>{try{if(!r)try{r=await eg(e);return}catch(e){throw i(),e}let a=await eF(e,{filter:r});if(0===a.length)return;t?n.onTransactions(a):a.forEach(e=>n.onTransactions([e]))}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:a});return async()=>{r&&await eZ(e,{filter:r}),i()}})})():(s=!0,o=()=>s=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!s)return;let t=e.result;r([t])},onError(e){n?.(e)}});o=t,s||o()}catch(e){n?.(e)}})(),o)})(e,t)}}function ta(e){let{key:t="public",name:n="Public Client"}=e,r=(0,p.e)({...e,key:t,name:n,type:"publicClient"});return r.extend(ti)}var ts=n(4169),to=n(9823);function tc(e,t={}){let{key:n="fallback",name:r="Fallback",rank:i=!1,retryCount:a,retryDelay:s}=t;return({chain:t,pollingInterval:o=4e3,timeout:c})=>{let u=e,l=()=>{},d=(0,to.q)({key:n,name:r,async request({method:e,params:n}){let r=async(i=0)=>{let a=u[i]({chain:t,retryCount:0,timeout:c});try{let t=await a.request({method:e,params:n});return l({method:e,params:n,response:t,transport:a,status:"success"}),t}catch(t){if(l({error:t,method:e,params:n,transport:a,status:"error"}),(0,ts.y)(t)||i===u.length-1)throw t;return r(i+1)}};return r()},retryCount:a,retryDelay:s,type:"fallback"},{onResponse:e=>l=e,transports:u.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:i=1e3,transports:a,weights:s={}}){let{stability:o=.7,latency:c=.3}=s,u=[],l=async()=>{let s=await Promise.all(a.map(async t=>{let n,r;let a=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await a.request({method:"net_listening"}),r=1}catch{r=0}finally{n=Date.now()}let o=n-s;return{latency:o,success:r}}));u.push(s),u.length>r&&u.shift();let d=Math.max(...u.map(e=>Math.max(...e.map(({latency:e})=>e)))),f=a.map((e,t)=>{let n=u.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,i=u.map(e=>e[t].success),a=i.reduce((e,t)=>e+t,0)/i.length;return 0===a?[0,t]:[c*(1-r/d)+o*a,t]}).sort((e,t)=>t[0]-e[0]);n(f.map(([,e])=>a[e])),await (0,e7.D)(t),l()};l()}({chain:t,interval:e.interval??o,onTransports:e=>u=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:u,weights:e.weights})}return d}}var tu=n(6559);class tl extends C.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var td=n(6785);function tf(e,{errorInstance:t,timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let s;try{let o=new AbortController;n>0&&(s=setTimeout(()=>{r?o.abort():a(t)},n)),i(await e({signal:o?.signal}))}catch(e){"AbortError"===e.name&&a(t),a(e)}finally{clearTimeout(s)}})()})}let th=0;async function tp(e,{body:t,fetchOptions:n={},timeout:r=1e4}){let{headers:i,method:a,signal:s}=n;try{let o;let c=await tf(async({signal:o})=>{let c=await fetch(e,{...n,body:Array.isArray(t)?(0,e9.P)(t.map(e=>({jsonrpc:"2.0",id:th++,...e}))):(0,e9.P)({jsonrpc:"2.0",id:th++,...t}),headers:{...i,"Content-Type":"application/json"},method:a||"POST",signal:s||(r>0?o:void 0)});return c},{errorInstance:new tu.W5({body:t,url:e}),timeout:r,signal:!0});if(o=c.headers.get("Content-Type")?.startsWith("application/json")?await c.json():await c.text(),!c.ok)throw new tu.Gg({body:t,details:(0,e9.P)(o.error)||c.statusText,headers:c.headers,status:c.status,url:e});return o}catch(n){if(n instanceof tu.Gg||n instanceof tu.W5)throw n;throw new tu.Gg({body:t,details:n.message,url:e})}}let tm=new Map;async function tg(e){let t=new URL(e),r=t.toString(),i=tm.get(r);if(i)return i;let{schedule:a}=(0,td.S)({id:r,fn:async()=>{let e=await n.e(819).then(n.bind(n,5819));e=e.default?.constructor?e.default:e.WebSocket;let a=new e(t),s=new Map,o=new Map,c=({data:e})=>{let t=JSON.parse(e),n="eth_subscription"===t.method,r=n?t.params.subscription:t.id,i=n?o:s,a=i.get(r);a&&a({data:e}),n||i.delete(r)},u=()=>{tm.delete(r),a.removeEventListener("close",u),a.removeEventListener("message",c)};return a.addEventListener("close",u),a.addEventListener("message",c),a.readyState===e.CONNECTING&&await new Promise((e,t)=>{a&&(a.onopen=e,a.onerror=t)}),i=Object.assign(a,{requests:s,subscriptions:o}),tm.set(r,i),[i]}}),[s,[o]]=await a();return o}async function tb(e,{body:t,timeout:n=1e4}){return tf(()=>new Promise(n=>ty.webSocket(e,{body:t,onResponse:n})),{errorInstance:new tu.W5({body:t,url:e.url}),timeout:n})}let ty={http:tp,webSocket:function(e,{body:t,onResponse:n}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new tu.c9({body:t,url:e.url,details:"Socket is closed."});let r=th++,i=({data:a})=>{let s=JSON.parse(a);("number"!=typeof s.id||r===s.id)&&(n?.(s),"eth_subscribe"===t.method&&"string"==typeof s.result&&e.subscriptions.set(s.result,i),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(r,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:r})),e},webSocketAsync:tb};var tw=n(374),tv=n(3722);let tA=e=>(t,n,r)=>{let i=r.subscribe;r.subscribe=(e,t,n)=>{let a=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());a=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(a)};let a=e(t,n,r);return a},tC=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>tC(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tC(t)(e)}}},tP=(e,t)=>(n,r,i)=>{let a,s,o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,l=new Set;try{a=o.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=tC(o.serialize),f=()=>{let e;let t=o.partialize({...r()}),n=d({state:t,version:o.version}).then(e=>a.setItem(o.name,e)).catch(t=>{e=t});if(e)throw e;return n},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let p=e((...e)=>{n(...e),f()},r,i),m=()=>{var e;if(!a)return;c=!1,u.forEach(e=>e(r()));let t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return tC(a.getItem.bind(a))(o.name).then(e=>{if(e)return o.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.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=o.merge(e,null!=(t=r())?t:p),!0),f()}).then(()=>{null==t||t(s,void 0),c=!0,l.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),s||p},tE=(e,t)=>(n,r,i)=>{let a,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(r=n.getItem(e))?r:null;return a instanceof Promise?a.then(i):i(a)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,c=new Set,u=new Set,l=s.storage;if(!l)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 d=()=>{let e=s.partialize({...r()});return l.setItem(s.name,{state:e,version:s.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};let h=e((...e)=>{n(...e),d()},r,i),p=()=>{var e,t;if(!l)return;o=!1,c.forEach(e=>{var t;return e(null!=(t=r())?t:h)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:h))||void 0;return tC(l.getItem.bind(l))(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:h),!0),d()}).then(()=>{null==i||i(a,void 0),a=r(),o=!0,u.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},s.skipHydration||p(),a||h},tO=(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."),tP(e,t)):tE(e,t),tI=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},tx=e=>e?tI(e):tI;var tS=n(7340);function tB(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function tj(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,a=[0,1];for(let e=1;e<r;e++)a.push(i+=n());let s=n(),o=t;t+=s;let c=0,u=0;function l(){return 0==c&&(u=u<<8|e[t++],c=8),u>>--c&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|l();let h=[],p=0,m=2147483648;for(;;){let e=Math.floor(((f-p+1)*i-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<a[r]?n=r:t=r}if(0==t)break;h.push(t);let s=p+Math.floor(m*a[t]/i),o=p+Math.floor(m*a[t+1]/i)-1;for(;((s^o)&1073741824)==0;)f=f<<1&d|l(),s=s<<1&d,o=o<<1&d|1;for(;s&~o&536870912;)f=1073741824&f|f<<1&d>>>1|l(),s=s<<1^1073741824,o=(1073741824^o)<<1|1073741825;p=s,m=1+o-s}let g=r-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return g+256+(e[o++]<<8|e[o++]);case 1:return g+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,s=0,o=0;i<n;i++)o=o<<6|t[e.charCodeAt(i)],(s+=6)>=8&&(r[a++]=o>>(s-=8));return r}(e)),n=0,()=>t[n++]}function tM(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e<i;e++)n.push(t+e);t+=i+1}return n}function tk(e){return tR(()=>{let t=tM(e);if(t.length)return t})}function tD(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),i=tR(t);return tN(i.length,1+e,t).flatMap((e,t)=>{let[a,...s]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*r;return[a+t*n,s.map(e=>e+i)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(tN(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function tR(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function tN(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let n=Array(e);for(let i=0,a=0;i<e;i++){var r;n[i]=a+=1&(r=t())?~r>>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}var tF=tj("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABw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1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");let tL=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function tT(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function tU(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}var tQ=tj("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6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Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");function tq(e){return e>>24&255}function tG(e){return 16777215&e}let tz=new Map(tk(tQ).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),tW=new Set(tM(tQ)),tK=new Map,tH=new Map;for(let[e,t]of tD(tQ)){if(!tW.has(e)&&2==t.length){let[n,r]=t,i=tH.get(n);i||(i=new Map,tH.set(n,i)),i.set(r,e)}tK.set(e,t.reverse())}function tJ(e){return e>=44032&&e<55204}function tV(e){let t=[],n=[],r=!1;function i(e){let n=tz.get(e);n&&(r=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(tJ(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,a=e%28;i(4352+t),i(4449+n),a>0&&i(4519+a)}else{let e=tK.get(r);e?n.push(...e):i(r)}if(!n.length)break;r=n.pop()}if(r&&t.length>1){let e=tq(t[0]);for(let n=1;n<t.length;n++){let r=tq(t[n]);if(0==r||e<=r){e=r;continue}let i=n-1;for(;;){let n=t[i+1];if(t[i+1]=t[i],t[i]=n,!i||(e=tq(t[--i]))<=r)break}e=tq(t[n])}}return t}function tY(e){return function(e){let t=[],n=[],r=-1,i=0;for(let a of e){let e=tq(a),s=tG(a);if(-1==r)0==e?r=s:t.push(s);else if(i>0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),i=e;else{let a=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(tJ(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=tH.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);a>=0?r=a:0==i&&0==e?(t.push(r),r=s):(n.push(s),i=e)}}return r>=0&&t.push(r,...n),t}(tV(e))}function tZ(){return new Set(tM(tF))}let tX=new Map(tD(tF)),t$=tZ(),t_=tZ(),t0=new Set(tM(tF).map(function(e){return this[e]},[...t_])),t1=tZ();tZ();let t6=tk(tF);function t2(){return new Set([tM(tF).map(e=>t6[e]),tM(tF)].flat(2))}let t5=tF(),t8=tR(e=>{let t=tR(tF).map(e=>e+96);if(t.length){let n=e>=t5;t[0]-=32,t=tU(t),n&&(t=`Restricted[${t}]`);let r=t2(),i=[...r,...t2()].sort((e,t)=>e-t);return{N:t,P:r,M:!tF(),R:n,V:new Set(i)}}}),t3=tZ(),t4=new Map;for(let{V:e,M:t}of([...t3,...tZ()].sort((e,t)=>e-t).map((e,t,n)=>{let r=tF(),i=n[t]=r?n[t-r]:{V:[],M:new Map};i.V.push(e),t3.has(e)||t4.set(e,i)}),new Set(t4.values()))){let n=[];for(let t of e){let e=t8.filter(e=>e.V.has(t)),r=n.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),e.forEach(e=>r.G.add(e))}let r=n.flatMap(({G:e})=>[...e]);for(let{G:e,V:i}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of i)t.set(e,n)}}let t9=new Set,t7=new Set;for(let e of t8)for(let t of e.V)(t9.has(t)?t7:t9).add(t);for(let e of t9)t4.has(e)||t7.has(e)||t4.set(e,1);let ne=new Set([...t9,...tV(t9).map(tG)]),nt=tM(tF),nn=function e(t){let n=tR(()=>{let t=tM(tF).map(e=>nt[e]);if(t.length)return e(t)}).sort((e,t)=>t.Q.size-e.Q.size),r=tF();return{B:n,V:r%3,F:1&(r=r/3|0),S:1&(r>>=1),C:2&r,Q:new Set(t)}}([]);class nr extends Array{get is_emoji(){return!0}}function ni(e,t=tT){var n;let r=[];n=e[0],t_.has(n)&&r.push("◌");let i=0,a=e.length;for(let n=0;n<a;n++){let a=e[n];t1.has(a)&&(r.push(tU(e.slice(i,n))),r.push(t(a)),i=n+1)}return r.push(tU(e.slice(i,a))),r.join("")}function na(e){return(t1.has(e)?"":`${ns(ni([e]))} `)+tT(e)}function ns(e){return`"${e}"\u200E`}function no(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}function nc(e){return Error(`disallowed character: ${na(e)}`)}function nu(e,t){let n=na(t),r=t8.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function nl(e){return Error(`illegal placement: ${e}`)}var nd=n(7977);function nf(e,t,{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:i,retryCount:a,retryDelay:s,stallTimeout:o}={}){if(!e.length)throw Error("must have at least one chain");let c=[],u={},l={};for(let n of e){let e=!1;for(let r of t){let t=r(n);t&&(e=!0,c.some(({id:e})=>e===n.id)||(c=[...c,t.chain]),u[n.id]=[...u[n.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(l[n.id]=[...l[n.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw Error(`Could not find valid provider configuration for chain "${n.name}". You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs. Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:c,publicClient:({chainId:t})=>{let l=c.find(e=>e.id===t)??e[0],d=u[l.id];if(!d||!d[0])throw Error(`No providers configured for chain "${l.id}"`);let f=ta({batch:n,chain:l,transport:tc(d.map(e=>(function(e,t={}){let{batch:n,fetchOptions:r,key:i="http",name:a="HTTP JSON-RPC",retryDelay:s}=t;return({chain:o,retryCount:c,timeout:u})=>{let{batchSize:l=1e3,wait:d=0}="object"==typeof n?n:{},f=t.retryCount??c,h=u??t.timeout??1e4,p=e||o?.rpcUrls.default.http[0];if(!p)throw new tl;return(0,to.q)({key:i,name:a,async request({method:t,params:i}){let a={method:t,params:i},{schedule:s}=(0,td.S)({id:`${e}`,wait:d,shouldSplitBatch:e=>e.length>l,fn:e=>ty.http(p,{body:e,fetchOptions:r,timeout:h})}),o=async e=>n?s(e):[await ty.http(p,{body:e,fetchOptions:r,timeout:h})],[{error:c,result:u}]=await o(a);if(c)throw new tu.bs({body:a,error:c,url:p});return u},retryCount:f,retryDelay:s,timeout:h,type:"http"},{url:e})}})(e,{timeout:o})),{rank:i,retryCount:a,retryDelay:s}),pollingInterval:r});return Object.assign(f,{chains:c})},webSocketPublicClient:({chainId:t})=>{let u=c.find(e=>e.id===t)??e[0],d=l[u.id];if(!d||!d[0])return;let f=ta({batch:n,chain:u,transport:tc(d.map(e=>(function(e,t={}){let{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:i}=t;return({chain:a,retryCount:s,timeout:o})=>{let c=t.retryCount??s,u=o??t.timeout??1e4,l=e||a?.rpcUrls.default.webSocket?.[0];if(!l)throw new tl;return(0,to.q)({key:n,name:r,async request({method:e,params:t}){let n={method:e,params:t},r=await tg(l),{error:i,result:a}=await ty.webSocketAsync(r,{body:n,timeout:u});if(i)throw new tu.bs({body:n,error:i,url:l});return a},retryCount:c,retryDelay:i,timeout:u,type:"webSocket"},{getSocket:()=>tg(l),async subscribe({params:e,onData:t,onError:n}){let r=await tg(l),{result:i}=await new Promise((i,a)=>ty.webSocket(r,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){a(e.error),n?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>ty.webSocket(r,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}})(e,{timeout:o})),{rank:i,retryCount:a,retryDelay:s}),pollingInterval:r});return Object.assign(f,{chains:c})}}}var nh=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},np=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},nm=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},ng=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},nb=(e,{find:t,replace:n})=>e&&t(e)?n(e):"object"!=typeof e?e:Array.isArray(e)?e.map(e=>nb(e,{find:t,replace:n})):e instanceof Object?Object.entries(e).reduce((e,[r,i])=>({...e,[r]:nb(i,{find:t,replace:n})}),{}):e;function ny(e){let t=JSON.parse(e),n=nb(t,{find:e=>"string"==typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return n}function nw(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(tv.Bd[e])}function nv(e,t){return e.slice(0,t).join(".")||"."}function nA(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function nC(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,i=[],a=[];return function(s,o){if("object"==typeof o){if(i.length){let e=nA(i,this);0===e?i[i.length]=this:(i.splice(e),a.splice(e)),a[a.length]=s;let n=nA(i,o);if(0!==n)return r?t.call(this,s,o,nv(a,n)):`[ref=${nv(a,n)}]`}else i[0]=o,a[0]=s}return n?e.call(this,s,o):o}}((e,n)=>{let r="bigint"==typeof n?`#bigint.${n.toString()}`:n;return t?.(e,r)||r},r),n??void 0)}var nP={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function nE({deserialize:e=ny,key:t="wagmi",serialize:n=nC,storage:r}){return{...r,getItem:(n,i=null)=>{let a=r.getItem(`${t}.${n}`);try{return a?e(a):i}catch(e){return console.warn(e),i}},setItem:(e,i)=>{if(null===i)r.removeItem(`${t}.${e}`);else try{r.setItem(`${t}.${e}`,n(i))}catch(e){console.error(e)}},removeItem:e=>r.removeItem(`${t}.${e}`)}}var nO="store",nI=class{constructor({autoConnect:e=!1,connectors:t=[new c._],publicClient:n,storage:o=nE({storage:"undefined"!=typeof window?window.localStorage:nP}),logger:u={warn:console.warn},webSocketPublicClient:l}){let p;d(this,a),this.publicClients=new Map,this.webSocketPublicClients=new Map,d(this,r,void 0),d(this,i,void 0),this.args={autoConnect:e,connectors:t,logger:u,publicClient:n,storage:o,webSocketPublicClient:l};let m="disconnected";if(e)try{let e=o.getItem(nO),t=e?.state?.data;m=t?.account?"reconnecting":"connecting",p=t?.chain?.id}catch(e){}let g="function"==typeof t?t():t;g.forEach(e=>e.setStorage(o)),this.store=tx(tA(tO(()=>({connectors:g,publicClient:this.getPublicClient({chainId:p}),status:m,webSocketPublicClient:this.getWebSocketPublicClient({chainId:p})}),{name:nO,storage:o,partialize:t=>({...e&&{data:{account:t?.data?.account,chain:t?.data?.chain}},chains:t?.chains}),version:2}))),this.storage=o,f(this,i,o?.getItem("wallet")),h(this,a,s).call(this),e&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){let t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),f(this,r,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l(this,r))return;f(this,r,!0),this.setState(e=>({...e,status:e.data?.account?"reconnecting":"connecting"}));let e=l(this,i)?[...this.connectors].sort(e=>e.id===l(this,i)?-1:1):this.connectors,t=!1;for(let n of e){if(!n.ready||!n.isAuthorized)continue;let e=await n.isAuthorized();if(!e)continue;let r=await n.connect();this.setState(e=>({...e,connector:n,chains:n?.chains,data:r,status:"connected"})),t=!0;break}return t||this.setState(e=>({...e,data:void 0,status:"disconnected"})),f(this,r,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};let t="function"==typeof e?e():e;t.forEach(e=>e.setStorage(this.args.storage)),this.setState(e=>({...e,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&t?.chain.id===e||(t=this.publicClients.get(e??-1)))return t;let{publicClient:n}=this.args;return t="function"==typeof n?n({chainId:e}):n,this.publicClients.set(e??-1,t),t}setPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(e=>({...e,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&t?.chain.id===e||(t=this.webSocketPublicClients.get(e??-1)))return t;let{webSocketPublicClient:n}=this.args;return(t="function"==typeof n?n({chainId:e}):n)&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){this.storage?.setItem("wallet",e)}};function nx(e){let t=new nI(e);return o=t,t}function nS(){if(!o)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return o}async function nB({chainId:e,connector:t}){let n=nS(),r=n.connector;if(r&&t.id===r.id)throw new np;try{n.setState(e=>({...e,status:"connecting"}));let r=await t.connect({chainId:e});return n.setLastUsedConnector(t.id),n.setState(e=>({...e,connector:t,chains:t?.chains,data:r,status:"connected"})),n.storage.setItem("connected",!0),{...r,connector:t}}catch(e){throw n.setState(e=>({...e,status:e.connector?"connected":"disconnected"})),e}}async function nj(){let e=nS();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}r=new WeakMap,i=new WeakMap,a=new WeakSet,s=function(){let e=e=>{this.setState(t=>({...t,data:{...t.data,...e}}))},t=()=>{this.clearState()},n=e=>{this.setState(t=>({...t,error:e}))};this.store.subscribe(({connector:e})=>e,(r,i)=>{i?.off?.("change",e),i?.off?.("disconnect",t),i?.off?.("error",n),r&&(r.on?.("change",e),r.on?.("disconnect",t),r.on?.("error",n))});let{publicClient:r,webSocketPublicClient:i}=this.args;("function"==typeof r||"function"==typeof i)&&this.store.subscribe(({data:e})=>e?.chain?.id,e=>{this.setState(t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))})};var nM=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],nk=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function nD({chainId:e}={}){let t=nS();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function nR({chainId:e,contracts:t,blockNumber:n,blockTag:r,...i}){let a=nD({chainId:e});if(!a.chains)throw new nm;if(e&&a.chain.id!==e)throw new nh({chainId:e});return a.multicall({allowFailure:i.allowFailure??!0,blockNumber:n,blockTag:r,contracts:t})}async function nN({address:e,account:t,chainId:n,abi:r,args:i,functionName:a,blockNumber:s,blockTag:o}){let c=nD({chainId:n});return c.readContract({abi:r,address:e,account:t,functionName:a,args:i,blockNumber:s,blockTag:o})}async function nF({contracts:e,blockNumber:t,blockTag:n,...r}){let{allowFailure:i=!0}=r;try{let r=nD(),a=e.reduce((e,t,n)=>{let i=t.chainId??r.chain.id;return{...e,[i]:[...e[i]||[],{contract:t,index:n}]}},{}),s=(await Promise.all(Object.entries(a).map(([e,r])=>nR({allowFailure:i,chainId:parseInt(e),contracts:r.map(({contract:e})=>e),blockNumber:t,blockTag:n})))).flat(),o=Object.values(a).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,n)=>(e&&(e[o[n]]=t),e),[])}catch(a){if(a instanceof P.uq)throw a;let r=()=>e.map(e=>nN({...e,blockNumber:t,blockTag:n}));if(i)return(await Promise.allSettled(r())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(r())}}async function nL({address:e,chainId:t,formatUnits:n,token:r}){let i=nS(),a=nD({chainId:t});if(r){let i=async({abi:i})=>{let a={abi:i,address:r,chainId:t},[s,o,c]=await nF({allowFailure:!1,contracts:[{...a,functionName:"balanceOf",args:[e]},{...a,functionName:"decimals"},{...a,functionName:"symbol"}]});return{decimals:o,formatted:(0,tS.b)(s??"0",nw(n??o)),symbol:c,value:s}};try{return await i({abi:nM})}catch(e){if(e instanceof P.uq){let{symbol:e,...t}=await i({abi:nk});return{symbol:(0,ex.rR)((0,w.f)(e,{dir:"right"})),...t}}throw e}}let s=[...i.publicClient.chains||[],...i.chains??[]],o=await a.getBalance({address:e}),c=s.find(e=>e.id===a.chain.id);return{decimals:c?.nativeCurrency.decimals??18,formatted:(0,tS.b)(o??"0",nw(n??18)),symbol:c?.nativeCurrency.symbol??"ETH",value:o}}function nT(){let{data:e,connector:t,status:n}=nS();switch(n){case"connected":return{address:e?.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:e?.account,connector:t,isConnected:!!e?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:e?.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function nU(){let e=nS(),t=e.data?.chain?.id,n=e.chains??[],r=[...e.publicClient?.chains||[],...n].find(e=>e.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...r,...e.data?.chain,id:t}:void 0,chains:n}}async function nQ({chainId:e}){let{connector:t}=nS();if(!t)throw new tw.N;if(!t.switchChain)throw new ng({connector:t});return t.switchChain(e)}function nq(e,{selector:t=e=>e}={}){let n=nS(),r=n.subscribe(({data:e,connector:n,status:r})=>t({address:e?.account,connector:n,status:r}),()=>e(nT()),{equalityFn:tB});return r}function nG(e,{selector:t=e=>e}={}){let n=nS(),r=n.subscribe(({data:e,chains:n})=>t({chainId:e?.chain?.id,chains:n}),()=>e(nU()),{equalityFn:tB});return r}async function nz({name:e,chainId:t}){var n;let r;let i=nD({chainId:t}),a=await i.getEnsAvatar({name:(r=0,n=e.split(".").map(e=>{let t,n=function(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}(e),i={input:n,offset:r};r+=n.length+1;try{let e,r=i.tokens=function(e,t){let n=[],r=[];for(e=e.slice().reverse();e.length;){let i=function(e,t){let n,r,i=nn,a=[],s=e.length;for(t&&(t.length=0);s;){let o=e[--s];if(!(i=i.B.find(e=>e.Q.has(o))))break;if(i.S)r=o;else if(i.C&&o===r)break;a.push(o),i.F&&(a.push(65039),s>0&&65039==e[s-1]&&s--),i.V&&(n=function(e,t){let n=nr.from(e);return 2==t.V&&n.splice(1,1),n}(a,i),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}(e);if(i)r.length&&(n.push(t(r)),r=[]),n.push(i);else{let t=e.pop();if(ne.has(t))r.push(t);else{let e=tX.get(t);if(e)r.push(...e);else if(!t$.has(t))throw nc(t)}}}return r.length&&n.push(t(r)),n}(n,tY),a=r.length;if(a){let n=r[0],s=a>1||n.is_emoji;if(!s&&n.every(e=>e<128))t=n,no(t),function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error("invalid label extension")}(t),e="ASCII";else if(s&&(i.emoji=!0,n=r.flatMap(e=>e.is_emoji?[]:e)),t=r.flatMap(e=>e.is_emoji?e.filter(e=>65039!=e):e),no(t),n.length){if(t_.has(t[0]))throw nl("leading combining mark");for(let e=1;e<a;e++){let t=r[e];if(!t.is_emoji&&t_.has(t[0]))throw nl(`emoji + combining mark: "${tU(r[e-1])} + ${ni([t[0]])}"`)}!function(e){let t=e[0],n=tL.get(t);if(n)throw nl(`leading ${n}`);let r=e.length,i=-1;for(let a=1;a<r;a++){t=e[a];let r=tL.get(t);if(r){if(i==a)throw nl(`${n} + ${r}`);i=a+1,n=r}}if(i==r)throw nl(`trailing ${n}`)}(t);let i=[...new Set(n)],[s]=function(e){let t=t8;for(let n of e){let e=t.filter(e=>e.V.has(n));if(!e.length){if(t===t8)throw nc(n);throw nu(t[0],n)}if(t=e,1==e.length)break}return t}(i);(function(e,t){let{V:n,M:r}=e;for(let r of t)if(!n.has(r))throw nu(e,r);if(r){let e=tV(t).map(tG);for(let t=1,n=e.length;t<n;t++)if(t0.has(e[t])){let r=t+1;for(let i;r<n&&t0.has(i=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==i)throw Error(`non-spacing marks: repeated ${na(i)}`);if(r-t>4)throw Error(`non-spacing marks: too many ${ns(ni(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(s,n),function(e,t){let n;let r=[];for(let e of t){let t=t4.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):[...r]).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>t.V.has(e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(s,i),e=s.N}else e="Emoji"}else throw Error("empty label");i.type=e}catch(e){i.error=e}return i.output=t,i})).map(({input:e,error:t,output:r})=>{if(t){let r=t.message;throw Error(1==n.length?r:`Invalid label ${ns(ni(e))}: ${r}`)}return tU(r)}).join(".")});return a}async function nW({address:e,chainId:t}){let n=nD({chainId:t});return n.getEnsName({address:(0,nd.K)(e)})}},570:function(e,t,n){"use strict";let r;n.d(t,{CV:function(){return O},Id:function(){return m},t0:function(){return C},zv:function(){return p},uA:function(){return y},uc:function(){return W},jb:function(){return V},zb:function(){return v},AV:function(){return h},Ic:function(){return en},Vs:function(){return ei},kD:function(){return H}});var i=n(1563);let a=e=>"object"==typeof e&&null!==e,s=new WeakMap,o=new WeakSet,c=(e=Object.is,t=(e,t)=>new Proxy(e,t),n=e=>a(e)&&!o.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>e.configurable&&e.enumerable&&e.writable,c=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},u=new WeakMap,l=(e,t,n=c)=>{let r=u.get(e);if((null==r?void 0:r[0])===t)return r[1];let a=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return(0,i.jc)(a,!0),u.set(e,[t,a]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(a,t))return;let r=Reflect.get(e,t),c={value:r,enumerable:!0,configurable:!0};if(o.has(r))(0,i.jc)(r,!1);else if(r instanceof Promise)delete c.value,c.get=()=>n(r);else if(s.has(r)){let[e,t]=s.get(r);c.value=l(e,t(),n)}Object.defineProperty(a,t,c)}),Object.preventExtensions(a)},d=new WeakMap,f=[1,1],h=c=>{if(!a(c))throw Error("object required");let u=d.get(c);if(u)return u;let p=f[0],m=new Set,g=(e,t=++f[0])=>{p!==t&&(p=t,m.forEach(n=>n(e,t)))},b=f[1],y=(e=++f[1])=>(b===e||m.size||(b=e,v.forEach(([t])=>{let n=t[1](e);n>p&&(p=n)})),p),w=e=>(t,n)=>{let r=[...t];r[1]=[e,...r[1]],g(r,n)},v=new Map,A=(e,t)=>{if(v.has(e))throw Error("prop listener already exists");if(m.size){let n=t[3](w(e));v.set(e,[t,n])}else v.set(e,[t])},C=e=>{var t;let n=v.get(e);n&&(v.delete(e),null==(t=n[1])||t.call(n))},P=e=>{m.add(e),1===m.size&&v.forEach(([e,t],n)=>{if(t)throw Error("remove already exists");let r=e[3](w(n));v.set(n,[e,r])});let t=()=>{m.delete(e),0===m.size&&v.forEach(([e,t],n)=>{t&&(t(),v.set(n,[e]))})};return t},E=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),O=(t,r,c,u,l)=>{if(t&&(e(r,u)||d.has(u)&&e(r,d.get(u))))return;C(c),a(u)&&(u=(0,i.o5)(u)||u);let f=u;if(u instanceof Promise)u.then(e=>{u.status="fulfilled",u.value=e,g(["resolve",[c],e])}).catch(e=>{u.status="rejected",u.reason=e,g(["reject",[c],e])});else{!s.has(u)&&n(u)&&(f=h(u));let e=!o.has(f)&&s.get(f);e&&A(c,e)}l(f),g(["set",[c],u,r])},I={deleteProperty(e,t){let n=Reflect.get(e,t);C(t);let r=Reflect.deleteProperty(e,t);return r&&g(["delete",[t],n]),r},set(e,t,n,r){let i=Reflect.has(e,t),a=Reflect.get(e,t,r);return O(i,a,t,n,n=>{Reflect.set(e,t,n,r)}),!0},defineProperty(e,t,n){if(r(n)){let i=Reflect.getOwnPropertyDescriptor(e,t);if(!i||r(i))return O(!!i&&"value"in i,null==i?void 0:i.value,t,n.value,r=>{Reflect.defineProperty(e,t,{...n,value:r})}),!0}return Reflect.defineProperty(e,t,n)}},x=t(E,I);d.set(c,x);let S=[E,y,l,P];return s.set(x,S),Reflect.ownKeys(c).forEach(e=>{let t=Object.getOwnPropertyDescriptor(c,e);"value"in t&&(x[e]=c[e],delete t.value,delete t.writable),Object.defineProperty(E,e,t)}),x})=>[h,s,o,e,t,n,r,c,u,l,d,f],[u]=c();function l(e={}){return u(e)}function d(e,t,n){let r;let i=s.get(e);i||console.warn("Please use proxy object");let a=[],o=i[3],c=!1,u=o(e=>{if(a.push(e),n){t(a.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,c&&t(a.splice(0))}))});return c=!0,()=>{c=!1,u()}}let f=l({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),h={state:f,subscribe:e=>d(f,()=>e(f)),push(e,t){e!==f.view&&(f.view=e,t&&(f.data=t),f.history.push(e))},reset(e){f.view=e,f.history=[e]},replace(e){f.history.length>1&&(f.history[f.history.length-1]=e,f.view=e)},goBack(){if(f.history.length>1){f.history.pop();let[e]=f.history.slice(-1);f.view=e}},setData(e){f.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",W3M_VERSION:"W3M_VERSION",W3M_PREFER_INJECTED_URL_FLAG:"w3mPreferInjected",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>"u">typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>p.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,n){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,n);let r=e;r.includes("://")||(r=`${r=e.replaceAll("/","").replaceAll(":","")}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,n);let i=encodeURIComponent(t);return`${r}wc?uri=${i}`},formatUniversalUrl(e,t,n){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,n);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,n);let i=encodeURIComponent(t);return`${r}wc?uri=${i}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setWeb3ModalVersionInStorage(){try{"u">typeof localStorage&&localStorage.setItem(p.W3M_VERSION,"2.7.1")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;let t=null==(e=h.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing "Wallet" view data');return t},getSwitchNetworkRouterData(){var e;let t=null==(e=h.state.data)?void 0:e.SwitchNetwork;if(!t)throw Error('Missing "SwitchNetwork" view data');return t},isPreferInjectedFlag:()=>"u">typeof location&&new URLSearchParams(location.search).has(p.W3M_PREFER_INJECTED_URL_FLAG)},m={ethereumClient:void 0,setEthereumClient(e){r=e},client(){if(r)return r;throw Error("ClientCtrl has no client set")}},g="u">typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),b=l({enabled:g,userSessionId:"",events:[],connectedWalletId:void 0}),y={state:b,subscribe:e=>d(b.events,()=>e(function(e,t){let n=s.get(e);n||console.warn("Please use proxy object");let[r,i,a]=n;return a(r,i(),void 0)}(b.events[b.events.length-1]))),initialize(){b.enabled&&"u">typeof(null==crypto?void 0:crypto.randomUUID)&&(b.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){b.connectedWalletId=e},click(e){if(b.enabled){let t={type:"CLICK",name:e.name,userSessionId:b.userSessionId,timestamp:Date.now(),data:e};b.events.push(t)}},track(e){if(b.enabled){let t={type:"TRACK",name:e.name,userSessionId:b.userSessionId,timestamp:Date.now(),data:e};b.events.push(t)}},view(e){if(b.enabled){let t={type:"VIEW",name:e.name,userSessionId:b.userSessionId,timestamp:Date.now(),data:e};b.events.push(t)}}},w=l({selectedChain:void 0,chains:void 0,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,isPreferInjected:!1}),v={state:w,subscribe:e=>d(w,()=>e(w)),setChains(e){w.chains=e},getSelectedChain(){let e=m.client().getNetwork().chain;return e&&(w.selectedChain=e),w.selectedChain},setSelectedChain(e){w.selectedChain=e},setIsCustomDesktop(e){w.isCustomDesktop=e},setIsCustomMobile(e){w.isCustomMobile=e},setIsDataLoaded(e){w.isDataLoaded=e},setIsUiLoaded(e){w.isUiLoaded=e},setIsPreferInjected(e){w.isPreferInjected=e}},A=l({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,tokenContracts:void 0,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),C={state:A,subscribe:e=>d(A,()=>e(A)),setConfig(e){var t,n;y.initialize(),v.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),v.setIsCustomDesktop(!!(null==(n=e.desktopWallets)?void 0:n.length)),v.setChains(m.client().chains),v.setIsPreferInjected(m.client().isInjectedProviderInstalled()&&p.isPreferInjectedFlag()),e.defaultChain&&v.setSelectedChain(e.defaultChain),p.setWeb3ModalVersionInStorage(),Object.assign(A,e)}},P={async getIdentity(e,t){let{projectId:n}=C.state,r=`eip155:${t}`,i=`https://rpc.walletconnect.com/v1/identity/${e}?chainId=${r}&projectId=${n}`;return(await fetch(i)).json()}},E=l({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),O={state:E,subscribe:e=>d(E,()=>e(E)),getAccount(){let e=m.client().getAccount();E.address=e.address,E.isConnected=e.isConnected},async fetchProfile(e,t){var n;try{E.profileLoading=!0,E.profileName=null,E.profileAvatar=null;let r=t??E.address,i=null==(n=v.state.chains)?void 0:n.find(e=>1===e.id);if(r&&i){try{let e=await P.getIdentity(r,1);E.profileName=e.name,E.profileAvatar=e.avatar}catch{let e=await m.client().fetchEnsName({address:r,chainId:1});if(E.profileName=e,e){let t=await m.client().fetchEnsAvatar({name:e,chainId:1});E.profileAvatar=t}}E.profileAvatar&&await e(E.profileAvatar)}}finally{E.profileLoading=!1}},async fetchBalance(e){try{let t;let{chain:n}=m.client().getNetwork(),{tokenContracts:r}=C.state;n&&r&&(t=r[n.id]),E.balanceLoading=!0;let i=e??E.address;if(i){let e=await m.client().fetchBalance({address:i,token:t});E.balance={amount:e.formatted,symbol:e.symbol}}}finally{E.balanceLoading=!1}},setAddress(e){E.address=e},setIsConnected(e){E.isConnected=e},resetBalance(){E.balance=void 0},resetAccount(){E.address=void 0,E.isConnected=!1,E.profileName=void 0,E.profileAvatar=void 0,E.balance=void 0}};var I=Object.defineProperty,x=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,j=(e,t,n)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))S.call(t,n)&&j(e,n,t[n]);if(x)for(var n of x(t))B.call(t,n)&&j(e,n,t[n]);return e};let k="https://explorer-api.walletconnect.com",D="js-2.7.1";async function R(e,t){let n=M({sdkType:"w3m",sdkVersion:D},t),r=new URL(e,k);return r.searchParams.append("projectId",C.state.projectId),Object.entries(n).forEach(([e,t])=>{t&&r.searchParams.append(e,String(t))}),(await fetch(r)).json()}let N={getDesktopListings:async e=>R("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>R("/w3m/v1/getMobileListings",e),getInjectedListings:async e=>R("/w3m/v1/getInjectedListings",e),getAllListings:async e=>R("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${k}/w3m/v1/getWalletImage/${e}?projectId=${C.state.projectId}&sdkType=w3m&sdkVersion=${D}`,getAssetImageUrl:e=>`${k}/w3m/v1/getAssetImage/${e}?projectId=${C.state.projectId}&sdkType=w3m&sdkVersion=${D}`};var F=Object.defineProperty,L=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,Q=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))T.call(t,n)&&Q(e,n,t[n]);if(L)for(var n of L(t))U.call(t,n)&&Q(e,n,t[n]);return e};let G=p.isMobile(),z=l({wallets:{listings:[],total:0,page:1},injectedWallets:[],search:{listings:[],total:0,page:1},recomendedWallets:[]}),W={state:z,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=C.state;if("NONE"===e||"ALL"===t&&!e)return z.recomendedWallets;if(p.isArray(e)){let t={recommendedIds:e.join(",")},{listings:n}=await N.getAllListings(t),r=Object.values(n);r.sort((t,n)=>{let r=e.indexOf(t.id),i=e.indexOf(n.id);return r-i}),z.recomendedWallets=r}else{let e=p.isArray(t),n={page:1,entries:p.RECOMMENDED_WALLET_AMOUNT,version:2,excludedIds:e?t.join(","):void 0},{listings:r}=G?await N.getMobileListings(n):await N.getDesktopListings(n);z.recomendedWallets=Object.values(r)}return z.recomendedWallets},async getWallets(e){let t=q({},e),{explorerRecommendedWalletIds:n,explorerExcludedWalletIds:r}=C.state,{recomendedWallets:i}=z;if("ALL"===r)return z.wallets;i.length?t.excludedIds=i.map(e=>e.id).join(","):p.isArray(n)&&(t.excludedIds=n.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(","));let{page:a,search:s}=e,{listings:o,total:c}=G?await N.getMobileListings(t):await N.getDesktopListings(t),u=Object.values(o),l=s?"search":"wallets";return z[l]={listings:[...z[l].listings,...u],total:c,page:a??1},{listings:u,total:c}},async getInjectedWallets(){let{listings:e}=await N.getInjectedListings({}),t=Object.values(e);return z.injectedWallets=t,z.injectedWallets},getWalletImageUrl:e=>N.getWalletImageUrl(e),getAssetImageUrl:e=>N.getAssetImageUrl(e),resetSearch(){z.search={listings:[],total:0,page:1}}},K=l({pairingEnabled:!1,pairingUri:"",pairingError:!1}),H={state:K,subscribe:e=>d(K,()=>e(K)),setPairingUri(e){K.pairingUri=e},setPairingError(e){K.pairingError=e},setPairingEnabled(e){K.pairingEnabled=e}},J=l({open:!1}),V={state:J,subscribe:e=>d(J,()=>e(J)),open:async e=>new Promise(t=>{let{isUiLoaded:n,isDataLoaded:r,isPreferInjected:i,selectedChain:a}=v.state,{isConnected:s}=O.state,{enableNetworkView:o}=C.state;if(H.setPairingEnabled(!0),s||p.removeWalletConnectDeepLink(),null!=e&&e.route)h.reset(e.route);else if(s)h.reset("Account");else if(o)h.reset("SelectNetwork");else if(i){m.client().connectConnector("injected",a?.id).catch(e=>console.error(e)),t();return}else h.reset("ConnectWallet");let{pairingUri:c}=H.state;if(n&&r&&(c||s))J.open=!0,t();else{let e=setInterval(()=>{let n=v.state,r=H.state;n.isUiLoaded&&n.isDataLoaded&&(r.pairingUri||s)&&(clearInterval(e),J.open=!0,t())},200)}}),close(){J.open=!1}};var Y=Object.defineProperty,Z=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))X.call(t,n)&&_(e,n,t[n]);if(Z)for(var n of Z(t))$.call(t,n)&&_(e,n,t[n]);return e};let et=l({themeMode:"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),en={state:et,subscribe:e=>d(et,()=>e(et)),setThemeConfig(e){let{themeMode:t,themeVariables:n}=e;t&&(et.themeMode=t),n&&(et.themeVariables=ee({},n))}},er=l({open:!1,message:"",variant:"success"}),ei={state:er,subscribe:e=>d(er,()=>e(er)),openToast(e,t){er.open=!0,er.message=e,er.variant=t},closeToast(){er.open=!1}}},4357:function(e,t,n){"use strict";n.d(t,{Eg:function(){return g},k_:function(){return P}});var r=n(6006),i=n(570);Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var a=Object.defineProperty,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))c.call(t,n)&&u(e,n,t[n]);return e};function d(e){return r.createElement("w3m-modal",l({},e))}var f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,m=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))0>t.indexOf(r)&&p.call(e,r)&&(n[r]=e[r]);return n};let g=(0,r.memo)(function(e){var{ethereumClient:t}=e,a=m(e,["ethereumClient"]);let s=(0,r.useCallback)(async()=>{i.Ic.setThemeConfig(a),t&&i.Id.setEthereumClient(t),i.t0.setConfig(a),await Promise.all([n.e(930),n.e(890)]).then(n.bind(n,3890)),i.zb.setIsUiLoaded(!0)},[t,a]);return(0,r.useEffect)(()=>{s()},[s]),r.createElement(d,null)});Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var b=Object.defineProperty,y=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,A=(e,t,n)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t)=>{for(var n in t||(t={}))w.call(t,n)&&A(e,n,t[n]);if(y)for(var n of y(t))v.call(t,n)&&A(e,n,t[n]);return e};function P(){let[e,t]=(0,r.useState)(i.jb.state);return(0,r.useEffect)(()=>{let e=i.jb.subscribe(e=>t(C({},e)));return()=>{e()}},[]),{isOpen:e.open,open:i.jb.open,close:i.jb.close,setDefaultChain:i.zb.setSelectedChain}}},3831:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r}},25:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},6970:function(e,t,n){"use strict";n.d(t,{R:function(){return b}});var r=n(25),i=n(5073),a=n(9372),s=n(2973),o=n(3754),c=n(397),u=n(4262),l=n(778),d=n(8676),f=n(1299),h=n(9906),p=n(1378),m=n(6785),g=n(3370);async function b(e,t){let{account:i,batch:c=!!e.batch?.multicall,blockNumber:u,blockTag:l="latest",accessList:m,data:b,gas:w,gasPrice:v,maxFeePerGas:A,maxPriorityFeePerGas:C,nonce:P,to:E,value:O,...I}=t,x=i?(0,r.T)(i):void 0;try{(0,g.F)(t);let n=u?(0,d.eC)(u):void 0,r=n||l,i=e.chain?.formatters?.transactionRequest?.format||p.t,a=i({...(0,h.K)(I,{format:i}),from:x?.address,accessList:m,data:b,gas:w,gasPrice:v,maxFeePerGas:A,maxPriorityFeePerGas:C,nonce:P,to:E,value:O});if(c&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:a}))try{return await y(e,{...a,blockNumber:u,blockTag:l})}catch(e){if(!(e instanceof s.pZ)&&!(e instanceof s.mm))throw e}let o=await e.request({method:"eth_call",params:r?[a,r]:[a]});if("0x"===o)return{data:void 0};return{data:o}}catch(c){let r=function(e){if(!(e instanceof a.G))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}(c),{offchainLookup:i,offchainLookupSignature:s}=await n.e(504).then(n.bind(n,9504));if(r?.slice(0,10)===s&&E)return{data:await i(e,{data:r,to:E})};throw function(e,{docsPath:t,...n}){let r=e;return(0,f.B)(e)&&(r=(0,f.k)(e,n)),new o.cg(r,{docsPath:t,...n})}(c,{...t,account:x,chain:e.chain})}}async function y(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:f="latest",data:h,multicallAddress:p,to:g}=t,b=p;if(!b){if(!e.chain)throw new s.pZ;b=(0,l.LI)({blockNumber:a,chain:e.chain,contract:"multicall3"})}let y=a?(0,d.eC)(a):void 0,w=y||f,{schedule:v}=(0,m.S)({id:`${e.uid}.${w}`,wait:r,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*n},fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,u.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{data:r,to:b},w]});return(0,c.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:A,success:C}]=await v({data:h,to:g});if(!C)throw new o.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}},161:function(e,t,n){"use strict";n.d(t,{Q:function(){return g}});var r=n(25),i=n(1380),a=n(8676),s=n(1639),o=n(5401),c=n(9372),u=n(7732);class l extends c.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,u.xr)({from:t?.address,to:h,value:void 0!==p&&`${(0,s.d)(p)} ${r?.nativeCurrency.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==c&&`${(0,o.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,o.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,o.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var d=n(1299),f=n(9906),h=n(1378),p=n(3370),m=n(2392);async function g(e,t){let n=t.account??e.account;if(!n)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});let s=(0,r.T)(n);try{let{accessList:n,blockNumber:r,blockTag:i,data:o,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:g,to:b,value:y,...w}="local"===s.type?await (0,m.h)(e,t):t,v=r?(0,a.eC)(r):void 0,A=v||i;(0,p.F)(t);let C=e.chain?.formatters?.transactionRequest?.format||h.t,P=C({...(0,f.K)(w,{format:C}),from:s.address,accessList:n,data:o,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:g,to:b,value:y}),E=await e.request({method:"eth_estimateGas",params:A?[P,A]:[P]});return BigInt(E)}catch(n){throw function(e,{docsPath:t,...n}){let r=e;return(0,d.B)(e)&&(r=(0,d.k)(e,n)),new l(r,{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},4446:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(9372);class i extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}var a=n(8676),s=n(5867);async function o(e,{blockHash:t,blockNumber:n,blockTag:r="latest",includeTransactions:o=!1}={}){let c=void 0!==n?(0,a.eC)(n):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,o]}):await e.request({method:"eth_getBlockByNumber",params:[c||r,o]})))throw new i({blockHash:t,blockNumber:n});let l=e.chain?.formatters?.block?.format||s.Z;return l(u)}},225:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(9171);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,r.ly)(t)}},4037:function(e,t,n){"use strict";async function r(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}n.d(t,{o:function(){return r}})},4671:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(9171),i=n(8676);async function a(e,{address:t,blockTag:n="latest",blockNumber:a}){let s=await e.request({method:"eth_getTransactionCount",params:[t,a?(0,i.eC)(a):n]});return(0,r.ly)(s)}},5366:function(e,t,n){"use strict";let r;n.d(t,{e:function(){return s}});var i=n(25);let a=256;function s(e){let{batch:t,key:n="base",name:s="Base Client",pollingInterval:o=4e3,type:c="base"}=e,u=e.chain,l=e.account?(0,i.T)(e.account):void 0,{config:d,request:f,value:h}=e.transport({chain:u,pollingInterval:o}),p={...d,...h},m={account:l,batch:t,chain:u,key:n,name:s,pollingInterval:o,request:f,transport:p,type:c,uid:function(e=11){if(!r||a+e>512){r="",a=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(a,a+++e)}()};return Object.assign(m,{extend:function e(t){return n=>{let r=n(t);for(let e in m)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(m)})}},4888:function(e,t,n){"use strict";n.d(t,{K:function(){return D}});var r=n(5366),i=n(225),a=n(8676);async function s(e,{chain:t}){let{id:n,name:r,nativeCurrency:i,rpcUrls:s,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,a.eC)(n),chainName:r,nativeCurrency:i,rpcUrls:s.default.http,blockExplorerUrls:o?Object.values(o).map(({url:e})=>e):void 0}]})}var o=n(2801),c=n(25),u=n(1380),l=n(778),d=n(7732),f=n(1299),h=n(9906),p=n(1378),m=n(3370),g=n(2392);async function b(e,t){let{account:n=e.account,chain:r=e.chain,accessList:a,data:s,gas:o,gasPrice:b,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:v,to:A,value:C,...P}=t;if(!n)throw new u.o({docsPath:"/docs/actions/wallet/sendTransaction"});let E=(0,c.T)(n);try{let n;if((0,m.F)(t),null!==r&&(n=await (0,i.L)(e),(0,l.qg)({currentChainId:n,chain:r})),"local"===E.type){let t=await (0,g.h)(e,{account:E,accessList:a,chain:r,data:s,gas:o,gasPrice:b,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:v,to:A,value:C,...P});n||(n=await (0,i.L)(e));let c=r?.serializers?.transaction,u=await E.signTransaction({...t,chainId:n},{serializer:c});return await e.request({method:"eth_sendRawTransaction",params:[u]})}let c=r?.formatters?.transactionRequest?.format||p.t,u=c({...(0,h.K)(P,{format:c}),accessList:a,data:s,from:E.address,gas:o,gasPrice:b,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:v,to:A,value:C});return await e.request({method:"eth_sendTransaction",params:[u]})}catch(e){throw function(e,{docsPath:t,...n}){let r=e;return(0,f.B)(e)&&(r=(0,f.k)(e,n)),new d.mk(r,{docsPath:t,...n})}(e,{...t,account:E,chain:t.chain||void 0})}}var y=n(7977);async function w(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,y.x)(e))}async function v(e){let t=await e.request({method:"wallet_getPermissions"});return t}async function A(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,y.K)(e))}async function C(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function P(e,{account:t=e.account,message:n}){if(!t)throw new u.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,c.T)(t);if("local"===r.type)return r.signMessage({message:n});let i="string"==typeof n?(0,a.$G)(n):n.raw instanceof Uint8Array?(0,a.NC)(n.raw):n.raw;return e.request({method:"personal_sign",params:[i,r.address]})}var E=n(4720),O=n(7730),I=n(666);async function x(e,{account:t=e.account,domain:n,message:r,primaryType:i,types:a}){if(!t)throw new u.o({docsPath:"/docs/actions/wallet/signTypedData"});let s=(0,c.T)(t),o={EIP712Domain:["string"==typeof n?.name&&{name:"name",type:"string"},n?.version&&{name:"version",type:"string"},"number"==typeof n?.chainId&&{name:"chainId",type:"uint256"},n?.verifyingContract&&{name:"verifyingContract",type:"address"},n?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...a};if((0,I.i)({domain:n,message:r,primaryType:i,types:o}),"local"===s.type)return s.signTypedData({domain:n,primaryType:i,types:o,message:r});let l=(0,O.P)({domain:n??{},primaryType:i,types:o,message:r},(e,t)=>(0,E.v)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[s.address,l]})}async function S(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(t)}]})}async function B(e,t){let n=await e.request({method:"wallet_watchAsset",params:t});return n}var j=n(4262);async function M(e,{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}){let o=(0,j.R)({abi:t,args:r,functionName:a}),c=await b(e,{data:`${o}${i?i.replace("0x",""):""}`,to:n,...s});return c}function k(e){return{addChain:t=>s(e,t),deployContract:t=>(function(e,{abi:t,args:n,bytecode:r,...i}){let a=(0,o.w)({abi:t,args:n,bytecode:r});return b(e,{...i,data:a})})(e,t),getAddresses:()=>w(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>v(e),requestAddresses:()=>A(e),requestPermissions:t=>C(e,t),sendTransaction:t=>b(e,t),signMessage:t=>P(e,t),signTypedData:t=>x(e,t),switchChain:t=>S(e,t),watchAsset:t=>B(e,t),writeContract:t=>M(e,t)}}function D(e){let{key:t="wallet",name:n="Wallet Client",transport:i}=e,a=(0,r.e)({...e,key:t,name:n,transport:e=>i({...e,retryCount:0}),type:"walletClient"});return a.extend(k)}},9823:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(4169);function i({key:e,name:t,request:n,retryCount:i=3,retryDelay:a=150,timeout:s,type:o},c){return{config:{key:e,name:t,request:n,retryCount:i,retryDelay:a,timeout:s,type:o},request:(0,r.n)(n,{retryCount:i,retryDelay:a}),value:c}}},9879:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(9823);function i(e,t={}){let{key:n="custom",name:i="Custom Provider",retryDelay:a}=t;return({retryCount:s})=>(0,r.q)({key:n,name:i,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:a,type:"custom"})}},5073:function(e,t,n){"use strict";n.d(t,{$o:function(){return u},F8:function(){return r},X$:function(){return c},du:function(){return s},k3:function(){return a},nZ:function(){return o}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],a=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],o=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],u=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},782:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return a}});let r={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},3722:function(e,t,n){"use strict";n.d(t,{Bd:function(){return a},Zn:function(){return i},ez:function(){return r}});let r={gwei:9,wei:18},i={ether:-9,wei:9},a={ether:-18,gwei:-9}},4570:function(e,t,n){"use strict";n.d(t,{CI:function(){return P},FM:function(){return p},Gy:function(){return A},KY:function(){return w},M4:function(){return d},MX:function(){return y},SM:function(){return v},cO:function(){return o},dh:function(){return C},fM:function(){return s},fs:function(){return f},gr:function(){return l},hn:function(){return E},lC:function(){return m},mv:function(){return g},wM:function(){return O},wb:function(){return u},xB:function(){return c},xL:function(){return b},yP:function(){return h}});var r=n(4528),i=n(3313),a=n(9372);class s extends a.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class o extends a.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class c extends a.G{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.h)(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class u extends a.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class l extends a.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. Expected length: ${e} Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class f extends a.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. Expected length (params): ${e} Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class h extends a.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. Make sure you are using the correct ABI and that the error exists on it. You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends a.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends a.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. Make sure you are using the correct ABI and that the event exists on it. You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends a.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class b extends a.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class y extends a.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. Cannot decode function result without knowing what the parameter types are. Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class w extends a.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class v extends a.G{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=i}}class A extends a.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class P extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class E extends a.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class O extends a.G{constructor(e){super(`"${e}" is not a valid definition type. Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},1380:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(9372);class i extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},940:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(9372);class i extends r.G{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},9372:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(1687);class i extends Error{constructor(e,t={}){super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,r.bo)()});let n=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://viem.sh${a}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,n):n?null:t}(this,e)}}},2973:function(e,t,n){"use strict";n.d(t,{Bk:function(){return s},Yl:function(){return a},hJ:function(){return c},mm:function(){return i},pZ:function(){return o}});var r=n(9372);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class a extends r.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class s extends r.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class o extends r.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class c extends r.G{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},3754:function(e,t,n){"use strict";n.d(t,{cg:function(){return g},uq:function(){return b},Lu:function(){return y},Dk:function(){return w},VQ:function(){return v}});var r=n(25),i=n(782),a=n(7331),s=n(4528),o=n(7730);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,o.P)(t[n]):t[n]}`).join(", ")})`}var u=n(8029),l=n(1639),d=n(5401),f=n(4570),h=n(9372),p=n(7732),m=n(1687);class g extends h.G{constructor(e,{account:t,docsPath:n,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:h,value:m}){let g=t?(0,r.T)(t):void 0,b=(0,p.xr)({from:g?.address,to:h,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${(0,d.o)(o)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class b extends h.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){let l=(0,u.m)({abi:t,args:n,name:a}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,s.t)(l,{includeName:!0}):void 0,h=(0,p.xr)({address:r&&(0,m.CR)(r),function:f,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",h].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class y extends h.G{constructor({abi:e,data:t,functionName:n,message:r}){let o,u,l,d,h;if(t&&"0x"!==t)try{h=(0,a.p)({abi:e,data:t});let{abiItem:n,errorName:r,args:o}=h;if("Error"===r)l=o[0];else if("Panic"===r){let[e]=o;l=i.$[e]}else{let e=n?(0,s.t)(n,{includeName:!0}):void 0,t=n&&o?c({abiItem:n,args:o,includeFunctionName:!1,includeName:!1}):void 0;u=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){o=e}else r&&(l=r);o instanceof f.yP&&(u=[`Unable to decode signature "${d=o.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${n}" reverted.`,{cause:o,metaMessages:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=l,this.signature=d}}class w extends h.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class v extends h.G{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},996:function(e,t,n){"use strict";n.d(t,{$:function(){return a},m:function(){return i}});var r=n(9372);class i extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class a extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},2585:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},J5:function(){return i},M6:function(){return s}});var r=n(9372);class i extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class a extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class s extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},1033:function(e,t,n){"use strict";n.d(t,{C_:function(){return d},G$:function(){return o},Hh:function(){return s},M_:function(){return a},WF:function(){return f},ZI:function(){return c},cj:function(){return g},cs:function(){return m},dR:function(){return h},pZ:function(){return p},se:function(){return l},vU:function(){return u}});var r=n(5401),i=n(9372);class a extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},6559:function(e,t,n){"use strict";n.d(t,{Gg:function(){return s},W5:function(){return u},bs:function(){return c},c9:function(){return o}});var r=n(7730),i=n(9372),a=n(1687);class s extends i.G{constructor({body:e,details:t,headers:n,status:i,url:s}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,a.Gr)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=i,this.url=s}}class o extends i.G{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,a.Gr)(n)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class c extends i.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.Gr)(n)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class u extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.Gr)(t)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},2666:function(e,t,n){"use strict";n.d(t,{B:function(){return c},GD:function(){return y},I0:function(){return P},KB:function(){return m},LX:function(){return u},Og:function(){return h},PE:function(){return v},Pv:function(){return b},Ts:function(){return A},XS:function(){return d},ab:function(){return w},gS:function(){return g},ir:function(){return O},nY:function(){return l},pT:function(){return p},s7:function(){return o},u5:function(){return C},x3:function(){return E},yR:function(){return f}});var r=n(9372),i=n(6559);class a extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:a}){super(a,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class s extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o extends a{constructor(e){super(e,{code:o.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends a{constructor(e){super(e,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends a{constructor(e){super(e,{code:u.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends a{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends a{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends a{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends a{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends a{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends a{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends a{constructor(e){super(e,{code:b.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class y extends a{constructor(e){super(e,{code:y.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class w extends s{constructor(e){super(e,{code:w.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends s{constructor(e){super(e,{code:v.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class A extends s{constructor(e){super(e,{code:A.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class C extends s{constructor(e){super(e,{code:C.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends s{constructor(e){super(e,{code:P.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends s{constructor(e){super(e,{code:E.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class O extends a{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},7732:function(e,t,n){"use strict";n.d(t,{Bh:function(){return f},JC:function(){return l},Yb:function(){return h},j3:function(){return u},mc:function(){return p},mk:function(){return d},vl:function(){return c},xY:function(){return o},xr:function(){return s}});var r=n(1639),i=n(5401),a=n(9372);function s(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class o extends a.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class c extends a.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class u extends a.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class l extends a.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class d extends a.G{constructor(e,{account:t,docsPath:n,chain:a,data:o,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=s({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,r.d)(p)} ${a?.nativeCurrency.symbol||"ETH"}`,data:o,gas:c,gasPrice:void 0!==u&&`${(0,i.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class f extends a.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&void 0!==i&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class h extends a.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends a.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},1687:function(e,t,n){"use strict";n.d(t,{CR:function(){return r},Gr:function(){return i},bo:function(){return a}});let r=e=>e,i=e=>e,a=()=>"viem@1.4.2"},9157:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(4570),i=n(7977),a=n(3313),s=n(6060),o=n(5595),c=n(9171),u=n(6270);function l(e,t){if("0x"===t&&e.length>0)throw new r.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new r.xB({data:t,params:e,size:(0,a.d)(t)});return function({data:e,params:t}){let n=[],l=0;for(let f=0;f<t.length;f++){if(l>=(0,a.d)(e))throw new r.xB({data:e,params:t,size:(0,a.d)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:n,position:a}){let l=(0,u.S)(n.type);if(l){let[r,i]=l;return function(t,{param:n,length:r,position:i}){if(!r){let r=(0,c.ly)((0,s.tP)(t,i,i+32,{strict:!0})),a=(0,c.ly)((0,s.tP)(t,r,r+32,{strict:!0})),o=0,u=[];for(let i=0;i<a;++i){let i=e({data:(0,s.tP)(t,r+32),param:n,position:o});o+=i.consumed,u.push(i.value)}return{value:u,consumed:32}}if(d(n)){let a=(0,u.S)(n.type),o=!a?.[0],l=0,d=[];for(let a=0;a<r;++a){let r=(0,c.ly)((0,s.tP)(t,i,i+32,{strict:!0})),u=e({data:(0,s.tP)(t,r),param:n,position:o?l:32*a});l+=u.consumed,d.push(u.value)}return{value:d,consumed:32}}let a=0,o=[];for(let s=0;s<r;++s){let r=e({data:t,param:n,position:i+a});a+=r.consumed,o.push(r.value)}return{value:o,consumed:a}}(t,{length:r,param:{...n,type:i},position:a})}if("tuple"===n.type)return function(t,{param:n,position:r}){let i=0===n.components.length||n.components.some(({name:e})=>!e),a=i?[]:{},o=0;if(d(n)){let u=(0,c.ly)((0,s.tP)(t,r,r+32,{strict:!0}));for(let r=0;r<n.components.length;++r){let c=n.components[r],l=e({data:(0,s.tP)(t,u),param:c,position:o});o+=l.consumed,a[i?r:c?.name]=l.value}return{consumed:32,value:a}}for(let s=0;s<n.components.length;++s){let c=n.components[s],u=e({data:t,param:c,position:r+o});o+=u.consumed,a[i?s:c?.name]=u.value}return{consumed:o,value:a}}(t,{param:n,position:a});if("string"===n.type)return function(e,{position:t}){let n=(0,c.ly)((0,s.tP)(e,t,t+32,{strict:!0})),r=(0,c.ly)((0,s.tP)(e,n,n+32,{strict:!0}));if(0===r)return{consumed:32,value:""};let i=(0,c.rR)((0,o.f)((0,s.tP)(e,n+32,n+32+r,{strict:!0})));return{consumed:32,value:i}}(t,{position:a});if(n.type.startsWith("bytes"))return function(e,{param:t,position:n}){let[r,i]=t.type.split("bytes");if(!i){let t=(0,c.ly)((0,s.tP)(e,n,n+32,{strict:!0})),r=(0,c.ly)((0,s.tP)(e,t,t+32,{strict:!0}));if(0===r)return{consumed:32,value:"0x"};let i=(0,s.tP)(e,t+32,t+32+r,{strict:!0});return{consumed:32,value:i}}let a=(0,s.tP)(e,n,n+parseInt(i),{strict:!0});return{consumed:32,value:a}}(t,{param:n,position:a});let f=(0,s.tP)(t,a,a+32,{strict:!0});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,{param:t}){let n=t.type.startsWith("int"),r=parseInt(t.type.split("int")[1]||"256");return{consumed:32,value:r>48?(0,c.y_)(e,{signed:n}):(0,c.ly)(e,{signed:n})}}(f,{param:n});if("address"===n.type)return{consumed:32,value:(0,i.x)((0,s.tP)(f,-20))};if("bool"===n.type)return{consumed:32,value:(0,c.XA)(f)};throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:l});n.push(m),l+=p}return n}({data:t,params:e})}function d(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);let n=(0,u.S)(e.type);return!!(n&&d({...e,type:n[1]}))}},7331:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(782),i=n(4570),a=n(6060),s=n(1701),o=n(9157),c=n(4528);function u({abi:e,data:t}){let n=(0,a.tP)(t,0,4);if("0x"===n)throw new i.wb;let u=[...e||[],r.Up,r.hZ],l=u.find(e=>"error"===e.type&&n===(0,s.o)((0,c.t)(e)));if(!l)throw new i.yP(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,o.r)(l.inputs,(0,a.tP)(t,4)):void 0,errorName:l.name}}},397:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(4570),i=n(9157),a=n(8029);let s="/docs/contract/decodeFunctionResult";function o({abi:e,args:t,functionName:n,data:o}){let c=e[0];if(n&&!(c=(0,a.m)({abi:e,args:t,name:n})))throw new r.xL(n,{docsPath:s});if("function"!==c.type)throw new r.xL(void 0,{docsPath:s});if(!c.outputs)throw new r.MX(c.name,{docsPath:s});let u=(0,i.r)(c.outputs,o);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},6270:function(e,t,n){"use strict";n.d(t,{E:function(){return d},S:function(){return h}});var r=n(4570),i=n(940),a=n(2551),s=n(7612),o=n(3362),c=n(3313),u=n(6060),l=n(8676);function d(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=function({params:e,values:t}){let n=[];for(let d=0;d<e.length;d++)n.push(function e({param:t,value:n}){let d=h(t.type);if(d){let[i,a]=d;return function(t,{length:n,param:i}){let a=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!a&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,c=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),c.push(r)}if(a||o){let e=f(c);if(a){let t=(0,l.eC)(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?(0,s.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.zo)(c.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let a=0;a<n.components.length;a++){let s=n.components[a],o=Array.isArray(t)?a:s.name,c=e({param:s,value:t[o]});i.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?f(i):(0,s.zo)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,a.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,o.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return{dynamic:!1,encoded:(0,o.gc)((0,l.C4)(n))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.eC)(e,{size:32,signed:t})}}(n,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[n,i]=t.type.split("bytes");if(!i){let t=Math.ceil((0,c.d)(e)/32),n=[];for(let r=0;r<t;r++)n.push((0,o.gc)((0,u.tP)(e,32*r,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.zo)([(0,o.gc)((0,l.eC)((0,c.d)(e),{size:32})),...n])}}if((0,c.d)(e)!==parseInt(i))throw new r.M4({expectedSize:parseInt(i),value:e});return{dynamic:!1,encoded:(0,o.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,l.$G)(e),n=Math.ceil((0,c.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,o.gc)((0,u.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.zo)([(0,o.gc)((0,l.eC)((0,c.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[d],value:t[d]}));return n}({params:e,values:t}),d=f(n);return 0===d.length?"0x":d}function f(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,c.d)(i)}let n=[],r=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:s,encoded:o}=e[a];s?(n.push((0,l.eC)(t+i,{size:32})),r.push(o),i+=(0,c.d)(o)):n.push(o)}return(0,s.zo)([...n,...r])}function h(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},2801:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(4570),i=n(7612),a=n(6270);let s="/docs/contract/encodeDeployData";function o({abi:e,args:t,bytecode:n}){if(!t||0===t.length)return n;let o=e.find(e=>"type"in e&&"constructor"===e.type);if(!o)throw new r.fM({docsPath:s});if(!("inputs"in o)||!o.inputs||0===o.inputs.length)throw new r.cO({docsPath:s});let c=(0,a.E)(o.inputs,t);return(0,i.SM)([n,c])}},4262:function(e,t,n){"use strict";n.d(t,{R:function(){return u}});var r=n(4570),i=n(7612),a=n(1701),s=n(6270),o=n(4528),c=n(8029);function u({abi:e,args:t,functionName:n}){let u=e[0];if(n&&!(u=(0,c.m)({abi:e,args:t,name:n})))throw new r.xL(n,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==u.type)throw new r.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,o.t)(u),d=(0,a.o)(l),f="inputs"in u&&u.inputs?(0,s.E)(u.inputs,t??[]):void 0;return(0,i.SM)([d,f??"0x"])}},4528:function(e,t,n){"use strict";n.d(t,{h:function(){return a},t:function(){return i}});var r=n(4570);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},8029:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(2551);function i({abi:e,args:t=[],name:n}){let i=e.filter(e=>"name"in e&&e.name===n);if(0!==i.length){if(1===i.length)return i[0];for(let e of i){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let n=t.every((t,n)=>{let i="inputs"in e&&e.inputs[n];return!!i&&function e(t,n){let i=typeof t,a=n.type;switch(a){case"address":return(0,r.U)(t);case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===a&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===i||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)});if(n)return e}return i[0]}}},7977:function(e,t,n){"use strict";n.d(t,{K:function(){return c},x:function(){return o}});var r=n(940),i=n(4617),a=n(6844),s=n(2551);function o(e,t){let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,a.w)((0,i.qX)(n),"bytes"),s=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&r[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());return`0x${s.join("")}`}function c(e,t){if(!(0,s.U)(e))throw new r.b({address:e});return o(e,t)}},2551:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});let r=/^0x[a-fA-F0-9]{40}$/;function i(e){return r.test(e)}},4169:function(e,t,n){"use strict";n.d(t,{n:function(){return c},y:function(){return o}});var r=n(9372),i=n(6559),a=n(2666),s=n(8901);let o=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.Gg&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;function c(e,{retryDelay:t=150,retryCount:n=3}={}){return async c=>(0,s.J)(async()=>{try{return await e(c)}catch(e){switch(e.code){case a.s7.code:throw new a.s7(e);case a.B.code:throw new a.B(e);case a.LX.code:throw new a.LX(e);case a.nY.code:throw new a.nY(e);case a.XS.code:throw new a.XS(e);case a.yR.code:throw new a.yR(e);case a.Og.code:throw new a.Og(e);case a.pT.code:throw new a.pT(e);case a.KB.code:throw new a.KB(e);case a.gS.code:throw new a.gS(e);case a.Pv.code:throw new a.Pv(e);case a.GD.code:throw new a.GD(e);case a.ab.code:throw new a.ab(e);case a.PE.code:throw new a.PE(e);case a.Ts.code:throw new a.Ts(e);case a.u5.code:throw new a.u5(e);case a.I0.code:throw new a.I0(e);case a.x3.code:throw new a.x3(e);default:if(e instanceof r.G)throw e;throw new a.ir(e)}}},{delay:({count:e,error:n})=>{if(n&&n instanceof i.Gg){let e=n?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<<e)*t},retryCount:n,shouldRetry:({error:e})=>!o(e)})}},778:function(e,t,n){"use strict";n.d(t,{LI:function(){return s},ax:function(){return a},qg:function(){return i}});var r=n(2973);function i({chain:e,currentChainId:t}){if(!e)throw new r.Bk;if(t!==e.id)throw new r.Yl({chain:e,currentChainId:t})}function a(e,t){return{...e,formatters:t?.formatters,serializers:t?.serializers}}function s({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.mm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},7612:function(e,t,n){"use strict";function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},4720:function(e,t,n){"use strict";function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}n.d(t,{v:function(){return r}})},3362:function(e,t,n){"use strict";n.d(t,{gc:function(){return a},vk:function(){return i}});var r=n(996);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?a(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.$({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let a="right"===t;i[a?r:n-r-1]=e[a?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function a(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.$({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},3313:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(4720);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},6060:function(e,t,n){"use strict";n.d(t,{tP:function(){return s}});var r=n(996),i=n(4720),a=n(3313);function s(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?function(e,t,n,{strict:r}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&c(i,t,n),i}(e,t,n,{strict:r}):function(e,t,n,{strict:r}={}){o(e,t);let i=e.slice(t,n);return r&&c(i,t,n),i}(e,t,n,{strict:r})}function o(e,t){if("number"==typeof t&&t>0&&t>(0,a.d)(e)-1)throw new r.m({offset:t,position:"start",size:(0,a.d)(e)})}function c(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,a.d)(e)!==n-t)throw new r.m({offset:n,position:"end",size:(0,a.d)(e)})}},5595:function(e,t,n){"use strict";function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;e<n.length-1&&"0"===n["left"===t?e:n.length-e-1].toString();e++)r++;return(n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{f:function(){return r}})},9171:function(e,t,n){"use strict";n.d(t,{XA:function(){return u},Yf:function(){return o},ly:function(){return l},rR:function(){return d},y_:function(){return c}});var r=n(2585),i=n(3313),a=n(5595),s=n(4617);function o(e,{size:t}){if((0,i.d)(e)>t)throw new r.M6({givenSize:(0,i.d)(e),maxSize:t})}function c(e,t={}){let{signed:n}=t;t.size&&o(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2,a=(1n<<8n*BigInt(i)-1n)-1n;return r<=a?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let n=e;if(t.size&&(o(n,{size:t.size}),n=(0,a.f)(n)),"0x00"===(0,a.f)(n))return!1;if("0x01"===(0,a.f)(n))return!0;throw new r.Cd(n)}function l(e,t={}){return Number(c(e,t))}function d(e,t={}){let n=(0,s.nr)(e);return t.size&&(o(n,{size:t.size}),n=(0,a.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},4617:function(e,t,n){"use strict";n.d(t,{O0:function(){return u},nr:function(){return l},qX:function(){return d}});var r=n(9372),i=n(4720),a=n(3362),s=n(9171),o=n(8676);let c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){let n=(0,o.eC)(e,t);return l(n)}(e,t):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,s.Yf)(n,{size:t.size}),(0,a.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?l(e,t):d(e,t)}function l(e,t={}){let n=e;t.size&&((0,s.Yf)(n,{size:t.size}),n=(0,a.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let o=new Uint8Array(i.length/2);for(let e=0;e<o.length;e++){let t=2*e,n=i.slice(t,t+2),a=Number.parseInt(n,16);if(Number.isNaN(a)||a<0)throw new r.G(`Invalid byte sequence ("${n}" in "${i}").`);o[e]=a}return o}function d(e,t={}){let n=c.encode(e);return"number"==typeof t.size?((0,s.Yf)(n,{size:t.size}),(0,a.vk)(n,{dir:"right",size:t.size})):n}},8676:function(e,t,n){"use strict";n.d(t,{$G:function(){return f},C4:function(){return c},NC:function(){return o},ci:function(){return u},eC:function(){return l}});var r=n(2585),i=n(3362),a=n(9171);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size})):n}function u(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n;let{signed:a,size:s}=t,o=BigInt(e);s?n=a?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof n&&a?-n-1n:0;if(n&&o>n||o<c){let t="bigint"==typeof e?"n":"";throw new r.J5({max:n?`${n}${t}`:void 0,min:`${c}${t}`,signed:a,size:s,value:`${e}${t}`})}let u=`0x${(a&&o<0?(1n<<BigInt(8*s))+BigInt(o):o).toString(16)}`;return s?(0,i.vk)(u,{size:s}):u}let d=new TextEncoder;function f(e,t={}){let n=d.encode(e);return u(n,t)}},1299:function(e,t,n){"use strict";n.d(t,{B:function(){return s},k:function(){return o}});var r=n(1033),i=n(6559),a=n(2666);function s(e){return e instanceof a.KB||e instanceof a.yR||e instanceof i.bs&&e.code===r.M_.code}function o(e,t){let n=e.details.toLowerCase();if(r.Hh.nodeMessage.test(n))return new r.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas});if(r.G$.nodeMessage.test(n))return new r.G$({cause:e,maxFeePerGas:t?.maxFeePerGas});if(r.ZI.nodeMessage.test(n))return new r.ZI({cause:e,nonce:t?.nonce});if(r.vU.nodeMessage.test(n))return new r.vU({cause:e,nonce:t?.nonce});if(r.se.nodeMessage.test(n))return new r.se({cause:e,nonce:t?.nonce});if(r.C_.nodeMessage.test(n))return new r.C_({cause:e});if(r.WF.nodeMessage.test(n))return new r.WF({cause:e,gas:t?.gas});else if(r.dR.nodeMessage.test(n))return new r.dR({cause:e,gas:t?.gas});else if(r.pZ.nodeMessage.test(n))return new r.pZ({cause:e});else if(r.cs.nodeMessage.test(n))return new r.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas});else if(n.match(r.M_.nodeMessage)||"code"in e.cause&&e.cause?.code===r.M_.code)return new r.M_({cause:e,message:e.cause.details||e.details});return new r.cj({cause:e.cause.cause})}},5867:function(e,t,n){"use strict";n.d(t,{G:function(){return s},Z:function(){return a}});var r=n(2495),i=n(4283);function a(e){let t=e.transactions?.map(e=>"string"==typeof e?e:(0,i.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let s=(0,r.$)("block",a)},9906:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n=Object.keys(t({}));return n.reduce((t,n)=>(e?.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}n.d(t,{K:function(){return r}})},2495:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({format:e=>{let i=t(e);if(n)for(let e of n)delete i[e];return{...i,...r(e)}},type:e})}n.d(t,{$:function(){return r}})},6945:function(e,t,n){"use strict";function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},4283:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s},c8:function(){return a},y_:function(){return o}});var r=n(9171),i=n(2495);let a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function s(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}let o=(0,i.$)("transaction",s)},202:function(e,t,n){"use strict";n.d(t,{d:function(){return u},f:function(){return c}});var r=n(9171),i=n(2495),a=n(6945),s=n(4283);let o={"0x0":"reverted","0x1":"success"};function c(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?s.c8[e.type]||e.type:null}}let u=(0,i.$)("transactionReceipt",c)},1378:function(e,t,n){"use strict";n.d(t,{i:function(){return s},t:function(){return a}});var r=n(8676),i=n(2495);function a(e){return{...e,gas:void 0!==e.gas?(0,r.eC)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,r.eC)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,r.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,r.eC)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,r.eC)(e.nonce):void 0,value:void 0!==e.value?(0,r.eC)(e.value):void 0}}let s=(0,i.$)("transactionRequest",a)},1701:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(6060),i=n(6914);let a=e=>"string"==typeof e?(0,r.tP)((0,i.F)(e),0,4):(0,r.tP)((0,i.J)(e),0,4)},6914:function(e,t,n){"use strict";n.d(t,{J:function(){return u},F:function(){return c}});let r=/((function|event)\s)?(.*)(\((.*)\))/;function i(e){let t=e.match(r),n=t?.[2]||void 0,i=t?.[3],a=t?.[5]||void 0;return{type:n,name:i,params:a}}var a=n(4617),s=n(6844);let o=e=>(0,s.w)((0,a.O0)(e));function c(e){let t=i(e).name,n=function(e){let t=i(e).params,n=t?.split(",").map(e=>e.trim().split(" "));return n?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))}(e)||[];return o(`${t}(${n.map(({type:e})=>e).join(",")})`)}function u(e){return o(`${e.name}(${e.inputs.map(({type:e})=>e).join(",")})`)}},6844:function(e,t,n){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}n.d(t,{w:function(){return R}});var a={number:r,bool:function(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)},bytes:i,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)},exists:function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},output:function(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least ${n}`)}};let s=BigInt(4294967296-1),o=BigInt(32);function c(e,t=!1){return t?{h:Number(e&s),l:Number(e>>o&s)}:{h:0|Number(e>>o&s),l:0|Number(e&s)}}var u={fromBig:c,split:function(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:s}=c(e[i],t);[n[i],r[i]]=[a,s]}return[n,r]},toBig:(e,t)=>BigInt(e>>>0)<<o|BigInt(t>>>0),shrSH:(e,t,n)=>e>>>n,shrSL:(e,t,n)=>e<<32-n|t>>>n,rotrSH:(e,t,n)=>e>>>n|t<<32-n,rotrSL:(e,t,n)=>e<<32-n|t>>>n,rotrBH:(e,t,n)=>e<<64-n|t>>>n-32,rotrBL:(e,t,n)=>e>>>n-32|t<<64-n,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,n)=>e<<n|t>>>32-n,rotlSL:(e,t,n)=>t<<n|e>>>32-n,rotlBH:(e,t,n)=>t<<n-32|e>>>64-n,rotlBL:(e,t,n)=>e<<n-32|t>>>64-n,add:function(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/4294967296|0)|0,l:0|i}},add3L:(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),add3H:(e,t,n,r)=>t+n+r+(e/4294967296|0)|0,add4L:(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),add4H:(e,t,n,r,i)=>t+n+r+i+(e/4294967296|0)|0,add5H:(e,t,n,r,i,a)=>t+n+r+i+a+(e/4294967296|0)|0,add5L:(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0)};let l=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),d=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!d)throw Error("Non little-endian hardware is not supported");function f(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}(e)),!(e instanceof Uint8Array))throw TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));class h{clone(){return this._cloneInto()}}let[p,m,g]=[[],[],[]],b=BigInt(0),y=BigInt(1),w=BigInt(2),v=BigInt(7),A=BigInt(256),C=BigInt(113);for(let e=0,t=y,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],p.push(2*(5*r+n)),m.push((e+1)*(e+2)/2%64);let i=b;for(let e=0;e<7;e++)(t=(t<<y^(t>>v)*C)%A)&w&&(i^=y<<(y<<BigInt(e))-y);g.push(i)}let[P,E]=u.split(g,!0),O=(e,t,n)=>n>32?u.rotlBH(e,t,n):u.rotlSH(e,t,n),I=(e,t,n)=>n>32?u.rotlBL(e,t,n):u.rotlSL(e,t,n);class x extends h{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,a.number(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=l(this.state)}keccak(){!function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,a=n[i],s=n[i+1],o=O(a,s,1)^n[r],c=I(a,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=o,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=m[n],a=O(t,i,r),s=I(t,i,r),o=p[n];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=P[r],e[1]^=E[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){a.exists(this);let{blockLen:t,state:n}=this;e=f(e);let r=e.length;for(let i=0;i<r;){let a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){a.exists(this,!1),a.bytes(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return a.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(a.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new x(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}let S=(e,t,n)=>(function(e){let t=t=>e().update(f(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t})(()=>new x(t,e,n));S(6,144,28),S(6,136,32),S(6,104,48),S(6,72,64),S(1,144,28);let B=S(1,136,32);S(1,104,48),S(1,72,64);let j=(e,t,n)=>(function(e){let t=(t,n)=>e(n).update(f(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t})((r={})=>new x(t,e,void 0===r.dkLen?n:r.dkLen,!0));j(31,168,16),j(31,136,32);var M=n(4720),k=n(4617),D=n(8676);function R(e,t){let n=B((0,M.v)(e,{strict:!1})?(0,k.O0)(e):e);return"bytes"===(t||"hex")?n:(0,D.NC)(n)}},6785:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});let r=new Map;function i({fn:e,id:t,shouldSplitBatch:n,wait:i=0}){let a=async()=>{let t=c();s();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{t.forEach(({pendingPromise:t},n)=>t.resolve?.([e[n],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},s=()=>r.delete(t),o=()=>c().map(({args:e})=>e),c=()=>r.get(t)||[],u=e=>r.set(t,[...c(),e]);return{flush:s,async schedule(e){let t={},r=new Promise((e,n)=>{t.resolve=e,t.reject=n}),s=n?.([...o(),e]);s&&a();let l=c().length>0;return l?(u({args:e,pendingPromise:t}),r):(u({args:e,pendingPromise:t}),setTimeout(a,i),r)}}}},8901:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(1329);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((a,s)=>{let o=async({count:c=0}={})=>{let u=async({error:e})=>{let n="function"==typeof t?t({count:c,error:e}):t;n&&await (0,r.D)(n),o({count:c+1})};try{let t=await e();a(t)}catch(e){if(c<n&&await i({count:c,error:e}))return u({error:e});s(e)}};o()})}},7730:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},3370:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(25),i=n(940),a=n(1033),s=n(7732),o=n(2551);function c(e){let{account:t,gasPrice:n,maxFeePerGas:c,maxPriorityFeePerGas:u,to:l}=e,d=t?(0,r.T)(t):void 0;if(d&&!(0,o.U)(d.address))throw new i.b({address:d.address});if(l&&!(0,o.U)(l))throw new i.b({address:l});if(void 0!==n&&(void 0!==c||void 0!==u))throw new s.xY;if(c&&c>2n**256n-1n)throw new a.Hh({maxFeePerGas:c});if(u&&c&&u>c)throw new a.cs({maxFeePerGas:c,maxPriorityFeePerGas:u})}},2392:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(25),i=n(161),a=n(4446),s=n(4037),o=n(4671),c=n(1380),u=n(9372),l=n(3370);async function d(e,t){let{account:n,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:p,nonce:m}=t;if(!n)throw new c.o;let g=(0,r.T)(n),b=await (0,a.Q)(e,{blockTag:"latest"}),y={...t,from:g.address};if(void 0===m&&(y.nonce=await (0,o.K)(e,{address:g.address,blockTag:"pending"})),"bigint"==typeof b.baseFeePerGas){if(void 0!==f)throw new u.G("Chain does not support legacy `gasPrice`.");if(void 0===h)y.maxPriorityFeePerGas=p??1500000000n,y.maxFeePerGas=120n*b.baseFeePerGas/100n+y.maxPriorityFeePerGas;else{if(void 0===p&&h<1500000000n)throw new u.G("`maxFeePerGas` cannot be less than the default `maxPriorityFeePerGas` (1.5 gwei).");y.maxFeePerGas=h,y.maxPriorityFeePerGas=p??1500000000n}}else{if(void 0!==h||void 0!==p)throw new u.G("Chain does not support EIP-1559 fees.");void 0===f&&(y.gasPrice=await (0,s.o)(e)*120n/100n)}return void 0===d&&(y.gas=await (0,i.Q)(e,{...y,account:{address:g.address,type:"json-rpc"}})),(0,l.F)(y),y}},666:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var r=n(4570),i=n(940),a=n(2551),s=n(3313),o=n(8676);let c=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,u=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function l({domain:e,message:t,primaryType:n,types:l}){let d=(e,t)=>{for(let n of e){let{name:e,type:f}=n,h=t[e],p=f.match(u);if(p&&("number"==typeof h||"bigint"==typeof h)){let[e,t,n]=p;(0,o.eC)(h,{signed:"int"===t,size:parseInt(n)/8})}if("address"===f&&"string"==typeof h&&!(0,a.U)(h))throw new i.b({address:h});let m=f.match(c);if(m){let[e,t]=m;if(t&&(0,s.d)(h)!==parseInt(t))throw new r.KY({expectedSize:parseInt(t),givenSize:(0,s.d)(h)})}let g=l[f];g&&d(g,h)}};if(l.EIP712Domain&&e&&d(l.EIP712Domain,e),"EIP712Domain"!==n){let e=l[n];d(e,t)}}},1639:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(3722),i=n(7340);function a(e,t="wei"){return(0,i.b)(e,r.ez[t])}},5401:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(3722),i=n(7340);function a(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},7340:function(e,t,n){"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,a]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}n.d(t,{b:function(){return r}})},1329:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},7130:function(e,t,n){"use strict";function r(){}n.d(t,{eM:function(){return es},_g:function(){return er},mA:function(){return el},$4:function(){return eh},qL:function(){return eg}});let i="undefined"==typeof window||"Deno"in window;function a(){}function s(e,t,n){return b(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function o(e,t,n){return b(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,n){return b(e)?[{...t,queryKey:e},n]:[e||{},t]}function u(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(b(s)){if(r){if(t.queryHash!==d(s,t.options))return!1}else{if(!h(t.queryKey,s))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)&&(void 0===i||i===t.state.fetchStatus)&&(!a||!!a(t))}function l(e,t){let{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(b(a)){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(a))return!1}else{if(!h(t.options.mutationKey,a))return!1}}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function d(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||f;return n(e)}function f(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function h(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!h(e[n],t[n]))}function p(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!g(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(g(n)&&n.hasOwnProperty("isPrototypeOf"))}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return Array.isArray(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function w(e){y(0).then(e)}let v=console,A=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=r=>{t?e.push(r):w(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&w(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class C{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let P=new class extends C{constructor(){super(),this.setup=e=>{if(!i&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},E=["online","offline"],O=new class extends C{constructor(){super(),this.setup=e=>{if(!i&&window.addEventListener){let t=()=>e();return E.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{E.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function I(e){return Math.min(1e3*2**e,3e4)}function x(e){return(null!=e?e:"online")!=="online"||O.isOnline()}class S{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function B(e){return e instanceof S}function j(e){let t,n,r,i=!1,a=0,s=!1,o=new Promise((e,t)=>{n=e,r=t}),c=()=>!P.isFocused()||"always"!==e.networkMode&&!O.isOnline(),u=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{let t=s||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,s||null==e.onContinue||e.onContinue()}),f=()=>{let t;if(!s){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,r;if(s)return;let o=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:I,h="function"==typeof u?u(a,t):u,p=!0===o||"number"==typeof o&&a<o||"function"==typeof o&&o(a,t);if(i||!p){l(t);return}a++,null==e.onFail||e.onFail(a,t),y(h).then(()=>{if(c())return d()}).then(()=>{i?l(t):f()})})}};return x(e.networkMode)?f():d().then(f),{promise:o,cancel:t=>{s||(l(new S(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?o:Promise.resolve()},cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class M{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class k extends M{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||v,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||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?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){var n,r;let i=(n=this.state.data,null!=(r=this.options).isDataEqual&&r.isDataEqual(n,e)?n:"function"==typeof r.structuralSharing?r.structuralSharing(n,e):!1!==r.structuralSharing?function e(t,n){if(t===n)return t;let r=p(t)&&p(n);if(r||m(t)&&m(n)){let i=r?t.length:Object.keys(t).length,a=r?n:Object.keys(n),s=a.length,o=r?[]:{},c=0;for(let i=0;i<s;i++){let s=r?i:a[i];o[s]=e(t[s],n[s]),o[s]===t[s]&&c++}return i===s&&c===i?t:o}return n}(n,e):e);return this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),i}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(a).catch(a):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.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.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r,i,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let s=function(){if("function"==typeof AbortController)return new AbortController}(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};c(o);let u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};c(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=u.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(a=u.fetchOptions)?void 0:a.meta});let l=e=>{if(B(e)&&e.silent||this.dispatch({type:"error",error:e}),!B(e)){var t,n,r,i;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=j({fn:u.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,r,i;if(void 0===e){l(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;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,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:x(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(B(i)&&i.revert&&this.revertState)return{...this.revertState};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),A.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class D extends C{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;let i=t.queryKey,a=null!=(r=t.queryHash)?r:d(i,t),s=this.get(a);return s||(s=new k({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=c(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>u(n,e))}findAll(e,t){let[n]=c(e,t);return Object.keys(n).length>0?this.queries.filter(e=>u(n,e)):this.queries}notify(e){A.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){A.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class R extends M{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||v,this.observers=[],this.state=e.state||N(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,r,i,a,s,o,c,u,l,d,f,h,p,m,g,b,y,w;let v="loading"===this.state.status;try{if(!v){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(u=this.mutationCache.config).onMutate)?void 0:c.call(u,this.state.variables,this));let e=await (null==(l=(d=this.options).onMutate)?void 0:l.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let f=await (()=>{var e;return this.retryer=j({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context)),await (null==(i=(a=this.mutationCache.config).onSettled)?void 0:i.call(a,f,null,this.state.variables,this.state.context,this)),await (null==(s=(o=this.options).onSettled)?void 0:s.call(o,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(h=this.mutationCache.config).onError)?void 0:f.call(h,e,this.state.variables,this.state.context,this)),await (null==(p=(m=this.options).onError)?void 0:p.call(m,e,this.state.variables,this.state.context)),await (null==(g=(b=this.mutationCache.config).onSettled)?void 0:g.call(b,void 0,e,this.state.variables,this.state.context,this)),await (null==(y=(w=this.options).onSettled)?void 0:y.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!x(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),A.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function N(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class F extends C{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let r=new R({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){A.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>l(e,t))}findAll(e){return this.mutations.filter(t=>l(e,t))}notify(e){A.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return A.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(a)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function L(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class T{constructor(e={}){this.queryCache=e.queryCache||new D,this.mutationCache=e.mutationCache||new F,this.logger=e.logger||v,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=P.subscribe(()=>{P.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=O.subscribe(()=>{O.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=c(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let r=s(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let r=this.queryCache.find(e),i=null==r?void 0:r.state.data,a="function"==typeof t?t(i):t;if(void 0===a)return;let o=s(e),c=this.defaultQueryOptions(o);return this.queryCache.build(this,c).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return A.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=c(e,t),r=this.queryCache;A.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){let[r,i]=c(e,t,n),a=this.queryCache,s={type:"active",...r};return A.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,n){let[r,i={}]=c(e,t,n);void 0===i.revert&&(i.revert=!0);let s=A.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(i)));return Promise.all(s).then(a).catch(a)}invalidateQueries(e,t,n){let[r,i]=c(e,t,n);return A.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)})}refetchQueries(e,t,n){let[r,i]=c(e,t,n),s=A.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})})),o=Promise.all(s).then(a);return null!=i&&i.throwOnError||(o=o.catch(a)),o}fetchQuery(e,t,n){let r=s(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(a).catch(a)}fetchInfiniteQuery(e,t,n){let r=s(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,s,o;let c;let u=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,d=null==l?void 0:l.pageParam,f=(null==l?void 0:l.direction)==="forward",h=(null==l?void 0:l.direction)==="backward",p=(null==(a=e.state.data)?void 0:a.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],g=m,b=!1,y=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?b=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{b=!0}),e.signal}})},w=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(g=r?[t,...g]:[...g,t],r?[n,...e]:[...e,n]),A=(t,n,r,i)=>{if(b)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};y(a);let s=w(a),o=Promise.resolve(s).then(e=>v(t,r,e,i));return o};if(p.length){if(f){let t=void 0!==d,n=t?d:L(e.options,p);c=A(p,t,n)}else if(h){let t=void 0!==d,n=t?d:null==(o=e.options).getPreviousPageParam?void 0:o.getPreviousPageParam(p[0],p);c=A(p,t,n,!0)}else{g=[];let t=void 0===e.options.getNextPageParam,n=!u||!p[0]||u(p[0],0,p);c=n?A([],t,m[0]):Promise.resolve(v([],m[0],p[0]));for(let n=1;n<p.length;n++)c=c.then(r=>{let i=!u||!p[n]||u(p[n],n,p);if(i){let i=t?m[n]:L(e.options,r);return A(r,t,i)}return Promise.resolve(v(r,m[n],p[n]))})}}else c=A([]);let C=c.then(e=>({pages:e,pageParams:g}));return C}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(a).catch(a)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>f(e)===f(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>h(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>f(e)===f(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>h(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=d(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function U(e){return e.state.isPaused}function Q(e){return"success"===e.state.status}let q=["added","removed","updated"];function G(e){return q.includes(e)}async function z({queryClient:e,persister:t,maxAge:n=864e5,buster:r="",hydrateOptions:i}){try{let a=await t.restoreClient();if(a){if(a.timestamp){let s=Date.now()-a.timestamp>n,o=a.buster!==r;s||o?t.removeClient():function(e,t,n){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=t.mutations||[],s=t.queries||[];a.forEach(t=>{var i;r.build(e,{...null==n?void 0:null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),s.forEach(t=>{var r;let a=i.get(t.queryHash),s={...t.state,fetchStatus:"idle"};if(a){a.state.dataUpdatedAt<s.dataUpdatedAt&&a.setState(s);return}i.build(e,{...null==n?void 0:null==(r=n.defaultOptions)?void 0:r.queries,queryKey:t.queryKey,queryHash:t.queryHash},s)})}(e,a.clientState,i)}else t.removeClient()}}catch(e){t.removeClient()}}async function W({queryClient:e,persister:t,buster:n="",dehydrateOptions:r}){let i={buster:n,timestamp:Date.now(),clientState:function(e,t={}){let n=[],r=[];if(!1!==t.dehydrateMutations){let r=t.shouldDehydrateMutation||U;e.getMutationCache().getAll().forEach(e=>{r(e)&&n.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let n=t.shouldDehydrateQuery||Q;e.getQueryCache().getAll().forEach(e=>{n(e)&&r.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:n,queries:r}}(e,r)};await t.persistClient(i)}var K=n(3425),H=n(6006);let J=H.createContext(void 0),V=H.createContext(!1);function Y(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=J),window.ReactQueryClientContext):J)}let Z=({context:e}={})=>{let t=H.useContext(Y(e,H.useContext(V)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},X=({client:e,children:t,context:n,contextSharing:r=!1})=>{H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let i=Y(n,r);return H.createElement(V.Provider,{value:!n&&r},H.createElement(i.Provider,{value:e},t))};var $=n(3276);class _ extends C{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),!function(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}(n,this.options)&&this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:N(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){A.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,n,r,i,a,s,o,c;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(a=(s=this.mutateOptions).onError)||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(o=(c=this.mutateOptions).onSettled)||o.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}let ee=$.useSyncExternalStore;function et(){}var en=n(7737);function er({queryClient:e=new T({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=(0,K.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:K.wp}),persister:n="undefined"!=typeof window?function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:n=1e3,serialize:i=JSON.stringify,deserialize:a=JSON.parse,retry:s}){if(e){let r=n=>{try{e.setItem(t,i(n));return}catch(e){return e}};return{persistClient:function(e,t=100){let n,r=null;return function(...i){n=i,null===r&&(r=setTimeout(()=>{e(...n),r=null},t))}}(e=>{let t=e,n=r(t),i=0;for(;n&&t;)i++,(t=null==s?void 0:s({persistedClient:t,error:n,errorCount:i}))&&(n=r(t))},n),restoreClient:()=>{let n=e.getItem(t);if(n)return a(n)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:r,restoreClient:()=>void 0,removeClient:r}}({key:"cache",storage:t,serialize:e=>e,deserialize:e=>e}):void 0,...i}){let a=(0,K._g)({...i,storage:t});return n&&function(e){z(e).then(()=>{(function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{G(t.type)&&W(e)}),n=e.queryClient.getMutationCache().subscribe(t=>{G(t.type)&&W(e)})})(e)})}({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(a,{queryClient:e})}var ei=H.createContext(void 0),ea=H.createContext(void 0);function es({children:e,config:t}){return H.createElement(ei.Provider,{children:H.createElement(X,{children:e,client:t.queryClient,context:ea}),value:t})}function eo(){let e=H.useContext(ei);if(!e)throw Error("`useConfig` must be used within `WagmiConfig`.\n\nRead more: https://wagmi.sh/react/WagmiConfig");return e}function ec(e,t,n){let r=o(e,t,n);return function(e,t,n){var r,i;let a=o(e,void 0,void 0),s=Z({context:a.context}),[c]=H.useState(()=>new _(s,a));H.useEffect(()=>{c.setOptions(a)},[c,a]);let u=ee(H.useCallback(e=>c.subscribe(A.batchCalls(e)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),l=H.useCallback((e,t)=>{c.mutate(e,t).catch(et)},[c]);if(u.error&&(r=c.options.useErrorBoundary,i=[u.error],"function"==typeof r?r(...i):!!r))throw u.error;return{...u,mutate:l,mutateAsync:u.mutate}}({context:ea,...r})}$.useSyncExternalStore;var eu=e=>"object"==typeof e&&!Array.isArray(e);function el({onConnect:e,onDisconnect:t}={}){let n=eo(),r=H.useCallback(e=>(0,K.uH)(e),[n]),i=function(e,t,n=t,r=K.vZ){let i=H.useRef([]),a=(0,en.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(eu(e)&&eu(t)&&i.current.length){for(let n of i.current){let i=r(e[n],t[n]);if(!i)return!1}return!0}return r(e,t)});if(eu(a)){let e={...a};return Object.defineProperties(e,Object.entries(e).reduce((e,[t,n])=>({...e,[t]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(t)||i.current.push(t),n)}}),{})),e}return a}(r,K.D0),a=H.useRef(),s=a.current;return H.useEffect(()=>{s?.status!=="connected"&&"connected"===i.status&&e?.({address:i.address,connector:i.connector,isReconnected:s?.status==="reconnecting"||s?.status===void 0}),s?.status==="connected"&&"disconnected"===i.status&&t?.(),a.current=i},[e,t,s,i]),i}var ed=e=>[{entity:"connect",...e}],ef=e=>{let{connector:t,chainId:n}=e;if(!t)throw Error("connector is required");return(0,K.$j)({connector:t,chainId:n})};function eh({chainId:e,connector:t,onError:n,onMutate:r,onSettled:i,onSuccess:a}={}){let s=eo(),{data:o,error:c,isError:u,isIdle:l,isLoading:d,isSuccess:f,mutate:h,mutateAsync:p,reset:m,status:g,variables:b}=ec(ed({connector:t,chainId:e}),ef,{onError:n,onMutate:r,onSettled:i,onSuccess:a}),y=H.useCallback(n=>h({chainId:n?.chainId??e,connector:n?.connector??t}),[e,t,h]),w=H.useCallback(n=>p({chainId:n?.chainId??e,connector:n?.connector??t}),[e,t,p]);return{connect:y,connectAsync:w,connectors:s.connectors,data:o,error:c,isError:u,isIdle:l,isLoading:d,isSuccess:f,pendingConnector:b?.connector,reset:m,status:g,variables:b}}var ep=[{entity:"disconnect"}],em=()=>(0,K.zP)();function eg({onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){let{error:i,isError:a,isIdle:s,isLoading:o,isSuccess:c,mutate:u,mutateAsync:l,reset:d,status:f}=ec(ep,em,{...e?{onError(t,n,r){e(t,r)}}:{},onMutate:t,...n?{onSettled(e,t,r,i){n(t,i)}}:{},...r?{onSuccess(e,t,n){r(n)}}:{}});return{disconnect:u,disconnectAsync:l,error:i,isError:a,isIdle:s,isLoading:o,isSuccess:c,reset:d,status:f}}}}]);