const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CosEW3z7.js","assets/hooks.module-CRTr1Ar6.js","assets/index-nibyPLVP.js","assets/index-Cw8RVAy8.js","assets/events-DQ172AOg.js","assets/browser-C7nXKNNX.js","assets/metamask-sdk-BYFFOxXT.js","assets/index-1fQ6M7hc.js","assets/index-H-Ckw-g_.js","assets/index-Bsys59T0.js","assets/index.es-CJ60zr0-.js"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();var uN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fN(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function o(){var s=!1;try{s=this instanceof o}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var x0={exports:{}},ks={};/**
 * @license React
 * react-jsx-runtime.production.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 Oy;function UA(){if(Oy)return ks;Oy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,s,c){var u=null;if(c!==void 0&&(u=""+c),s.key!==void 0&&(u=""+s.key),"key"in s){c={};for(var f in s)f!=="key"&&(c[f]=s[f])}else c=s;return s=c.ref,{$$typeof:e,type:o,key:u,ref:s!==void 0?s:null,props:c}}return ks.Fragment=t,ks.jsx=r,ks.jsxs=r,ks}var My;function zA(){return My||(My=1,x0.exports=UA()),x0.exports}var Z=zA(),S0={exports:{}},_e={};/**
 * @license React
 * react.production.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 Ry;function LA(){if(Ry)return _e;Ry=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function m(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function A(O,G,J){this.props=O,this.context=G,this.refs=C,this.updater=J||v}A.prototype.isReactComponent={},A.prototype.setState=function(O,G){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,G,"setState")},A.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function B(){}B.prototype=A.prototype;function T(O,G,J){this.props=O,this.context=G,this.refs=C,this.updater=J||v}var _=T.prototype=new B;_.constructor=T,w(_,A.prototype),_.isPureReactComponent=!0;var j=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function U(O,G,J,ce,te,ue){return J=ue.ref,{$$typeof:e,type:O,key:G,ref:J!==void 0?J:null,props:ue}}function Q(O,G){return U(O.type,G,void 0,void 0,void 0,O.props)}function F(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function ie(O){var G={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(J){return G[J]})}var le=/\/+/g;function ae(O,G){return typeof O=="object"&&O!==null&&O.key!=null?ie(""+O.key):G.toString(36)}function L(){}function V(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(L,L):(O.status="pending",O.then(function(G){O.status==="pending"&&(O.status="fulfilled",O.value=G)},function(G){O.status==="pending"&&(O.status="rejected",O.reason=G)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function $(O,G,J,ce,te){var ue=typeof O;(ue==="undefined"||ue==="boolean")&&(O=null);var fe=!1;if(O===null)fe=!0;else switch(ue){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(O.$$typeof){case e:case t:fe=!0;break;case g:return fe=O._init,$(fe(O._payload),G,J,ce,te)}}if(fe)return te=te(O),fe=ce===""?"."+ae(O,0):ce,j(te)?(J="",fe!=null&&(J=fe.replace(le,"$&/")+"/"),$(te,G,J,"",function(Me){return Me})):te!=null&&(F(te)&&(te=Q(te,J+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(le,"$&/")+"/")+fe)),G.push(te)),1;fe=0;var ye=ce===""?".":ce+":";if(j(O))for(var Ae=0;Ae<O.length;Ae++)ce=O[Ae],ue=ye+ae(ce,Ae),fe+=$(ce,G,J,ue,te);else if(Ae=m(O),typeof Ae=="function")for(O=Ae.call(O),Ae=0;!(ce=O.next()).done;)ce=ce.value,ue=ye+ae(ce,Ae++),fe+=$(ce,G,J,ue,te);else if(ue==="object"){if(typeof O.then=="function")return $(V(O),G,J,ce,te);throw G=String(O),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return fe}function I(O,G,J){if(O==null)return O;var ce=[],te=0;return $(O,ce,"","",function(ue){return G.call(J,ue,te++)}),ce}function Y(O){if(O._status===-1){var G=O._result;G=G(),G.then(function(J){(O._status===0||O._status===-1)&&(O._status=1,O._result=J)},function(J){(O._status===0||O._status===-1)&&(O._status=2,O._result=J)}),O._status===-1&&(O._status=0,O._result=G)}if(O._status===1)return O._result.default;throw O._result}var q=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function oe(){}return _e.Children={map:I,forEach:function(O,G,J){I(O,function(){G.apply(this,arguments)},J)},count:function(O){var G=0;return I(O,function(){G++}),G},toArray:function(O){return I(O,function(G){return G})||[]},only:function(O){if(!F(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},_e.Component=A,_e.Fragment=r,_e.Profiler=s,_e.PureComponent=T,_e.StrictMode=o,_e.Suspense=p,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,_e.__COMPILER_RUNTIME={__proto__:null,c:function(O){return k.H.useMemoCache(O)}},_e.cache=function(O){return function(){return O.apply(null,arguments)}},_e.cloneElement=function(O,G,J){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ce=w({},O.props),te=O.key,ue=void 0;if(G!=null)for(fe in G.ref!==void 0&&(ue=void 0),G.key!==void 0&&(te=""+G.key),G)!D.call(G,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&G.ref===void 0||(ce[fe]=G[fe]);var fe=arguments.length-2;if(fe===1)ce.children=J;else if(1<fe){for(var ye=Array(fe),Ae=0;Ae<fe;Ae++)ye[Ae]=arguments[Ae+2];ce.children=ye}return U(O.type,te,void 0,void 0,ue,ce)},_e.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},_e.createElement=function(O,G,J){var ce,te={},ue=null;if(G!=null)for(ce in G.key!==void 0&&(ue=""+G.key),G)D.call(G,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(te[ce]=G[ce]);var fe=arguments.length-2;if(fe===1)te.children=J;else if(1<fe){for(var ye=Array(fe),Ae=0;Ae<fe;Ae++)ye[Ae]=arguments[Ae+2];te.children=ye}if(O&&O.defaultProps)for(ce in fe=O.defaultProps,fe)te[ce]===void 0&&(te[ce]=fe[ce]);return U(O,ue,void 0,void 0,null,te)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(O){return{$$typeof:f,render:O}},_e.isValidElement=F,_e.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:Y}},_e.memo=function(O,G){return{$$typeof:h,type:O,compare:G===void 0?null:G}},_e.startTransition=function(O){var G=k.T,J={};k.T=J;try{var ce=O(),te=k.S;te!==null&&te(J,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(oe,q)}catch(ue){q(ue)}finally{k.T=G}},_e.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},_e.use=function(O){return k.H.use(O)},_e.useActionState=function(O,G,J){return k.H.useActionState(O,G,J)},_e.useCallback=function(O,G){return k.H.useCallback(O,G)},_e.useContext=function(O){return k.H.useContext(O)},_e.useDebugValue=function(){},_e.useDeferredValue=function(O,G){return k.H.useDeferredValue(O,G)},_e.useEffect=function(O,G,J){var ce=k.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ce.useEffect(O,G)},_e.useId=function(){return k.H.useId()},_e.useImperativeHandle=function(O,G,J){return k.H.useImperativeHandle(O,G,J)},_e.useInsertionEffect=function(O,G){return k.H.useInsertionEffect(O,G)},_e.useLayoutEffect=function(O,G){return k.H.useLayoutEffect(O,G)},_e.useMemo=function(O,G){return k.H.useMemo(O,G)},_e.useOptimistic=function(O,G){return k.H.useOptimistic(O,G)},_e.useReducer=function(O,G,J){return k.H.useReducer(O,G,J)},_e.useRef=function(O){return k.H.useRef(O)},_e.useState=function(O){return k.H.useState(O)},_e.useSyncExternalStore=function(O,G,J){return k.H.useSyncExternalStore(O,G,J)},_e.useTransition=function(){return k.H.useTransition()},_e.version="19.1.1",_e}var Dy;function gc(){return Dy||(Dy=1,S0.exports=LA()),S0.exports}var N=gc();const E=dw(N);var _0={exports:{}},Os={},B0={exports:{}},T0={};/**
 * @license React
 * scheduler.production.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 Ny;function PA(){return Ny||(Ny=1,(function(e){function t(I,Y){var q=I.length;I.push(Y);e:for(;0<q;){var oe=q-1>>>1,O=I[oe];if(0<s(O,Y))I[oe]=Y,I[q]=O,q=oe;else break e}}function r(I){return I.length===0?null:I[0]}function o(I){if(I.length===0)return null;var Y=I[0],q=I.pop();if(q!==Y){I[0]=q;e:for(var oe=0,O=I.length,G=O>>>1;oe<G;){var J=2*(oe+1)-1,ce=I[J],te=J+1,ue=I[te];if(0>s(ce,q))te<O&&0>s(ue,ce)?(I[oe]=ue,I[te]=q,oe=te):(I[oe]=ce,I[J]=q,oe=J);else if(te<O&&0>s(ue,q))I[oe]=ue,I[te]=q,oe=te;else break e}}return Y}function s(I,Y){var q=I.sortIndex-Y.sortIndex;return q!==0?q:I.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],h=[],g=1,b=null,m=3,v=!1,w=!1,C=!1,A=!1,B=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function j(I){for(var Y=r(h);Y!==null;){if(Y.callback===null)o(h);else if(Y.startTime<=I)o(h),Y.sortIndex=Y.expirationTime,t(p,Y);else break;Y=r(h)}}function k(I){if(C=!1,j(I),!w)if(r(p)!==null)w=!0,D||(D=!0,ae());else{var Y=r(h);Y!==null&&$(k,Y.startTime-I)}}var D=!1,U=-1,Q=5,F=-1;function ie(){return A?!0:!(e.unstable_now()-F<Q)}function le(){if(A=!1,D){var I=e.unstable_now();F=I;var Y=!0;try{e:{w=!1,C&&(C=!1,T(U),U=-1),v=!0;var q=m;try{t:{for(j(I),b=r(p);b!==null&&!(b.expirationTime>I&&ie());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,m=b.priorityLevel;var O=oe(b.expirationTime<=I);if(I=e.unstable_now(),typeof O=="function"){b.callback=O,j(I),Y=!0;break t}b===r(p)&&o(p),j(I)}else o(p);b=r(p)}if(b!==null)Y=!0;else{var G=r(h);G!==null&&$(k,G.startTime-I),Y=!1}}break e}finally{b=null,m=q,v=!1}Y=void 0}}finally{Y?ae():D=!1}}}var ae;if(typeof _=="function")ae=function(){_(le)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,V=L.port2;L.port1.onmessage=le,ae=function(){V.postMessage(null)}}else ae=function(){B(le,0)};function $(I,Y){U=B(function(){I(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(I){switch(m){case 1:case 2:case 3:var Y=3;break;default:Y=m}var q=m;m=Y;try{return I()}finally{m=q}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(I,Y){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var q=m;m=I;try{return Y()}finally{m=q}},e.unstable_scheduleCallback=function(I,Y,q){var oe=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?oe+q:oe):q=oe,I){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=q+O,I={id:g++,callback:Y,priorityLevel:I,startTime:q,expirationTime:O,sortIndex:-1},q>oe?(I.sortIndex=q,t(h,I),r(p)===null&&I===r(h)&&(C?(T(U),U=-1):C=!0,$(k,q-oe))):(I.sortIndex=O,t(p,I),w||v||(w=!0,D||(D=!0,ae()))),I},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(I){var Y=m;return function(){var q=m;m=Y;try{return I.apply(this,arguments)}finally{m=q}}}})(T0)),T0}var Iy;function qA(){return Iy||(Iy=1,B0.exports=PA()),B0.exports}var j0={exports:{}},kt={};/**
 * @license React
 * react-dom.production.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 Uy;function FA(){if(Uy)return kt;Uy=1;var e=gc();function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,h,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,kt.createPortal=function(p,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return c(p,h,null,g)},kt.flushSync=function(p){var h=u.T,g=o.p;try{if(u.T=null,o.p=2,p)return p()}finally{u.T=h,o.p=g,o.d.f()}},kt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},kt.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},kt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var g=h.as,b=f(g,h.crossOrigin),m=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:m,fetchPriority:v}):g==="script"&&o.d.X(p,{crossOrigin:b,integrity:m,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},kt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},kt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,b=f(g,h.crossOrigin);o.d.L(p,g,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},kt.preloadModule=function(p,h){if(typeof p=="string")if(h){var g=f(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},kt.requestFormReset=function(p){o.d.r(p)},kt.unstable_batchedUpdates=function(p,h){return p(h)},kt.useFormState=function(p,h,g){return u.H.useFormState(p,h,g)},kt.useFormStatus=function(){return u.H.useHostTransitionStatus()},kt.version="19.1.1",kt}var zy;function hw(){if(zy)return j0.exports;zy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),j0.exports=FA(),j0.exports}/**
 * @license React
 * react-dom-client.production.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 Ly;function HA(){if(Ly)return Os;Ly=1;var e=qA(),t=gc(),r=hw();function o(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,i=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(i=a.return),n=a.return;while(n)}return a.tag===3?i:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(c(n)!==n)throw Error(o(188))}function p(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(o(188));return a!==n?null:n}for(var i=n,l=a;;){var d=i.return;if(d===null)break;var y=d.alternate;if(y===null){if(l=d.return,l!==null){i=l;continue}break}if(d.child===y.child){for(y=d.child;y;){if(y===i)return f(d),n;if(y===l)return f(d),a;y=y.sibling}throw Error(o(188))}if(i.return!==l.return)i=d,l=y;else{for(var x=!1,S=d.child;S;){if(S===i){x=!0,i=d,l=y;break}if(S===l){x=!0,l=d,i=y;break}S=S.sibling}if(!x){for(S=y.child;S;){if(S===i){x=!0,i=y,l=d;break}if(S===l){x=!0,l=y,i=d;break}S=S.sibling}if(!x)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?n:a}function h(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=h(n),a!==null)return a;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),_=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ae(n){return n===null||typeof n!="object"?null:(n=le&&n[le]||n["@@iterator"],typeof n=="function"?n:null)}var L=Symbol.for("react.client.reference");function V(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===L?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case k:return"Suspense";case D:return"SuspenseList";case F:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case v:return"Portal";case _:return(n.displayName||"Context")+".Provider";case T:return(n._context.displayName||"Context")+".Consumer";case j:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return a=n.displayName||null,a!==null?a:V(n.type)||"Memo";case Q:a=n._payload,n=n._init;try{return V(n(a))}catch{}}return null}var $=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},oe=[],O=-1;function G(n){return{current:n}}function J(n){0>O||(n.current=oe[O],oe[O]=null,O--)}function ce(n,a){O++,oe[O]=n.current,n.current=a}var te=G(null),ue=G(null),fe=G(null),ye=G(null);function Ae(n,a){switch(ce(fe,a),ce(ue,n),ce(te,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?oy(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=oy(a),n=iy(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}J(te),ce(te,n)}function Me(){J(te),J(ue),J(fe)}function We(n){n.memoizedState!==null&&ce(ye,n);var a=te.current,i=iy(a,n.type);a!==i&&(ce(ue,n),ce(te,i))}function Jt(n){ue.current===n&&(J(te),J(ue)),ye.current===n&&(J(ye),Ss._currentValue=q)}var Ln=Object.prototype.hasOwnProperty,ar=e.unstable_scheduleCallback,oo=e.unstable_cancelCallback,Rc=e.unstable_shouldYield,Dc=e.unstable_requestPaint,mn=e.unstable_now,io=e.unstable_getCurrentPriorityLevel,Ri=e.unstable_ImmediatePriority,Rr=e.unstable_UserBlockingPriority,so=e.unstable_NormalPriority,Di=e.unstable_LowPriority,Dr=e.unstable_IdlePriority,ya=e.log,hf=e.unstable_setDisableYieldValue,Nr=null,Bt=null;function at(n){if(typeof ya=="function"&&hf(n),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Nr,n)}catch{}}var ot=Math.clz32?Math.clz32:Ie,co=Math.log,je=Math.LN2;function Ie(n){return n>>>=0,n===0?32:31-(co(n)/je|0)|0}var xe=256,Le=4194304;function Ct(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Dt(n,a,i){var l=n.pendingLanes;if(l===0)return 0;var d=0,y=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var S=l&134217727;return S!==0?(l=S&~y,l!==0?d=Ct(l):(x&=S,x!==0?d=Ct(x):i||(i=S&~n,i!==0&&(d=Ct(i))))):(S=l&~y,S!==0?d=Ct(S):x!==0?d=Ct(x):i||(i=l&~n,i!==0&&(d=Ct(i)))),d===0?0:a!==0&&a!==d&&(a&y)===0&&(y=d&-d,i=a&-a,y>=i||y===32&&(i&4194048)!==0)?a:d}function Re(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Se(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function en(){var n=xe;return xe<<=1,(xe&4194048)===0&&(xe=256),n}function lo(){var n=Le;return Le<<=1,(Le&62914560)===0&&(Le=4194304),n}function uo(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function Ni(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function SC(n,a,i,l,d,y){var x=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var S=n.entanglements,R=n.expirationTimes,W=n.hiddenUpdates;for(i=x&~i;0<i;){var ee=31-ot(i),re=1<<ee;S[ee]=0,R[ee]=-1;var K=W[ee];if(K!==null)for(W[ee]=null,ee=0;ee<K.length;ee++){var X=K[ee];X!==null&&(X.lane&=-536870913)}i&=~re}l!==0&&Qm(n,l,0),y!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=y&~(x&~a))}function Qm(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-ot(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|i&4194090}function Gm(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var l=31-ot(i),d=1<<l;d&a|n[l]&a&&(n[l]|=a),i&=~d}}function pf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function mf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Vm(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:Sy(n.type))}function _C(n,a){var i=Y.p;try{return Y.p=n,a()}finally{Y.p=i}}var Ir=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Ir,Ht="__reactProps$"+Ir,fo="__reactContainer$"+Ir,gf="__reactEvents$"+Ir,BC="__reactListeners$"+Ir,TC="__reactHandles$"+Ir,Wm="__reactResources$"+Ir,Ii="__reactMarker$"+Ir;function bf(n){delete n[Tt],delete n[Ht],delete n[gf],delete n[BC],delete n[TC]}function ho(n){var a=n[Tt];if(a)return a;for(var i=n.parentNode;i;){if(a=i[fo]||i[Tt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=uy(n);n!==null;){if(i=n[Tt])return i;n=uy(n)}return a}n=i,i=n.parentNode}return null}function po(n){if(n=n[Tt]||n[fo]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function Ui(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(o(33))}function mo(n){var a=n[Wm];return a||(a=n[Wm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function gt(n){n[Ii]=!0}var $m=new Set,Km={};function va(n,a){go(n,a),go(n+"Capture",a)}function go(n,a){for(Km[n]=a,n=0;n<a.length;n++)$m.add(a[n])}var jC=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ym={},Xm={};function kC(n){return Ln.call(Xm,n)?!0:Ln.call(Ym,n)?!1:jC.test(n)?Xm[n]=!0:(Ym[n]=!0,!1)}function Nc(n,a,i){if(kC(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+i)}}function Ic(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+i)}}function or(n,a,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,""+l)}}var yf,Zm;function bo(n){if(yf===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);yf=a&&a[1]||"",Zm=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+yf+n+Zm}var vf=!1;function wf(n,a){if(!n||vf)return"";vf=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(X){var K=X}Reflect.construct(n,[],re)}else{try{re.call()}catch(X){K=X}n.call(re.prototype)}}else{try{throw Error()}catch(X){K=X}(re=n())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&K&&typeof X.stack=="string")return[X.stack,K.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=l.DetermineComponentFrameRoot(),x=y[0],S=y[1];if(x&&S){var R=x.split(`
`),W=S.split(`
`);for(d=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;d<W.length&&!W[d].includes("DetermineComponentFrameRoot");)d++;if(l===R.length||d===W.length)for(l=R.length-1,d=W.length-1;1<=l&&0<=d&&R[l]!==W[d];)d--;for(;1<=l&&0<=d;l--,d--)if(R[l]!==W[d]){if(l!==1||d!==1)do if(l--,d--,0>d||R[l]!==W[d]){var ee=`
`+R[l].replace(" at new "," at ");return n.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",n.displayName)),ee}while(1<=l&&0<=d);break}}}finally{vf=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?bo(i):""}function OC(n){switch(n.tag){case 26:case 27:case 5:return bo(n.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 15:return wf(n.type,!1);case 11:return wf(n.type.render,!1);case 1:return wf(n.type,!0);case 31:return bo("Activity");default:return""}}function Jm(n){try{var a="";do a+=OC(n),n=n.return;while(n);return a}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function gn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function e1(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function MC(n){var a=e1(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),l=""+n[a];if(!n.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,y=i.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return d.call(this)},set:function(x){l=""+x,y.call(this,x)}}),Object.defineProperty(n,a,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Uc(n){n._valueTracker||(n._valueTracker=MC(n))}function t1(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),l="";return n&&(l=e1(n)?n.checked?"true":"false":n.value),n=l,n!==i?(a.setValue(n),!0):!1}function zc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var RC=/[\n"\\]/g;function bn(n){return n.replace(RC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Cf(n,a,i,l,d,y,x,S){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),a!=null?x==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+gn(a)):n.value!==""+gn(a)&&(n.value=""+gn(a)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),a!=null?Ef(n,x,gn(a)):i!=null?Ef(n,x,gn(i)):l!=null&&n.removeAttribute("value"),d==null&&y!=null&&(n.defaultChecked=!!y),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+gn(S):n.removeAttribute("name")}function n1(n,a,i,l,d,y,x,S){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),a!=null||i!=null){if(!(y!=="submit"&&y!=="reset"||a!=null))return;i=i!=null?""+gn(i):"",a=a!=null?""+gn(a):i,S||a===n.value||(n.value=a),n.defaultValue=a}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=S?n.checked:!!l,n.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x)}function Ef(n,a,i){a==="number"&&zc(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function yo(n,a,i,l){if(n=n.options,a){a={};for(var d=0;d<i.length;d++)a["$"+i[d]]=!0;for(i=0;i<n.length;i++)d=a.hasOwnProperty("$"+n[i].value),n[i].selected!==d&&(n[i].selected=d),d&&l&&(n[i].defaultSelected=!0)}else{for(i=""+gn(i),a=null,d=0;d<n.length;d++){if(n[d].value===i){n[d].selected=!0,l&&(n[d].defaultSelected=!0);return}a!==null||n[d].disabled||(a=n[d])}a!==null&&(a.selected=!0)}}function r1(n,a,i){if(a!=null&&(a=""+gn(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+gn(i):""}function a1(n,a,i,l){if(a==null){if(l!=null){if(i!=null)throw Error(o(92));if($(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),a=i}i=gn(a),n.defaultValue=i,l=n.textContent,l===i&&l!==""&&l!==null&&(n.value=l)}function vo(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var DC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function o1(n,a,i){var l=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,i):typeof i!="number"||i===0||DC.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function i1(n,a,i){if(a!=null&&typeof a!="object")throw Error(o(62));if(n=n.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var d in a)l=a[d],a.hasOwnProperty(d)&&i[d]!==l&&o1(n,d,l)}else for(var y in a)a.hasOwnProperty(y)&&o1(n,y,a[y])}function Af(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var NC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Lc(n){return IC.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var xf=null;function Sf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var wo=null,Co=null;function s1(n){var a=po(n);if(a&&(n=a.stateNode)){var i=n[Ht]||null;e:switch(n=a.stateNode,a.type){case"input":if(Cf(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+bn(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var l=i[a];if(l!==n&&l.form===n.form){var d=l[Ht]||null;if(!d)throw Error(o(90));Cf(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<i.length;a++)l=i[a],l.form===n.form&&t1(l)}break e;case"textarea":r1(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&yo(n,!!i.multiple,a,!1)}}}var _f=!1;function c1(n,a,i){if(_f)return n(a,i);_f=!0;try{var l=n(a);return l}finally{if(_f=!1,(wo!==null||Co!==null)&&(xl(),wo&&(a=wo,n=Co,Co=wo=null,s1(a),n)))for(a=0;a<n.length;a++)s1(n[a])}}function zi(n,a){var i=n.stateNode;if(i===null)return null;var l=i[Ht]||null;if(l===null)return null;i=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(o(231,a,typeof i));return i}var ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bf=!1;if(ir)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Bf=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Bf=!1}var Ur=null,Tf=null,Pc=null;function l1(){if(Pc)return Pc;var n,a=Tf,i=a.length,l,d="value"in Ur?Ur.value:Ur.textContent,y=d.length;for(n=0;n<i&&a[n]===d[n];n++);var x=i-n;for(l=1;l<=x&&a[i-l]===d[y-l];l++);return Pc=d.slice(n,1<l?1-l:void 0)}function qc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Fc(){return!0}function u1(){return!1}function Qt(n){function a(i,l,d,y,x){this._reactName=i,this._targetInst=d,this.type=l,this.nativeEvent=y,this.target=x,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(i=n[S],this[S]=i?i(y):y[S]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Fc:u1,this.isPropagationStopped=u1,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Fc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Fc)},persist:function(){},isPersistent:Fc}),a}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hc=Qt(wa),Pi=g({},wa,{view:0,detail:0}),UC=Qt(Pi),jf,kf,qi,Qc=g({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==qi&&(qi&&n.type==="mousemove"?(jf=n.screenX-qi.screenX,kf=n.screenY-qi.screenY):kf=jf=0,qi=n),jf)},movementY:function(n){return"movementY"in n?n.movementY:kf}}),f1=Qt(Qc),zC=g({},Qc,{dataTransfer:0}),LC=Qt(zC),PC=g({},Pi,{relatedTarget:0}),Of=Qt(PC),qC=g({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),FC=Qt(qC),HC=g({},wa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),QC=Qt(HC),GC=g({},wa,{data:0}),d1=Qt(GC),VC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$C={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KC(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=$C[n])?!!a[n]:!1}function Mf(){return KC}var YC=g({},Pi,{key:function(n){if(n.key){var a=VC[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=qc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?WC[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mf,charCode:function(n){return n.type==="keypress"?qc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?qc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),XC=Qt(YC),ZC=g({},Qc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),h1=Qt(ZC),JC=g({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mf}),eE=Qt(JC),tE=g({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),nE=Qt(tE),rE=g({},Qc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),aE=Qt(rE),oE=g({},wa,{newState:0,oldState:0}),iE=Qt(oE),sE=[9,13,27,32],Rf=ir&&"CompositionEvent"in window,Fi=null;ir&&"documentMode"in document&&(Fi=document.documentMode);var cE=ir&&"TextEvent"in window&&!Fi,p1=ir&&(!Rf||Fi&&8<Fi&&11>=Fi),m1=" ",g1=!1;function b1(n,a){switch(n){case"keyup":return sE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y1(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Eo=!1;function lE(n,a){switch(n){case"compositionend":return y1(a);case"keypress":return a.which!==32?null:(g1=!0,m1);case"textInput":return n=a.data,n===m1&&g1?null:n;default:return null}}function uE(n,a){if(Eo)return n==="compositionend"||!Rf&&b1(n,a)?(n=l1(),Pc=Tf=Ur=null,Eo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return p1&&a.locale!=="ko"?null:a.data;default:return null}}var fE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function v1(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!fE[n.type]:a==="textarea"}function w1(n,a,i,l){wo?Co?Co.push(l):Co=[l]:wo=l,a=kl(a,"onChange"),0<a.length&&(i=new Hc("onChange","change",null,i,l),n.push({event:i,listeners:a}))}var Hi=null,Qi=null;function dE(n){ey(n,0)}function Gc(n){var a=Ui(n);if(t1(a))return n}function C1(n,a){if(n==="change")return a}var E1=!1;if(ir){var Df;if(ir){var Nf="oninput"in document;if(!Nf){var A1=document.createElement("div");A1.setAttribute("oninput","return;"),Nf=typeof A1.oninput=="function"}Df=Nf}else Df=!1;E1=Df&&(!document.documentMode||9<document.documentMode)}function x1(){Hi&&(Hi.detachEvent("onpropertychange",S1),Qi=Hi=null)}function S1(n){if(n.propertyName==="value"&&Gc(Qi)){var a=[];w1(a,Qi,n,Sf(n)),c1(dE,a)}}function hE(n,a,i){n==="focusin"?(x1(),Hi=a,Qi=i,Hi.attachEvent("onpropertychange",S1)):n==="focusout"&&x1()}function pE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Gc(Qi)}function mE(n,a){if(n==="click")return Gc(a)}function gE(n,a){if(n==="input"||n==="change")return Gc(a)}function bE(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var tn=typeof Object.is=="function"?Object.is:bE;function Gi(n,a){if(tn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),l=Object.keys(a);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var d=i[l];if(!Ln.call(a,d)||!tn(n[d],a[d]))return!1}return!0}function _1(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function B1(n,a){var i=_1(n);n=0;for(var l;i;){if(i.nodeType===3){if(l=n+i.textContent.length,n<=a&&l>=a)return{node:i,offset:a-n};n=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=_1(i)}}function T1(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?T1(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function j1(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=zc(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=zc(n.document)}return a}function If(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var yE=ir&&"documentMode"in document&&11>=document.documentMode,Ao=null,Uf=null,Vi=null,zf=!1;function k1(n,a,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;zf||Ao==null||Ao!==zc(l)||(l=Ao,"selectionStart"in l&&If(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Vi&&Gi(Vi,l)||(Vi=l,l=kl(Uf,"onSelect"),0<l.length&&(a=new Hc("onSelect","select",null,a,i),n.push({event:a,listeners:l}),a.target=Ao)))}function Ca(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var xo={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},Lf={},O1={};ir&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete xo.animationend.animation,delete xo.animationiteration.animation,delete xo.animationstart.animation),"TransitionEvent"in window||delete xo.transitionend.transition);function Ea(n){if(Lf[n])return Lf[n];if(!xo[n])return n;var a=xo[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in O1)return Lf[n]=a[i];return n}var M1=Ea("animationend"),R1=Ea("animationiteration"),D1=Ea("animationstart"),vE=Ea("transitionrun"),wE=Ea("transitionstart"),CE=Ea("transitioncancel"),N1=Ea("transitionend"),I1=new Map,Pf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Pf.push("scrollEnd");function Mn(n,a){I1.set(n,a),va(a,[n])}var U1=new WeakMap;function yn(n,a){if(typeof n=="object"&&n!==null){var i=U1.get(n);return i!==void 0?i:(a={value:n,source:a,stack:Jm(a)},U1.set(n,a),a)}return{value:n,source:a,stack:Jm(a)}}var vn=[],So=0,qf=0;function Vc(){for(var n=So,a=qf=So=0;a<n;){var i=vn[a];vn[a++]=null;var l=vn[a];vn[a++]=null;var d=vn[a];vn[a++]=null;var y=vn[a];if(vn[a++]=null,l!==null&&d!==null){var x=l.pending;x===null?d.next=d:(d.next=x.next,x.next=d),l.pending=d}y!==0&&z1(i,d,y)}}function Wc(n,a,i,l){vn[So++]=n,vn[So++]=a,vn[So++]=i,vn[So++]=l,qf|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Ff(n,a,i,l){return Wc(n,a,i,l),$c(n)}function _o(n,a){return Wc(n,null,null,a),$c(n)}function z1(n,a,i){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i);for(var d=!1,y=n.return;y!==null;)y.childLanes|=i,l=y.alternate,l!==null&&(l.childLanes|=i),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(d=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,d&&a!==null&&(d=31-ot(i),n=y.hiddenUpdates,l=n[d],l===null?n[d]=[a]:l.push(a),a.lane=i|536870912),y):null}function $c(n){if(50<bs)throw bs=0,$d=null,Error(o(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Bo={};function EE(n,a,i,l){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(n,a,i,l){return new EE(n,a,i,l)}function Hf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function sr(n,a){var i=n.alternate;return i===null?(i=nn(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function L1(n,a){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Kc(n,a,i,l,d,y){var x=0;if(l=n,typeof n=="function")Hf(n)&&(x=1);else if(typeof n=="string")x=xA(n,i,te.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case F:return n=nn(31,i,a,d),n.elementType=F,n.lanes=y,n;case w:return Aa(i.children,d,y,a);case C:x=8,d|=24;break;case A:return n=nn(12,i,a,d|2),n.elementType=A,n.lanes=y,n;case k:return n=nn(13,i,a,d),n.elementType=k,n.lanes=y,n;case D:return n=nn(19,i,a,d),n.elementType=D,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case B:case _:x=10;break e;case T:x=9;break e;case j:x=11;break e;case U:x=14;break e;case Q:x=16,l=null;break e}x=29,i=Error(o(130,n===null?"null":typeof n,"")),l=null}return a=nn(x,i,a,d),a.elementType=n,a.type=l,a.lanes=y,a}function Aa(n,a,i,l){return n=nn(7,n,l,a),n.lanes=i,n}function Qf(n,a,i){return n=nn(6,n,null,a),n.lanes=i,n}function Gf(n,a,i){return a=nn(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var To=[],jo=0,Yc=null,Xc=0,wn=[],Cn=0,xa=null,cr=1,lr="";function Sa(n,a){To[jo++]=Xc,To[jo++]=Yc,Yc=n,Xc=a}function P1(n,a,i){wn[Cn++]=cr,wn[Cn++]=lr,wn[Cn++]=xa,xa=n;var l=cr;n=lr;var d=32-ot(l)-1;l&=~(1<<d),i+=1;var y=32-ot(a)+d;if(30<y){var x=d-d%5;y=(l&(1<<x)-1).toString(32),l>>=x,d-=x,cr=1<<32-ot(a)+d|i<<d|l,lr=y+n}else cr=1<<y|i<<d|l,lr=n}function Vf(n){n.return!==null&&(Sa(n,1),P1(n,1,0))}function Wf(n){for(;n===Yc;)Yc=To[--jo],To[jo]=null,Xc=To[--jo],To[jo]=null;for(;n===xa;)xa=wn[--Cn],wn[Cn]=null,lr=wn[--Cn],wn[Cn]=null,cr=wn[--Cn],wn[Cn]=null}var Nt=null,Xe=null,Pe=!1,_a=null,Pn=!1,$f=Error(o(519));function Ba(n){var a=Error(o(418,""));throw Ki(yn(a,n)),$f}function q1(n){var a=n.stateNode,i=n.type,l=n.memoizedProps;switch(a[Tt]=n,a[Ht]=l,i){case"dialog":Oe("cancel",a),Oe("close",a);break;case"iframe":case"object":case"embed":Oe("load",a);break;case"video":case"audio":for(i=0;i<vs.length;i++)Oe(vs[i],a);break;case"source":Oe("error",a);break;case"img":case"image":case"link":Oe("error",a),Oe("load",a);break;case"details":Oe("toggle",a);break;case"input":Oe("invalid",a),n1(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Uc(a);break;case"select":Oe("invalid",a);break;case"textarea":Oe("invalid",a),a1(a,l.value,l.defaultValue,l.children),Uc(a)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||l.suppressHydrationWarning===!0||ay(a.textContent,i)?(l.popover!=null&&(Oe("beforetoggle",a),Oe("toggle",a)),l.onScroll!=null&&Oe("scroll",a),l.onScrollEnd!=null&&Oe("scrollend",a),l.onClick!=null&&(a.onclick=Ol),a=!0):a=!1,a||Ba(n)}function F1(n){for(Nt=n.return;Nt;)switch(Nt.tag){case 5:case 13:Pn=!1;return;case 27:case 3:Pn=!0;return;default:Nt=Nt.return}}function Wi(n){if(n!==Nt)return!1;if(!Pe)return F1(n),Pe=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||u0(n.type,n.memoizedProps)),i=!i),i&&Xe&&Ba(n),F1(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(i=n.data,i==="/$"){if(a===0){Xe=Dn(n.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;n=n.nextSibling}Xe=null}}else a===27?(a=Xe,Jr(n.type)?(n=p0,p0=null,Xe=n):Xe=a):Xe=Nt?Dn(n.stateNode.nextSibling):null;return!0}function $i(){Xe=Nt=null,Pe=!1}function H1(){var n=_a;return n!==null&&(Wt===null?Wt=n:Wt.push.apply(Wt,n),_a=null),n}function Ki(n){_a===null?_a=[n]:_a.push(n)}var Kf=G(null),Ta=null,ur=null;function zr(n,a,i){ce(Kf,a._currentValue),a._currentValue=i}function fr(n){n._currentValue=Kf.current,J(Kf)}function Yf(n,a,i){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===i)break;n=n.return}}function Xf(n,a,i,l){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var y=d.dependencies;if(y!==null){var x=d.child;y=y.firstContext;e:for(;y!==null;){var S=y;y=d;for(var R=0;R<a.length;R++)if(S.context===a[R]){y.lanes|=i,S=y.alternate,S!==null&&(S.lanes|=i),Yf(y.return,i,n),l||(x=null);break e}y=S.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(o(341));x.lanes|=i,y=x.alternate,y!==null&&(y.lanes|=i),Yf(x,i,n),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===n){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function Yi(n,a,i,l){n=null;for(var d=a,y=!1;d!==null;){if(!y){if((d.flags&524288)!==0)y=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(o(387));if(x=x.memoizedProps,x!==null){var S=d.type;tn(d.pendingProps.value,x.value)||(n!==null?n.push(S):n=[S])}}else if(d===ye.current){if(x=d.alternate,x===null)throw Error(o(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Ss):n=[Ss])}d=d.return}n!==null&&Xf(a,n,i,l),a.flags|=262144}function Zc(n){for(n=n.firstContext;n!==null;){if(!tn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ja(n){Ta=n,ur=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function jt(n){return Q1(Ta,n)}function Jc(n,a){return Ta===null&&ja(n),Q1(n,a)}function Q1(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},ur===null){if(n===null)throw Error(o(308));ur=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else ur=ur.next=a;return i}var AE=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},xE=e.unstable_scheduleCallback,SE=e.unstable_NormalPriority,ft={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zf(){return{controller:new AE,data:new Map,refCount:0}}function Xi(n){n.refCount--,n.refCount===0&&xE(SE,function(){n.controller.abort()})}var Zi=null,Jf=0,ko=0,Oo=null;function _E(n,a){if(Zi===null){var i=Zi=[];Jf=0,ko=t0(),Oo={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Jf++,a.then(G1,G1),a}function G1(){if(--Jf===0&&Zi!==null){Oo!==null&&(Oo.status="fulfilled");var n=Zi;Zi=null,ko=0,Oo=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function BE(n,a){var i=[],l={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var d=0;d<i.length;d++)(0,i[d])(a)},function(d){for(l.status="rejected",l.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),l}var V1=I.S;I.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&_E(n,a),V1!==null&&V1(n,a)};var ka=G(null);function ed(){var n=ka.current;return n!==null?n:$e.pooledCache}function el(n,a){a===null?ce(ka,ka.current):ce(ka,a.pool)}function W1(){var n=ed();return n===null?null:{parent:ft._currentValue,pool:n}}var Ji=Error(o(460)),$1=Error(o(474)),tl=Error(o(542)),td={then:function(){}};function K1(n){return n=n.status,n==="fulfilled"||n==="rejected"}function nl(){}function Y1(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(nl,nl),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Z1(n),n;default:if(typeof a.status=="string")a.then(nl,nl);else{if(n=$e,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=l}},function(l){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Z1(n),n}throw es=a,Ji}}var es=null;function X1(){if(es===null)throw Error(o(459));var n=es;return es=null,n}function Z1(n){if(n===Ji||n===tl)throw Error(o(483))}var Lr=!1;function nd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rd(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Pr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qr(n,a,i){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(qe&2)!==0){var d=l.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),l.pending=a,a=$c(n),z1(n,null,i),a}return Wc(n,l,a,i),$c(n)}function ts(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,i|=l,a.lanes=i,Gm(n,i)}}function ad(n,a){var i=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var d=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?d=y=x:y=y.next=x,i=i.next}while(i!==null);y===null?d=y=a:y=y.next=a}else d=y=a;i={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:y,shared:l.shared,callbacks:l.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var od=!1;function ns(){if(od){var n=Oo;if(n!==null)throw n}}function rs(n,a,i,l){od=!1;var d=n.updateQueue;Lr=!1;var y=d.firstBaseUpdate,x=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var R=S,W=R.next;R.next=null,x===null?y=W:x.next=W,x=R;var ee=n.alternate;ee!==null&&(ee=ee.updateQueue,S=ee.lastBaseUpdate,S!==x&&(S===null?ee.firstBaseUpdate=W:S.next=W,ee.lastBaseUpdate=R))}if(y!==null){var re=d.baseState;x=0,ee=W=R=null,S=y;do{var K=S.lane&-536870913,X=K!==S.lane;if(X?(Ne&K)===K:(l&K)===K){K!==0&&K===ko&&(od=!0),ee!==null&&(ee=ee.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ee=n,ve=S;K=a;var Ge=i;switch(ve.tag){case 1:if(Ee=ve.payload,typeof Ee=="function"){re=Ee.call(Ge,re,K);break e}re=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=ve.payload,K=typeof Ee=="function"?Ee.call(Ge,re,K):Ee,K==null)break e;re=g({},re,K);break e;case 2:Lr=!0}}K=S.callback,K!==null&&(n.flags|=64,X&&(n.flags|=8192),X=d.callbacks,X===null?d.callbacks=[K]:X.push(K))}else X={lane:K,tag:S.tag,payload:S.payload,callback:S.callback,next:null},ee===null?(W=ee=X,R=re):ee=ee.next=X,x|=K;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;X=S,S=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);ee===null&&(R=re),d.baseState=R,d.firstBaseUpdate=W,d.lastBaseUpdate=ee,y===null&&(d.shared.lanes=0),Kr|=x,n.lanes=x,n.memoizedState=re}}function J1(n,a){if(typeof n!="function")throw Error(o(191,n));n.call(a)}function eg(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)J1(i[n],a)}var Mo=G(null),rl=G(0);function tg(n,a){n=yr,ce(rl,n),ce(Mo,a),yr=n|a.baseLanes}function id(){ce(rl,yr),ce(Mo,Mo.current)}function sd(){yr=rl.current,J(Mo),J(rl)}var Fr=0,Be=null,He=null,it=null,al=!1,Ro=!1,Oa=!1,ol=0,as=0,Do=null,TE=0;function et(){throw Error(o(321))}function cd(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!tn(n[i],a[i]))return!1;return!0}function ld(n,a,i,l,d,y){return Fr=y,Be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,I.H=n===null||n.memoizedState===null?zg:Lg,Oa=!1,y=i(l,d),Oa=!1,Ro&&(y=rg(a,i,l,d)),ng(n),y}function ng(n){I.H=fl;var a=He!==null&&He.next!==null;if(Fr=0,it=He=Be=null,al=!1,as=0,Do=null,a)throw Error(o(300));n===null||bt||(n=n.dependencies,n!==null&&Zc(n)&&(bt=!0))}function rg(n,a,i,l){Be=n;var d=0;do{if(Ro&&(Do=null),as=0,Ro=!1,25<=d)throw Error(o(301));if(d+=1,it=He=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}I.H=NE,y=a(i,l)}while(Ro);return y}function jE(){var n=I.H,a=n.useState()[0];return a=typeof a.then=="function"?os(a):a,n=n.useState()[0],(He!==null?He.memoizedState:null)!==n&&(Be.flags|=1024),a}function ud(){var n=ol!==0;return ol=0,n}function fd(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function dd(n){if(al){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}al=!1}Fr=0,it=He=Be=null,Ro=!1,as=ol=0,Do=null}function Gt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Be.memoizedState=it=n:it=it.next=n,it}function st(){if(He===null){var n=Be.alternate;n=n!==null?n.memoizedState:null}else n=He.next;var a=it===null?Be.memoizedState:it.next;if(a!==null)it=a,He=n;else{if(n===null)throw Be.alternate===null?Error(o(467)):Error(o(310));He=n,n={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},it===null?Be.memoizedState=it=n:it=it.next=n}return it}function hd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(n){var a=as;return as+=1,Do===null&&(Do=[]),n=Y1(Do,n,a),a=Be,(it===null?a.memoizedState:it.next)===null&&(a=a.alternate,I.H=a===null||a.memoizedState===null?zg:Lg),n}function il(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return os(n);if(n.$$typeof===_)return jt(n)}throw Error(o(438,String(n)))}function pd(n){var a=null,i=Be.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var l=Be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=hd(),Be.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),l=0;l<n;l++)i[l]=ie;return a.index++,i}function dr(n,a){return typeof a=="function"?a(n):a}function sl(n){var a=st();return md(a,He,n)}function md(n,a,i){var l=n.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var d=n.baseQueue,y=l.pending;if(y!==null){if(d!==null){var x=d.next;d.next=y.next,y.next=x}a.baseQueue=d=y,l.pending=null}if(y=n.baseState,d===null)n.memoizedState=y;else{a=d.next;var S=x=null,R=null,W=a,ee=!1;do{var re=W.lane&-536870913;if(re!==W.lane?(Ne&re)===re:(Fr&re)===re){var K=W.revertLane;if(K===0)R!==null&&(R=R.next={lane:0,revertLane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),re===ko&&(ee=!0);else if((Fr&K)===K){W=W.next,K===ko&&(ee=!0);continue}else re={lane:0,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},R===null?(S=R=re,x=y):R=R.next=re,Be.lanes|=K,Kr|=K;re=W.action,Oa&&i(y,re),y=W.hasEagerState?W.eagerState:i(y,re)}else K={lane:re,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},R===null?(S=R=K,x=y):R=R.next=K,Be.lanes|=re,Kr|=re;W=W.next}while(W!==null&&W!==a);if(R===null?x=y:R.next=S,!tn(y,n.memoizedState)&&(bt=!0,ee&&(i=Oo,i!==null)))throw i;n.memoizedState=y,n.baseState=x,n.baseQueue=R,l.lastRenderedState=y}return d===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function gd(n){var a=st(),i=a.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var l=i.dispatch,d=i.pending,y=a.memoizedState;if(d!==null){i.pending=null;var x=d=d.next;do y=n(y,x.action),x=x.next;while(x!==d);tn(y,a.memoizedState)||(bt=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),i.lastRenderedState=y}return[y,l]}function ag(n,a,i){var l=Be,d=st(),y=Pe;if(y){if(i===void 0)throw Error(o(407));i=i()}else i=a();var x=!tn((He||d).memoizedState,i);x&&(d.memoizedState=i,bt=!0),d=d.queue;var S=sg.bind(null,l,d,n);if(is(2048,8,S,[n]),d.getSnapshot!==a||x||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,No(9,cl(),ig.bind(null,l,d,i,a),null),$e===null)throw Error(o(349));y||(Fr&124)!==0||og(l,a,i)}return i}function og(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=Be.updateQueue,a===null?(a=hd(),Be.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function ig(n,a,i,l){a.value=i,a.getSnapshot=l,cg(a)&&lg(n)}function sg(n,a,i){return i(function(){cg(a)&&lg(n)})}function cg(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!tn(n,i)}catch{return!0}}function lg(n){var a=_o(n,2);a!==null&&cn(a,n,2)}function bd(n){var a=Gt();if(typeof n=="function"){var i=n;if(n=i(),Oa){at(!0);try{i()}finally{at(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:n},a}function ug(n,a,i,l){return n.baseState=i,md(n,He,typeof l=="function"?l:dr)}function kE(n,a,i,l,d){if(ul(n))throw Error(o(485));if(n=a.action,n!==null){var y={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){y.listeners.push(x)}};I.T!==null?i(!0):y.isTransition=!1,l(y),i=a.pending,i===null?(y.next=a.pending=y,fg(a,y)):(y.next=i.next,a.pending=i.next=y)}}function fg(n,a){var i=a.action,l=a.payload,d=n.state;if(a.isTransition){var y=I.T,x={};I.T=x;try{var S=i(d,l),R=I.S;R!==null&&R(x,S),dg(n,a,S)}catch(W){yd(n,a,W)}finally{I.T=y}}else try{y=i(d,l),dg(n,a,y)}catch(W){yd(n,a,W)}}function dg(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){hg(n,a,l)},function(l){return yd(n,a,l)}):hg(n,a,i)}function hg(n,a,i){a.status="fulfilled",a.value=i,pg(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,fg(n,i)))}function yd(n,a,i){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=i,pg(a),a=a.next;while(a!==l)}n.action=null}function pg(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function mg(n,a){return a}function gg(n,a){if(Pe){var i=$e.formState;if(i!==null){e:{var l=Be;if(Pe){if(Xe){t:{for(var d=Xe,y=Pn;d.nodeType!==8;){if(!y){d=null;break t}if(d=Dn(d.nextSibling),d===null){d=null;break t}}y=d.data,d=y==="F!"||y==="F"?d:null}if(d){Xe=Dn(d.nextSibling),l=d.data==="F!";break e}}Ba(l)}l=!1}l&&(a=i[0])}}return i=Gt(),i.memoizedState=i.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mg,lastRenderedState:a},i.queue=l,i=Ng.bind(null,Be,l),l.dispatch=i,l=bd(!1),y=Ad.bind(null,Be,!1,l.queue),l=Gt(),d={state:a,dispatch:null,action:n,pending:null},l.queue=d,i=kE.bind(null,Be,d,y,i),d.dispatch=i,l.memoizedState=n,[a,i,!1]}function bg(n){var a=st();return yg(a,He,n)}function yg(n,a,i){if(a=md(n,a,mg)[0],n=sl(dr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=os(a)}catch(x){throw x===Ji?tl:x}else l=a;a=st();var d=a.queue,y=d.dispatch;return i!==a.memoizedState&&(Be.flags|=2048,No(9,cl(),OE.bind(null,d,i),null)),[l,y,n]}function OE(n,a){n.action=a}function vg(n){var a=st(),i=He;if(i!==null)return yg(a,i,n);st(),a=a.memoizedState,i=st();var l=i.queue.dispatch;return i.memoizedState=n,[a,l,!1]}function No(n,a,i,l){return n={tag:n,create:i,deps:l,inst:a,next:null},a=Be.updateQueue,a===null&&(a=hd(),Be.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(l=i.next,i.next=n,n.next=l,a.lastEffect=n),n}function cl(){return{destroy:void 0,resource:void 0}}function wg(){return st().memoizedState}function ll(n,a,i,l){var d=Gt();l=l===void 0?null:l,Be.flags|=n,d.memoizedState=No(1|a,cl(),i,l)}function is(n,a,i,l){var d=st();l=l===void 0?null:l;var y=d.memoizedState.inst;He!==null&&l!==null&&cd(l,He.memoizedState.deps)?d.memoizedState=No(a,y,i,l):(Be.flags|=n,d.memoizedState=No(1|a,y,i,l))}function Cg(n,a){ll(8390656,8,n,a)}function Eg(n,a){is(2048,8,n,a)}function Ag(n,a){return is(4,2,n,a)}function xg(n,a){return is(4,4,n,a)}function Sg(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function _g(n,a,i){i=i!=null?i.concat([n]):null,is(4,4,Sg.bind(null,a,n),i)}function vd(){}function Bg(n,a){var i=st();a=a===void 0?null:a;var l=i.memoizedState;return a!==null&&cd(a,l[1])?l[0]:(i.memoizedState=[n,a],n)}function Tg(n,a){var i=st();a=a===void 0?null:a;var l=i.memoizedState;if(a!==null&&cd(a,l[1]))return l[0];if(l=n(),Oa){at(!0);try{n()}finally{at(!1)}}return i.memoizedState=[l,a],l}function wd(n,a,i){return i===void 0||(Fr&1073741824)!==0?n.memoizedState=a:(n.memoizedState=i,n=Ob(),Be.lanes|=n,Kr|=n,i)}function jg(n,a,i,l){return tn(i,a)?i:Mo.current!==null?(n=wd(n,i,l),tn(n,a)||(bt=!0),n):(Fr&42)===0?(bt=!0,n.memoizedState=i):(n=Ob(),Be.lanes|=n,Kr|=n,a)}function kg(n,a,i,l,d){var y=Y.p;Y.p=y!==0&&8>y?y:8;var x=I.T,S={};I.T=S,Ad(n,!1,a,i);try{var R=d(),W=I.S;if(W!==null&&W(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ee=BE(R,l);ss(n,a,ee,sn(n))}else ss(n,a,l,sn(n))}catch(re){ss(n,a,{then:function(){},status:"rejected",reason:re},sn())}finally{Y.p=y,I.T=x}}function ME(){}function Cd(n,a,i,l){if(n.tag!==5)throw Error(o(476));var d=Og(n).queue;kg(n,d,a,q,i===null?ME:function(){return Mg(n),i(l)})}function Og(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:q},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Mg(n){var a=Og(n).next.queue;ss(n,a,{},sn())}function Ed(){return jt(Ss)}function Rg(){return st().memoizedState}function Dg(){return st().memoizedState}function RE(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=sn();n=Pr(i);var l=qr(a,n,i);l!==null&&(cn(l,a,i),ts(l,a,i)),a={cache:Zf()},n.payload=a;return}a=a.return}}function DE(n,a,i){var l=sn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},ul(n)?Ig(a,i):(i=Ff(n,a,i,l),i!==null&&(cn(i,n,l),Ug(i,a,l)))}function Ng(n,a,i){var l=sn();ss(n,a,i,l)}function ss(n,a,i,l){var d={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(ul(n))Ig(a,d);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var x=a.lastRenderedState,S=y(x,i);if(d.hasEagerState=!0,d.eagerState=S,tn(S,x))return Wc(n,a,d,0),$e===null&&Vc(),!1}catch{}finally{}if(i=Ff(n,a,d,l),i!==null)return cn(i,n,l),Ug(i,a,l),!0}return!1}function Ad(n,a,i,l){if(l={lane:2,revertLane:t0(),action:l,hasEagerState:!1,eagerState:null,next:null},ul(n)){if(a)throw Error(o(479))}else a=Ff(n,i,l,2),a!==null&&cn(a,n,2)}function ul(n){var a=n.alternate;return n===Be||a!==null&&a===Be}function Ig(n,a){Ro=al=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function Ug(n,a,i){if((i&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,i|=l,a.lanes=i,Gm(n,i)}}var fl={readContext:jt,use:il,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et},zg={readContext:jt,use:il,useCallback:function(n,a){return Gt().memoizedState=[n,a===void 0?null:a],n},useContext:jt,useEffect:Cg,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,ll(4194308,4,Sg.bind(null,a,n),i)},useLayoutEffect:function(n,a){return ll(4194308,4,n,a)},useInsertionEffect:function(n,a){ll(4,2,n,a)},useMemo:function(n,a){var i=Gt();a=a===void 0?null:a;var l=n();if(Oa){at(!0);try{n()}finally{at(!1)}}return i.memoizedState=[l,a],l},useReducer:function(n,a,i){var l=Gt();if(i!==void 0){var d=i(a);if(Oa){at(!0);try{i(a)}finally{at(!1)}}}else d=a;return l.memoizedState=l.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},l.queue=n,n=n.dispatch=DE.bind(null,Be,n),[l.memoizedState,n]},useRef:function(n){var a=Gt();return n={current:n},a.memoizedState=n},useState:function(n){n=bd(n);var a=n.queue,i=Ng.bind(null,Be,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:vd,useDeferredValue:function(n,a){var i=Gt();return wd(i,n,a)},useTransition:function(){var n=bd(!1);return n=kg.bind(null,Be,n.queue,!0,!1),Gt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var l=Be,d=Gt();if(Pe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=a(),$e===null)throw Error(o(349));(Ne&124)!==0||og(l,a,i)}d.memoizedState=i;var y={value:i,getSnapshot:a};return d.queue=y,Cg(sg.bind(null,l,y,n),[n]),l.flags|=2048,No(9,cl(),ig.bind(null,l,y,i,a),null),i},useId:function(){var n=Gt(),a=$e.identifierPrefix;if(Pe){var i=lr,l=cr;i=(l&~(1<<32-ot(l)-1)).toString(32)+i,a="«"+a+"R"+i,i=ol++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=TE++,a="«"+a+"r"+i.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:Ed,useFormState:gg,useActionState:gg,useOptimistic:function(n){var a=Gt();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Ad.bind(null,Be,!0,i),i.dispatch=a,[n,a]},useMemoCache:pd,useCacheRefresh:function(){return Gt().memoizedState=RE.bind(null,Be)}},Lg={readContext:jt,use:il,useCallback:Bg,useContext:jt,useEffect:Eg,useImperativeHandle:_g,useInsertionEffect:Ag,useLayoutEffect:xg,useMemo:Tg,useReducer:sl,useRef:wg,useState:function(){return sl(dr)},useDebugValue:vd,useDeferredValue:function(n,a){var i=st();return jg(i,He.memoizedState,n,a)},useTransition:function(){var n=sl(dr)[0],a=st().memoizedState;return[typeof n=="boolean"?n:os(n),a]},useSyncExternalStore:ag,useId:Rg,useHostTransitionStatus:Ed,useFormState:bg,useActionState:bg,useOptimistic:function(n,a){var i=st();return ug(i,He,n,a)},useMemoCache:pd,useCacheRefresh:Dg},NE={readContext:jt,use:il,useCallback:Bg,useContext:jt,useEffect:Eg,useImperativeHandle:_g,useInsertionEffect:Ag,useLayoutEffect:xg,useMemo:Tg,useReducer:gd,useRef:wg,useState:function(){return gd(dr)},useDebugValue:vd,useDeferredValue:function(n,a){var i=st();return He===null?wd(i,n,a):jg(i,He.memoizedState,n,a)},useTransition:function(){var n=gd(dr)[0],a=st().memoizedState;return[typeof n=="boolean"?n:os(n),a]},useSyncExternalStore:ag,useId:Rg,useHostTransitionStatus:Ed,useFormState:vg,useActionState:vg,useOptimistic:function(n,a){var i=st();return He!==null?ug(i,He,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:pd,useCacheRefresh:Dg},Io=null,cs=0;function dl(n){var a=cs;return cs+=1,Io===null&&(Io=[]),Y1(Io,n,a)}function ls(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function hl(n,a){throw a.$$typeof===b?Error(o(525)):(n=Object.prototype.toString.call(a),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function Pg(n){var a=n._init;return a(n._payload)}function qg(n){function a(P,z){if(n){var H=P.deletions;H===null?(P.deletions=[z],P.flags|=16):H.push(z)}}function i(P,z){if(!n)return null;for(;z!==null;)a(P,z),z=z.sibling;return null}function l(P){for(var z=new Map;P!==null;)P.key!==null?z.set(P.key,P):z.set(P.index,P),P=P.sibling;return z}function d(P,z){return P=sr(P,z),P.index=0,P.sibling=null,P}function y(P,z,H){return P.index=H,n?(H=P.alternate,H!==null?(H=H.index,H<z?(P.flags|=67108866,z):H):(P.flags|=67108866,z)):(P.flags|=1048576,z)}function x(P){return n&&P.alternate===null&&(P.flags|=67108866),P}function S(P,z,H,ne){return z===null||z.tag!==6?(z=Qf(H,P.mode,ne),z.return=P,z):(z=d(z,H),z.return=P,z)}function R(P,z,H,ne){var pe=H.type;return pe===w?ee(P,z,H.props.children,ne,H.key):z!==null&&(z.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Q&&Pg(pe)===z.type)?(z=d(z,H.props),ls(z,H),z.return=P,z):(z=Kc(H.type,H.key,H.props,null,P.mode,ne),ls(z,H),z.return=P,z)}function W(P,z,H,ne){return z===null||z.tag!==4||z.stateNode.containerInfo!==H.containerInfo||z.stateNode.implementation!==H.implementation?(z=Gf(H,P.mode,ne),z.return=P,z):(z=d(z,H.children||[]),z.return=P,z)}function ee(P,z,H,ne,pe){return z===null||z.tag!==7?(z=Aa(H,P.mode,ne,pe),z.return=P,z):(z=d(z,H),z.return=P,z)}function re(P,z,H){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Qf(""+z,P.mode,H),z.return=P,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case m:return H=Kc(z.type,z.key,z.props,null,P.mode,H),ls(H,z),H.return=P,H;case v:return z=Gf(z,P.mode,H),z.return=P,z;case Q:var ne=z._init;return z=ne(z._payload),re(P,z,H)}if($(z)||ae(z))return z=Aa(z,P.mode,H,null),z.return=P,z;if(typeof z.then=="function")return re(P,dl(z),H);if(z.$$typeof===_)return re(P,Jc(P,z),H);hl(P,z)}return null}function K(P,z,H,ne){var pe=z!==null?z.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return pe!==null?null:S(P,z,""+H,ne);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case m:return H.key===pe?R(P,z,H,ne):null;case v:return H.key===pe?W(P,z,H,ne):null;case Q:return pe=H._init,H=pe(H._payload),K(P,z,H,ne)}if($(H)||ae(H))return pe!==null?null:ee(P,z,H,ne,null);if(typeof H.then=="function")return K(P,z,dl(H),ne);if(H.$$typeof===_)return K(P,z,Jc(P,H),ne);hl(P,H)}return null}function X(P,z,H,ne,pe){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return P=P.get(H)||null,S(z,P,""+ne,pe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case m:return P=P.get(ne.key===null?H:ne.key)||null,R(z,P,ne,pe);case v:return P=P.get(ne.key===null?H:ne.key)||null,W(z,P,ne,pe);case Q:var Te=ne._init;return ne=Te(ne._payload),X(P,z,H,ne,pe)}if($(ne)||ae(ne))return P=P.get(H)||null,ee(z,P,ne,pe,null);if(typeof ne.then=="function")return X(P,z,H,dl(ne),pe);if(ne.$$typeof===_)return X(P,z,H,Jc(z,ne),pe);hl(z,ne)}return null}function Ee(P,z,H,ne){for(var pe=null,Te=null,be=z,Ce=z=0,vt=null;be!==null&&Ce<H.length;Ce++){be.index>Ce?(vt=be,be=null):vt=be.sibling;var ze=K(P,be,H[Ce],ne);if(ze===null){be===null&&(be=vt);break}n&&be&&ze.alternate===null&&a(P,be),z=y(ze,z,Ce),Te===null?pe=ze:Te.sibling=ze,Te=ze,be=vt}if(Ce===H.length)return i(P,be),Pe&&Sa(P,Ce),pe;if(be===null){for(;Ce<H.length;Ce++)be=re(P,H[Ce],ne),be!==null&&(z=y(be,z,Ce),Te===null?pe=be:Te.sibling=be,Te=be);return Pe&&Sa(P,Ce),pe}for(be=l(be);Ce<H.length;Ce++)vt=X(be,P,Ce,H[Ce],ne),vt!==null&&(n&&vt.alternate!==null&&be.delete(vt.key===null?Ce:vt.key),z=y(vt,z,Ce),Te===null?pe=vt:Te.sibling=vt,Te=vt);return n&&be.forEach(function(aa){return a(P,aa)}),Pe&&Sa(P,Ce),pe}function ve(P,z,H,ne){if(H==null)throw Error(o(151));for(var pe=null,Te=null,be=z,Ce=z=0,vt=null,ze=H.next();be!==null&&!ze.done;Ce++,ze=H.next()){be.index>Ce?(vt=be,be=null):vt=be.sibling;var aa=K(P,be,ze.value,ne);if(aa===null){be===null&&(be=vt);break}n&&be&&aa.alternate===null&&a(P,be),z=y(aa,z,Ce),Te===null?pe=aa:Te.sibling=aa,Te=aa,be=vt}if(ze.done)return i(P,be),Pe&&Sa(P,Ce),pe;if(be===null){for(;!ze.done;Ce++,ze=H.next())ze=re(P,ze.value,ne),ze!==null&&(z=y(ze,z,Ce),Te===null?pe=ze:Te.sibling=ze,Te=ze);return Pe&&Sa(P,Ce),pe}for(be=l(be);!ze.done;Ce++,ze=H.next())ze=X(be,P,Ce,ze.value,ne),ze!==null&&(n&&ze.alternate!==null&&be.delete(ze.key===null?Ce:ze.key),z=y(ze,z,Ce),Te===null?pe=ze:Te.sibling=ze,Te=ze);return n&&be.forEach(function(IA){return a(P,IA)}),Pe&&Sa(P,Ce),pe}function Ge(P,z,H,ne){if(typeof H=="object"&&H!==null&&H.type===w&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case m:e:{for(var pe=H.key;z!==null;){if(z.key===pe){if(pe=H.type,pe===w){if(z.tag===7){i(P,z.sibling),ne=d(z,H.props.children),ne.return=P,P=ne;break e}}else if(z.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Q&&Pg(pe)===z.type){i(P,z.sibling),ne=d(z,H.props),ls(ne,H),ne.return=P,P=ne;break e}i(P,z);break}else a(P,z);z=z.sibling}H.type===w?(ne=Aa(H.props.children,P.mode,ne,H.key),ne.return=P,P=ne):(ne=Kc(H.type,H.key,H.props,null,P.mode,ne),ls(ne,H),ne.return=P,P=ne)}return x(P);case v:e:{for(pe=H.key;z!==null;){if(z.key===pe)if(z.tag===4&&z.stateNode.containerInfo===H.containerInfo&&z.stateNode.implementation===H.implementation){i(P,z.sibling),ne=d(z,H.children||[]),ne.return=P,P=ne;break e}else{i(P,z);break}else a(P,z);z=z.sibling}ne=Gf(H,P.mode,ne),ne.return=P,P=ne}return x(P);case Q:return pe=H._init,H=pe(H._payload),Ge(P,z,H,ne)}if($(H))return Ee(P,z,H,ne);if(ae(H)){if(pe=ae(H),typeof pe!="function")throw Error(o(150));return H=pe.call(H),ve(P,z,H,ne)}if(typeof H.then=="function")return Ge(P,z,dl(H),ne);if(H.$$typeof===_)return Ge(P,z,Jc(P,H),ne);hl(P,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,z!==null&&z.tag===6?(i(P,z.sibling),ne=d(z,H),ne.return=P,P=ne):(i(P,z),ne=Qf(H,P.mode,ne),ne.return=P,P=ne),x(P)):i(P,z)}return function(P,z,H,ne){try{cs=0;var pe=Ge(P,z,H,ne);return Io=null,pe}catch(be){if(be===Ji||be===tl)throw be;var Te=nn(29,be,null,P.mode);return Te.lanes=ne,Te.return=P,Te}finally{}}}var Uo=qg(!0),Fg=qg(!1),En=G(null),qn=null;function Hr(n){var a=n.alternate;ce(dt,dt.current&1),ce(En,n),qn===null&&(a===null||Mo.current!==null||a.memoizedState!==null)&&(qn=n)}function Hg(n){if(n.tag===22){if(ce(dt,dt.current),ce(En,n),qn===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(qn=n)}}else Qr()}function Qr(){ce(dt,dt.current),ce(En,En.current)}function hr(n){J(En),qn===n&&(qn=null),J(dt)}var dt=G(0);function pl(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||h0(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function xd(n,a,i,l){a=n.memoizedState,i=i(l,a),i=i==null?a:g({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var Sd={enqueueSetState:function(n,a,i){n=n._reactInternals;var l=sn(),d=Pr(l);d.payload=a,i!=null&&(d.callback=i),a=qr(n,d,l),a!==null&&(cn(a,n,l),ts(a,n,l))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var l=sn(),d=Pr(l);d.tag=1,d.payload=a,i!=null&&(d.callback=i),a=qr(n,d,l),a!==null&&(cn(a,n,l),ts(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=sn(),l=Pr(i);l.tag=2,a!=null&&(l.callback=a),a=qr(n,l,i),a!==null&&(cn(a,n,i),ts(a,n,i))}};function Qg(n,a,i,l,d,y,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,y,x):a.prototype&&a.prototype.isPureReactComponent?!Gi(i,l)||!Gi(d,y):!0}function Gg(n,a,i,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,l),a.state!==n&&Sd.enqueueReplaceState(a,a.state,null)}function Ma(n,a){var i=a;if("ref"in a){i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}if(n=n.defaultProps){i===a&&(i=g({},i));for(var d in n)i[d]===void 0&&(i[d]=n[d])}return i}var ml=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Vg(n){ml(n)}function Wg(n){console.error(n)}function $g(n){ml(n)}function gl(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function Kg(n,a,i){try{var l=n.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function _d(n,a,i){return i=Pr(i),i.tag=3,i.payload={element:null},i.callback=function(){gl(n,a)},i}function Yg(n){return n=Pr(n),n.tag=3,n}function Xg(n,a,i,l){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var y=l.value;n.payload=function(){return d(y)},n.callback=function(){Kg(a,i,l)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){Kg(a,i,l),typeof d!="function"&&(Yr===null?Yr=new Set([this]):Yr.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function IE(n,a,i,l,d){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=i.alternate,a!==null&&Yi(a,i,d,!0),i=En.current,i!==null){switch(i.tag){case 13:return qn===null?Yd():i.alternate===null&&Ze===0&&(Ze=3),i.flags&=-257,i.flags|=65536,i.lanes=d,l===td?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([l]):a.add(l),Zd(n,l,d)),!1;case 22:return i.flags|=65536,l===td?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([l]):i.add(l)),Zd(n,l,d)),!1}throw Error(o(435,i.tag))}return Zd(n,l,d),Yd(),!1}if(Pe)return a=En.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,l!==$f&&(n=Error(o(422),{cause:l}),Ki(yn(n,i)))):(l!==$f&&(a=Error(o(423),{cause:l}),Ki(yn(a,i))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,l=yn(l,i),d=_d(n.stateNode,l,d),ad(n,d),Ze!==4&&(Ze=2)),!1;var y=Error(o(520),{cause:l});if(y=yn(y,i),gs===null?gs=[y]:gs.push(y),Ze!==4&&(Ze=2),a===null)return!0;l=yn(l,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=d&-d,i.lanes|=n,n=_d(i.stateNode,l,n),ad(i,n),!1;case 1:if(a=i.type,y=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Yr===null||!Yr.has(y))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Yg(d),Xg(d,n,i,l),ad(i,d),!1}i=i.return}while(i!==null);return!1}var Zg=Error(o(461)),bt=!1;function Et(n,a,i,l){a.child=n===null?Fg(a,null,i,l):Uo(a,n.child,i,l)}function Jg(n,a,i,l,d){i=i.render;var y=a.ref;if("ref"in l){var x={};for(var S in l)S!=="ref"&&(x[S]=l[S])}else x=l;return ja(a),l=ld(n,a,i,x,y,d),S=ud(),n!==null&&!bt?(fd(n,a,d),pr(n,a,d)):(Pe&&S&&Vf(a),a.flags|=1,Et(n,a,l,d),a.child)}function eb(n,a,i,l,d){if(n===null){var y=i.type;return typeof y=="function"&&!Hf(y)&&y.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=y,tb(n,a,y,l,d)):(n=Kc(i.type,null,l,a,a.mode,d),n.ref=a.ref,n.return=a,a.child=n)}if(y=n.child,!Dd(n,d)){var x=y.memoizedProps;if(i=i.compare,i=i!==null?i:Gi,i(x,l)&&n.ref===a.ref)return pr(n,a,d)}return a.flags|=1,n=sr(y,l),n.ref=a.ref,n.return=a,a.child=n}function tb(n,a,i,l,d){if(n!==null){var y=n.memoizedProps;if(Gi(y,l)&&n.ref===a.ref)if(bt=!1,a.pendingProps=l=y,Dd(n,d))(n.flags&131072)!==0&&(bt=!0);else return a.lanes=n.lanes,pr(n,a,d)}return Bd(n,a,i,l,d)}function nb(n,a,i){var l=a.pendingProps,d=l.children,y=n!==null?n.memoizedState:null;if(l.mode==="hidden"){if((a.flags&128)!==0){if(l=y!==null?y.baseLanes|i:i,n!==null){for(d=a.child=n.child,y=0;d!==null;)y=y|d.lanes|d.childLanes,d=d.sibling;a.childLanes=y&~l}else a.childLanes=0,a.child=null;return rb(n,a,l,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&el(a,y!==null?y.cachePool:null),y!==null?tg(a,y):id(),Hg(a);else return a.lanes=a.childLanes=536870912,rb(n,a,y!==null?y.baseLanes|i:i,i)}else y!==null?(el(a,y.cachePool),tg(a,y),Qr(),a.memoizedState=null):(n!==null&&el(a,null),id(),Qr());return Et(n,a,d,i),a.child}function rb(n,a,i,l){var d=ed();return d=d===null?null:{parent:ft._currentValue,pool:d},a.memoizedState={baseLanes:i,cachePool:d},n!==null&&el(a,null),id(),Hg(a),n!==null&&Yi(n,a,l,!0),null}function bl(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function Bd(n,a,i,l,d){return ja(a),i=ld(n,a,i,l,void 0,d),l=ud(),n!==null&&!bt?(fd(n,a,d),pr(n,a,d)):(Pe&&l&&Vf(a),a.flags|=1,Et(n,a,i,d),a.child)}function ab(n,a,i,l,d,y){return ja(a),a.updateQueue=null,i=rg(a,l,i,d),ng(n),l=ud(),n!==null&&!bt?(fd(n,a,y),pr(n,a,y)):(Pe&&l&&Vf(a),a.flags|=1,Et(n,a,i,y),a.child)}function ob(n,a,i,l,d){if(ja(a),a.stateNode===null){var y=Bo,x=i.contextType;typeof x=="object"&&x!==null&&(y=jt(x)),y=new i(l,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Sd,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=l,y.state=a.memoizedState,y.refs={},nd(a),x=i.contextType,y.context=typeof x=="object"&&x!==null?jt(x):Bo,y.state=a.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(xd(a,i,x,l),y.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(x=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),x!==y.state&&Sd.enqueueReplaceState(y,y.state,null),rs(a,l,y,d),ns(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){y=a.stateNode;var S=a.memoizedProps,R=Ma(i,S);y.props=R;var W=y.context,ee=i.contextType;x=Bo,typeof ee=="object"&&ee!==null&&(x=jt(ee));var re=i.getDerivedStateFromProps;ee=typeof re=="function"||typeof y.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,ee||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S||W!==x)&&Gg(a,y,l,x),Lr=!1;var K=a.memoizedState;y.state=K,rs(a,l,y,d),ns(),W=a.memoizedState,S||K!==W||Lr?(typeof re=="function"&&(xd(a,i,re,l),W=a.memoizedState),(R=Lr||Qg(a,i,R,l,K,W,x))?(ee||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=W),y.props=l,y.state=W,y.context=x,l=R):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{y=a.stateNode,rd(n,a),x=a.memoizedProps,ee=Ma(i,x),y.props=ee,re=a.pendingProps,K=y.context,W=i.contextType,R=Bo,typeof W=="object"&&W!==null&&(R=jt(W)),S=i.getDerivedStateFromProps,(W=typeof S=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==re||K!==R)&&Gg(a,y,l,R),Lr=!1,K=a.memoizedState,y.state=K,rs(a,l,y,d),ns();var X=a.memoizedState;x!==re||K!==X||Lr||n!==null&&n.dependencies!==null&&Zc(n.dependencies)?(typeof S=="function"&&(xd(a,i,S,l),X=a.memoizedState),(ee=Lr||Qg(a,i,ee,l,K,X,R)||n!==null&&n.dependencies!==null&&Zc(n.dependencies))?(W||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,X,R),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,X,R)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||x===n.memoizedProps&&K===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&K===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=X),y.props=l,y.state=X,y.context=R,l=ee):(typeof y.componentDidUpdate!="function"||x===n.memoizedProps&&K===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&K===n.memoizedState||(a.flags|=1024),l=!1)}return y=l,bl(n,a),l=(a.flags&128)!==0,y||l?(y=a.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,n!==null&&l?(a.child=Uo(a,n.child,null,d),a.child=Uo(a,null,i,d)):Et(n,a,i,d),a.memoizedState=y.state,n=a.child):n=pr(n,a,d),n}function ib(n,a,i,l){return $i(),a.flags|=256,Et(n,a,i,l),a.child}var Td={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jd(n){return{baseLanes:n,cachePool:W1()}}function kd(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=An),n}function sb(n,a,i){var l=a.pendingProps,d=!1,y=(a.flags&128)!==0,x;if((x=y)||(x=n!==null&&n.memoizedState===null?!1:(dt.current&2)!==0),x&&(d=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,n===null){if(Pe){if(d?Hr(a):Qr(),Pe){var S=Xe,R;if(R=S){e:{for(R=S,S=Pn;R.nodeType!==8;){if(!S){S=null;break e}if(R=Dn(R.nextSibling),R===null){S=null;break e}}S=R}S!==null?(a.memoizedState={dehydrated:S,treeContext:xa!==null?{id:cr,overflow:lr}:null,retryLane:536870912,hydrationErrors:null},R=nn(18,null,null,0),R.stateNode=S,R.return=a,a.child=R,Nt=a,Xe=null,R=!0):R=!1}R||Ba(a)}if(S=a.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return h0(S)?a.lanes=32:a.lanes=536870912,null;hr(a)}return S=l.children,l=l.fallback,d?(Qr(),d=a.mode,S=yl({mode:"hidden",children:S},d),l=Aa(l,d,i,null),S.return=a,l.return=a,S.sibling=l,a.child=S,d=a.child,d.memoizedState=jd(i),d.childLanes=kd(n,x,i),a.memoizedState=Td,l):(Hr(a),Od(a,S))}if(R=n.memoizedState,R!==null&&(S=R.dehydrated,S!==null)){if(y)a.flags&256?(Hr(a),a.flags&=-257,a=Md(n,a,i)):a.memoizedState!==null?(Qr(),a.child=n.child,a.flags|=128,a=null):(Qr(),d=l.fallback,S=a.mode,l=yl({mode:"visible",children:l.children},S),d=Aa(d,S,i,null),d.flags|=2,l.return=a,d.return=a,l.sibling=d,a.child=l,Uo(a,n.child,null,i),l=a.child,l.memoizedState=jd(i),l.childLanes=kd(n,x,i),a.memoizedState=Td,a=d);else if(Hr(a),h0(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var W=x.dgst;x=W,l=Error(o(419)),l.stack="",l.digest=x,Ki({value:l,source:null,stack:null}),a=Md(n,a,i)}else if(bt||Yi(n,a,i,!1),x=(i&n.childLanes)!==0,bt||x){if(x=$e,x!==null&&(l=i&-i,l=(l&42)!==0?1:pf(l),l=(l&(x.suspendedLanes|i))!==0?0:l,l!==0&&l!==R.retryLane))throw R.retryLane=l,_o(n,l),cn(x,n,l),Zg;S.data==="$?"||Yd(),a=Md(n,a,i)}else S.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=R.treeContext,Xe=Dn(S.nextSibling),Nt=a,Pe=!0,_a=null,Pn=!1,n!==null&&(wn[Cn++]=cr,wn[Cn++]=lr,wn[Cn++]=xa,cr=n.id,lr=n.overflow,xa=a),a=Od(a,l.children),a.flags|=4096);return a}return d?(Qr(),d=l.fallback,S=a.mode,R=n.child,W=R.sibling,l=sr(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,W!==null?d=sr(W,d):(d=Aa(d,S,i,null),d.flags|=2),d.return=a,l.return=a,l.sibling=d,a.child=l,l=d,d=a.child,S=n.child.memoizedState,S===null?S=jd(i):(R=S.cachePool,R!==null?(W=ft._currentValue,R=R.parent!==W?{parent:W,pool:W}:R):R=W1(),S={baseLanes:S.baseLanes|i,cachePool:R}),d.memoizedState=S,d.childLanes=kd(n,x,i),a.memoizedState=Td,l):(Hr(a),i=n.child,n=i.sibling,i=sr(i,{mode:"visible",children:l.children}),i.return=a,i.sibling=null,n!==null&&(x=a.deletions,x===null?(a.deletions=[n],a.flags|=16):x.push(n)),a.child=i,a.memoizedState=null,i)}function Od(n,a){return a=yl({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function yl(n,a){return n=nn(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Md(n,a,i){return Uo(a,n.child,null,i),n=Od(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function cb(n,a,i){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Yf(n.return,a,i)}function Rd(n,a,i,l,d){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:d}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=d)}function lb(n,a,i){var l=a.pendingProps,d=l.revealOrder,y=l.tail;if(Et(n,a,l.children,i),l=dt.current,(l&2)!==0)l=l&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&cb(n,i,a);else if(n.tag===19)cb(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}switch(ce(dt,l),d){case"forwards":for(i=a.child,d=null;i!==null;)n=i.alternate,n!==null&&pl(n)===null&&(d=i),i=i.sibling;i=d,i===null?(d=a.child,a.child=null):(d=i.sibling,i.sibling=null),Rd(a,!1,d,i,y);break;case"backwards":for(i=null,d=a.child,a.child=null;d!==null;){if(n=d.alternate,n!==null&&pl(n)===null){a.child=d;break}n=d.sibling,d.sibling=i,i=d,d=n}Rd(a,!0,i,null,y);break;case"together":Rd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function pr(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),Kr|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(Yi(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(o(153));if(a.child!==null){for(n=a.child,i=sr(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=sr(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function Dd(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Zc(n)))}function UE(n,a,i){switch(a.tag){case 3:Ae(a,a.stateNode.containerInfo),zr(a,ft,n.memoizedState.cache),$i();break;case 27:case 5:We(a);break;case 4:Ae(a,a.stateNode.containerInfo);break;case 10:zr(a,a.type,a.memoizedProps.value);break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(Hr(a),a.flags|=128,null):(i&a.child.childLanes)!==0?sb(n,a,i):(Hr(a),n=pr(n,a,i),n!==null?n.sibling:null);Hr(a);break;case 19:var d=(n.flags&128)!==0;if(l=(i&a.childLanes)!==0,l||(Yi(n,a,i,!1),l=(i&a.childLanes)!==0),d){if(l)return lb(n,a,i);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ce(dt,dt.current),l)break;return null;case 22:case 23:return a.lanes=0,nb(n,a,i);case 24:zr(a,ft,n.memoizedState.cache)}return pr(n,a,i)}function ub(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)bt=!0;else{if(!Dd(n,i)&&(a.flags&128)===0)return bt=!1,UE(n,a,i);bt=(n.flags&131072)!==0}else bt=!1,Pe&&(a.flags&1048576)!==0&&P1(a,Xc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var l=a.elementType,d=l._init;if(l=d(l._payload),a.type=l,typeof l=="function")Hf(l)?(n=Ma(l,n),a.tag=1,a=ob(null,a,l,n,i)):(a.tag=0,a=Bd(null,a,l,n,i));else{if(l!=null){if(d=l.$$typeof,d===j){a.tag=11,a=Jg(null,a,l,n,i);break e}else if(d===U){a.tag=14,a=eb(null,a,l,n,i);break e}}throw a=V(l)||l,Error(o(306,a,""))}}return a;case 0:return Bd(n,a,a.type,a.pendingProps,i);case 1:return l=a.type,d=Ma(l,a.pendingProps),ob(n,a,l,d,i);case 3:e:{if(Ae(a,a.stateNode.containerInfo),n===null)throw Error(o(387));l=a.pendingProps;var y=a.memoizedState;d=y.element,rd(n,a),rs(a,l,null,i);var x=a.memoizedState;if(l=x.cache,zr(a,ft,l),l!==y.cache&&Xf(a,[ft],i,!0),ns(),l=x.element,y.isDehydrated)if(y={element:l,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=ib(n,a,l,i);break e}else if(l!==d){d=yn(Error(o(424)),a),Ki(d),a=ib(n,a,l,i);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Xe=Dn(n.firstChild),Nt=a,Pe=!0,_a=null,Pn=!0,i=Fg(a,null,l,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if($i(),l===d){a=pr(n,a,i);break e}Et(n,a,l,i)}a=a.child}return a;case 26:return bl(n,a),n===null?(i=py(a.type,null,a.pendingProps,null))?a.memoizedState=i:Pe||(i=a.type,n=a.pendingProps,l=Ml(fe.current).createElement(i),l[Tt]=a,l[Ht]=n,xt(l,i,n),gt(l),a.stateNode=l):a.memoizedState=py(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return We(a),n===null&&Pe&&(l=a.stateNode=fy(a.type,a.pendingProps,fe.current),Nt=a,Pn=!0,d=Xe,Jr(a.type)?(p0=d,Xe=Dn(l.firstChild)):Xe=d),Et(n,a,a.pendingProps.children,i),bl(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Pe&&((d=l=Xe)&&(l=fA(l,a.type,a.pendingProps,Pn),l!==null?(a.stateNode=l,Nt=a,Xe=Dn(l.firstChild),Pn=!1,d=!0):d=!1),d||Ba(a)),We(a),d=a.type,y=a.pendingProps,x=n!==null?n.memoizedProps:null,l=y.children,u0(d,y)?l=null:x!==null&&u0(d,x)&&(a.flags|=32),a.memoizedState!==null&&(d=ld(n,a,jE,null,null,i),Ss._currentValue=d),bl(n,a),Et(n,a,l,i),a.child;case 6:return n===null&&Pe&&((n=i=Xe)&&(i=dA(i,a.pendingProps,Pn),i!==null?(a.stateNode=i,Nt=a,Xe=null,n=!0):n=!1),n||Ba(a)),null;case 13:return sb(n,a,i);case 4:return Ae(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=Uo(a,null,l,i):Et(n,a,l,i),a.child;case 11:return Jg(n,a,a.type,a.pendingProps,i);case 7:return Et(n,a,a.pendingProps,i),a.child;case 8:return Et(n,a,a.pendingProps.children,i),a.child;case 12:return Et(n,a,a.pendingProps.children,i),a.child;case 10:return l=a.pendingProps,zr(a,a.type,l.value),Et(n,a,l.children,i),a.child;case 9:return d=a.type._context,l=a.pendingProps.children,ja(a),d=jt(d),l=l(d),a.flags|=1,Et(n,a,l,i),a.child;case 14:return eb(n,a,a.type,a.pendingProps,i);case 15:return tb(n,a,a.type,a.pendingProps,i);case 19:return lb(n,a,i);case 31:return l=a.pendingProps,i=a.mode,l={mode:l.mode,children:l.children},n===null?(i=yl(l,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=sr(n.child,l),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return nb(n,a,i);case 24:return ja(a),l=jt(ft),n===null?(d=ed(),d===null&&(d=$e,y=Zf(),d.pooledCache=y,y.refCount++,y!==null&&(d.pooledCacheLanes|=i),d=y),a.memoizedState={parent:l,cache:d},nd(a),zr(a,ft,d)):((n.lanes&i)!==0&&(rd(n,a),rs(a,null,null,i),ns()),d=n.memoizedState,y=a.memoizedState,d.parent!==l?(d={parent:l,cache:l},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),zr(a,ft,l)):(l=y.cache,zr(a,ft,l),l!==d.cache&&Xf(a,[ft],i,!0))),Et(n,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function mr(n){n.flags|=4}function fb(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!vy(a)){if(a=En.current,a!==null&&((Ne&4194048)===Ne?qn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||a!==qn))throw es=td,$1;n.flags|=8192}}function vl(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?lo():536870912,n.lanes|=a,qo|=a)}function us(n,a){if(!Pe)switch(n.tailMode){case"hidden":a=n.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Ye(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,l=0;if(a)for(var d=n.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=l,n.childLanes=i,a}function zE(n,a,i){var l=a.pendingProps;switch(Wf(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(a),null;case 1:return Ye(a),null;case 3:return i=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),fr(ft),Me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Wi(a)?mr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,H1())),Ye(a),null;case 26:return i=a.memoizedState,n===null?(mr(a),i!==null?(Ye(a),fb(a,i)):(Ye(a),a.flags&=-16777217)):i?i!==n.memoizedState?(mr(a),Ye(a),fb(a,i)):(Ye(a),a.flags&=-16777217):(n.memoizedProps!==l&&mr(a),Ye(a),a.flags&=-16777217),null;case 27:Jt(a),i=fe.current;var d=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==l&&mr(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return Ye(a),null}n=te.current,Wi(a)?q1(a):(n=fy(d,l,i),a.stateNode=n,mr(a))}return Ye(a),null;case 5:if(Jt(a),i=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&mr(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return Ye(a),null}if(n=te.current,Wi(a))q1(a);else{switch(d=Ml(fe.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?d.createElement(i,{is:l.is}):d.createElement(i)}}n[Tt]=a,n[Ht]=l;e:for(d=a.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break e;for(;d.sibling===null;){if(d.return===null||d.return===a)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}a.stateNode=n;e:switch(xt(n,i,l),i){case"button":case"input":case"select":case"textarea":n=!!l.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&mr(a)}}return Ye(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&mr(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(o(166));if(n=fe.current,Wi(a)){if(n=a.stateNode,i=a.memoizedProps,l=null,d=Nt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}n[Tt]=a,n=!!(n.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||ay(n.nodeValue,i)),n||Ba(a)}else n=Ml(n).createTextNode(l),n[Tt]=a,a.stateNode=n}return Ye(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Wi(a),l!==null&&l.dehydrated!==null){if(n===null){if(!d)throw Error(o(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[Tt]=a}else $i(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ye(a),d=!1}else d=H1(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(hr(a),a):(hr(a),null)}if(hr(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=l!==null,n=n!==null&&n.memoizedState!==null,i){l=a.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool);var y=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(y=l.memoizedState.cachePool.pool),y!==d&&(l.flags|=2048)}return i!==n&&i&&(a.child.flags|=8192),vl(a,a.updateQueue),Ye(a),null;case 4:return Me(),n===null&&o0(a.stateNode.containerInfo),Ye(a),null;case 10:return fr(a.type),Ye(a),null;case 19:if(J(dt),d=a.memoizedState,d===null)return Ye(a),null;if(l=(a.flags&128)!==0,y=d.rendering,y===null)if(l)us(d,!1);else{if(Ze!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(y=pl(n),y!==null){for(a.flags|=128,us(d,!1),n=y.updateQueue,a.updateQueue=n,vl(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)L1(i,n),i=i.sibling;return ce(dt,dt.current&1|2),a.child}n=n.sibling}d.tail!==null&&mn()>El&&(a.flags|=128,l=!0,us(d,!1),a.lanes=4194304)}else{if(!l)if(n=pl(y),n!==null){if(a.flags|=128,l=!0,n=n.updateQueue,a.updateQueue=n,vl(a,n),us(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Pe)return Ye(a),null}else 2*mn()-d.renderingStartTime>El&&i!==536870912&&(a.flags|=128,l=!0,us(d,!1),a.lanes=4194304);d.isBackwards?(y.sibling=a.child,a.child=y):(n=d.last,n!==null?n.sibling=y:a.child=y,d.last=y)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=mn(),a.sibling=null,n=dt.current,ce(dt,l?n&1|2:n&1),a):(Ye(a),null);case 22:case 23:return hr(a),sd(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(i&536870912)!==0&&(a.flags&128)===0&&(Ye(a),a.subtreeFlags&6&&(a.flags|=8192)):Ye(a),i=a.updateQueue,i!==null&&vl(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048),n!==null&&J(ka),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),fr(ft),Ye(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function LE(n,a){switch(Wf(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return fr(ft),Me(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Jt(a),null;case 13:if(hr(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(o(340));$i()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return J(dt),null;case 4:return Me(),null;case 10:return fr(a.type),null;case 22:case 23:return hr(a),sd(),n!==null&&J(ka),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return fr(ft),null;case 25:return null;default:return null}}function db(n,a){switch(Wf(a),a.tag){case 3:fr(ft),Me();break;case 26:case 27:case 5:Jt(a);break;case 4:Me();break;case 13:hr(a);break;case 19:J(dt);break;case 10:fr(a.type);break;case 22:case 23:hr(a),sd(),n!==null&&J(ka);break;case 24:fr(ft)}}function fs(n,a){try{var i=a.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var d=l.next;i=d;do{if((i.tag&n)===n){l=void 0;var y=i.create,x=i.inst;l=y(),x.destroy=l}i=i.next}while(i!==d)}}catch(S){Ve(a,a.return,S)}}function Gr(n,a,i){try{var l=a.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var y=d.next;l=y;do{if((l.tag&n)===n){var x=l.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,d=a;var R=i,W=S;try{W()}catch(ee){Ve(d,R,ee)}}}l=l.next}while(l!==y)}}catch(ee){Ve(a,a.return,ee)}}function hb(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{eg(a,i)}catch(l){Ve(n,n.return,l)}}}function pb(n,a,i){i.props=Ma(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(l){Ve(n,a,l)}}function ds(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof i=="function"?n.refCleanup=i(l):i.current=l}}catch(d){Ve(n,a,d)}}function Fn(n,a){var i=n.ref,l=n.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(d){Ve(n,a,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){Ve(n,a,d)}else i.current=null}function mb(n){var a=n.type,i=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(d){Ve(n,n.return,d)}}function Nd(n,a,i){try{var l=n.stateNode;iA(l,n.type,i,a),l[Ht]=a}catch(d){Ve(n,n.return,d)}}function gb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Jr(n.type)||n.tag===4}function Id(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gb(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Jr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ud(n,a,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(n),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Ol));else if(l!==4&&(l===27&&Jr(n.type)&&(i=n.stateNode,a=null),n=n.child,n!==null))for(Ud(n,a,i),n=n.sibling;n!==null;)Ud(n,a,i),n=n.sibling}function wl(n,a,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?i.insertBefore(n,a):i.appendChild(n);else if(l!==4&&(l===27&&Jr(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(wl(n,a,i),n=n.sibling;n!==null;)wl(n,a,i),n=n.sibling}function bb(n){var a=n.stateNode,i=n.memoizedProps;try{for(var l=n.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);xt(a,l,i),a[Tt]=n,a[Ht]=i}catch(y){Ve(n,n.return,y)}}var gr=!1,tt=!1,zd=!1,yb=typeof WeakSet=="function"?WeakSet:Set,yt=null;function PE(n,a){if(n=n.containerInfo,c0=zl,n=j1(n),If(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var d=l.anchorOffset,y=l.focusNode;l=l.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var x=0,S=-1,R=-1,W=0,ee=0,re=n,K=null;t:for(;;){for(var X;re!==i||d!==0&&re.nodeType!==3||(S=x+d),re!==y||l!==0&&re.nodeType!==3||(R=x+l),re.nodeType===3&&(x+=re.nodeValue.length),(X=re.firstChild)!==null;)K=re,re=X;for(;;){if(re===n)break t;if(K===i&&++W===d&&(S=x),K===y&&++ee===l&&(R=x),(X=re.nextSibling)!==null)break;re=K,K=re.parentNode}re=X}i=S===-1||R===-1?null:{start:S,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(l0={focusedElem:n,selectionRange:i},zl=!1,yt=a;yt!==null;)if(a=yt,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,yt=n;else for(;yt!==null;){switch(a=yt,y=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,i=a,d=y.memoizedProps,y=y.memoizedState,l=i.stateNode;try{var Ee=Ma(i.type,d,i.elementType===i.type);n=l.getSnapshotBeforeUpdate(Ee,y),l.__reactInternalSnapshotBeforeUpdate=n}catch(ve){Ve(i,i.return,ve)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,i=n.nodeType,i===9)d0(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":d0(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(o(163))}if(n=a.sibling,n!==null){n.return=a.return,yt=n;break}yt=a.return}}function vb(n,a,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Vr(n,i),l&4&&fs(5,i);break;case 1:if(Vr(n,i),l&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch(x){Ve(i,i.return,x)}else{var d=Ma(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(d,a,n.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(i,i.return,x)}}l&64&&hb(i),l&512&&ds(i,i.return);break;case 3:if(Vr(n,i),l&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{eg(n,a)}catch(x){Ve(i,i.return,x)}}break;case 27:a===null&&l&4&&bb(i);case 26:case 5:Vr(n,i),a===null&&l&4&&mb(i),l&512&&ds(i,i.return);break;case 12:Vr(n,i);break;case 13:Vr(n,i),l&4&&Eb(n,i),l&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=KE.bind(null,i),hA(n,i))));break;case 22:if(l=i.memoizedState!==null||gr,!l){a=a!==null&&a.memoizedState!==null||tt,d=gr;var y=tt;gr=l,(tt=a)&&!y?Wr(n,i,(i.subtreeFlags&8772)!==0):Vr(n,i),gr=d,tt=y}break;case 30:break;default:Vr(n,i)}}function wb(n){var a=n.alternate;a!==null&&(n.alternate=null,wb(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&bf(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ke=null,Vt=!1;function br(n,a,i){for(i=i.child;i!==null;)Cb(n,a,i),i=i.sibling}function Cb(n,a,i){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Nr,i)}catch{}switch(i.tag){case 26:tt||Fn(i,a),br(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:tt||Fn(i,a);var l=Ke,d=Vt;Jr(i.type)&&(Ke=i.stateNode,Vt=!1),br(n,a,i),Cs(i.stateNode),Ke=l,Vt=d;break;case 5:tt||Fn(i,a);case 6:if(l=Ke,d=Vt,Ke=null,br(n,a,i),Ke=l,Vt=d,Ke!==null)if(Vt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(i.stateNode)}catch(y){Ve(i,a,y)}else try{Ke.removeChild(i.stateNode)}catch(y){Ve(i,a,y)}break;case 18:Ke!==null&&(Vt?(n=Ke,ly(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),js(n)):ly(Ke,i.stateNode));break;case 4:l=Ke,d=Vt,Ke=i.stateNode.containerInfo,Vt=!0,br(n,a,i),Ke=l,Vt=d;break;case 0:case 11:case 14:case 15:tt||Gr(2,i,a),tt||Gr(4,i,a),br(n,a,i);break;case 1:tt||(Fn(i,a),l=i.stateNode,typeof l.componentWillUnmount=="function"&&pb(i,a,l)),br(n,a,i);break;case 21:br(n,a,i);break;case 22:tt=(l=tt)||i.memoizedState!==null,br(n,a,i),tt=l;break;default:br(n,a,i)}}function Eb(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{js(n)}catch(i){Ve(a,a.return,i)}}function qE(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new yb),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new yb),a;default:throw Error(o(435,n.tag))}}function Ld(n,a){var i=qE(n);a.forEach(function(l){var d=YE.bind(null,n,l);i.has(l)||(i.add(l),l.then(d,d))})}function rn(n,a){var i=a.deletions;if(i!==null)for(var l=0;l<i.length;l++){var d=i[l],y=n,x=a,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(Jr(S.type)){Ke=S.stateNode,Vt=!1;break e}break;case 5:Ke=S.stateNode,Vt=!1;break e;case 3:case 4:Ke=S.stateNode.containerInfo,Vt=!0;break e}S=S.return}if(Ke===null)throw Error(o(160));Cb(y,x,d),Ke=null,Vt=!1,y=d.alternate,y!==null&&(y.return=null),d.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Ab(a,n),a=a.sibling}var Rn=null;function Ab(n,a){var i=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:rn(a,n),an(n),l&4&&(Gr(3,n,n.return),fs(3,n),Gr(5,n,n.return));break;case 1:rn(a,n),an(n),l&512&&(tt||i===null||Fn(i,i.return)),l&64&&gr&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var d=Rn;if(rn(a,n),an(n),l&512&&(tt||i===null||Fn(i,i.return)),l&4){var y=i!==null?i.memoizedState:null;if(l=n.memoizedState,i===null)if(l===null)if(n.stateNode===null){e:{l=n.type,i=n.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":y=d.getElementsByTagName("title")[0],(!y||y[Ii]||y[Tt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=d.createElement(l),d.head.insertBefore(y,d.querySelector("head > title"))),xt(y,l,i),y[Tt]=n,gt(y),l=y;break e;case"link":var x=by("link","href",d).get(l+(i.href||""));if(x){for(var S=0;S<x.length;S++)if(y=x[S],y.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&y.getAttribute("rel")===(i.rel==null?null:i.rel)&&y.getAttribute("title")===(i.title==null?null:i.title)&&y.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(S,1);break t}}y=d.createElement(l),xt(y,l,i),d.head.appendChild(y);break;case"meta":if(x=by("meta","content",d).get(l+(i.content||""))){for(S=0;S<x.length;S++)if(y=x[S],y.getAttribute("content")===(i.content==null?null:""+i.content)&&y.getAttribute("name")===(i.name==null?null:i.name)&&y.getAttribute("property")===(i.property==null?null:i.property)&&y.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&y.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(S,1);break t}}y=d.createElement(l),xt(y,l,i),d.head.appendChild(y);break;default:throw Error(o(468,l))}y[Tt]=n,gt(y),l=y}n.stateNode=l}else yy(d,n.type,n.stateNode);else n.stateNode=gy(d,l,n.memoizedProps);else y!==l?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,l===null?yy(d,n.type,n.stateNode):gy(d,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Nd(n,n.memoizedProps,i.memoizedProps)}break;case 27:rn(a,n),an(n),l&512&&(tt||i===null||Fn(i,i.return)),i!==null&&l&4&&Nd(n,n.memoizedProps,i.memoizedProps);break;case 5:if(rn(a,n),an(n),l&512&&(tt||i===null||Fn(i,i.return)),n.flags&32){d=n.stateNode;try{vo(d,"")}catch(X){Ve(n,n.return,X)}}l&4&&n.stateNode!=null&&(d=n.memoizedProps,Nd(n,d,i!==null?i.memoizedProps:d)),l&1024&&(zd=!0);break;case 6:if(rn(a,n),an(n),l&4){if(n.stateNode===null)throw Error(o(162));l=n.memoizedProps,i=n.stateNode;try{i.nodeValue=l}catch(X){Ve(n,n.return,X)}}break;case 3:if(Nl=null,d=Rn,Rn=Rl(a.containerInfo),rn(a,n),Rn=d,an(n),l&4&&i!==null&&i.memoizedState.isDehydrated)try{js(a.containerInfo)}catch(X){Ve(n,n.return,X)}zd&&(zd=!1,xb(n));break;case 4:l=Rn,Rn=Rl(n.stateNode.containerInfo),rn(a,n),an(n),Rn=l;break;case 12:rn(a,n),an(n);break;case 13:rn(a,n),an(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Gd=mn()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ld(n,l)));break;case 22:d=n.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,W=gr,ee=tt;if(gr=W||d,tt=ee||R,rn(a,n),tt=ee,gr=W,an(n),l&8192)e:for(a=n.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(i===null||R||gr||tt||Ra(n)),i=null,a=n;;){if(a.tag===5||a.tag===26){if(i===null){R=i=a;try{if(y=R.stateNode,d)x=y.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=R.stateNode;var re=R.memoizedProps.style,K=re!=null&&re.hasOwnProperty("display")?re.display:null;S.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(X){Ve(R,R.return,X)}}}else if(a.tag===6){if(i===null){R=a;try{R.stateNode.nodeValue=d?"":R.memoizedProps}catch(X){Ve(R,R.return,X)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Ld(n,i))));break;case 19:rn(a,n),an(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ld(n,l)));break;case 30:break;case 21:break;default:rn(a,n),an(n)}}function an(n){var a=n.flags;if(a&2){try{for(var i,l=n.return;l!==null;){if(gb(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var d=i.stateNode,y=Id(n);wl(n,y,d);break;case 5:var x=i.stateNode;i.flags&32&&(vo(x,""),i.flags&=-33);var S=Id(n);wl(n,S,x);break;case 3:case 4:var R=i.stateNode.containerInfo,W=Id(n);Ud(n,W,R);break;default:throw Error(o(161))}}catch(ee){Ve(n,n.return,ee)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function xb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;xb(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Vr(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)vb(n,a.alternate,a),a=a.sibling}function Ra(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Gr(4,a,a.return),Ra(a);break;case 1:Fn(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&pb(a,a.return,i),Ra(a);break;case 27:Cs(a.stateNode);case 26:case 5:Fn(a,a.return),Ra(a);break;case 22:a.memoizedState===null&&Ra(a);break;case 30:Ra(a);break;default:Ra(a)}n=n.sibling}}function Wr(n,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,d=n,y=a,x=y.flags;switch(y.tag){case 0:case 11:case 15:Wr(d,y,i),fs(4,y);break;case 1:if(Wr(d,y,i),l=y,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(W){Ve(l,l.return,W)}if(l=y,d=l.updateQueue,d!==null){var S=l.stateNode;try{var R=d.shared.hiddenCallbacks;if(R!==null)for(d.shared.hiddenCallbacks=null,d=0;d<R.length;d++)J1(R[d],S)}catch(W){Ve(l,l.return,W)}}i&&x&64&&hb(y),ds(y,y.return);break;case 27:bb(y);case 26:case 5:Wr(d,y,i),i&&l===null&&x&4&&mb(y),ds(y,y.return);break;case 12:Wr(d,y,i);break;case 13:Wr(d,y,i),i&&x&4&&Eb(d,y);break;case 22:y.memoizedState===null&&Wr(d,y,i),ds(y,y.return);break;case 30:break;default:Wr(d,y,i)}a=a.sibling}}function Pd(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&Xi(i))}function qd(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Xi(n))}function Hn(n,a,i,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Sb(n,a,i,l),a=a.sibling}function Sb(n,a,i,l){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Hn(n,a,i,l),d&2048&&fs(9,a);break;case 1:Hn(n,a,i,l);break;case 3:Hn(n,a,i,l),d&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Xi(n)));break;case 12:if(d&2048){Hn(n,a,i,l),n=a.stateNode;try{var y=a.memoizedProps,x=y.id,S=y.onPostCommit;typeof S=="function"&&S(x,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(R){Ve(a,a.return,R)}}else Hn(n,a,i,l);break;case 13:Hn(n,a,i,l);break;case 23:break;case 22:y=a.stateNode,x=a.alternate,a.memoizedState!==null?y._visibility&2?Hn(n,a,i,l):hs(n,a):y._visibility&2?Hn(n,a,i,l):(y._visibility|=2,zo(n,a,i,l,(a.subtreeFlags&10256)!==0)),d&2048&&Pd(x,a);break;case 24:Hn(n,a,i,l),d&2048&&qd(a.alternate,a);break;default:Hn(n,a,i,l)}}function zo(n,a,i,l,d){for(d=d&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var y=n,x=a,S=i,R=l,W=x.flags;switch(x.tag){case 0:case 11:case 15:zo(y,x,S,R,d),fs(8,x);break;case 23:break;case 22:var ee=x.stateNode;x.memoizedState!==null?ee._visibility&2?zo(y,x,S,R,d):hs(y,x):(ee._visibility|=2,zo(y,x,S,R,d)),d&&W&2048&&Pd(x.alternate,x);break;case 24:zo(y,x,S,R,d),d&&W&2048&&qd(x.alternate,x);break;default:zo(y,x,S,R,d)}a=a.sibling}}function hs(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,l=a,d=l.flags;switch(l.tag){case 22:hs(i,l),d&2048&&Pd(l.alternate,l);break;case 24:hs(i,l),d&2048&&qd(l.alternate,l);break;default:hs(i,l)}a=a.sibling}}var ps=8192;function Lo(n){if(n.subtreeFlags&ps)for(n=n.child;n!==null;)_b(n),n=n.sibling}function _b(n){switch(n.tag){case 26:Lo(n),n.flags&ps&&n.memoizedState!==null&&_A(Rn,n.memoizedState,n.memoizedProps);break;case 5:Lo(n);break;case 3:case 4:var a=Rn;Rn=Rl(n.stateNode.containerInfo),Lo(n),Rn=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=ps,ps=16777216,Lo(n),ps=a):Lo(n));break;default:Lo(n)}}function Bb(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function ms(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];yt=l,jb(l,n)}Bb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Tb(n),n=n.sibling}function Tb(n){switch(n.tag){case 0:case 11:case 15:ms(n),n.flags&2048&&Gr(9,n,n.return);break;case 3:ms(n);break;case 12:ms(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Cl(n)):ms(n);break;default:ms(n)}}function Cl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];yt=l,jb(l,n)}Bb(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Gr(8,a,a.return),Cl(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,Cl(a));break;default:Cl(a)}n=n.sibling}}function jb(n,a){for(;yt!==null;){var i=yt;switch(i.tag){case 0:case 11:case 15:Gr(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xi(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,yt=l;else e:for(i=n;yt!==null;){l=yt;var d=l.sibling,y=l.return;if(wb(l),l===i){yt=null;break e}if(d!==null){d.return=y,yt=d;break e}yt=y}}}var FE={getCacheForType:function(n){var a=jt(ft),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i}},HE=typeof WeakMap=="function"?WeakMap:Map,qe=0,$e=null,ke=null,Ne=0,Fe=0,on=null,$r=!1,Po=!1,Fd=!1,yr=0,Ze=0,Kr=0,Da=0,Hd=0,An=0,qo=0,gs=null,Wt=null,Qd=!1,Gd=0,El=1/0,Al=null,Yr=null,At=0,Xr=null,Fo=null,Ho=0,Vd=0,Wd=null,kb=null,bs=0,$d=null;function sn(){if((qe&2)!==0&&Ne!==0)return Ne&-Ne;if(I.T!==null){var n=ko;return n!==0?n:t0()}return Vm()}function Ob(){An===0&&(An=(Ne&536870912)===0||Pe?en():536870912);var n=En.current;return n!==null&&(n.flags|=32),An}function cn(n,a,i){(n===$e&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)&&(Qo(n,0),Zr(n,Ne,An,!1)),Ni(n,i),((qe&2)===0||n!==$e)&&(n===$e&&((qe&2)===0&&(Da|=i),Ze===4&&Zr(n,Ne,An,!1)),Qn(n))}function Mb(n,a,i){if((qe&6)!==0)throw Error(o(327));var l=!i&&(a&124)===0&&(a&n.expiredLanes)===0||Re(n,a),d=l?VE(n,a):Xd(n,a,!0),y=l;do{if(d===0){Po&&!l&&Zr(n,a,0,!1);break}else{if(i=n.current.alternate,y&&!QE(i)){d=Xd(n,a,!1),y=!1;continue}if(d===2){if(y=a,n.errorRecoveryDisabledLanes&y)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var S=n;d=gs;var R=S.current.memoizedState.isDehydrated;if(R&&(Qo(S,x).flags|=256),x=Xd(S,x,!1),x!==2){if(Fd&&!R){S.errorRecoveryDisabledLanes|=y,Da|=y,d=4;break e}y=Wt,Wt=d,y!==null&&(Wt===null?Wt=y:Wt.push.apply(Wt,y))}d=x}if(y=!1,d!==2)continue}}if(d===1){Qo(n,0),Zr(n,a,0,!0);break}e:{switch(l=n,y=d,y){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Zr(l,a,An,!$r);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(d=Gd+300-mn(),10<d)){if(Zr(l,a,An,!$r),Dt(l,0,!0)!==0)break e;l.timeoutHandle=sy(Rb.bind(null,l,i,Wt,Al,Qd,a,An,Da,qo,$r,y,2,-0,0),d);break e}Rb(l,i,Wt,Al,Qd,a,An,Da,qo,$r,y,0,-0,0)}}break}while(!0);Qn(n)}function Rb(n,a,i,l,d,y,x,S,R,W,ee,re,K,X){if(n.timeoutHandle=-1,re=a.subtreeFlags,(re&8192||(re&16785408)===16785408)&&(xs={stylesheets:null,count:0,unsuspend:SA},_b(a),re=BA(),re!==null)){n.cancelPendingCommit=re(Pb.bind(null,n,a,y,i,l,d,x,S,R,ee,1,K,X)),Zr(n,y,x,!W);return}Pb(n,a,y,i,l,d,x,S,R)}function QE(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var d=i[l],y=d.getSnapshot;d=d.value;try{if(!tn(y(),d))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Zr(n,a,i,l){a&=~Hd,a&=~Da,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var d=a;0<d;){var y=31-ot(d),x=1<<y;l[y]=-1,d&=~x}i!==0&&Qm(n,i,a)}function xl(){return(qe&6)===0?(ys(0),!1):!0}function Kd(){if(ke!==null){if(Fe===0)var n=ke.return;else n=ke,ur=Ta=null,dd(n),Io=null,cs=0,n=ke;for(;n!==null;)db(n.alternate,n),n=n.return;ke=null}}function Qo(n,a){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,cA(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Kd(),$e=n,ke=i=sr(n.current,null),Ne=a,Fe=0,on=null,$r=!1,Po=Re(n,a),Fd=!1,qo=An=Hd=Da=Kr=Ze=0,Wt=gs=null,Qd=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var d=31-ot(l),y=1<<d;a|=n[d],l&=~y}return yr=a,Vc(),i}function Db(n,a){Be=null,I.H=fl,a===Ji||a===tl?(a=X1(),Fe=3):a===$1?(a=X1(),Fe=4):Fe=a===Zg?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,on=a,ke===null&&(Ze=1,gl(n,yn(a,n.current)))}function Nb(){var n=I.H;return I.H=fl,n===null?fl:n}function Ib(){var n=I.A;return I.A=FE,n}function Yd(){Ze=4,$r||(Ne&4194048)!==Ne&&En.current!==null||(Po=!0),(Kr&134217727)===0&&(Da&134217727)===0||$e===null||Zr($e,Ne,An,!1)}function Xd(n,a,i){var l=qe;qe|=2;var d=Nb(),y=Ib();($e!==n||Ne!==a)&&(Al=null,Qo(n,a)),a=!1;var x=Ze;e:do try{if(Fe!==0&&ke!==null){var S=ke,R=on;switch(Fe){case 8:Kd(),x=6;break e;case 3:case 2:case 9:case 6:En.current===null&&(a=!0);var W=Fe;if(Fe=0,on=null,Go(n,S,R,W),i&&Po){x=0;break e}break;default:W=Fe,Fe=0,on=null,Go(n,S,R,W)}}GE(),x=Ze;break}catch(ee){Db(n,ee)}while(!0);return a&&n.shellSuspendCounter++,ur=Ta=null,qe=l,I.H=d,I.A=y,ke===null&&($e=null,Ne=0,Vc()),x}function GE(){for(;ke!==null;)Ub(ke)}function VE(n,a){var i=qe;qe|=2;var l=Nb(),d=Ib();$e!==n||Ne!==a?(Al=null,El=mn()+500,Qo(n,a)):Po=Re(n,a);e:do try{if(Fe!==0&&ke!==null){a=ke;var y=on;t:switch(Fe){case 1:Fe=0,on=null,Go(n,a,y,1);break;case 2:case 9:if(K1(y)){Fe=0,on=null,zb(a);break}a=function(){Fe!==2&&Fe!==9||$e!==n||(Fe=7),Qn(n)},y.then(a,a);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:K1(y)?(Fe=0,on=null,zb(a)):(Fe=0,on=null,Go(n,a,y,7));break;case 5:var x=null;switch(ke.tag){case 26:x=ke.memoizedState;case 5:case 27:var S=ke;if(!x||vy(x)){Fe=0,on=null;var R=S.sibling;if(R!==null)ke=R;else{var W=S.return;W!==null?(ke=W,Sl(W)):ke=null}break t}}Fe=0,on=null,Go(n,a,y,5);break;case 6:Fe=0,on=null,Go(n,a,y,6);break;case 8:Kd(),Ze=6;break e;default:throw Error(o(462))}}WE();break}catch(ee){Db(n,ee)}while(!0);return ur=Ta=null,I.H=l,I.A=d,qe=i,ke!==null?0:($e=null,Ne=0,Vc(),Ze)}function WE(){for(;ke!==null&&!Rc();)Ub(ke)}function Ub(n){var a=ub(n.alternate,n,yr);n.memoizedProps=n.pendingProps,a===null?Sl(n):ke=a}function zb(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=ab(i,a,a.pendingProps,a.type,void 0,Ne);break;case 11:a=ab(i,a,a.pendingProps,a.type.render,a.ref,Ne);break;case 5:dd(a);default:db(i,a),a=ke=L1(a,yr),a=ub(i,a,yr)}n.memoizedProps=n.pendingProps,a===null?Sl(n):ke=a}function Go(n,a,i,l){ur=Ta=null,dd(a),Io=null,cs=0;var d=a.return;try{if(IE(n,d,a,i,Ne)){Ze=1,gl(n,yn(i,n.current)),ke=null;return}}catch(y){if(d!==null)throw ke=d,y;Ze=1,gl(n,yn(i,n.current)),ke=null;return}a.flags&32768?(Pe||l===1?n=!0:Po||(Ne&536870912)!==0?n=!1:($r=n=!0,(l===2||l===9||l===3||l===6)&&(l=En.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lb(a,n)):Sl(a)}function Sl(n){var a=n;do{if((a.flags&32768)!==0){Lb(a,$r);return}n=a.return;var i=zE(a.alternate,a,yr);if(i!==null){ke=i;return}if(a=a.sibling,a!==null){ke=a;return}ke=a=n}while(a!==null);Ze===0&&(Ze=5)}function Lb(n,a){do{var i=LE(n.alternate,n);if(i!==null){i.flags&=32767,ke=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){ke=n;return}ke=n=i}while(n!==null);Ze=6,ke=null}function Pb(n,a,i,l,d,y,x,S,R){n.cancelPendingCommit=null;do _l();while(At!==0);if((qe&6)!==0)throw Error(o(327));if(a!==null){if(a===n.current)throw Error(o(177));if(y=a.lanes|a.childLanes,y|=qf,SC(n,i,y,x,S,R),n===$e&&(ke=$e=null,Ne=0),Fo=a,Xr=n,Ho=i,Vd=y,Wd=d,kb=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,XE(so,function(){return Gb(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=I.T,I.T=null,d=Y.p,Y.p=2,x=qe,qe|=4;try{PE(n,a,i)}finally{qe=x,Y.p=d,I.T=l}}At=1,qb(),Fb(),Hb()}}function qb(){if(At===1){At=0;var n=Xr,a=Fo,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=I.T,I.T=null;var l=Y.p;Y.p=2;var d=qe;qe|=4;try{Ab(a,n);var y=l0,x=j1(n.containerInfo),S=y.focusedElem,R=y.selectionRange;if(x!==S&&S&&S.ownerDocument&&T1(S.ownerDocument.documentElement,S)){if(R!==null&&If(S)){var W=R.start,ee=R.end;if(ee===void 0&&(ee=W),"selectionStart"in S)S.selectionStart=W,S.selectionEnd=Math.min(ee,S.value.length);else{var re=S.ownerDocument||document,K=re&&re.defaultView||window;if(K.getSelection){var X=K.getSelection(),Ee=S.textContent.length,ve=Math.min(R.start,Ee),Ge=R.end===void 0?ve:Math.min(R.end,Ee);!X.extend&&ve>Ge&&(x=Ge,Ge=ve,ve=x);var P=B1(S,ve),z=B1(S,Ge);if(P&&z&&(X.rangeCount!==1||X.anchorNode!==P.node||X.anchorOffset!==P.offset||X.focusNode!==z.node||X.focusOffset!==z.offset)){var H=re.createRange();H.setStart(P.node,P.offset),X.removeAllRanges(),ve>Ge?(X.addRange(H),X.extend(z.node,z.offset)):(H.setEnd(z.node,z.offset),X.addRange(H))}}}}for(re=[],X=S;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<re.length;S++){var ne=re[S];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}zl=!!c0,l0=c0=null}finally{qe=d,Y.p=l,I.T=i}}n.current=a,At=2}}function Fb(){if(At===2){At=0;var n=Xr,a=Fo,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=I.T,I.T=null;var l=Y.p;Y.p=2;var d=qe;qe|=4;try{vb(n,a.alternate,a)}finally{qe=d,Y.p=l,I.T=i}}At=3}}function Hb(){if(At===4||At===3){At=0,Dc();var n=Xr,a=Fo,i=Ho,l=kb;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?At=5:(At=0,Fo=Xr=null,Qb(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Yr=null),mf(i),a=a.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Nr,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=I.T,d=Y.p,Y.p=2,I.T=null;try{for(var y=n.onRecoverableError,x=0;x<l.length;x++){var S=l[x];y(S.value,{componentStack:S.stack})}}finally{I.T=a,Y.p=d}}(Ho&3)!==0&&_l(),Qn(n),d=n.pendingLanes,(i&4194090)!==0&&(d&42)!==0?n===$d?bs++:(bs=0,$d=n):bs=0,ys(0)}}function Qb(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Xi(a)))}function _l(n){return qb(),Fb(),Hb(),Gb()}function Gb(){if(At!==5)return!1;var n=Xr,a=Vd;Vd=0;var i=mf(Ho),l=I.T,d=Y.p;try{Y.p=32>i?32:i,I.T=null,i=Wd,Wd=null;var y=Xr,x=Ho;if(At=0,Fo=Xr=null,Ho=0,(qe&6)!==0)throw Error(o(331));var S=qe;if(qe|=4,Tb(y.current),Sb(y,y.current,x,i),qe=S,ys(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Nr,y)}catch{}return!0}finally{Y.p=d,I.T=l,Qb(n,a)}}function Vb(n,a,i){a=yn(i,a),a=_d(n.stateNode,a,2),n=qr(n,a,2),n!==null&&(Ni(n,2),Qn(n))}function Ve(n,a,i){if(n.tag===3)Vb(n,n,i);else for(;a!==null;){if(a.tag===3){Vb(a,n,i);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Yr===null||!Yr.has(l))){n=yn(i,n),i=Yg(2),l=qr(a,i,2),l!==null&&(Xg(i,l,a,n),Ni(l,2),Qn(l));break}}a=a.return}}function Zd(n,a,i){var l=n.pingCache;if(l===null){l=n.pingCache=new HE;var d=new Set;l.set(a,d)}else d=l.get(a),d===void 0&&(d=new Set,l.set(a,d));d.has(i)||(Fd=!0,d.add(i),n=$E.bind(null,n,a,i),a.then(n,n))}function $E(n,a,i){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,$e===n&&(Ne&i)===i&&(Ze===4||Ze===3&&(Ne&62914560)===Ne&&300>mn()-Gd?(qe&2)===0&&Qo(n,0):Hd|=i,qo===Ne&&(qo=0)),Qn(n)}function Wb(n,a){a===0&&(a=lo()),n=_o(n,a),n!==null&&(Ni(n,a),Qn(n))}function KE(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),Wb(n,i)}function YE(n,a){var i=0;switch(n.tag){case 13:var l=n.stateNode,d=n.memoizedState;d!==null&&(i=d.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(a),Wb(n,i)}function XE(n,a){return ar(n,a)}var Bl=null,Vo=null,Jd=!1,Tl=!1,e0=!1,Na=0;function Qn(n){n!==Vo&&n.next===null&&(Vo===null?Bl=Vo=n:Vo=Vo.next=n),Tl=!0,Jd||(Jd=!0,JE())}function ys(n,a){if(!e0&&Tl){e0=!0;do for(var i=!1,l=Bl;l!==null;){if(n!==0){var d=l.pendingLanes;if(d===0)var y=0;else{var x=l.suspendedLanes,S=l.pingedLanes;y=(1<<31-ot(42|n)+1)-1,y&=d&~(x&~S),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(i=!0,Xb(l,y))}else y=Ne,y=Dt(l,l===$e?y:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(y&3)===0||Re(l,y)||(i=!0,Xb(l,y));l=l.next}while(i);e0=!1}}function ZE(){$b()}function $b(){Tl=Jd=!1;var n=0;Na!==0&&(sA()&&(n=Na),Na=0);for(var a=mn(),i=null,l=Bl;l!==null;){var d=l.next,y=Kb(l,a);y===0?(l.next=null,i===null?Bl=d:i.next=d,d===null&&(Vo=i)):(i=l,(n!==0||(y&3)!==0)&&(Tl=!0)),l=d}ys(n)}function Kb(n,a){for(var i=n.suspendedLanes,l=n.pingedLanes,d=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var x=31-ot(y),S=1<<x,R=d[x];R===-1?((S&i)===0||(S&l)!==0)&&(d[x]=Se(S,a)):R<=a&&(n.expiredLanes|=S),y&=~S}if(a=$e,i=Ne,i=Dt(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,i===0||n===a&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&oo(l),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Re(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(l!==null&&oo(l),mf(i)){case 2:case 8:i=Rr;break;case 32:i=so;break;case 268435456:i=Dr;break;default:i=so}return l=Yb.bind(null,n),i=ar(i,l),n.callbackPriority=a,n.callbackNode=i,a}return l!==null&&l!==null&&oo(l),n.callbackPriority=2,n.callbackNode=null,2}function Yb(n,a){if(At!==0&&At!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(_l()&&n.callbackNode!==i)return null;var l=Ne;return l=Dt(n,n===$e?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(Mb(n,l,a),Kb(n,mn()),n.callbackNode!=null&&n.callbackNode===i?Yb.bind(null,n):null)}function Xb(n,a){if(_l())return null;Mb(n,a,!0)}function JE(){lA(function(){(qe&6)!==0?ar(Ri,ZE):$b()})}function t0(){return Na===0&&(Na=en()),Na}function Zb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Lc(""+n)}function Jb(n,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,n.id&&i.setAttribute("form",n.id),a.parentNode.insertBefore(i,a),n=new FormData(n),i.parentNode.removeChild(i),n}function eA(n,a,i,l,d){if(a==="submit"&&i&&i.stateNode===d){var y=Zb((d[Ht]||null).action),x=l.submitter;x&&(a=(a=x[Ht]||null)?Zb(a.formAction):x.getAttribute("formAction"),a!==null&&(y=a,x=null));var S=new Hc("action","action",null,l,d);n.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Na!==0){var R=x?Jb(d,x):new FormData(d);Cd(i,{pending:!0,data:R,method:d.method,action:y},null,R)}}else typeof y=="function"&&(S.preventDefault(),R=x?Jb(d,x):new FormData(d),Cd(i,{pending:!0,data:R,method:d.method,action:y},y,R))},currentTarget:d}]})}}for(var n0=0;n0<Pf.length;n0++){var r0=Pf[n0],tA=r0.toLowerCase(),nA=r0[0].toUpperCase()+r0.slice(1);Mn(tA,"on"+nA)}Mn(M1,"onAnimationEnd"),Mn(R1,"onAnimationIteration"),Mn(D1,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(vE,"onTransitionRun"),Mn(wE,"onTransitionStart"),Mn(CE,"onTransitionCancel"),Mn(N1,"onTransitionEnd"),go("onMouseEnter",["mouseout","mouseover"]),go("onMouseLeave",["mouseout","mouseover"]),go("onPointerEnter",["pointerout","pointerover"]),go("onPointerLeave",["pointerout","pointerover"]),va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),va("onBeforeInput",["compositionend","keypress","textInput","paste"]),va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vs));function ey(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var l=n[i],d=l.event;l=l.listeners;e:{var y=void 0;if(a)for(var x=l.length-1;0<=x;x--){var S=l[x],R=S.instance,W=S.currentTarget;if(S=S.listener,R!==y&&d.isPropagationStopped())break e;y=S,d.currentTarget=W;try{y(d)}catch(ee){ml(ee)}d.currentTarget=null,y=R}else for(x=0;x<l.length;x++){if(S=l[x],R=S.instance,W=S.currentTarget,S=S.listener,R!==y&&d.isPropagationStopped())break e;y=S,d.currentTarget=W;try{y(d)}catch(ee){ml(ee)}d.currentTarget=null,y=R}}}}function Oe(n,a){var i=a[gf];i===void 0&&(i=a[gf]=new Set);var l=n+"__bubble";i.has(l)||(ty(a,n,2,!1),i.add(l))}function a0(n,a,i){var l=0;a&&(l|=4),ty(i,n,l,a)}var jl="_reactListening"+Math.random().toString(36).slice(2);function o0(n){if(!n[jl]){n[jl]=!0,$m.forEach(function(i){i!=="selectionchange"&&(rA.has(i)||a0(i,!1,n),a0(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[jl]||(a[jl]=!0,a0("selectionchange",!1,a))}}function ty(n,a,i,l){switch(Sy(a)){case 2:var d=kA;break;case 8:d=OA;break;default:d=v0}i=d.bind(null,a,i,n),d=void 0,!Bf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),l?d!==void 0?n.addEventListener(a,i,{capture:!0,passive:d}):n.addEventListener(a,i,!0):d!==void 0?n.addEventListener(a,i,{passive:d}):n.addEventListener(a,i,!1)}function i0(n,a,i,l,d){var y=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var S=l.stateNode.containerInfo;if(S===d)break;if(x===4)for(x=l.return;x!==null;){var R=x.tag;if((R===3||R===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;S!==null;){if(x=ho(S),x===null)return;if(R=x.tag,R===5||R===6||R===26||R===27){l=y=x;continue e}S=S.parentNode}}l=l.return}c1(function(){var W=y,ee=Sf(i),re=[];e:{var K=I1.get(n);if(K!==void 0){var X=Hc,Ee=n;switch(n){case"keypress":if(qc(i)===0)break e;case"keydown":case"keyup":X=XC;break;case"focusin":Ee="focus",X=Of;break;case"focusout":Ee="blur",X=Of;break;case"beforeblur":case"afterblur":X=Of;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=f1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=LC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=eE;break;case M1:case R1:case D1:X=FC;break;case N1:X=nE;break;case"scroll":case"scrollend":X=UC;break;case"wheel":X=aE;break;case"copy":case"cut":case"paste":X=QC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=h1;break;case"toggle":case"beforetoggle":X=iE}var ve=(a&4)!==0,Ge=!ve&&(n==="scroll"||n==="scrollend"),P=ve?K!==null?K+"Capture":null:K;ve=[];for(var z=W,H;z!==null;){var ne=z;if(H=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||H===null||P===null||(ne=zi(z,P),ne!=null&&ve.push(ws(z,ne,H))),Ge)break;z=z.return}0<ve.length&&(K=new X(K,Ee,null,i,ee),re.push({event:K,listeners:ve}))}}if((a&7)===0){e:{if(K=n==="mouseover"||n==="pointerover",X=n==="mouseout"||n==="pointerout",K&&i!==xf&&(Ee=i.relatedTarget||i.fromElement)&&(ho(Ee)||Ee[fo]))break e;if((X||K)&&(K=ee.window===ee?ee:(K=ee.ownerDocument)?K.defaultView||K.parentWindow:window,X?(Ee=i.relatedTarget||i.toElement,X=W,Ee=Ee?ho(Ee):null,Ee!==null&&(Ge=c(Ee),ve=Ee.tag,Ee!==Ge||ve!==5&&ve!==27&&ve!==6)&&(Ee=null)):(X=null,Ee=W),X!==Ee)){if(ve=f1,ne="onMouseLeave",P="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(ve=h1,ne="onPointerLeave",P="onPointerEnter",z="pointer"),Ge=X==null?K:Ui(X),H=Ee==null?K:Ui(Ee),K=new ve(ne,z+"leave",X,i,ee),K.target=Ge,K.relatedTarget=H,ne=null,ho(ee)===W&&(ve=new ve(P,z+"enter",Ee,i,ee),ve.target=H,ve.relatedTarget=Ge,ne=ve),Ge=ne,X&&Ee)t:{for(ve=X,P=Ee,z=0,H=ve;H;H=Wo(H))z++;for(H=0,ne=P;ne;ne=Wo(ne))H++;for(;0<z-H;)ve=Wo(ve),z--;for(;0<H-z;)P=Wo(P),H--;for(;z--;){if(ve===P||P!==null&&ve===P.alternate)break t;ve=Wo(ve),P=Wo(P)}ve=null}else ve=null;X!==null&&ny(re,K,X,ve,!1),Ee!==null&&Ge!==null&&ny(re,Ge,Ee,ve,!0)}}e:{if(K=W?Ui(W):window,X=K.nodeName&&K.nodeName.toLowerCase(),X==="select"||X==="input"&&K.type==="file")var pe=C1;else if(v1(K))if(E1)pe=gE;else{pe=pE;var Te=hE}else X=K.nodeName,!X||X.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?W&&Af(W.elementType)&&(pe=C1):pe=mE;if(pe&&(pe=pe(n,W))){w1(re,pe,i,ee);break e}Te&&Te(n,K,W),n==="focusout"&&W&&K.type==="number"&&W.memoizedProps.value!=null&&Ef(K,"number",K.value)}switch(Te=W?Ui(W):window,n){case"focusin":(v1(Te)||Te.contentEditable==="true")&&(Ao=Te,Uf=W,Vi=null);break;case"focusout":Vi=Uf=Ao=null;break;case"mousedown":zf=!0;break;case"contextmenu":case"mouseup":case"dragend":zf=!1,k1(re,i,ee);break;case"selectionchange":if(yE)break;case"keydown":case"keyup":k1(re,i,ee)}var be;if(Rf)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Eo?b1(n,i)&&(Ce="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Ce="onCompositionStart");Ce&&(p1&&i.locale!=="ko"&&(Eo||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Eo&&(be=l1()):(Ur=ee,Tf="value"in Ur?Ur.value:Ur.textContent,Eo=!0)),Te=kl(W,Ce),0<Te.length&&(Ce=new d1(Ce,n,null,i,ee),re.push({event:Ce,listeners:Te}),be?Ce.data=be:(be=y1(i),be!==null&&(Ce.data=be)))),(be=cE?lE(n,i):uE(n,i))&&(Ce=kl(W,"onBeforeInput"),0<Ce.length&&(Te=new d1("onBeforeInput","beforeinput",null,i,ee),re.push({event:Te,listeners:Ce}),Te.data=be)),eA(re,n,W,i,ee)}ey(re,a)})}function ws(n,a,i){return{instance:n,listener:a,currentTarget:i}}function kl(n,a){for(var i=a+"Capture",l=[];n!==null;){var d=n,y=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||y===null||(d=zi(n,i),d!=null&&l.unshift(ws(n,d,y)),d=zi(n,a),d!=null&&l.push(ws(n,d,y))),n.tag===3)return l;n=n.return}return[]}function Wo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ny(n,a,i,l,d){for(var y=a._reactName,x=[];i!==null&&i!==l;){var S=i,R=S.alternate,W=S.stateNode;if(S=S.tag,R!==null&&R===l)break;S!==5&&S!==26&&S!==27||W===null||(R=W,d?(W=zi(i,y),W!=null&&x.unshift(ws(i,W,R))):d||(W=zi(i,y),W!=null&&x.push(ws(i,W,R)))),i=i.return}x.length!==0&&n.push({event:a,listeners:x})}var aA=/\r\n?/g,oA=/\u0000|\uFFFD/g;function ry(n){return(typeof n=="string"?n:""+n).replace(aA,`
`).replace(oA,"")}function ay(n,a){return a=ry(a),ry(n)===a}function Ol(){}function Qe(n,a,i,l,d,y){switch(i){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||vo(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&vo(n,""+l);break;case"className":Ic(n,"class",l);break;case"tabIndex":Ic(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ic(n,i,l);break;case"style":i1(n,l,y);break;case"data":if(a!=="object"){Ic(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Lc(""+l),n.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(i==="formAction"?(a!=="input"&&Qe(n,a,"name",d.name,d,null),Qe(n,a,"formEncType",d.formEncType,d,null),Qe(n,a,"formMethod",d.formMethod,d,null),Qe(n,a,"formTarget",d.formTarget,d,null)):(Qe(n,a,"encType",d.encType,d,null),Qe(n,a,"method",d.method,d,null),Qe(n,a,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Lc(""+l),n.setAttribute(i,l);break;case"onClick":l!=null&&(n.onclick=Ol);break;case"onScroll":l!=null&&Oe("scroll",n);break;case"onScrollEnd":l!=null&&Oe("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(d.children!=null)throw Error(o(60));n.innerHTML=i}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}i=Lc(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""+l):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":l===!0?n.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,l):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(i,l):n.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(i):n.setAttribute(i,l);break;case"popover":Oe("beforetoggle",n),Oe("toggle",n),Nc(n,"popover",l);break;case"xlinkActuate":or(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":or(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":or(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":or(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":or(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":or(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":or(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":or(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":or(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Nc(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=NC.get(i)||i,Nc(n,i,l))}}function s0(n,a,i,l,d,y){switch(i){case"style":i1(n,l,y);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(d.children!=null)throw Error(o(60));n.innerHTML=i}}break;case"children":typeof l=="string"?vo(n,l):(typeof l=="number"||typeof l=="bigint")&&vo(n,""+l);break;case"onScroll":l!=null&&Oe("scroll",n);break;case"onScrollEnd":l!=null&&Oe("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Km.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),a=i.slice(2,d?i.length-7:void 0),y=n[Ht]||null,y=y!=null?y[i]:null,typeof y=="function"&&n.removeEventListener(a,y,d),typeof l=="function")){typeof y!="function"&&y!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(a,l,d);break e}i in n?n[i]=l:l===!0?n.setAttribute(i,""):Nc(n,i,l)}}}function xt(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",n),Oe("load",n);var l=!1,d=!1,y;for(y in i)if(i.hasOwnProperty(y)){var x=i[y];if(x!=null)switch(y){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:Qe(n,a,y,x,i,null)}}d&&Qe(n,a,"srcSet",i.srcSet,i,null),l&&Qe(n,a,"src",i.src,i,null);return;case"input":Oe("invalid",n);var S=y=x=d=null,R=null,W=null;for(l in i)if(i.hasOwnProperty(l)){var ee=i[l];if(ee!=null)switch(l){case"name":d=ee;break;case"type":x=ee;break;case"checked":R=ee;break;case"defaultChecked":W=ee;break;case"value":y=ee;break;case"defaultValue":S=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(o(137,a));break;default:Qe(n,a,l,ee,i,null)}}n1(n,y,S,R,W,x,d,!1),Uc(n);return;case"select":Oe("invalid",n),l=x=y=null;for(d in i)if(i.hasOwnProperty(d)&&(S=i[d],S!=null))switch(d){case"value":y=S;break;case"defaultValue":x=S;break;case"multiple":l=S;default:Qe(n,a,d,S,i,null)}a=y,i=x,n.multiple=!!l,a!=null?yo(n,!!l,a,!1):i!=null&&yo(n,!!l,i,!0);return;case"textarea":Oe("invalid",n),y=d=l=null;for(x in i)if(i.hasOwnProperty(x)&&(S=i[x],S!=null))switch(x){case"value":l=S;break;case"defaultValue":d=S;break;case"children":y=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(91));break;default:Qe(n,a,x,S,i,null)}a1(n,l,d,y),Uc(n);return;case"option":for(R in i)if(i.hasOwnProperty(R)&&(l=i[R],l!=null))switch(R){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qe(n,a,R,l,i,null)}return;case"dialog":Oe("beforetoggle",n),Oe("toggle",n),Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":Oe("load",n);break;case"video":case"audio":for(l=0;l<vs.length;l++)Oe(vs[l],n);break;case"image":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"embed":case"source":case"link":Oe("error",n),Oe("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in i)if(i.hasOwnProperty(W)&&(l=i[W],l!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:Qe(n,a,W,l,i,null)}return;default:if(Af(a)){for(ee in i)i.hasOwnProperty(ee)&&(l=i[ee],l!==void 0&&s0(n,a,ee,l,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(l=i[S],l!=null&&Qe(n,a,S,l,i,null))}function iA(n,a,i,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,y=null,x=null,S=null,R=null,W=null,ee=null;for(X in i){var re=i[X];if(i.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":R=re;default:l.hasOwnProperty(X)||Qe(n,a,X,null,l,re)}}for(var K in l){var X=l[K];if(re=i[K],l.hasOwnProperty(K)&&(X!=null||re!=null))switch(K){case"type":y=X;break;case"name":d=X;break;case"checked":W=X;break;case"defaultChecked":ee=X;break;case"value":x=X;break;case"defaultValue":S=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(o(137,a));break;default:X!==re&&Qe(n,a,K,X,l,re)}}Cf(n,x,S,R,W,ee,y,d);return;case"select":X=x=S=K=null;for(y in i)if(R=i[y],i.hasOwnProperty(y)&&R!=null)switch(y){case"value":break;case"multiple":X=R;default:l.hasOwnProperty(y)||Qe(n,a,y,null,l,R)}for(d in l)if(y=l[d],R=i[d],l.hasOwnProperty(d)&&(y!=null||R!=null))switch(d){case"value":K=y;break;case"defaultValue":S=y;break;case"multiple":x=y;default:y!==R&&Qe(n,a,d,y,l,R)}a=S,i=x,l=X,K!=null?yo(n,!!i,K,!1):!!l!=!!i&&(a!=null?yo(n,!!i,a,!0):yo(n,!!i,i?[]:"",!1));return;case"textarea":X=K=null;for(S in i)if(d=i[S],i.hasOwnProperty(S)&&d!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Qe(n,a,S,null,l,d)}for(x in l)if(d=l[x],y=i[x],l.hasOwnProperty(x)&&(d!=null||y!=null))switch(x){case"value":K=d;break;case"defaultValue":X=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:d!==y&&Qe(n,a,x,d,l,y)}r1(n,K,X);return;case"option":for(var Ee in i)if(K=i[Ee],i.hasOwnProperty(Ee)&&K!=null&&!l.hasOwnProperty(Ee))switch(Ee){case"selected":n.selected=!1;break;default:Qe(n,a,Ee,null,l,K)}for(R in l)if(K=l[R],X=i[R],l.hasOwnProperty(R)&&K!==X&&(K!=null||X!=null))switch(R){case"selected":n.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:Qe(n,a,R,K,l,X)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in i)K=i[ve],i.hasOwnProperty(ve)&&K!=null&&!l.hasOwnProperty(ve)&&Qe(n,a,ve,null,l,K);for(W in l)if(K=l[W],X=i[W],l.hasOwnProperty(W)&&K!==X&&(K!=null||X!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(o(137,a));break;default:Qe(n,a,W,K,l,X)}return;default:if(Af(a)){for(var Ge in i)K=i[Ge],i.hasOwnProperty(Ge)&&K!==void 0&&!l.hasOwnProperty(Ge)&&s0(n,a,Ge,void 0,l,K);for(ee in l)K=l[ee],X=i[ee],!l.hasOwnProperty(ee)||K===X||K===void 0&&X===void 0||s0(n,a,ee,K,l,X);return}}for(var P in i)K=i[P],i.hasOwnProperty(P)&&K!=null&&!l.hasOwnProperty(P)&&Qe(n,a,P,null,l,K);for(re in l)K=l[re],X=i[re],!l.hasOwnProperty(re)||K===X||K==null&&X==null||Qe(n,a,re,K,l,X)}var c0=null,l0=null;function Ml(n){return n.nodeType===9?n:n.ownerDocument}function oy(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function iy(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function u0(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var f0=null;function sA(){var n=window.event;return n&&n.type==="popstate"?n===f0?!1:(f0=n,!0):(f0=null,!1)}var sy=typeof setTimeout=="function"?setTimeout:void 0,cA=typeof clearTimeout=="function"?clearTimeout:void 0,cy=typeof Promise=="function"?Promise:void 0,lA=typeof queueMicrotask=="function"?queueMicrotask:typeof cy<"u"?function(n){return cy.resolve(null).then(n).catch(uA)}:sy;function uA(n){setTimeout(function(){throw n})}function Jr(n){return n==="head"}function ly(n,a){var i=a,l=0,d=0;do{var y=i.nextSibling;if(n.removeChild(i),y&&y.nodeType===8)if(i=y.data,i==="/$"){if(0<l&&8>l){i=l;var x=n.ownerDocument;if(i&1&&Cs(x.documentElement),i&2&&Cs(x.body),i&4)for(i=x.head,Cs(i),x=i.firstChild;x;){var S=x.nextSibling,R=x.nodeName;x[Ii]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&x.rel.toLowerCase()==="stylesheet"||i.removeChild(x),x=S}}if(d===0){n.removeChild(y),js(a);return}d--}else i==="$"||i==="$?"||i==="$!"?d++:l=i.charCodeAt(0)-48;else l=0;i=y}while(i);js(a)}function d0(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":d0(i),bf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function fA(n,a,i,l){for(;n.nodeType===1;){var d=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Ii])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var y=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Dn(n.nextSibling),n===null)break}return null}function dA(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=Dn(n.nextSibling),n===null))return null;return n}function h0(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function hA(n,a){var i=n.ownerDocument;if(n.data!=="$?"||i.readyState==="complete")a();else{var l=function(){a(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Dn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var p0=null;function uy(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return n;a--}else i==="/$"&&a++}n=n.previousSibling}return null}function fy(n,a,i){switch(a=Ml(i),n){case"html":if(n=a.documentElement,!n)throw Error(o(452));return n;case"head":if(n=a.head,!n)throw Error(o(453));return n;case"body":if(n=a.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}function Cs(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);bf(n)}var xn=new Map,dy=new Set;function Rl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var vr=Y.d;Y.d={f:pA,r:mA,D:gA,C:bA,L:yA,m:vA,X:CA,S:wA,M:EA};function pA(){var n=vr.f(),a=xl();return n||a}function mA(n){var a=po(n);a!==null&&a.tag===5&&a.type==="form"?Mg(a):vr.r(n)}var $o=typeof document>"u"?null:document;function hy(n,a,i){var l=$o;if(l&&typeof a=="string"&&a){var d=bn(a);d='link[rel="'+n+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),dy.has(d)||(dy.add(d),n={rel:n,crossOrigin:i,href:a},l.querySelector(d)===null&&(a=l.createElement("link"),xt(a,"link",n),gt(a),l.head.appendChild(a)))}}function gA(n){vr.D(n),hy("dns-prefetch",n,null)}function bA(n,a){vr.C(n,a),hy("preconnect",n,a)}function yA(n,a,i){vr.L(n,a,i);var l=$o;if(l&&n&&a){var d='link[rel="preload"][as="'+bn(a)+'"]';a==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+bn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+bn(i.imageSizes)+'"]')):d+='[href="'+bn(n)+'"]';var y=d;switch(a){case"style":y=Ko(n);break;case"script":y=Yo(n)}xn.has(y)||(n=g({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),xn.set(y,n),l.querySelector(d)!==null||a==="style"&&l.querySelector(Es(y))||a==="script"&&l.querySelector(As(y))||(a=l.createElement("link"),xt(a,"link",n),gt(a),l.head.appendChild(a)))}}function vA(n,a){vr.m(n,a);var i=$o;if(i&&n){var l=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+bn(l)+'"][href="'+bn(n)+'"]',y=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Yo(n)}if(!xn.has(y)&&(n=g({rel:"modulepreload",href:n},a),xn.set(y,n),i.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(As(y)))return}l=i.createElement("link"),xt(l,"link",n),gt(l),i.head.appendChild(l)}}}function wA(n,a,i){vr.S(n,a,i);var l=$o;if(l&&n){var d=mo(l).hoistableStyles,y=Ko(n);a=a||"default";var x=d.get(y);if(!x){var S={loading:0,preload:null};if(x=l.querySelector(Es(y)))S.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":a},i),(i=xn.get(y))&&m0(n,i);var R=x=l.createElement("link");gt(R),xt(R,"link",n),R._p=new Promise(function(W,ee){R.onload=W,R.onerror=ee}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Dl(x,a,l)}x={type:"stylesheet",instance:x,count:1,state:S},d.set(y,x)}}}function CA(n,a){vr.X(n,a);var i=$o;if(i&&n){var l=mo(i).hoistableScripts,d=Yo(n),y=l.get(d);y||(y=i.querySelector(As(d)),y||(n=g({src:n,async:!0},a),(a=xn.get(d))&&g0(n,a),y=i.createElement("script"),gt(y),xt(y,"link",n),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(d,y))}}function EA(n,a){vr.M(n,a);var i=$o;if(i&&n){var l=mo(i).hoistableScripts,d=Yo(n),y=l.get(d);y||(y=i.querySelector(As(d)),y||(n=g({src:n,async:!0,type:"module"},a),(a=xn.get(d))&&g0(n,a),y=i.createElement("script"),gt(y),xt(y,"link",n),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(d,y))}}function py(n,a,i,l){var d=(d=fe.current)?Rl(d):null;if(!d)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Ko(i.href),i=mo(d).hoistableStyles,l=i.get(a),l||(l={type:"style",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=Ko(i.href);var y=mo(d).hoistableStyles,x=y.get(n);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,x),(y=d.querySelector(Es(n)))&&!y._p&&(x.instance=y,x.state.loading=5),xn.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},xn.set(n,i),y||AA(d,n,i,x.state))),a&&l===null)throw Error(o(528,""));return x}if(a&&l!==null)throw Error(o(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Yo(i),i=mo(d).hoistableScripts,l=i.get(a),l||(l={type:"script",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}function Ko(n){return'href="'+bn(n)+'"'}function Es(n){return'link[rel="stylesheet"]['+n+"]"}function my(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function AA(n,a,i,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),xt(a,"link",i),gt(a),n.head.appendChild(a))}function Yo(n){return'[src="'+bn(n)+'"]'}function As(n){return"script[async]"+n}function gy(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+bn(i.href)+'"]');if(l)return a.instance=l,gt(l),l;var d=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),gt(l),xt(l,"style",d),Dl(l,i.precedence,n),a.instance=l;case"stylesheet":d=Ko(i.href);var y=n.querySelector(Es(d));if(y)return a.state.loading|=4,a.instance=y,gt(y),y;l=my(i),(d=xn.get(d))&&m0(l,d),y=(n.ownerDocument||n).createElement("link"),gt(y);var x=y;return x._p=new Promise(function(S,R){x.onload=S,x.onerror=R}),xt(y,"link",l),a.state.loading|=4,Dl(y,i.precedence,n),a.instance=y;case"script":return y=Yo(i.src),(d=n.querySelector(As(y)))?(a.instance=d,gt(d),d):(l=i,(d=xn.get(y))&&(l=g({},i),g0(l,d)),n=n.ownerDocument||n,d=n.createElement("script"),gt(d),xt(d,"link",l),n.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Dl(l,i.precedence,n));return a.instance}function Dl(n,a,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,y=d,x=0;x<l.length;x++){var S=l[x];if(S.dataset.precedence===a)y=S;else if(y!==d)break}y?y.parentNode.insertBefore(n,y.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function m0(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function g0(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Nl=null;function by(n,a,i){if(Nl===null){var l=new Map,d=Nl=new Map;d.set(i,l)}else d=Nl,l=d.get(i),l||(l=new Map,d.set(i,l));if(l.has(n))return l;for(l.set(n,null),i=i.getElementsByTagName(n),d=0;d<i.length;d++){var y=i[d];if(!(y[Ii]||y[Tt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var x=y.getAttribute(a)||"";x=n+x;var S=l.get(x);S?S.push(y):l.set(x,[y])}}return l}function yy(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function xA(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function vy(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var xs=null;function SA(){}function _A(n,a,i){if(xs===null)throw Error(o(475));var l=xs;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Ko(i.href),y=n.querySelector(Es(d));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(l.count++,l=Il.bind(l),n.then(l,l)),a.state.loading|=4,a.instance=y,gt(y);return}y=n.ownerDocument||n,i=my(i),(d=xn.get(d))&&m0(i,d),y=y.createElement("link"),gt(y);var x=y;x._p=new Promise(function(S,R){x.onload=S,x.onerror=R}),xt(y,"link",i),a.instance=y}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=Il.bind(l),n.addEventListener("load",a),n.addEventListener("error",a))}}function BA(){if(xs===null)throw Error(o(475));var n=xs;return n.stylesheets&&n.count===0&&b0(n,n.stylesheets),0<n.count?function(a){var i=setTimeout(function(){if(n.stylesheets&&b0(n,n.stylesheets),n.unsuspend){var l=n.unsuspend;n.unsuspend=null,l()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(i)}}:null}function Il(){if(this.count--,this.count===0){if(this.stylesheets)b0(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Ul=null;function b0(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Ul=new Map,a.forEach(TA,n),Ul=null,Il.call(n))}function TA(n,a){if(!(a.state.loading&4)){var i=Ul.get(n);if(i)var l=i.get(null);else{i=new Map,Ul.set(n,i);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<d.length;y++){var x=d[y];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),l=x)}l&&i.set(null,l)}d=a.instance,x=d.getAttribute("data-precedence"),y=i.get(x)||l,y===l&&i.set(null,d),i.set(x,d),this.count++,l=Il.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),y?y.parentNode.insertBefore(d,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),a.state.loading|=4}}var Ss={$$typeof:_,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function jA(n,a,i,l,d,y,x,S){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.hiddenUpdates=uo(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=y,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function wy(n,a,i,l,d,y,x,S,R,W,ee,re){return n=new jA(n,a,i,x,S,R,W,re),a=1,y===!0&&(a|=24),y=nn(3,null,null,a),n.current=y,y.stateNode=n,a=Zf(),a.refCount++,n.pooledCache=a,a.refCount++,y.memoizedState={element:l,isDehydrated:i,cache:a},nd(y),n}function Cy(n){return n?(n=Bo,n):Bo}function Ey(n,a,i,l,d,y){d=Cy(d),l.context===null?l.context=d:l.pendingContext=d,l=Pr(a),l.payload={element:i},y=y===void 0?null:y,y!==null&&(l.callback=y),i=qr(n,l,a),i!==null&&(cn(i,n,a),ts(i,n,a))}function Ay(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function y0(n,a){Ay(n,a),(n=n.alternate)&&Ay(n,a)}function xy(n){if(n.tag===13){var a=_o(n,67108864);a!==null&&cn(a,n,67108864),y0(n,67108864)}}var zl=!0;function kA(n,a,i,l){var d=I.T;I.T=null;var y=Y.p;try{Y.p=2,v0(n,a,i,l)}finally{Y.p=y,I.T=d}}function OA(n,a,i,l){var d=I.T;I.T=null;var y=Y.p;try{Y.p=8,v0(n,a,i,l)}finally{Y.p=y,I.T=d}}function v0(n,a,i,l){if(zl){var d=w0(l);if(d===null)i0(n,a,l,Ll,i),_y(n,l);else if(RA(d,n,a,i,l))l.stopPropagation();else if(_y(n,l),a&4&&-1<MA.indexOf(n)){for(;d!==null;){var y=po(d);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var x=Ct(y.pendingLanes);if(x!==0){var S=y;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var R=1<<31-ot(x);S.entanglements[1]|=R,x&=~R}Qn(y),(qe&6)===0&&(El=mn()+500,ys(0))}}break;case 13:S=_o(y,2),S!==null&&cn(S,y,2),xl(),y0(y,2)}if(y=w0(l),y===null&&i0(n,a,l,Ll,i),y===d)break;d=y}d!==null&&l.stopPropagation()}else i0(n,a,l,null,i)}}function w0(n){return n=Sf(n),C0(n)}var Ll=null;function C0(n){if(Ll=null,n=ho(n),n!==null){var a=c(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=u(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Ll=n,null}function Sy(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(io()){case Ri:return 2;case Rr:return 8;case so:case Di:return 32;case Dr:return 268435456;default:return 32}default:return 32}}var E0=!1,ea=null,ta=null,na=null,_s=new Map,Bs=new Map,ra=[],MA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function _y(n,a){switch(n){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":_s.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bs.delete(a.pointerId)}}function Ts(n,a,i,l,d,y){return n===null||n.nativeEvent!==y?(n={blockedOn:a,domEventName:i,eventSystemFlags:l,nativeEvent:y,targetContainers:[d]},a!==null&&(a=po(a),a!==null&&xy(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),n)}function RA(n,a,i,l,d){switch(a){case"focusin":return ea=Ts(ea,n,a,i,l,d),!0;case"dragenter":return ta=Ts(ta,n,a,i,l,d),!0;case"mouseover":return na=Ts(na,n,a,i,l,d),!0;case"pointerover":var y=d.pointerId;return _s.set(y,Ts(_s.get(y)||null,n,a,i,l,d)),!0;case"gotpointercapture":return y=d.pointerId,Bs.set(y,Ts(Bs.get(y)||null,n,a,i,l,d)),!0}return!1}function By(n){var a=ho(n.target);if(a!==null){var i=c(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){n.blockedOn=a,_C(n.priority,function(){if(i.tag===13){var l=sn();l=pf(l);var d=_o(i,l);d!==null&&cn(d,i,l),y0(i,l)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Pl(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=w0(n.nativeEvent);if(i===null){i=n.nativeEvent;var l=new i.constructor(i.type,i);xf=l,i.target.dispatchEvent(l),xf=null}else return a=po(i),a!==null&&xy(a),n.blockedOn=i,!1;a.shift()}return!0}function Ty(n,a,i){Pl(n)&&i.delete(a)}function DA(){E0=!1,ea!==null&&Pl(ea)&&(ea=null),ta!==null&&Pl(ta)&&(ta=null),na!==null&&Pl(na)&&(na=null),_s.forEach(Ty),Bs.forEach(Ty)}function ql(n,a){n.blockedOn===a&&(n.blockedOn=null,E0||(E0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,DA)))}var Fl=null;function jy(n){Fl!==n&&(Fl=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Fl===n&&(Fl=null);for(var a=0;a<n.length;a+=3){var i=n[a],l=n[a+1],d=n[a+2];if(typeof l!="function"){if(C0(l||i)===null)continue;break}var y=po(i);y!==null&&(n.splice(a,3),a-=3,Cd(y,{pending:!0,data:d,method:i.method,action:l},l,d))}}))}function js(n){function a(R){return ql(R,n)}ea!==null&&ql(ea,n),ta!==null&&ql(ta,n),na!==null&&ql(na,n),_s.forEach(a),Bs.forEach(a);for(var i=0;i<ra.length;i++){var l=ra[i];l.blockedOn===n&&(l.blockedOn=null)}for(;0<ra.length&&(i=ra[0],i.blockedOn===null);)By(i),i.blockedOn===null&&ra.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var d=i[l],y=i[l+1],x=d[Ht]||null;if(typeof y=="function")x||jy(i);else if(x){var S=null;if(y&&y.hasAttribute("formAction")){if(d=y,x=y[Ht]||null)S=x.formAction;else if(C0(d)!==null)continue}else S=x.action;typeof S=="function"?i[l+1]=S:(i.splice(l,3),l-=3),jy(i)}}}function A0(n){this._internalRoot=n}Hl.prototype.render=A0.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(o(409));var i=a.current,l=sn();Ey(i,l,n,a,null,null)},Hl.prototype.unmount=A0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Ey(n.current,2,null,n,null,null),xl(),a[fo]=null}};function Hl(n){this._internalRoot=n}Hl.prototype.unstable_scheduleHydration=function(n){if(n){var a=Vm();n={blockedOn:null,target:n,priority:a};for(var i=0;i<ra.length&&a!==0&&a<ra[i].priority;i++);ra.splice(i,0,n),i===0&&By(n)}};var ky=t.version;if(ky!=="19.1.1")throw Error(o(527,ky,"19.1.1"));Y.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=p(a),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var NA={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ql.isDisabled&&Ql.supportsFiber)try{Nr=Ql.inject(NA),Bt=Ql}catch{}}return Os.createRoot=function(n,a){if(!s(n))throw Error(o(299));var i=!1,l="",d=Vg,y=Wg,x=$g,S=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(S=a.unstable_transitionCallbacks)),a=wy(n,1,!1,null,null,i,l,d,y,x,S,null),n[fo]=a.current,o0(n),new A0(a)},Os.hydrateRoot=function(n,a,i){if(!s(n))throw Error(o(299));var l=!1,d="",y=Vg,x=Wg,S=$g,R=null,W=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(R=i.unstable_transitionCallbacks),i.formState!==void 0&&(W=i.formState)),a=wy(n,1,!0,a,i??null,l,d,y,x,S,R,W),a.context=Cy(null),i=a.current,l=sn(),l=pf(l),d=Pr(l),d.callback=null,qr(i,d,l),i=l,a.current.lanes=i,Ni(a,i),Qn(a),n[fo]=a.current,o0(n),new Hl(a)},Os.version="19.1.1",Os}var Py;function QA(){if(Py)return _0.exports;Py=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_0.exports=HA(),_0.exports}var GA=QA();const VA="modulepreload",WA=function(e){return"/"+e},qy={},de=function(t,r,o){let s=Promise.resolve();if(r&&r.length>0){let p=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");s=p(r.map(h=>{if(h=WA(h),h in qy)return;qy[h]=!0;const g=h.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${b}`))return;const m=document.createElement("link");if(m.rel=g?"stylesheet":VA,g||(m.as="script"),m.crossOrigin="",m.href=h,f&&m.setAttribute("nonce",f),document.head.appendChild(m),g)return new Promise((v,w)=>{m.addEventListener("load",v),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};var Fy='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',$A={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${Fy}`,system:Fy},Ms={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},KA={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},pw=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:r="none"})=>({blurs:{modalOverlay:KA[r].modalOverlay},fonts:{body:$A[t]},radii:{actionButton:Ms[e].actionButton,connectButton:Ms[e].connectButton,menuButton:Ms[e].connectButton,modal:Ms[e].modal,modalMobile:Ms[e].modalMobile}}),cu="#1A1B1F",mw={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:cu},orange:{accentColor:"#FF983D",accentColorForeground:cu},pink:{accentColor:"#FF7AB8",accentColorForeground:cu},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},Hy=mw.blue,gw=({accentColor:e=Hy.accentColor,accentColorForeground:t=Hy.accentColorForeground,...r}={})=>({...pw(r),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:cu,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});gw.accentColors=mw;var bw={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},Qy=bw.blue,yw=({accentColor:e=Qy.accentColor,accentColorForeground:t=Qy.accentColorForeground,...r}={})=>({...pw(r),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});yw.accentColors=bw;var _h=`{
  "connect_wallet": {
    "label": "Connect Wallet",
    "wrong_network": {
      "label": "Wrong network"
    }
  },

  "intro": {
    "title": "What is a Wallet?",
    "description": "A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",
    "digital_asset": {
      "title": "A Home for your Digital Assets",
      "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
    },
    "login": {
      "title": "A New Way to Log In",
      "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
    },
    "get": {
      "label": "Get a Wallet"
    },
    "learn_more": {
      "label": "Learn More"
    }
  },

  "sign_in": {
    "label": "Verify your account",
    "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
    "message": {
      "send": "Sign message",
      "preparing": "Preparing message...",
      "cancel": "Cancel",
      "preparing_error": "Error preparing message, please retry!"
    },
    "signature": {
      "waiting": "Waiting for signature...",
      "verifying": "Verifying signature...",
      "signing_error": "Error signing message, please retry!",
      "verifying_error": "Error verifying signature, please retry!",
      "oops_error": "Oops, something went wrong!"
    }
  },

  "connect": {
    "label": "Connect",
    "title": "Connect a Wallet",
    "new_to_ethereum": {
      "description": "New to Ethereum wallets?",
      "learn_more": {
        "label": "Learn More"
      }
    },
    "learn_more": {
      "label": "Learn more"
    },
    "recent": "Recent",
    "status": {
      "opening": "Opening %{wallet}...",
      "connecting": "Connecting",
      "connect_mobile": "Continue in %{wallet}",
      "not_installed": "%{wallet} is not installed",
      "not_available": "%{wallet} is not available",
      "confirm": "Confirm connection in the extension",
      "confirm_mobile": "Accept connection request in the wallet"
    },
    "secondary_action": {
      "get": {
        "description": "Don't have %{wallet}?",
        "label": "GET"
      },
      "install": {
        "label": "INSTALL"
      },
      "retry": {
        "label": "RETRY"
      }
    },
    "walletconnect": {
      "description": {
        "full": "Need the official WalletConnect modal?",
        "compact": "Need the WalletConnect modal?"
      },
      "open": {
        "label": "OPEN"
      }
    }
  },

  "connect_scan": {
    "title": "Scan with %{wallet}",
    "fallback_title": "Scan with your phone"
  },

  "connector_group": {
    "installed": "Installed",
    "recommended": "Recommended",
    "other": "Other",
    "popular": "Popular",
    "more": "More",
    "others": "Others"
  },

  "get": {
    "title": "Get a Wallet",
    "action": {
      "label": "GET"
    },
    "mobile": {
      "description": "Mobile Wallet"
    },
    "extension": {
      "description": "Browser Extension"
    },
    "mobile_and_extension": {
      "description": "Mobile Wallet and Extension"
    },
    "mobile_and_desktop": {
      "description": "Mobile and Desktop Wallet"
    },
    "looking_for": {
      "title": "Not what you're looking for?",
      "mobile": {
        "description": "Select a wallet on the main screen to get started with a different wallet provider."
      },
      "desktop": {
        "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
        "wide_description": "Select a wallet on the left to get started with a different wallet provider."
      }
    }
  },

  "get_options": {
    "title": "Get started with %{wallet}",
    "short_title": "Get %{wallet}",
    "mobile": {
      "title": "%{wallet} for Mobile",
      "description": "Use the mobile wallet to explore the world of Ethereum.",
      "download": {
        "label": "Get the app"
      }
    },
    "extension": {
      "title": "%{wallet} for %{browser}",
      "description": "Access your wallet right from your favorite web browser.",
      "download": {
        "label": "Add to %{browser}"
      }
    },
    "desktop": {
      "title": "%{wallet} for %{platform}",
      "description": "Access your wallet natively from your powerful desktop.",
      "download": {
        "label": "Add to %{platform}"
      }
    }
  },

  "get_mobile": {
    "title": "Install %{wallet}",
    "description": "Scan with your phone to download on iOS or Android",
    "continue": {
      "label": "Continue"
    }
  },

  "get_instructions": {
    "mobile": {
      "connect": {
        "label": "Connect"
      },
      "learn_more": {
        "label": "Learn More"
      }
    },
    "extension": {
      "refresh": {
        "label": "Refresh"
      },
      "learn_more": {
        "label": "Learn More"
      }
    },
    "desktop": {
      "connect": {
        "label": "Connect"
      },
      "learn_more": {
        "label": "Learn More"
      }
    }
  },

  "chains": {
    "title": "Switch Networks",
    "wrong_network": "Wrong network detected, switch or disconnect to continue.",
    "confirm": "Confirm in Wallet",
    "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
    "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
    "disconnect": "Disconnect",
    "connected": "Connected"
  },

  "profile": {
    "disconnect": {
      "label": "Disconnect"
    },
    "copy_address": {
      "label": "Copy Address",
      "copied": "Copied!"
    },
    "explorer": {
      "label": "View more on explorer"
    },
    "transactions": {
      "description": "%{appName} transactions will appear here...",
      "description_fallback": "Your transactions will appear here...",
      "recent": {
        "title": "Recent Transactions"
      },
      "clear": {
        "label": "Clear All"
      }
    }
  },

  "wallet_connectors": {
    "argent": {
      "qr_code": {
        "step1": {
          "description": "Put Argent on your home screen for faster access to your wallet.",
          "title": "Open the Argent app"
        },
        "step2": {
          "description": "Create a wallet and username, or import an existing wallet.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the Scan QR button"
        }
      }
    },

    "berasig": {
      "extension": {
        "step1": {
          "title": "Install the BeraSig extension",
          "description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "best": {
      "qr_code": {
        "step1": {
          "title": "Open the Best Wallet app",
          "description": "Add Best Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "bifrost": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
          "title": "Open the Bifrost Wallet app"
        },
        "step2": {
          "description": "Create or import a wallet using your recovery phrase.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      }
    },

    "bitget": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
          "title": "Open the Bitget Wallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Bitget Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "bitski": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
          "title": "Install the Bitski extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "bitverse": {
      "qr_code": {
        "step1": {
          "title": "Open the Bitverse Wallet app",
          "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "bloom": {
      "desktop": {
        "step1": {
          "title": "Open the Bloom Wallet app",
          "description": "We recommend putting Bloom Wallet on your home screen for quicker access."
        },
        "step2": {
          "description": "Create or import a wallet using your recovery phrase.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
          "title": "Click on Connect"
        }
      }
    },

    "bybit": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",
          "title": "Open the Bybit app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",
          "title": "Install the Bybit Wallet extension"
        },
        "step2": {
          "description": "Create a new wallet or import an existing one.",
          "title": "Create or Import a wallet"
        },
        "step3": {
          "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "binance": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Binance on your home screen for faster access to your wallet.",
          "title": "Open the Binance app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the WalletConnect button"
        }
      }
    },

    "coin98": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
          "title": "Open the Coin98 Wallet app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the WalletConnect button"
        }
      },

      "extension": {
        "step1": {
          "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
          "title": "Install the Coin98 Wallet extension"
        },
        "step2": {
          "description": "Create a new wallet or import an existing one.",
          "title": "Create or Import a wallet"
        },
        "step3": {
          "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "coinbase": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
          "title": "Open the Coinbase Wallet app"
        },
        "step2": {
          "description": "You can easily backup your wallet using the cloud backup feature.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Coinbase Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "compass": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Compass Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "core": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Core on your home screen for faster access to your wallet.",
          "title": "Open the Core app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the WalletConnect button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
          "title": "Install the Core extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "fox": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting FoxWallet on your home screen for quicker access.",
          "title": "Open the FoxWallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      }
    },

    "frontier": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
          "title": "Open the Frontier Wallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Frontier Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "im_token": {
      "qr_code": {
        "step1": {
          "title": "Open the imToken app",
          "description": "Put imToken app on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap Scanner Icon in top right corner",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      }
    },

    "iopay": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",
          "title": "Open the ioPay app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the WalletConnect button"
        }
      }
    },

    "kaikas": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",
          "title": "Install the Kaikas extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the Kaikas app",
          "description": "Put Kaikas app on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap Scanner Icon in top right corner",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      }
    },

    "kaia": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",
          "title": "Install the Kaia extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the Kaia app",
          "description": "Put Kaia app on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap Scanner Icon in top right corner",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      }
    },

    "kraken": {
      "qr_code": {
        "step1": {
          "title": "Open the Kraken Wallet app",
          "description": "Add Kraken Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "kresus": {
      "qr_code": {
        "step1": {
          "title": "Open the Kresus Wallet app",
          "description": "Add Kresus Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "magicEden": {
      "extension": {
        "step1": {
          "title": "Install the Magic Eden extension",
          "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "metamask": {
      "qr_code": {
        "step1": {
          "title": "Open the MetaMask app",
          "description": "We recommend putting MetaMask on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the MetaMask extension",
          "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "nestwallet": {
      "extension": {
        "step1": {
          "title": "Install the NestWallet extension",
          "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "okx": {
      "qr_code": {
        "step1": {
          "title": "Open the OKX Wallet app",
          "description": "We recommend putting OKX Wallet on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the OKX Wallet extension",
          "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "omni": {
      "qr_code": {
        "step1": {
          "title": "Open the Omni app",
          "description": "Add Omni to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "1inch": {
      "qr_code": {
        "step1": {
          "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",
          "title": "Open the 1inch Wallet app"
        },
        "step2": {
          "description": "Create a wallet and username, or import an existing wallet.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the Scan QR button"
        }
      }
    },

    "token_pocket": {
      "qr_code": {
        "step1": {
          "title": "Open the TokenPocket app",
          "description": "We recommend putting TokenPocket on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the TokenPocket extension",
          "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "trust": {
      "qr_code": {
        "step1": {
          "title": "Open the Trust Wallet app",
          "description": "Put Trust Wallet on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap WalletConnect in Settings",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the Trust Wallet extension",
          "description": "Click at the top right of your browser and pin Trust Wallet for easy access."
        },
        "step2": {
          "title": "Create or Import a wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "uniswap": {
      "qr_code": {
        "step1": {
          "title": "Open the Uniswap app",
          "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "zerion": {
      "qr_code": {
        "step1": {
          "title": "Open the Zerion app",
          "description": "We recommend putting Zerion on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the Zerion extension",
          "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "rainbow": {
      "qr_code": {
        "step1": {
          "title": "Open the Rainbow app",
          "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "You can easily backup your wallet using our backup feature on your phone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "enkrypt": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Enkrypt Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "frame": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
          "title": "Install Frame & the companion extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "one_key": {
      "extension": {
        "step1": {
          "title": "Install the OneKey Wallet extension",
          "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "paraswap": {
      "qr_code": {
        "step1": {
          "title": "Open the ParaSwap app",
          "description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "phantom": {
      "extension": {
        "step1": {
          "title": "Install the Phantom extension",
          "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "rabby": {
      "extension": {
        "step1": {
          "title": "Install the Rabby extension",
          "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "ronin": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",
          "title": "Open the Ronin Wallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Ronin Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "ramper": {
      "extension": {
        "step1": {
          "title": "Install the Ramper extension",
          "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "safeheron": {
      "extension": {
        "step1": {
          "title": "Install the Core extension",
          "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "taho": {
      "extension": {
        "step1": {
          "title": "Install the Taho extension",
          "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "wigwam": {
      "extension": {
        "step1": {
          "title": "Install the Wigwam extension",
          "description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "talisman": {
      "extension": {
        "step1": {
          "title": "Install the Talisman extension",
          "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import an Ethereum Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "xdefi": {
      "extension": {
        "step1": {
          "title": "Install the XDEFI Wallet extension",
          "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "zeal": {
      "qr_code": {
        "step1": {
          "title": "Open the Zeal app",
          "description": "Add Zeal Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      },
      "extension": {
        "step1": {
          "title": "Install the Zeal extension",
          "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "safepal": {
      "extension": {
        "step1": {
          "title": "Install the SafePal Wallet extension",
          "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
        },
        "step2": {
          "title": "Create or Import a wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the SafePal Wallet app",
          "description": "Put SafePal Wallet on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap WalletConnect in Settings",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      }
    },

    "desig": {
      "extension": {
        "step1": {
          "title": "Install the Desig extension",
          "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "subwallet": {
      "extension": {
        "step1": {
          "title": "Install the SubWallet extension",
          "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the SubWallet app",
          "description": "We recommend putting SubWallet on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "clv": {
      "extension": {
        "step1": {
          "title": "Install the CLV Wallet extension",
          "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the CLV Wallet app",
          "description": "We recommend putting CLV Wallet on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "okto": {
      "qr_code": {
        "step1": {
          "title": "Open the Okto app",
          "description": "Add Okto to your home screen for quick access"
        },
        "step2": {
          "title": "Create an MPC Wallet",
          "description": "Create an account and generate a wallet"
        },
        "step3": {
          "title": "Tap WalletConnect in Settings",
          "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
        }
      }
    },

    "ledger": {
      "desktop": {
        "step1": {
          "title": "Open the Ledger Live app",
          "description": "We recommend putting Ledger Live on your home screen for quicker access."
        },
        "step2": {
          "title": "Set up your Ledger",
          "description": "Set up a new Ledger or connect to an existing one."
        },
        "step3": {
          "title": "Connect",
          "description": "A connection prompt will appear for you to connect your wallet."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the Ledger Live app",
          "description": "We recommend putting Ledger Live on your home screen for quicker access."
        },
        "step2": {
          "title": "Set up your Ledger",
          "description": "You can either sync with the desktop app or connect your Ledger."
        },
        "step3": {
          "title": "Scan the code",
          "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "valora": {
      "qr_code": {
        "step1": {
          "title": "Open the Valora app",
          "description": "We recommend putting Valora on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or import a wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "gate": {
      "qr_code": {
        "step1": {
          "title": "Open the Gate app",
          "description": "We recommend putting Gate on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },
      "extension": {
        "step1": {
          "title": "Install the Gate extension",
          "description": "We recommend pinning Gate to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "xportal": {
      "qr_code": {
        "step1": {
          "description": "Put xPortal on your home screen for faster access to your wallet.",
          "title": "Open the xPortal app"
        },
        "step2": {
          "description": "Create a wallet or import an existing one.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the Scan QR button"
        }
      }
    },

    "mew": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting MEW Wallet on your home screen for quicker access.",
          "title": "Open the MEW Wallet app"
        },
        "step2": {
          "description": "You can easily backup your wallet using the cloud backup feature.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      }
    }
  },

  "zilpay": {
    "qr_code": {
      "step1": {
        "title": "Open the ZilPay app",
        "description": "Add ZilPay to your home screen for faster access to your wallet."
      },
      "step2": {
        "title": "Create or Import a Wallet",
        "description": "Create a new wallet or import an existing one."
      },
      "step3": {
        "title": "Tap the scan button",
        "description": "After you scan, a connection prompt will appear for you to connect your wallet."
      }
    }
  }
}
`;function YA(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var vw=YA;function ww(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");function r(o){if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return{[t.defaultCondition]:o}}if(Array.isArray(o)){if(!("responsiveArray"in t))throw new Error("Responsive arrays are not supported");var s={};for(var c in t.responsiveArray)o[c]!=null&&(s[t.responsiveArray[c]]=o[c]);return s}return o}return vw(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function XA(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var r=ww(e);function o(s,c){if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return c(s,t.defaultCondition)}var u=Array.isArray(s)?r(s):s,f={};for(var p in u)u[p]!=null&&(f[p]=c(u[p],p));return f}return vw(o,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function ZA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JA(e){var t=ZA(e,"string");return typeof t=="symbol"?t:String(t)}function ex(e,t,r){return t=JA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function k0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gy(Object(r),!0).forEach(function(o){ex(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gy(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var tx=e=>function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var s=Object.assign({},...r.map(p=>p.styles)),c=Object.keys(s),u=c.filter(p=>"mappings"in s[p]),f=p=>{var h=[],g={},b=k0({},p),m=!1;for(var v of u){var w=p[v];if(w!=null){var C=s[v];m=!0;for(var A of C.mappings)g[A]=w,b[A]==null&&delete b[A]}}var B=m?k0(k0({},g),b):p,T=function(){var k=B[_],D=s[_];try{if(D.mappings)return 1;if(typeof k=="string"||typeof k=="number")h.push(D.values[k].defaultClass);else if(Array.isArray(k))for(var U=0;U<k.length;U++){var Q=k[U];if(Q!=null){var F=D.responsiveArray[U];h.push(D.values[Q].conditions[F])}}else for(var ie in k){var le=k[ie];le!=null&&h.push(D.values[le].conditions[ie])}}catch(ae){throw ae}};for(var _ in B)T();return e(h.join(" "))};return Object.assign(f,{properties:new Set(c)})},nx=e=>e,rx=function(){return tx(nx)(...arguments)};const Bh=[{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"}],Th=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],Cw=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],Ew=[...Cw,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],ax=[...Cw,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],Vy=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Wy=[{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"}]}],$y=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],Ky=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}];function Un(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new bx(e.type);return`${e.name}(${Du(e.inputs,{includeName:t})})`}function Du(e,{includeName:t=!1}={}){return e?e.map(r=>ox(r,{includeName:t})).join(t?", ":","):""}function ox(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Du(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Xn(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Je(e){return Xn(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Aw="2.36.0";let O0={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${Aw}`},se=class jh extends Error{constructor(t,r={}){const o=r.cause instanceof jh?r.cause.details:r.cause?.message?r.cause.message:r.details,s=r.cause instanceof jh&&r.cause.docsPath||r.docsPath,c=O0.getDocsUrl?.({...r,docsPath:s}),u=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...o?[`Details: ${o}`]:[],...O0.version?[`Version: ${O0.version}`]:[]].join(`
`);super(u,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=o,this.docsPath=s,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=Aw}walk(t){return xw(this,t)}};function xw(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?xw(e.cause,t):t?null:e}class ix extends se{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class Yy extends se{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class Sw extends se{constructor({data:t,params:r,size:o}){super([`Data size of ${o} bytes is too small for given parameters.`].join(`
`),{metaMessages:[`Params: (${Du(r,{includeName:!0})})`,`Data:   ${t} (${o} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=r,this.size=o}}class bc extends se{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class sx extends se{constructor({expectedLength:t,givenLength:r,type:o}){super([`ABI encoding array length mismatch for type ${o}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class cx extends se{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${Je(r)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class lx extends se{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`
`),{name:"AbiEncodingLengthMismatchError"})}}class ux extends se{constructor(t,{docsPath:r}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
`),{docsPath:r,name:"AbiErrorInputsNotFoundError"})}}class Xy extends se{constructor(t,{docsPath:r}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
`),{docsPath:r,name:"AbiErrorNotFoundError"})}}class _w extends se{constructor(t,{docsPath:r}){super([`Encoded error signature "${t}" 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=${t}.`].join(`
`),{docsPath:r,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class fx extends se{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Bw extends se{constructor(t,{docsPath:r}){super([`Encoded event signature "${t}" 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=${t}.`].join(`
`),{docsPath:r,name:"AbiEventSignatureNotFoundError"})}}class Zy extends se{constructor(t,{docsPath:r}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
`),{docsPath:r,name:"AbiEventNotFoundError"})}}class pi extends se{constructor(t,{docsPath:r}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
`),{docsPath:r,name:"AbiFunctionNotFoundError"})}}class Tw extends se{constructor(t,{docsPath:r}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
`),{docsPath:r,name:"AbiFunctionOutputsNotFoundError"})}}class dx extends se{constructor(t,{docsPath:r}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
`),{docsPath:r,name:"AbiFunctionSignatureNotFoundError"})}}class hx extends se{constructor(t,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Un(t.abiItem)}\`, and`,`\`${r.type}\` in \`${Un(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let px=class extends se{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:"BytesSizeMismatchError"})}};class Fs extends se{constructor({abiItem:t,data:r,params:o,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`
`),{metaMessages:[`Params: (${Du(o,{includeName:!0})})`,`Data:   ${r} (${s} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=r,this.params=o,this.size=s}}class Nu extends se{constructor({abiItem:t,param:r}){super([`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${Un(t,{includeName:!0})}".`].join(`
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class mx extends se{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
`),{docsPath:r,name:"InvalidAbiEncodingType"})}}class gx extends se{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
`),{docsPath:r,name:"InvalidAbiDecodingType"})}}let jw=class extends se{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
`),{name:"InvalidArrayError"})}};class bx extends se{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
`),{name:"InvalidDefinitionTypeError"})}}class pN extends se{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}let ha=class extends se{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},kw=class extends se{constructor({offset:t,position:r,size:o}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${o}).`,{name:"SliceOffsetOutOfBoundsError"})}},Ow=class extends se{constructor({size:t,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}};class Jy extends se{constructor({size:t,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} is expected to be ${r} ${o} long, but is ${t} ${o} long.`,{name:"InvalidBytesLengthError"})}}function xi(e,{dir:t,size:r=32}={}){return typeof e=="string"?fa(e,{dir:t,size:r}):yx(e,{dir:t,size:r})}function fa(e,{dir:t,size:r=32}={}){if(r===null)return e;const o=e.replace("0x","");if(o.length>r*2)throw new Ow({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function yx(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new Ow({size:e.length,targetSize:r,type:"bytes"});const o=new Uint8Array(r);for(let s=0;s<r;s++){const c=t==="right";o[c?s:r-s-1]=e[c?s:e.length-s-1]}return o}let Mw=class extends se{constructor({max:t,min:r,signed:o,size:s,value:c}){super(`Number "${c}" is not in safe ${s?`${s*8}-bit ${o?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}};class vx extends se{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class wx extends se{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let Cx=class extends se{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function _r(e,{dir:t="left"}={}){let r=typeof e=="string"?e.replace("0x",""):e,o=0;for(let s=0;s<r.length-1&&r[t==="left"?s:r.length-s-1].toString()==="0";s++)o++;return r=t==="left"?r.slice(o):r.slice(0,r.length-o),typeof e=="string"?(r.length===1&&t==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}function On(e,{size:t}){if(Je(e)>t)throw new Cx({givenSize:Je(e),maxSize:t})}function Zn(e,t={}){const{signed:r}=t;t.size&&On(e,{size:t.size});const o=BigInt(e);if(!r)return o;const s=(e.length-2)/2,c=(1n<<BigInt(s)*8n-1n)-1n;return o<=c?o:o-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function Ex(e,t={}){let r=e;if(t.size&&(On(r,{size:t.size}),r=_r(r)),_r(r)==="0x00")return!1;if(_r(r)==="0x01")return!0;throw new wx(r)}function Jn(e,t={}){return Number(Zn(e,t))}function Rw(e,t={}){let r=jn(e);return t.size&&(On(r,{size:t.size}),r=_r(r,{dir:"right"})),new TextDecoder().decode(r)}const Ax=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Tr(e,t={}){return typeof e=="number"||typeof e=="bigint"?ge(e,t):typeof e=="string"?mi(e,t):typeof e=="boolean"?Dw(e,t):mt(e,t)}function Dw(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(On(r,{size:t.size}),xi(r,{size:t.size})):r}function mt(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=Ax[e[s]];const o=`0x${r}`;return typeof t.size=="number"?(On(o,{size:t.size}),xi(o,{dir:"right",size:t.size})):o}function ge(e,t={}){const{signed:r,size:o}=t,s=BigInt(e);let c;o?r?c=(1n<<BigInt(o)*8n-1n)-1n:c=2n**(BigInt(o)*8n)-1n:typeof e=="number"&&(c=BigInt(Number.MAX_SAFE_INTEGER));const u=typeof c=="bigint"&&r?-c-1n:0;if(c&&s>c||s<u){const p=typeof e=="bigint"?"n":"";throw new Mw({max:c?`${c}${p}`:void 0,min:`${u}${p}`,signed:r,size:o,value:`${e}${p}`})}const f=`0x${(r&&s<0?(1n<<BigInt(o*8))+BigInt(s):s).toString(16)}`;return o?xi(f,{size:o}):f}const xx=new TextEncoder;function mi(e,t={}){const r=xx.encode(e);return mt(r,t)}const Sx=new TextEncoder;function Si(e,t={}){return typeof e=="number"||typeof e=="bigint"?Bx(e,t):typeof e=="boolean"?_x(e,t):Xn(e)?jn(e,t):Ga(e,t)}function _x(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(On(r,{size:t.size}),xi(r,{size:t.size})):r}const wr={zero:48,nine:57,A:65,F:70,a:97,f:102};function ev(e){if(e>=wr.zero&&e<=wr.nine)return e-wr.zero;if(e>=wr.A&&e<=wr.F)return e-(wr.A-10);if(e>=wr.a&&e<=wr.f)return e-(wr.a-10)}function jn(e,t={}){let r=e;t.size&&(On(r,{size:t.size}),r=xi(r,{dir:"right",size:t.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,c=new Uint8Array(s);for(let u=0,f=0;u<s;u++){const p=ev(o.charCodeAt(f++)),h=ev(o.charCodeAt(f++));if(p===void 0||h===void 0)throw new se(`Invalid byte sequence ("${o[f-2]}${o[f-1]}" in "${o}").`);c[u]=p*16+h}return c}function Bx(e,t){const r=ge(e,t);return jn(r)}function Ga(e,t={}){const r=Sx.encode(e);return typeof t.size=="number"?(On(r,{size:t.size}),xi(r,{dir:"right",size:t.size})):r}const Gl=BigInt(2**32-1),tv=BigInt(32);function Tx(e,t=!1){return t?{h:Number(e&Gl),l:Number(e>>tv&Gl)}:{h:Number(e>>tv&Gl)|0,l:Number(e&Gl)|0}}function Nw(e,t=!1){const r=e.length;let o=new Uint32Array(r),s=new Uint32Array(r);for(let c=0;c<r;c++){const{h:u,l:f}=Tx(e[c],t);[o[c],s[c]]=[u,f]}return[o,s]}const nv=(e,t,r)=>e>>>r,rv=(e,t,r)=>e<<32-r|t>>>r,Xo=(e,t,r)=>e>>>r|t<<32-r,Zo=(e,t,r)=>e<<32-r|t>>>r,Vl=(e,t,r)=>e<<64-r|t>>>r-32,Wl=(e,t,r)=>e>>>r-32|t<<64-r,jx=(e,t,r)=>e<<r|t>>>32-r,kx=(e,t,r)=>t<<r|e>>>32-r,Ox=(e,t,r)=>t<<r-32|e>>>64-r,Mx=(e,t,r)=>e<<r-32|t>>>64-r;function Cr(e,t,r,o){const s=(t>>>0)+(o>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const Rx=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Dx=(e,t,r,o)=>t+r+o+(e/2**32|0)|0,Nx=(e,t,r,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(o>>>0),Ix=(e,t,r,o,s)=>t+r+o+s+(e/2**32|0)|0,Ux=(e,t,r,o,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(o>>>0)+(s>>>0),zx=(e,t,r,o,s,c)=>t+r+o+s+c+(e/2**32|0)|0,Jo=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Iu(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Hs(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function jr(e,...t){if(!Iu(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Iw(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Hs(e.outputLen),Hs(e.blockLen)}function gi(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Uw(e,t){jr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Lx(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function pa(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function M0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Gn(e,t){return e<<32-t|e>>>t}const Px=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function qx(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function Fx(e){for(let t=0;t<e.length;t++)e[t]=qx(e[t]);return e}const av=Px?e=>e:Fx,zw=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Hx=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function li(e){if(jr(e),zw)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Hx[e[r]];return t}const Er={_0:48,_9:57,A:65,F:70,a:97,f:102};function ov(e){if(e>=Er._0&&e<=Er._9)return e-Er._0;if(e>=Er.A&&e<=Er.F)return e-(Er.A-10);if(e>=Er.a&&e<=Er.f)return e-(Er.a-10)}function gu(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(zw)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(r);for(let s=0,c=0;s<r;s++,c+=2){const u=ov(e.charCodeAt(c)),f=ov(e.charCodeAt(c+1));if(u===void 0||f===void 0){const p=e[c]+e[c+1];throw new Error('hex string expected, got non-hex character "'+p+'" at index '+c)}o[s]=u*16+f}return o}function Qx(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Uu(e){return typeof e=="string"&&(e=Qx(e)),jr(e),e}function ua(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];jr(s),t+=s.length}const r=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const c=e[o];r.set(c,s),s+=c.length}return r}class Bp{}function zu(e){const t=o=>e().update(Uu(o)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Lw(e=32){if(Jo&&typeof Jo.getRandomValues=="function")return Jo.getRandomValues(new Uint8Array(e));if(Jo&&typeof Jo.randomBytes=="function")return Uint8Array.from(Jo.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const Gx=BigInt(0),Rs=BigInt(1),Vx=BigInt(2),Wx=BigInt(7),$x=BigInt(256),Kx=BigInt(113),Pw=[],qw=[],Fw=[];for(let e=0,t=Rs,r=1,o=0;e<24;e++){[r,o]=[o,(2*r+3*o)%5],Pw.push(2*(5*o+r)),qw.push((e+1)*(e+2)/2%64);let s=Gx;for(let c=0;c<7;c++)t=(t<<Rs^(t>>Wx)*Kx)%$x,t&Vx&&(s^=Rs<<(Rs<<BigInt(c))-Rs);Fw.push(s)}const Hw=Nw(Fw,!0),Yx=Hw[0],Xx=Hw[1],iv=(e,t,r)=>r>32?Ox(e,t,r):jx(e,t,r),sv=(e,t,r)=>r>32?Mx(e,t,r):kx(e,t,r);function Zx(e,t=24){const r=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let u=0;u<10;u++)r[u]=e[u]^e[u+10]^e[u+20]^e[u+30]^e[u+40];for(let u=0;u<10;u+=2){const f=(u+8)%10,p=(u+2)%10,h=r[p],g=r[p+1],b=iv(h,g,1)^r[f],m=sv(h,g,1)^r[f+1];for(let v=0;v<50;v+=10)e[u+v]^=b,e[u+v+1]^=m}let s=e[2],c=e[3];for(let u=0;u<24;u++){const f=qw[u],p=iv(s,c,f),h=sv(s,c,f),g=Pw[u];s=e[g],c=e[g+1],e[g]=p,e[g+1]=h}for(let u=0;u<50;u+=10){for(let f=0;f<10;f++)r[f]=e[u+f];for(let f=0;f<10;f++)e[u+f]^=~r[(f+2)%10]&r[(f+4)%10]}e[0]^=Yx[o],e[1]^=Xx[o]}pa(r)}class Tp extends Bp{constructor(t,r,o,s=!1,c=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=o,this.enableXOF=s,this.rounds=c,Hs(o),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=Lx(this.state)}clone(){return this._cloneInto()}keccak(){av(this.state32),Zx(this.state32,this.rounds),av(this.state32),this.posOut=0,this.pos=0}update(t){gi(this),t=Uu(t),jr(t);const{blockLen:r,state:o}=this,s=t.length;for(let c=0;c<s;){const u=Math.min(r-this.pos,s-c);for(let f=0;f<u;f++)o[this.pos++]^=t[c++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:o,blockLen:s}=this;t[o]^=r,(r&128)!==0&&o===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){gi(this,!1),jr(t),this.finish();const r=this.state,{blockLen:o}=this;for(let s=0,c=t.length;s<c;){this.posOut>=o&&this.keccak();const u=Math.min(o-this.posOut,c-s);t.set(r.subarray(this.posOut,this.posOut+u),s),this.posOut+=u,s+=u}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Hs(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Uw(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,pa(this.state)}_cloneInto(t){const{blockLen:r,suffix:o,outputLen:s,rounds:c,enableXOF:u}=this;return t||(t=new Tp(r,o,s,u,c)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=c,t.suffix=o,t.outputLen=s,t.enableXOF=u,t.destroyed=this.destroyed,t}}const Jx=(e,t,r)=>zu(()=>new Tp(t,e,r)),Qw=Jx(1,136,256/8);function St(e,t){const r=t||"hex",o=Qw(Xn(e,{strict:!1})?Si(e):e);return r==="bytes"?o:Tr(o)}let Lu=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const o=this.keys().next().value;o&&this.delete(o)}return this}};const e4=/^0x[a-fA-F0-9]{40}$/,R0=new Lu(8192);function dn(e,t){const{strict:r=!0}=t??{},o=`${e}.${r}`;if(R0.has(o))return R0.get(o);const s=e4.test(e)?e.toLowerCase()===e?!0:r?Pu(e)===e:!0:!1;return R0.set(o,s),s}const D0=new Lu(8192);function Pu(e,t){if(D0.has(`${e}.${t}`))return D0.get(`${e}.${t}`);const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),o=St(Ga(r),"bytes"),s=(t?r.substring(`${t}0x`.length):r).split("");for(let u=0;u<40;u+=2)o[u>>1]>>4>=8&&s[u]&&(s[u]=s[u].toUpperCase()),(o[u>>1]&15)>=8&&s[u+1]&&(s[u+1]=s[u+1].toUpperCase());const c=`0x${s.join("")}`;return D0.set(`${e}.${t}`,c),c}function pt(e,t){if(!dn(e,{strict:!1}))throw new ha({address:e});return Pu(e,t)}class cv extends se{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class Gw extends se{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class t4 extends se{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const n4={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new t4({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Gw({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new cv({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new cv({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function jp(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(n4);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function bi(e,t,r,{strict:o}={}){return Xn(e,{strict:!1})?Kw(e,t,r,{strict:o}):$w(e,t,r,{strict:o})}function Vw(e,t){if(typeof t=="number"&&t>0&&t>Je(e)-1)throw new kw({offset:t,position:"start",size:Je(e)})}function Ww(e,t,r){if(typeof t=="number"&&typeof r=="number"&&Je(e)!==r-t)throw new kw({offset:r,position:"end",size:Je(e)})}function $w(e,t,r,{strict:o}={}){Vw(e,t);const s=e.slice(t,r);return o&&Ww(s,t,r),s}function Kw(e,t,r,{strict:o}={}){Vw(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return o&&Ww(s,t,r),s}function r4(e,t={}){typeof t.size<"u"&&On(e,{size:t.size});const r=mt(e,t);return Zn(r,t)}function a4(e,t={}){let r=e;if(typeof t.size<"u"&&(On(r,{size:t.size}),r=_r(r)),r.length>1||r[0]>1)throw new vx(r);return!!r[0]}function Br(e,t={}){typeof t.size<"u"&&On(e,{size:t.size});const r=mt(e,t);return Jn(r,t)}function o4(e,t={}){let r=e;return typeof t.size<"u"&&(On(r,{size:t.size}),r=_r(r,{dir:"right"})),new TextDecoder().decode(r)}function er(e){return typeof e[0]=="string"?_i(e):i4(e)}function i4(e){let t=0;for(const s of e)t+=s.length;const r=new Uint8Array(t);let o=0;for(const s of e)r.set(s,o),o+=s.length;return r}function _i(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}const CN=/^(.*)\[([0-9]*)\]$/,s4=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Yw=/^(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 ba(e,t){if(e.length!==t.length)throw new lx({expectedLength:e.length,givenLength:t.length});const r=c4({params:e,values:t}),o=Op(r);return o.length===0?"0x":o}function c4({params:e,values:t}){const r=[];for(let o=0;o<e.length;o++)r.push(kp({param:e[o],value:t[o]}));return r}function kp({param:e,value:t}){const r=Mp(e.type);if(r){const[o,s]=r;return u4(t,{length:o,param:{...e,type:s}})}if(e.type==="tuple")return m4(t,{param:e});if(e.type==="address")return l4(t);if(e.type==="bool")return d4(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const o=e.type.startsWith("int"),[,,s="256"]=Yw.exec(e.type)??[];return h4(t,{signed:o,size:Number(s)})}if(e.type.startsWith("bytes"))return f4(t,{param:e});if(e.type==="string")return p4(t);throw new mx(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Op(e){let t=0;for(let c=0;c<e.length;c++){const{dynamic:u,encoded:f}=e[c];u?t+=32:t+=Je(f)}const r=[],o=[];let s=0;for(let c=0;c<e.length;c++){const{dynamic:u,encoded:f}=e[c];u?(r.push(ge(t+s,{size:32})),o.push(f),s+=Je(f)):r.push(f)}return er([...r,...o])}function l4(e){if(!dn(e))throw new ha({address:e});return{dynamic:!1,encoded:fa(e.toLowerCase())}}function u4(e,{length:t,param:r}){const o=t===null;if(!Array.isArray(e))throw new jw(e);if(!o&&e.length!==t)throw new sx({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let s=!1;const c=[];for(let u=0;u<e.length;u++){const f=kp({param:r,value:e[u]});f.dynamic&&(s=!0),c.push(f)}if(o||s){const u=Op(c);if(o){const f=ge(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?er([f,u]):f}}if(s)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:er(c.map(({encoded:u})=>u))}}function f4(e,{param:t}){const[,r]=t.type.split("bytes"),o=Je(e);if(!r){let s=e;return o%32!==0&&(s=fa(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:er([fa(ge(o,{size:32})),s])}}if(o!==Number.parseInt(r,10))throw new cx({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:fa(e,{dir:"right"})}}function d4(e){if(typeof e!="boolean")throw new se(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:fa(Dw(e))}}function h4(e,{signed:t,size:r=256}){if(typeof r=="number"){const o=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-o-1n:0n;if(e>o||e<s)throw new Mw({max:o.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:ge(e,{size:32,signed:t})}}function p4(e){const t=mi(e),r=Math.ceil(Je(t)/32),o=[];for(let s=0;s<r;s++)o.push(fa(bi(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:er([fa(ge(Je(t),{size:32})),...o])}}function m4(e,{param:t}){let r=!1;const o=[];for(let s=0;s<t.components.length;s++){const c=t.components[s],u=Array.isArray(e)?s:c.name,f=kp({param:c,value:e[u]});o.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?Op(o):er(o.map(({encoded:s})=>s))}}function Mp(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function yc(e,t){const r=typeof t=="string"?jn(t):t,o=jp(r);if(Je(r)===0&&e.length>0)throw new bc;if(Je(t)&&Je(t)<32)throw new Sw({data:typeof t=="string"?t:mt(t),params:e,size:Je(t)});let s=0;const c=[];for(let u=0;u<e.length;++u){const f=e[u];o.setPosition(s);const[p,h]=ui(o,f,{staticPosition:0});s+=h,c.push(p)}return c}function ui(e,t,{staticPosition:r}){const o=Mp(t.type);if(o){const[s,c]=o;return b4(e,{...t,type:c},{length:s,staticPosition:r})}if(t.type==="tuple")return C4(e,t,{staticPosition:r});if(t.type==="address")return g4(e);if(t.type==="bool")return y4(e);if(t.type.startsWith("bytes"))return v4(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return w4(e,t);if(t.type==="string")return E4(e,{staticPosition:r});throw new gx(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const lv=32,kh=32;function g4(e){const t=e.readBytes(32);return[Pu(mt($w(t,-20))),32]}function b4(e,t,{length:r,staticPosition:o}){if(!r){const u=Br(e.readBytes(kh)),f=o+u,p=f+lv;e.setPosition(f);const h=Br(e.readBytes(lv)),g=Qs(t);let b=0;const m=[];for(let v=0;v<h;++v){e.setPosition(p+(g?v*32:b));const[w,C]=ui(e,t,{staticPosition:p});b+=C,m.push(w)}return e.setPosition(o+32),[m,32]}if(Qs(t)){const u=Br(e.readBytes(kh)),f=o+u,p=[];for(let h=0;h<r;++h){e.setPosition(f+h*32);const[g]=ui(e,t,{staticPosition:f});p.push(g)}return e.setPosition(o+32),[p,32]}let s=0;const c=[];for(let u=0;u<r;++u){const[f,p]=ui(e,t,{staticPosition:o+s});s+=p,c.push(f)}return[c,s]}function y4(e){return[a4(e.readBytes(32),{size:32}),32]}function v4(e,t,{staticPosition:r}){const[o,s]=t.type.split("bytes");if(!s){const u=Br(e.readBytes(32));e.setPosition(r+u);const f=Br(e.readBytes(32));if(f===0)return e.setPosition(r+32),["0x",32];const p=e.readBytes(f);return e.setPosition(r+32),[mt(p),32]}return[mt(e.readBytes(Number.parseInt(s,10),32)),32]}function w4(e,t){const r=t.type.startsWith("int"),o=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[o>48?r4(s,{signed:r}):Br(s,{signed:r}),32]}function C4(e,t,{staticPosition:r}){const o=t.components.length===0||t.components.some(({name:u})=>!u),s=o?[]:{};let c=0;if(Qs(t)){const u=Br(e.readBytes(kh)),f=r+u;for(let p=0;p<t.components.length;++p){const h=t.components[p];e.setPosition(f+c);const[g,b]=ui(e,h,{staticPosition:f});c+=b,s[o?p:h?.name]=g}return e.setPosition(r+32),[s,32]}for(let u=0;u<t.components.length;++u){const f=t.components[u],[p,h]=ui(e,f,{staticPosition:r});s[o?u:f?.name]=p,c+=h}return[s,c]}function E4(e,{staticPosition:t}){const r=Br(e.readBytes(32)),o=t+r;e.setPosition(o);const s=Br(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const c=e.readBytes(s,32),u=o4(_r(c));return e.setPosition(t+32),[u,32]}function Qs(e){const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(Qs);const r=Mp(e.type);return!!(r&&Qs({...e,type:r[1]}))}const A4=e=>St(Si(e));function x4(e){return A4(e)}const S4="1.0.8";let hn=class Oh extends Error{constructor(t,r={}){const o=r.cause instanceof Oh?r.cause.details:r.cause?.message?r.cause.message:r.details,s=r.cause instanceof Oh&&r.cause.docsPath||r.docsPath,c=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...o?[`Details: ${o}`]:[],`Version: abitype@${S4}`].join(`
`);super(c),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),r.cause&&(this.cause=r.cause),this.details=o,this.docsPath=s,this.metaMessages=r.metaMessages,this.shortMessage=t}};function Or(e,t){return e.exec(t)?.groups}const Xw=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Zw=/^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)?$/,Jw=/^\(.+?\).*?$/,uv=/^tuple(?<array>(\[(\d*)\])*)$/;function Mh(e){let t=e.type;if(uv.test(e.type)&&"components"in e){t="(";const r=e.components.length;for(let s=0;s<r;s++){const c=e.components[s];t+=Mh(c),s<r-1&&(t+=", ")}const o=Or(uv,e.type);return t+=`)${o?.array??""}`,Mh({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Ds(e){let t="";const r=e.length;for(let o=0;o<r;o++){const s=e[o];t+=Mh(s),o!==r-1&&(t+=", ")}return t}function bu(e){return e.type==="function"?`function ${e.name}(${Ds(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${Ds(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Ds(e.inputs)})`:e.type==="error"?`error ${e.name}(${Ds(e.inputs)})`:e.type==="constructor"?`constructor(${Ds(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const e2=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function _4(e){return e2.test(e)}function B4(e){return Or(e2,e)}const t2=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function T4(e){return t2.test(e)}function j4(e){return Or(t2,e)}const n2=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function k4(e){return n2.test(e)}function O4(e){return Or(n2,e)}const r2=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Rp(e){return r2.test(e)}function M4(e){return Or(r2,e)}const a2=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function R4(e){return a2.test(e)}function D4(e){return Or(a2,e)}const o2=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function N4(e){return o2.test(e)}function I4(e){return Or(o2,e)}const U4=/^receive\(\) external payable$/;function z4(e){return U4.test(e)}const L4=new Set(["indexed"]),Rh=new Set(["calldata","memory","storage"]);class P4 extends hn{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class q4 extends hn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class F4 extends hn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class H4 extends hn{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Q4 extends hn{constructor({param:t,name:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class G4 extends hn{constructor({param:t,type:r,modifier:o}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${o}" not allowed${r?` in "${r}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class V4 extends hn{constructor({param:t,type:r,modifier:o}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${o}" not allowed${r?` in "${r}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${o}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class W4 extends hn{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Bi extends hn{constructor({signature:t,type:r}){super(`Invalid ${r} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class $4 extends hn{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class K4 extends hn{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class Y4 extends hn{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class X4 extends hn{constructor({current:t,depth:r}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${r>0?"opening":"closing"} parentheses.`],details:`Depth "${r}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function Z4(e,t,r){let o="";if(r)for(const s of Object.entries(r)){if(!s)continue;let c="";for(const u of s[1])c+=`[${u.type}${u.name?`:${u.name}`:""}]`;o+=`(${s[0]}{${c}})`}return t?`${t}:${e}${o}`:e}const N0=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Dh(e,t={}){if(k4(e))return J4(e,t);if(T4(e))return e7(e,t);if(_4(e))return t7(e,t);if(R4(e))return n7(e,t);if(N4(e))return r7(e);if(z4(e))return{type:"receive",stateMutability:"payable"};throw new $4({signature:e})}function J4(e,t={}){const r=O4(e);if(!r)throw new Bi({signature:e,type:"function"});const o=In(r.parameters),s=[],c=o.length;for(let f=0;f<c;f++)s.push(Va(o[f],{modifiers:Rh,structs:t,type:"function"}));const u=[];if(r.returns){const f=In(r.returns),p=f.length;for(let h=0;h<p;h++)u.push(Va(f[h],{modifiers:Rh,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:s,outputs:u}}function e7(e,t={}){const r=j4(e);if(!r)throw new Bi({signature:e,type:"event"});const o=In(r.parameters),s=[],c=o.length;for(let u=0;u<c;u++)s.push(Va(o[u],{modifiers:L4,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:s}}function t7(e,t={}){const r=B4(e);if(!r)throw new Bi({signature:e,type:"error"});const o=In(r.parameters),s=[],c=o.length;for(let u=0;u<c;u++)s.push(Va(o[u],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:s}}function n7(e,t={}){const r=D4(e);if(!r)throw new Bi({signature:e,type:"constructor"});const o=In(r.parameters),s=[],c=o.length;for(let u=0;u<c;u++)s.push(Va(o[u],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:s}}function r7(e){const t=I4(e);if(!t)throw new Bi({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const a7=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,o7=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,i7=/^u?int$/;function Va(e,t){const r=Z4(e,t?.type,t?.structs);if(N0.has(r))return N0.get(r);const o=Jw.test(e),s=Or(o?o7:a7,e);if(!s)throw new H4({param:e});if(s.name&&c7(s.name))throw new Q4({param:e,name:s.name});const c=s.name?{name:s.name}:{},u=s.modifier==="indexed"?{indexed:!0}:{},f=t?.structs??{};let p,h={};if(o){p="tuple";const b=In(s.type),m=[],v=b.length;for(let w=0;w<v;w++)m.push(Va(b[w],{structs:f}));h={components:m}}else if(s.type in f)p="tuple",h={components:f[s.type]};else if(i7.test(s.type))p=`${s.type}256`;else if(p=s.type,t?.type!=="struct"&&!i2(p))throw new F4({type:p});if(s.modifier){if(!t?.modifiers?.has?.(s.modifier))throw new G4({param:e,type:t?.type,modifier:s.modifier});if(Rh.has(s.modifier)&&!l7(p,!!s.array))throw new V4({param:e,type:t?.type,modifier:s.modifier})}const g={type:`${p}${s.array??""}`,...c,...u,...h};return N0.set(r,g),g}function In(e,t=[],r="",o=0){const s=e.trim().length;for(let c=0;c<s;c++){const u=e[c],f=e.slice(c+1);switch(u){case",":return o===0?In(f,[...t,r.trim()]):In(f,t,`${r}${u}`,o);case"(":return In(f,t,`${r}${u}`,o+1);case")":return In(f,t,`${r}${u}`,o-1);default:return In(f,t,`${r}${u}`,o)}}if(r==="")return t;if(o!==0)throw new X4({current:r,depth:o});return t.push(r.trim()),t}function i2(e){return e==="address"||e==="bool"||e==="function"||e==="string"||Xw.test(e)||Zw.test(e)}const s7=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function c7(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||Xw.test(e)||Zw.test(e)||s7.test(e)}function l7(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function s2(e){const t={},r=e.length;for(let u=0;u<r;u++){const f=e[u];if(!Rp(f))continue;const p=M4(f);if(!p)throw new Bi({signature:f,type:"struct"});const h=p.properties.split(";"),g=[],b=h.length;for(let m=0;m<b;m++){const w=h[m].trim();if(!w)continue;const C=Va(w,{type:"struct"});g.push(C)}if(!g.length)throw new K4({signature:f});t[p.name]=g}const o={},s=Object.entries(t),c=s.length;for(let u=0;u<c;u++){const[f,p]=s[u];o[f]=c2(p,t)}return o}const u7=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function c2(e,t,r=new Set){const o=[],s=e.length;for(let c=0;c<s;c++){const u=e[c];if(Jw.test(u.type))o.push(u);else{const p=Or(u7,u.type);if(!p?.type)throw new W4({abiParameter:u});const{array:h,type:g}=p;if(g in t){if(r.has(g))throw new Y4({type:g});o.push({...u,type:`tuple${h??""}`,components:c2(t[g]??[],t,new Set([...r,g]))})}else if(i2(g))o.push(u);else throw new q4({type:g})}}return o}function l2(e){const t=s2(e),r=[],o=e.length;for(let s=0;s<o;s++){const c=e[s];Rp(c)||r.push(Dh(c,t))}return r}function fv(e){let t;if(typeof e=="string")t=Dh(e);else{const r=s2(e),o=e.length;for(let s=0;s<o;s++){const c=e[s];if(!Rp(c)){t=Dh(c,r);break}}}if(!t)throw new P4({signature:e});return t}function f7(e){let t=!0,r="",o=0,s="",c=!1;for(let u=0;u<e.length;u++){const f=e[u];if(["(",")",","].includes(f)&&(t=!0),f==="("&&o++,f===")"&&o--,!!t){if(o===0){if(f===" "&&["event","function",""].includes(s))s="";else if(s+=f,f===")"){c=!0;break}continue}if(f===" "){e[u-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=f,r+=f}}if(!c)throw new se("Unable to normalize signature.");return s}const d7=e=>{const t=typeof e=="string"?e:bu(e);return f7(t)};function u2(e){return x4(d7(e))}const qu=u2,vc=e=>bi(u2(e),0,4);function no(e){const{abi:t,args:r=[],name:o}=e,s=Xn(o,{strict:!1}),c=t.filter(f=>s?f.type==="function"?vc(f)===o:f.type==="event"?qu(f)===o:!1:"name"in f&&f.name===o);if(c.length===0)return;if(c.length===1)return c[0];let u;for(const f of c){if(!("inputs"in f))continue;if(!r||r.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==r.length)continue;if(r.every((h,g)=>{const b="inputs"in f&&f.inputs[g];return b?Nh(h,b):!1})){if(u&&"inputs"in u&&u.inputs){const h=f2(f.inputs,u.inputs,r);if(h)throw new hx({abiItem:f,type:h[0]},{abiItem:u,type:h[1]})}u=f}}return u||c[0]}function Nh(e,t){const r=typeof e,o=t.type;switch(o){case"address":return dn(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return o==="tuple"&&"components"in t?Object.values(t.components).every((s,c)=>Nh(Object.values(e)[c],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)?Array.isArray(e)&&e.every(s=>Nh(s,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function f2(e,t,r){for(const o in e){const s=e[o],c=t[o];if(s.type==="tuple"&&c.type==="tuple"&&"components"in s&&"components"in c)return f2(s.components,c.components,r[o]);const u=[s.type,c.type];if(u.includes("address")&&u.includes("bytes20")?!0:u.includes("address")&&u.includes("string")?dn(r[o],{strict:!1}):u.includes("address")&&u.includes("bytes")?dn(r[o],{strict:!1}):!1)return u}}const I0="/docs/contract/decodeFunctionResult";function ro(e){const{abi:t,args:r,functionName:o,data:s}=e;let c=t[0];if(o){const f=no({abi:t,args:r,name:o});if(!f)throw new pi(o,{docsPath:I0});c=f}if(c.type!=="function")throw new pi(void 0,{docsPath:I0});if(!c.outputs)throw new Tw(c.name,{docsPath:I0});const u=yc(c.outputs,s);if(u&&u.length>1)return u;if(u&&u.length===1)return u[0]}const dv="/docs/contract/encodeFunctionData";function h7(e){const{abi:t,args:r,functionName:o}=e;let s=t[0];if(o){const c=no({abi:t,args:r,name:o});if(!c)throw new pi(o,{docsPath:dv});s=c}if(s.type!=="function")throw new pi(void 0,{docsPath:dv});return{abi:[s],functionName:vc(Un(s))}}function zn(e){const{args:t}=e,{abi:r,functionName:o}=e.abi.length===1&&e.functionName?.startsWith("0x")?e:h7(e),s=r[0],c=o,u="inputs"in s&&s.inputs?ba(s.inputs,t??[]):void 0;return _i([c,u??"0x"])}class Ih extends se{constructor({blockNumber:t,chain:r,contract:o}){super(`Chain "${r.name}" does not support contract "${o.name}".`,{metaMessages:["This could be due to any of the following:",...t&&o.blockCreated&&o.blockCreated>t?[`- The contract "${o.name}" was not deployed until block ${o.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${o.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class p7 extends se{constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID:  ${r}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class m7 extends se{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
`),{name:"ChainNotFoundError"})}}class d2 extends se{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}function Ti({blockNumber:e,chain:t,contract:r}){const o=t?.contracts?.[r];if(!o)throw new Ih({chain:t,contract:{name:r}});if(e&&o.blockCreated&&o.blockCreated>e)throw new Ih({blockNumber:e,chain:t,contract:{name:r,blockCreated:o.blockCreated}});return o.address}function Ft(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const g7={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},h2={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},b7={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function y7(e){const{abi:t,data:r}=e,o=bi(r,0,4);if(o==="0x")throw new bc;const c=[...t||[],h2,b7].find(u=>u.type==="error"&&o===vc(Un(u)));if(!c)throw new _w(o,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?yc(c.inputs,bi(r,4)):void 0,errorName:c.name}}const _t=(e,t,r)=>JSON.stringify(e,(o,s)=>typeof s=="bigint"?s.toString():s,r);function p2({abiItem:e,args:t,includeFunctionName:r=!0,includeName:o=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((s,c)=>`${o&&s.name?`${s.name}: `:""}${typeof t[c]=="object"?_t(t[c]):t[c]}`).join(", ")})`}const v7={gwei:9,wei:18},w7={ether:-9,wei:9},C7={ether:-18,gwei:-9};function Fu(e,t){let r=e.toString();const o=r.startsWith("-");o&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,c]=[r.slice(0,r.length-t),r.slice(r.length-t)];return c=c.replace(/(0+)$/,""),`${o?"-":""}${s||"0"}${c?`.${c}`:""}`}function Dp(e,t="wei"){return Fu(e,v7[t])}function Xt(e,t="wei"){return Fu(e,w7[t])}class E7 extends se{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class A7 extends se{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function hv(e){return e.reduce((t,{slot:r,value:o})=>`${t}        ${r}: ${o}
`,"")}function x7(e){return e.reduce((t,{address:r,...o})=>{let s=`${t}    ${r}:
`;return o.nonce&&(s+=`      nonce: ${o.nonce}
`),o.balance&&(s+=`      balance: ${o.balance}
`),o.code&&(s+=`      code: ${o.code}
`),o.state&&(s+=`      state:
`,s+=hv(o.state)),o.stateDiff&&(s+=`      stateDiff:
`,s+=hv(o.stateDiff)),s},`  State Override:
`).slice(0,-1)}function wc(e){const t=Object.entries(e).map(([o,s])=>s===void 0||s===!1?null:[o,s]).filter(Boolean),r=t.reduce((o,[s])=>Math.max(o,s.length),0);return t.map(([o,s])=>`  ${`${o}:`.padEnd(r+1)}  ${s}`).join(`
`)}class S7 extends se{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
`),{name:"FeeConflictError"})}}class _7 extends se{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",wc(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class B7 extends se{constructor(t,{account:r,docsPath:o,chain:s,data:c,gas:u,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:g,to:b,value:m}){const v=wc({chain:s&&`${s?.name} (id: ${s?.id})`,from:r?.address,to:b,value:typeof m<"u"&&`${Dp(m)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:c,gas:u,gasPrice:typeof f<"u"&&`${Xt(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${Xt(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${Xt(h)} gwei`,nonce:g});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",v].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class m2 extends se{constructor({blockHash:t,blockNumber:r,blockTag:o,hash:s,index:c}){let u="Transaction";o&&c!==void 0&&(u=`Transaction at block time "${o}" at index "${c}"`),t&&c!==void 0&&(u=`Transaction at block hash "${t}" at index "${c}"`),r&&c!==void 0&&(u=`Transaction at block number "${r}" at index "${c}"`),s&&(u=`Transaction with hash "${s}"`),super(`${u} could not be found.`,{name:"TransactionNotFoundError"})}}class g2 extends se{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class T7 extends se{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const j7=e=>e,Np=e=>e;class b2 extends se{constructor(t,{account:r,docsPath:o,chain:s,data:c,gas:u,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:g,to:b,value:m,stateOverride:v}){const w=r?Ft(r):void 0;let C=wc({from:w?.address,to:b,value:typeof m<"u"&&`${Dp(m)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:c,gas:u,gasPrice:typeof f<"u"&&`${Xt(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${Xt(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${Xt(h)} gwei`,nonce:g});v&&(C+=`
${x7(v)}`),super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",C].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class y2 extends se{constructor(t,{abi:r,args:o,contractAddress:s,docsPath:c,functionName:u,sender:f}){const p=no({abi:r,args:o,name:u}),h=p?p2({abiItem:p,args:o,includeFunctionName:!1,includeName:!1}):void 0,g=p?Un(p,{includeName:!0}):void 0,b=wc({address:s&&j7(s),function:g,args:h&&h!=="()"&&`${[...Array(u?.length??0).keys()].map(()=>" ").join("")}${h}`,sender:f});super(t.shortMessage||`An unknown error occurred while executing the contract function "${u}".`,{cause:t,docsPath:c,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],b&&"Contract Call:",b].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=o,this.cause=t,this.contractAddress=s,this.functionName=u,this.sender=f}}class Uh extends se{constructor({abi:t,data:r,functionName:o,message:s}){let c,u,f,p;if(r&&r!=="0x")try{u=y7({abi:t,data:r});const{abiItem:g,errorName:b,args:m}=u;if(b==="Error")p=m[0];else if(b==="Panic"){const[v]=m;p=g7[v]}else{const v=g?Un(g,{includeName:!0}):void 0,w=g&&m?p2({abiItem:g,args:m,includeFunctionName:!1,includeName:!1}):void 0;f=[v?`Error: ${v}`:"",w&&w!=="()"?`       ${[...Array(b?.length??0).keys()].map(()=>" ").join("")}${w}`:""]}}catch(g){c=g}else s&&(p=s);let h;c instanceof _w&&(h=c.signature,f=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(p&&p!=="execution reverted"||h?[`The contract function "${o}" reverted with the following ${h?"signature":"reason"}:`,p||h].join(`
`):`The contract function "${o}" reverted.`,{cause:c,metaMessages:f,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=r,this.reason=p,this.signature=h}}class k7 extends se{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${t}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class O7 extends se{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class Hu extends se{constructor({data:t,message:r}){super(r||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function Ip(e){if(!(e instanceof se))return!1;const t=e.walk(r=>r instanceof Uh);return t instanceof Uh?t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile":!1}function M7(e){const{abi:t,data:r}=e,o=bi(r,0,4),s=t.find(c=>c.type==="function"&&o===vc(Un(c)));if(!s)throw new dx(o,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:s.name,args:"inputs"in s&&s.inputs&&s.inputs.length>0?yc(s.inputs,bi(r,4)):void 0}}const U0="/docs/contract/encodeErrorResult";function pv(e){const{abi:t,errorName:r,args:o}=e;let s=t[0];if(r){const p=no({abi:t,args:o,name:r});if(!p)throw new Xy(r,{docsPath:U0});s=p}if(s.type!=="error")throw new Xy(void 0,{docsPath:U0});const c=Un(s),u=vc(c);let f="0x";if(o&&o.length>0){if(!s.inputs)throw new ux(s.name,{docsPath:U0});f=ba(s.inputs,o)}return _i([u,f])}const z0="/docs/contract/encodeFunctionResult";function R7(e){const{abi:t,functionName:r,result:o}=e;let s=t[0];if(r){const u=no({abi:t,name:r});if(!u)throw new pi(r,{docsPath:z0});s=u}if(s.type!=="function")throw new pi(void 0,{docsPath:z0});if(!s.outputs)throw new Tw(s.name,{docsPath:z0});const c=(()=>{if(s.outputs.length===0)return[];if(s.outputs.length===1)return[o];if(Array.isArray(o))return o;throw new jw(o)})();return ba(s.outputs,c)}const Qu="x-batch-gateway:true";async function D7(e){const{data:t,ccipRequest:r}=e,{args:[o]}=M7({abi:Th,data:t}),s=[],c=[];return await Promise.all(o.map(async(u,f)=>{try{c[f]=u.urls.includes(Qu)?await D7({data:u.data,ccipRequest:r}):await r(u),s[f]=!1}catch(p){s[f]=!0,c[f]=N7(p)}})),R7({abi:Th,functionName:"query",result:[s,c]})}function N7(e){return e.name==="HttpRequestError"&&e.status?pv({abi:Th,errorName:"HttpError",args:[e.status,e.shortMessage]}):pv({abi:[h2],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function v2(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Xn(t)?t:null}function zh(e){let t=new Uint8Array(32).fill(0);if(!e)return mt(t);const r=e.split(".");for(let o=r.length-1;o>=0;o-=1){const s=v2(r[o]),c=s?Si(s):St(Ga(r[o]),"bytes");t=St(er([t,c]),"bytes")}return mt(t)}function I7(e){return`[${e.slice(2)}]`}function U7(e){const t=new Uint8Array(32).fill(0);return e?v2(e)||St(Ga(e)):mt(t)}function Up(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const r=new Uint8Array(Ga(t).byteLength+2);let o=0;const s=t.split(".");for(let c=0;c<s.length;c++){let u=Ga(s[c]);u.byteLength>255&&(u=Ga(I7(U7(s[c])))),r[o]=u.length,r.set(u,o+1),o+=u.length+1}return r.byteLength!==o+1?r.slice(0,o+1):r}function we(e,t,r){const o=e[t.name];if(typeof o=="function")return o;const s=e[r];return typeof s=="function"?s:c=>t(e,c)}class Ps extends se{constructor({body:t,cause:r,details:o,headers:s,status:c,url:u}){super("HTTP request failed.",{cause:r,details:o,metaMessages:[c&&`Status: ${c}`,`URL: ${Np(u)}`,t&&`Request body: ${_t(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=c,this.url=u}}class zp extends se{constructor({body:t,error:r,url:o}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Np(o)}`,`Request body: ${_t(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data}}class mv extends se{constructor({body:t,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Np(r)}`,`Request body: ${_t(t)}`],name:"TimeoutError"})}}const z7=-1;class Zt extends se{constructor(t,{code:r,docsPath:o,metaMessages:s,name:c,shortMessage:u}){super(u,{cause:t,docsPath:o,metaMessages:s||t?.metaMessages,name:c||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=c||t.name,this.code=t instanceof zp?t.code:r??z7}}class pn extends Zt{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class Gs extends Zt{constructor(t){super(t,{code:Gs.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Gs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Vs extends Zt{constructor(t){super(t,{code:Vs.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Vs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Ws extends Zt{constructor(t,{method:r}={}){super(t,{code:Ws.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(Ws,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class $s extends Zt{constructor(t){super(t,{code:$s.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
`)})}}Object.defineProperty($s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Wa extends Zt{constructor(t){super(t,{code:Wa.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Wa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class $a extends Zt{constructor(t){super(t,{code:$a.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
`)})}}Object.defineProperty($a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Ks extends Zt{constructor(t){super(t,{code:Ks.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Ks,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Kn extends Zt{constructor(t){super(t,{code:Kn.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Kn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Ys extends Zt{constructor(t){super(t,{code:Ys.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Ys,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Pa extends Zt{constructor(t,{method:r}={}){super(t,{code:Pa.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(Pa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class yi extends Zt{constructor(t){super(t,{code:yi.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(yi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Xs extends Zt{constructor(t){super(t,{code:Xs.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Xs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Ue extends pn{constructor(t){super(t,{code:Ue.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Ue,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Zs extends pn{constructor(t){super(t,{code:Zs.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Zs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Js extends pn{constructor(t,{method:r}={}){super(t,{code:Js.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(Js,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class ec extends pn{constructor(t){super(t,{code:ec.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(ec,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class tc extends pn{constructor(t){super(t,{code:tc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(tc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class zt extends pn{constructor(t){super(t,{code:zt.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(zt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class nc extends pn{constructor(t){super(t,{code:nc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(nc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class rc extends pn{constructor(t){super(t,{code:rc.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class ac extends pn{constructor(t){super(t,{code:ac.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class oc extends pn{constructor(t){super(t,{code:oc.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class ic extends pn{constructor(t){super(t,{code:ic.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class sc extends pn{constructor(t){super(t,{code:sc.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class cc extends pn{constructor(t){super(t,{code:cc.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class L7 extends Zt{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const P7=3;function Ka(e,{abi:t,address:r,args:o,docsPath:s,functionName:c,sender:u}){const f=e instanceof Hu?e:e instanceof se?e.walk(w=>"data"in w)||e.walk():{},{code:p,data:h,details:g,message:b,shortMessage:m}=f,v=e instanceof bc?new k7({functionName:c}):[P7,Wa.code].includes(p)&&(h||g||b||m)?new Uh({abi:t,data:typeof h=="object"?h.data:h,functionName:c,message:f instanceof zp?g:m??b}):e;return new y2(v,{abi:t,args:o,contractAddress:r,docsPath:s,functionName:c,sender:u})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Lp=BigInt(0),Lh=BigInt(1);function yu(e,t=""){if(typeof e!="boolean"){const r=t&&`"${t}"`;throw new Error(r+"expected boolean, got type="+typeof e)}return e}function qa(e,t,r=""){const o=Iu(e),s=e?.length,c=t!==void 0;if(!o||c&&s!==t){const u=r&&`"${r}" `,f=c?` of length ${t}`:"",p=o?`length=${s}`:`type=${typeof e}`;throw new Error(u+"expected Uint8Array"+f+", got "+p)}return e}function $l(e){const t=e.toString(16);return t.length&1?"0"+t:t}function w2(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Lp:BigInt("0x"+e)}function Gu(e){return w2(li(e))}function C2(e){return jr(e),w2(li(Uint8Array.from(e).reverse()))}function Pp(e,t){return gu(e.toString(16).padStart(t*2,"0"))}function E2(e,t){return Pp(e,t).reverse()}function Kt(e,t,r){let o;if(typeof t=="string")try{o=gu(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(Iu(t))o=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");return o.length,o}const L0=e=>typeof e=="bigint"&&Lp<=e;function q7(e,t,r){return L0(e)&&L0(t)&&L0(r)&&t<=e&&e<r}function F7(e,t,r,o){if(!q7(t,r,o))throw new Error("expected valid "+e+": "+r+" <= n < "+o+", got "+t)}function A2(e){let t;for(t=0;e>Lp;e>>=Lh,t+=1);return t}const Cc=e=>(Lh<<BigInt(e))-Lh;function H7(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const o=v=>new Uint8Array(v),s=v=>Uint8Array.of(v);let c=o(e),u=o(e),f=0;const p=()=>{c.fill(1),u.fill(0),f=0},h=(...v)=>r(u,c,...v),g=(v=o(0))=>{u=h(s(0),v),c=h(),v.length!==0&&(u=h(s(1),v),c=h())},b=()=>{if(f++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const w=[];for(;v<t;){c=h();const C=c.slice();w.push(C),v+=c.length}return ua(...w)};return(v,w)=>{p(),g(v);let C;for(;!(C=w(b()));)g();return p(),C}}function qp(e,t,r={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function o(s,c,u){const f=e[s];if(u&&f===void 0)return;const p=typeof f;if(p!==c||f===null)throw new Error(`param "${s}" is invalid: expected ${c}, got ${p}`)}Object.entries(t).forEach(([s,c])=>o(s,c,!1)),Object.entries(r).forEach(([s,c])=>o(s,c,!0))}function gv(e){const t=new WeakMap;return(r,...o)=>{const s=t.get(r);if(s!==void 0)return s;const c=e(r,...o);return t.set(r,c),c}}const Q7="0.1.1";function G7(){return Q7}let nt=class Ph extends Error{constructor(t,r={}){const o=(()=>{if(r.cause instanceof Ph){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&typeof r.cause.details=="string"?r.cause.details:r.cause?.message?r.cause.message:r.details})(),s=r.cause instanceof Ph&&r.cause.docsPath||r.docsPath,u=`https://oxlib.sh${s??""}`,f=[t||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...o||s?["",o?`Details: ${o}`:void 0,s?`See: ${u}`:void 0]:[]].filter(p=>typeof p=="string").join(`
`);super(f,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${G7()}`}),this.cause=r.cause,this.details=o,this.docs=u,this.docsPath=s,this.shortMessage=t}walk(t){return x2(this,t)}};function x2(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?x2(e.cause,t):t?null:e}function V7(e,t){if(yv(e)>t)throw new a9({givenSize:yv(e),maxSize:t})}const Ar={zero:48,nine:57,A:65,F:70,a:97,f:102};function bv(e){if(e>=Ar.zero&&e<=Ar.nine)return e-Ar.zero;if(e>=Ar.A&&e<=Ar.F)return e-(Ar.A-10);if(e>=Ar.a&&e<=Ar.f)return e-(Ar.a-10)}function W7(e,t={}){const{dir:r,size:o=32}=t;if(o===0)return e;if(e.length>o)throw new o9({size:e.length,targetSize:o,type:"Bytes"});const s=new Uint8Array(o);for(let c=0;c<o;c++){const u=r==="right";s[u?c:o-c-1]=e[u?c:e.length-c-1]}return s}function Fp(e,t){if(kn(e)>t)throw new u9({givenSize:kn(e),maxSize:t})}function $7(e,t){if(typeof t=="number"&&t>0&&t>kn(e)-1)throw new j2({offset:t,position:"start",size:kn(e)})}function K7(e,t,r){if(typeof t=="number"&&typeof r=="number"&&kn(e)!==r-t)throw new j2({offset:r,position:"end",size:kn(e)})}function S2(e,t={}){const{dir:r,size:o=32}=t;if(o===0)return e;const s=e.replace("0x","");if(s.length>o*2)throw new f9({size:Math.ceil(s.length/2),targetSize:o,type:"Hex"});return`0x${s[r==="right"?"padEnd":"padStart"](o*2,"0")}`}const Y7="#__bigint";function X7(e,t,r){return JSON.stringify(e,(o,s)=>typeof s=="bigint"?s.toString()+Y7:s,r)}const Z7=new TextEncoder;function J7(e){return e instanceof Uint8Array?e:typeof e=="string"?t9(e):e9(e)}function e9(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function t9(e,t={}){const{size:r}=t;let o=e;r&&(Fp(e,r),o=Xa(e,r));let s=o.slice(2);s.length%2&&(s=`0${s}`);const c=s.length/2,u=new Uint8Array(c);for(let f=0,p=0;f<c;f++){const h=bv(s.charCodeAt(p++)),g=bv(s.charCodeAt(p++));if(h===void 0||g===void 0)throw new nt(`Invalid byte sequence ("${s[p-2]}${s[p-1]}" in "${s}").`);u[f]=h*16+g}return u}function n9(e,t={}){const{size:r}=t,o=Z7.encode(e);return typeof r=="number"?(V7(o,r),r9(o,r)):o}function r9(e,t){return W7(e,{dir:"right",size:t})}function yv(e){return e.length}let a9=class extends nt{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},o9=class extends nt{constructor({size:t,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const i9=new TextEncoder,s9=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c9(e,t={}){const{strict:r=!1}=t;if(!e)throw new vv(e);if(typeof e!="string")throw new vv(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new wv(e);if(!e.startsWith("0x"))throw new wv(e)}function tr(...e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function _2(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(Fp(r,t.size),Ya(r,t.size)):r}function B2(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=s9[e[s]];const o=`0x${r}`;return typeof t.size=="number"?(Fp(o,t.size),Xa(o,t.size)):o}function Ut(e,t={}){const{signed:r,size:o}=t,s=BigInt(e);let c;o?r?c=(1n<<BigInt(o)*8n-1n)-1n:c=2n**(BigInt(o)*8n)-1n:typeof e=="number"&&(c=BigInt(Number.MAX_SAFE_INTEGER));const u=typeof c=="bigint"&&r?-c-1n:0;if(c&&s>c||s<u){const h=typeof e=="bigint"?"n":"";throw new T2({max:c?`${c}${h}`:void 0,min:`${u}${h}`,signed:r,size:o,value:`${e}${h}`})}const p=`0x${(r&&s<0?(1n<<BigInt(o*8))+BigInt(s):s).toString(16)}`;return o?Ya(p,o):p}function Hp(e,t={}){return B2(i9.encode(e),t)}function Ya(e,t){return S2(e,{dir:"left",size:t})}function Xa(e,t){return S2(e,{dir:"right",size:t})}function Qp(e,t,r,o={}){const{strict:s}=o;$7(e,t);const c=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return s&&K7(c,t,r),c}function kn(e){return Math.ceil((e.length-2)/2)}function l9(e,t={}){const{strict:r=!1}=t;try{return c9(e,{strict:r}),!0}catch{return!1}}class T2 extends nt{constructor({max:t,min:r,signed:o,size:s,value:c}){super(`Number \`${c}\` is not in safe${s?` ${s*8}-bit`:""}${o?" signed":" unsigned"} integer range ${t?`(\`${r}\` to \`${t}\`)`:`(above \`${r}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class vv extends nt{constructor(t){super(`Value \`${typeof t=="object"?X7(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class wv extends nt{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class u9 extends nt{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class j2 extends nt{constructor({offset:t,position:r,size:o}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${o}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class f9 extends nt{constructor({size:t,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function d9(e){return{address:e.address,amount:Ut(e.amount),index:Ut(e.index),validatorIndex:Ut(e.validatorIndex)}}function k2(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Ut(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Ut(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Ut(e.gasLimit)},...typeof e.number=="bigint"&&{number:Ut(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Ut(e.prevRandao)},...typeof e.time=="bigint"&&{time:Ut(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(d9)}}}const h9="0x82ad56cb",O2="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",p9="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",m9="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",M2=" ",P0="/docs/contract/encodeDeployData";function Gp(e){const{abi:t,args:r,bytecode:o}=e;if(!r||r.length===0)return o;const s=t.find(u=>"type"in u&&u.type==="constructor");if(!s)throw new ix({docsPath:P0});if(!("inputs"in s))throw new Yy({docsPath:P0});if(!s.inputs||s.inputs.length===0)throw new Yy({docsPath:P0});const c=ba(s.inputs,r);return _i([o,c])}class ii extends se{constructor({cause:t,message:r}={}){const o=r?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${o?`with reason: ${o}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(ii,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(ii,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class vu extends se{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${Xt(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(vu,"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 qh extends se{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${Xt(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(qh,"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 Fh extends se{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Fh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Hh extends se{constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Hh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Qh extends se{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Qh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Gh extends se{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Gh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Vh extends se{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Vh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Wh extends se{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Wh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class $h extends se{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty($h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class wu extends se{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${Xt(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${Xt(o)} gwei`:""}).`].join(`
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(wu,"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 Ec extends se{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Vu(e,t){const r=(e.details||"").toLowerCase(),o=e instanceof se?e.walk(s=>s?.code===ii.code):e;return o instanceof se?new ii({cause:e,message:o.details}):ii.nodeMessage.test(r)?new ii({cause:e,message:e.details}):vu.nodeMessage.test(r)?new vu({cause:e,maxFeePerGas:t?.maxFeePerGas}):qh.nodeMessage.test(r)?new qh({cause:e,maxFeePerGas:t?.maxFeePerGas}):Fh.nodeMessage.test(r)?new Fh({cause:e,nonce:t?.nonce}):Hh.nodeMessage.test(r)?new Hh({cause:e,nonce:t?.nonce}):Qh.nodeMessage.test(r)?new Qh({cause:e,nonce:t?.nonce}):Gh.nodeMessage.test(r)?new Gh({cause:e}):Vh.nodeMessage.test(r)?new Vh({cause:e,gas:t?.gas}):Wh.nodeMessage.test(r)?new Wh({cause:e,gas:t?.gas}):$h.nodeMessage.test(r)?new $h({cause:e}):wu.nodeMessage.test(r)?new wu({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new Ec({cause:e})}function R2(e,{docsPath:t,...r}){const o=(()=>{const s=Vu(e,r);return s instanceof Ec?e:s})();return new b2(o,{docsPath:t,...r})}function Wu(e,{format:t}){if(!t)return{};const r={};function o(c){const u=Object.keys(c);for(const f of u)f in e&&(r[f]=e[f]),c[f]&&typeof c[f]=="object"&&!Array.isArray(c[f])&&o(c[f])}const s=t(e||{});return o(s),r}const g9={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Ac(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=b9(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(r=>mt(r)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=ge(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=ge(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=ge(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=ge(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=ge(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=ge(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=g9[e.type]),typeof e.value<"u"&&(t.value=ge(e.value)),t}function b9(e){return e.map(t=>({address:t.address,r:t.r?ge(BigInt(t.r)):t.r,s:t.s?ge(BigInt(t.s)):t.s,chainId:ge(t.chainId),nonce:ge(t.nonce),...typeof t.yParity<"u"?{yParity:ge(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:ge(t.v)}:{}}))}function D2(){let e=()=>{},t=()=>{};return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const q0=new Map;function N2({fn:e,id:t,shouldSplitBatch:r,wait:o=0,sort:s}){const c=async()=>{const g=p();u();const b=g.map(({args:m})=>m);b.length!==0&&e(b).then(m=>{s&&Array.isArray(m)&&m.sort(s);for(let v=0;v<g.length;v++){const{resolve:w}=g[v];w?.([m[v],m])}}).catch(m=>{for(let v=0;v<g.length;v++){const{reject:w}=g[v];w?.(m)}})},u=()=>q0.delete(t),f=()=>p().map(({args:g})=>g),p=()=>q0.get(t)||[],h=g=>q0.set(t,[...p(),g]);return{flush:u,async schedule(g){const{promise:b,resolve:m,reject:v}=D2();return r?.([...f(),g])&&c(),p().length>0?(h({args:g,resolve:m,reject:v}),b):(h({args:g,resolve:m,reject:v}),setTimeout(c,o),b)}}}function Cv(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:o})=>{if(r.length!==66)throw new Jy({size:r.length,targetSize:66,type:"hex"});if(o.length!==66)throw new Jy({size:o.length,targetSize:66,type:"hex"});return t[r]=o,t},{})}function y9(e){const{balance:t,nonce:r,state:o,stateDiff:s,code:c}=e,u={};if(c!==void 0&&(u.code=c),t!==void 0&&(u.balance=ge(t)),r!==void 0&&(u.nonce=ge(r)),o!==void 0&&(u.state=Cv(o)),s!==void 0){if(u.state)throw new A7;u.stateDiff=Cv(s)}return u}function Vp(e){if(!e)return;const t={};for(const{address:r,...o}of e){if(!dn(r,{strict:!1}))throw new ha({address:r});if(t[r])throw new E7({address:r});t[r]=y9(o)}return t}const v9=2n**256n-1n;function ji(e){const{account:t,gasPrice:r,maxFeePerGas:o,maxPriorityFeePerGas:s,to:c}=e,u=t?Ft(t):void 0;if(u&&!dn(u.address))throw new ha({address:u.address});if(c&&!dn(c))throw new ha({address:c});if(typeof r<"u"&&(typeof o<"u"||typeof s<"u"))throw new S7;if(o&&o>v9)throw new vu({maxFeePerGas:o});if(s&&o&&s>o)throw new wu({maxFeePerGas:o,maxPriorityFeePerGas:s})}async function xc(e,t){const{account:r=e.account,authorizationList:o,batch:s=!!e.batch?.multicall,blockNumber:c,blockTag:u=e.experimental_blockTag??"latest",accessList:f,blobs:p,blockOverrides:h,code:g,data:b,factory:m,factoryData:v,gas:w,gasPrice:C,maxFeePerBlobGas:A,maxFeePerGas:B,maxPriorityFeePerGas:T,nonce:_,to:j,value:k,stateOverride:D,...U}=t,Q=r?Ft(r):void 0;if(g&&(m||v))throw new se("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(g&&j)throw new se("Cannot provide both `code` & `to` as parameters.");const F=g&&b,ie=m&&v&&j&&b,le=F||ie,ae=F?I2({code:g,data:b}):ie?E9({data:b,factory:m,factoryData:v,to:j}):b;try{ji(t);const V=(typeof c=="bigint"?ge(c):void 0)||u,$=h?k2(h):void 0,I=Vp(D),Y=e.chain?.formatters?.transactionRequest?.format,oe=(Y||Ac)({...Wu(U,{format:Y}),from:Q?.address,accessList:f,authorizationList:o,blobs:p,data:ae,gas:w,gasPrice:C,maxFeePerBlobGas:A,maxFeePerGas:B,maxPriorityFeePerGas:T,nonce:_,to:le?void 0:j,value:k});if(s&&w9({request:oe})&&!I&&!$)try{return await C9(e,{...oe,blockNumber:c,blockTag:u})}catch(J){if(!(J instanceof d2)&&!(J instanceof Ih))throw J}const O=(()=>{const J=[oe,V];return I&&$?[...J,I,$]:I?[...J,I]:$?[...J,{},$]:J})(),G=await e.request({method:"eth_call",params:O});return G==="0x"?{data:void 0}:{data:G}}catch(L){const V=A9(L),{offchainLookup:$,offchainLookupSignature:I}=await de(async()=>{const{offchainLookup:Y,offchainLookupSignature:q}=await import("./ccip--rD7oT9F.js");return{offchainLookup:Y,offchainLookupSignature:q}},[]);if(e.ccipRead!==!1&&V?.slice(0,10)===I&&j)return{data:await $(e,{data:V,to:j})};throw le&&V?.slice(0,10)==="0x101bb98d"?new O7({factory:m}):R2(L,{...t,account:Q,chain:e.chain})}}function w9({request:e}){const{data:t,to:r,...o}=e;return!(!t||t.startsWith(h9)||!r||Object.values(o).filter(s=>typeof s<"u").length>0)}async function C9(e,t){const{batchSize:r=1024,deployless:o=!1,wait:s=0}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},{blockNumber:c,blockTag:u=e.experimental_blockTag??"latest",data:f,to:p}=t,h=(()=>{if(o)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Ti({blockNumber:c,chain:e.chain,contract:"multicall3"});throw new d2})(),b=(typeof c=="bigint"?ge(c):void 0)||u,{schedule:m}=N2({id:`${e.uid}.${b}`,wait:s,shouldSplitBatch(C){return C.reduce((B,{data:T})=>B+(T.length-2),0)>r*2},fn:async C=>{const A=C.map(_=>({allowFailure:!0,callData:_.data,target:_.to})),B=zn({abi:Bh,args:[A],functionName:"aggregate3"}),T=await e.request({method:"eth_call",params:[{...h===null?{data:I2({code:M2,data:B})}:{to:h,data:B}},b]});return ro({abi:Bh,args:[A],functionName:"aggregate3",data:T||"0x"})}}),[{returnData:v,success:w}]=await m({data:f,to:p});if(!w)throw new Hu({data:v});return v==="0x"?{data:void 0}:{data:v}}function I2(e){const{code:t,data:r}=e;return Gp({abi:l2(["constructor(bytes, bytes)"]),bytecode:O2,args:[t,r]})}function E9(e){const{data:t,factory:r,factoryData:o,to:s}=e;return Gp({abi:l2(["constructor(address, bytes, address, bytes)"]),bytecode:p9,args:[s,t,r,o]})}function A9(e){if(!(e instanceof se))return;const t=e.walk();return typeof t?.data=="object"?t.data?.data:t.data}async function nr(e,t){const{abi:r,address:o,args:s,functionName:c,...u}=t,f=zn({abi:r,args:s,functionName:c});try{const{data:p}=await we(e,xc,"call")({...u,data:f,to:o});return ro({abi:r,args:s,functionName:c,data:p||"0x"})}catch(p){throw Ka(p,{abi:r,address:o,args:s,docsPath:"/docs/contract/readContract",functionName:c})}}async function x9(e,t){const{blockNumber:r,blockTag:o,coinType:s,name:c,gatewayUrls:u,strict:f}=t,{chain:p}=e,h=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw new Error("client chain not configured. universalResolverAddress is required.");return Ti({blockNumber:r,chain:p,contract:"ensUniversalResolver"})})(),g=p?.ensTlds;if(g&&!g.some(m=>c.endsWith(m)))return null;const b=s!=null?[zh(c),BigInt(s)]:[zh(c)];try{const m=zn({abi:Wy,functionName:"addr",args:b}),v={address:h,abi:Ew,functionName:"resolveWithGateways",args:[Tr(Up(c)),m,u??[Qu]],blockNumber:r,blockTag:o},C=await we(e,nr,"readContract")(v);if(C[0]==="0x")return null;const A=ro({abi:Wy,args:b,functionName:"addr",data:C[0]});return A==="0x"||_r(A)==="0x00"?null:A}catch(m){if(f)throw m;if(Ip(m))return null;throw m}}class S9 extends se{constructor({data:t}){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(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Ns extends se{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Wp extends se{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class _9 extends se{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const B9=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,T9=/^(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>\/.*)?$/,j9=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,k9=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function O9(e){try{const t=await fetch(e,{method:"HEAD"});return t.status===200?t.headers.get("content-type")?.startsWith("image/"):!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(r=>{const o=new Image;o.onload=()=>{r(!0)},o.onerror=()=>{r(!1)},o.src=e})}}function Ev(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function U2({uri:e,gatewayUrls:t}){const r=j9.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const o=Ev(t?.ipfs,"https://ipfs.io"),s=Ev(t?.arweave,"https://arweave.net"),c=e.match(B9),{protocol:u,subpath:f,target:p,subtarget:h=""}=c?.groups||{},g=u==="ipns:/"||f==="ipns/",b=u==="ipfs:/"||f==="ipfs/"||T9.test(e);if(e.startsWith("http")&&!g&&!b){let v=e;return t?.arweave&&(v=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:v,isOnChain:!1,isEncoded:!1}}if((g||b)&&p)return{uri:`${o}/${g?"ipns":"ipfs"}/${p}${h}`,isOnChain:!1,isEncoded:!1};if(u==="ar:/"&&p)return{uri:`${s}/${p}${h||""}`,isOnChain:!1,isEncoded:!1};let m=e.replace(k9,"");if(m.startsWith("<svg")&&(m=`data:image/svg+xml;base64,${btoa(m)}`),m.startsWith("data:")||m.startsWith("{"))return{uri:m,isOnChain:!0,isEncoded:!1};throw new Wp({uri:e})}function z2(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new S9({data:e});return e.image||e.image_url||e.image_data}async function M9({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(s=>s.json());return await $p({gatewayUrls:e,uri:z2(r)})}catch{throw new Wp({uri:t})}}async function $p({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:o}=U2({uri:t,gatewayUrls:e});if(o||await O9(r))return r;throw new Wp({uri:t})}function R9(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,o,s]=t.split("/"),[c,u]=r.split(":"),[f,p]=o.split(":");if(!c||c.toLowerCase()!=="eip155")throw new Ns({reason:"Only EIP-155 supported"});if(!u)throw new Ns({reason:"Chain ID not found"});if(!p)throw new Ns({reason:"Contract address not found"});if(!s)throw new Ns({reason:"Token ID not found"});if(!f)throw new Ns({reason:"ERC namespace not found"});return{chainID:Number.parseInt(u,10),namespace:f.toLowerCase(),contractAddress:p,tokenID:s}}async function D9(e,{nft:t}){if(t.namespace==="erc721")return nr(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(t.namespace==="erc1155")return nr(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 _9({namespace:t.namespace})}async function N9(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?I9(e,{gatewayUrls:t,record:r}):$p({uri:r,gatewayUrls:t})}async function I9(e,{gatewayUrls:t,record:r}){const o=R9(r),s=await D9(e,{nft:o}),{uri:c,isOnChain:u,isEncoded:f}=U2({uri:s,gatewayUrls:t});if(u&&(c.includes("data:application/json;base64,")||c.startsWith("{"))){const h=f?atob(c.replace("data:application/json;base64,","")):c,g=JSON.parse(h);return $p({uri:z2(g),gatewayUrls:t})}let p=o.tokenID;return o.namespace==="erc1155"&&(p=p.replace("0x","").padStart(64,"0")),M9({gatewayUrls:t,uri:c.replace(/(?:0x)?{id}/,p)})}async function L2(e,t){const{blockNumber:r,blockTag:o,key:s,name:c,gatewayUrls:u,strict:f}=t,{chain:p}=e,h=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw new Error("client chain not configured. universalResolverAddress is required.");return Ti({blockNumber:r,chain:p,contract:"ensUniversalResolver"})})(),g=p?.ensTlds;if(g&&!g.some(b=>c.endsWith(b)))return null;try{const b={address:h,abi:Ew,args:[Tr(Up(c)),zn({abi:Vy,functionName:"text",args:[zh(c),s]}),u??[Qu]],functionName:"resolveWithGateways",blockNumber:r,blockTag:o},v=await we(e,nr,"readContract")(b);if(v[0]==="0x")return null;const w=ro({abi:Vy,functionName:"text",data:v[0]});return w===""?null:w}catch(b){if(f)throw b;if(Ip(b))return null;throw b}}async function P2(e,{blockNumber:t,blockTag:r,assetGatewayUrls:o,name:s,gatewayUrls:c,strict:u,universalResolverAddress:f}){const p=await we(e,L2,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:f,gatewayUrls:c,strict:u});if(!p)return null;try{return await N9(e,{record:p,gatewayUrls:o})}catch{return null}}async function q2(e,t){const{address:r,blockNumber:o,blockTag:s,coinType:c=60n,gatewayUrls:u,strict:f}=t,{chain:p}=e,h=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw new Error("client chain not configured. universalResolverAddress is required.");return Ti({blockNumber:o,chain:p,contract:"ensUniversalResolver"})})();try{const g={address:h,abi:ax,args:[r,c,u??[Qu]],functionName:"reverseWithGateways",blockNumber:o,blockTag:s},b=we(e,nr,"readContract"),[m]=await b(g);return m||null}catch(g){if(f)throw g;if(Ip(g))return null;throw g}}async function U9(e,t){const{blockNumber:r,blockTag:o,name:s}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Ti({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),f=c?.ensTlds;if(f&&!f.some(h=>s.endsWith(h)))throw new Error(`${s} is not a valid ENS TLD (${f?.join(", ")}) for chain "${c.name}" (id: ${c.id}).`);const[p]=await we(e,nr,"readContract")({address:u,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Tr(Up(s))],blockNumber:r,blockTag:o});return p}async function F2(e,t){const{account:r=e.account,blockNumber:o,blockTag:s="latest",blobs:c,data:u,gas:f,gasPrice:p,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:b,to:m,value:v,...w}=t,C=r?Ft(r):void 0;try{ji(t);const B=(typeof o=="bigint"?ge(o):void 0)||s,T=e.chain?.formatters?.transactionRequest?.format,j=(T||Ac)({...Wu(w,{format:T}),from:C?.address,blobs:c,data:u,gas:f,gasPrice:p,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:b,to:m,value:v}),k=await e.request({method:"eth_createAccessList",params:[j,B]});return{accessList:k.accessList,gasUsed:BigInt(k.gasUsed)}}catch(A){throw R2(A,{...t,account:C,chain:e.chain})}}function $u(e,{method:t}){const r={};return e.transport.type==="fallback"&&e.transport.onResponse?.(({method:o,response:s,status:c,transport:u})=>{c==="success"&&t===o&&(r[s]=u.request)}),(o=>r[o]||e.request)}async function z9(e){const t=$u(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}class L9 extends se{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const Av="/docs/contract/encodeEventTopics";function Sc(e){const{abi:t,eventName:r,args:o}=e;let s=t[0];if(r){const p=no({abi:t,name:r});if(!p)throw new Zy(r,{docsPath:Av});s=p}if(s.type!=="event")throw new Zy(void 0,{docsPath:Av});const c=Un(s),u=qu(c);let f=[];if(o&&"inputs"in s){const p=s.inputs?.filter(g=>"indexed"in g&&g.indexed),h=Array.isArray(o)?o:Object.values(o).length>0?p?.map(g=>o[g.name])??[]:[];h.length>0&&(f=p?.map((g,b)=>Array.isArray(h[b])?h[b].map((m,v)=>xv({param:g,value:h[b][v]})):typeof h[b]<"u"&&h[b]!==null?xv({param:g,value:h[b]}):null)??[])}return[u,...f]}function xv({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return St(Si(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new L9(e.type);return ba([e],[t])}async function H2(e,t){const{address:r,abi:o,args:s,eventName:c,fromBlock:u,strict:f,toBlock:p}=t,h=$u(e,{method:"eth_newFilter"}),g=c?Sc({abi:o,args:s,eventName:c}):void 0,b=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:typeof u=="bigint"?ge(u):u,toBlock:typeof p=="bigint"?ge(p):p,topics:g}]});return{abi:o,args:s,eventName:c,id:b,request:h(b),strict:!!f,type:"event"}}async function Q2(e,{address:t,args:r,event:o,events:s,fromBlock:c,strict:u,toBlock:f}={}){const p=s??(o?[o]:void 0),h=$u(e,{method:"eth_newFilter"});let g=[];p&&(g=[p.flatMap(v=>Sc({abi:[v],eventName:v.name,args:r}))],o&&(g=g[0]));const b=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof c=="bigint"?ge(c):c,toBlock:typeof f=="bigint"?ge(f):f,...g.length?{topics:g}:{}}]});return{abi:p,args:r,eventName:o?o.name:void 0,fromBlock:c,id:b,request:h(b),strict:!!u,toBlock:f,type:"event"}}async function G2(e){const t=$u(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}function P9(e){const t=St(`0x${e.substring(4)}`).substring(26);return Pu(`0x${t}`)}async function q9({hash:e,signature:t}){const r=Xn(e)?e:Tr(e),{secp256k1:o}=await de(async()=>{const{secp256k1:u}=await Promise.resolve().then(()=>hB);return{secp256k1:u}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:h,s:g,v:b,yParity:m}=t,v=Number(m??b),w=Sv(v);return new o.Signature(Zn(h),Zn(g)).addRecoveryBit(w)}const u=Xn(t)?t:Tr(t);if(Je(u)!==65)throw new Error("invalid signature length");const f=Jn(`0x${u.slice(130)}`),p=Sv(f);return o.Signature.fromCompact(u.substring(2,130)).addRecoveryBit(p)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function Sv(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function V2({hash:e,signature:t}){return P9(await q9({hash:e,signature:t}))}function F9(e,t="hex"){const r=W2(e),o=jp(new Uint8Array(r.length));return r.encode(o),t==="hex"?mt(o.bytes):o.bytes}function W2(e){return Array.isArray(e)?H9(e.map(t=>W2(t))):Q9(e)}function H9(e){const t=e.reduce((s,c)=>s+c.length,0),r=$2(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:c}of e)c(s)}}}function Q9(e){const t=typeof e=="string"?jn(e):e,r=$2(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function $2(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new se("Length is too large.")}function G9(e){const{chainId:t,nonce:r,to:o}=e,s=e.contractAddress??e.address,c=St(_i(["0x05",F9([t?ge(t):"0x",s,r?ge(r):"0x"])]));return o==="bytes"?jn(c):c}async function K2(e){const{authorization:t,signature:r}=e;return V2({hash:G9(t),signature:r??t})}class V9 extends se{constructor(t,{account:r,docsPath:o,chain:s,data:c,gas:u,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:g,to:b,value:m}){const v=wc({from:r?.address,to:b,value:typeof m<"u"&&`${Dp(m)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:c,gas:u,gasPrice:typeof f<"u"&&`${Xt(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${Xt(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${Xt(h)} gwei`,nonce:g});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",v].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function W9(e,{docsPath:t,...r}){const o=(()=>{const s=Vu(e,r);return s instanceof Ec?e:s})();return new V9(o,{docsPath:t,...r})}class $9 extends se{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Kp extends se{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class K9 extends se{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Xt(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Y2 extends se{constructor({blockHash:t,blockNumber:r}){let o="Block";t&&(o=`Block at hash "${t}"`),r&&(o=`Block at number "${r}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}}const X2={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Z2(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Jn(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?Jn(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?X2[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 e.authorizationList&&(t.authorizationList=Y9(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}function Y9(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function J2(e){const t=(e.transactions??[]).map(r=>typeof r=="string"?r:Z2(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):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}}async function Wn(e,{blockHash:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:s}={}){const c=s??!1,u=r!==void 0?ge(r):void 0;let f=null;if(t?f=await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):f=await e.request({method:"eth_getBlockByNumber",params:[u||o,c]},{dedupe:!!u}),!f)throw new Y2({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||J2)(f)}async function Yp(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function X9(e,t){return e5(e,t)}async function e5(e,t){const{block:r,chain:o=e.chain,request:s}=t||{};try{const c=o?.fees?.maxPriorityFeePerGas??o?.fees?.defaultPriorityFee;if(typeof c=="function"){const f=r||await we(e,Wn,"getBlock")({}),p=await c({block:f,client:e,request:s});if(p===null)throw new Error;return p}if(typeof c<"u")return c;const u=await e.request({method:"eth_maxPriorityFeePerGas"});return Zn(u)}catch{const[c,u]=await Promise.all([r?Promise.resolve(r):we(e,Wn,"getBlock")({}),we(e,Yp,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new Kp;const f=u-c.baseFeePerGas;return f<0n?0n:f}}async function Z9(e,t){return Kh(e,t)}async function Kh(e,t){const{block:r,chain:o=e.chain,request:s,type:c="eip1559"}=t||{},u=await(async()=>typeof o?.fees?.baseFeeMultiplier=="function"?o.fees.baseFeeMultiplier({block:r,client:e,request:s}):o?.fees?.baseFeeMultiplier??1.2)();if(u<1)throw new $9;const p=10**(u.toString().split(".")[1]?.length??0),h=m=>m*BigInt(Math.ceil(u*p))/BigInt(p),g=r||await we(e,Wn,"getBlock")({});if(typeof o?.fees?.estimateFeesPerGas=="function"){const m=await o.fees.estimateFeesPerGas({block:r,client:e,multiply:h,request:s,type:c});if(m!==null)return m}if(c==="eip1559"){if(typeof g.baseFeePerGas!="bigint")throw new Kp;const m=typeof s?.maxPriorityFeePerGas=="bigint"?s.maxPriorityFeePerGas:await e5(e,{block:g,chain:o,request:s}),v=h(g.baseFeePerGas);return{maxFeePerGas:s?.maxFeePerGas??v+m,maxPriorityFeePerGas:m}}return{gasPrice:s?.gasPrice??h(await we(e,Yp,"getGasPrice")({}))}}async function t5(e,{address:t,blockTag:r="latest",blockNumber:o}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof o=="bigint"?ge(o):r]},{dedupe:!!o});return Jn(s)}function n5(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(c=>jn(c)):e.blobs,s=[];for(const c of o)s.push(Uint8Array.from(t.blobToKzgCommitment(c)));return r==="bytes"?s:s.map(c=>mt(c))}function r5(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(u=>jn(u)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(u=>jn(u)):e.commitments,c=[];for(let u=0;u<o.length;u++){const f=o[u],p=s[u];c.push(Uint8Array.from(t.computeBlobKzgProof(f,p)))}return r==="bytes"?c:c.map(u=>mt(u))}function J9(e,t,r,o){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,o);const s=BigInt(32),c=BigInt(4294967295),u=Number(r>>s&c),f=Number(r&c),p=o?4:0,h=o?0:4;e.setUint32(t+p,u,o),e.setUint32(t+h,f,o)}function eS(e,t,r){return e&t^~e&r}function tS(e,t,r){return e&t^e&r^t&r}class a5 extends Bp{constructor(t,r,o,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=o,this.isLE=s,this.buffer=new Uint8Array(t),this.view=M0(this.buffer)}update(t){gi(this),t=Uu(t),jr(t);const{view:r,buffer:o,blockLen:s}=this,c=t.length;for(let u=0;u<c;){const f=Math.min(s-this.pos,c-u);if(f===s){const p=M0(t);for(;s<=c-u;u+=s)this.process(p,u);continue}o.set(t.subarray(u,u+f),this.pos),this.pos+=f,u+=f,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){gi(this),Uw(t,this),this.finished=!0;const{buffer:r,view:o,blockLen:s,isLE:c}=this;let{pos:u}=this;r[u++]=128,pa(this.buffer.subarray(u)),this.padOffset>s-u&&(this.process(o,0),u=0);for(let b=u;b<s;b++)r[b]=0;J9(o,s-8,BigInt(this.length*8),c),this.process(o,0);const f=M0(t),p=this.outputLen;if(p%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=p/4,g=this.get();if(h>g.length)throw new Error("_sha2: outputLen bigger than state");for(let b=0;b<h;b++)f.setUint32(4*b,g[b],c)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const o=t.slice(0,r);return this.destroy(),o}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:o,length:s,finished:c,destroyed:u,pos:f}=this;return t.destroyed=u,t.finished=c,t.length=s,t.pos=f,s%r&&t.buffer.set(o),t}clone(){return this._cloneInto()}}const oa=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ot=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Mt=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),nS=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ia=new Uint32Array(64);class rS extends a5{constructor(t=32){super(64,t,8,!1),this.A=oa[0]|0,this.B=oa[1]|0,this.C=oa[2]|0,this.D=oa[3]|0,this.E=oa[4]|0,this.F=oa[5]|0,this.G=oa[6]|0,this.H=oa[7]|0}get(){const{A:t,B:r,C:o,D:s,E:c,F:u,G:f,H:p}=this;return[t,r,o,s,c,u,f,p]}set(t,r,o,s,c,u,f,p){this.A=t|0,this.B=r|0,this.C=o|0,this.D=s|0,this.E=c|0,this.F=u|0,this.G=f|0,this.H=p|0}process(t,r){for(let b=0;b<16;b++,r+=4)ia[b]=t.getUint32(r,!1);for(let b=16;b<64;b++){const m=ia[b-15],v=ia[b-2],w=Gn(m,7)^Gn(m,18)^m>>>3,C=Gn(v,17)^Gn(v,19)^v>>>10;ia[b]=C+ia[b-7]+w+ia[b-16]|0}let{A:o,B:s,C:c,D:u,E:f,F:p,G:h,H:g}=this;for(let b=0;b<64;b++){const m=Gn(f,6)^Gn(f,11)^Gn(f,25),v=g+m+eS(f,p,h)+nS[b]+ia[b]|0,C=(Gn(o,2)^Gn(o,13)^Gn(o,22))+tS(o,s,c)|0;g=h,h=p,p=f,f=u+v|0,u=c,c=s,s=o,o=v+C|0}o=o+this.A|0,s=s+this.B|0,c=c+this.C|0,u=u+this.D|0,f=f+this.E|0,p=p+this.F|0,h=h+this.G|0,g=g+this.H|0,this.set(o,s,c,u,f,p,h,g)}roundClean(){pa(ia)}destroy(){this.set(0,0,0,0,0,0,0,0),pa(this.buffer)}}const o5=Nw(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),aS=o5[0],oS=o5[1],sa=new Uint32Array(80),ca=new Uint32Array(80);class i5 extends a5{constructor(t=64){super(128,t,16,!1),this.Ah=Mt[0]|0,this.Al=Mt[1]|0,this.Bh=Mt[2]|0,this.Bl=Mt[3]|0,this.Ch=Mt[4]|0,this.Cl=Mt[5]|0,this.Dh=Mt[6]|0,this.Dl=Mt[7]|0,this.Eh=Mt[8]|0,this.El=Mt[9]|0,this.Fh=Mt[10]|0,this.Fl=Mt[11]|0,this.Gh=Mt[12]|0,this.Gl=Mt[13]|0,this.Hh=Mt[14]|0,this.Hl=Mt[15]|0}get(){const{Ah:t,Al:r,Bh:o,Bl:s,Ch:c,Cl:u,Dh:f,Dl:p,Eh:h,El:g,Fh:b,Fl:m,Gh:v,Gl:w,Hh:C,Hl:A}=this;return[t,r,o,s,c,u,f,p,h,g,b,m,v,w,C,A]}set(t,r,o,s,c,u,f,p,h,g,b,m,v,w,C,A){this.Ah=t|0,this.Al=r|0,this.Bh=o|0,this.Bl=s|0,this.Ch=c|0,this.Cl=u|0,this.Dh=f|0,this.Dl=p|0,this.Eh=h|0,this.El=g|0,this.Fh=b|0,this.Fl=m|0,this.Gh=v|0,this.Gl=w|0,this.Hh=C|0,this.Hl=A|0}process(t,r){for(let _=0;_<16;_++,r+=4)sa[_]=t.getUint32(r),ca[_]=t.getUint32(r+=4);for(let _=16;_<80;_++){const j=sa[_-15]|0,k=ca[_-15]|0,D=Xo(j,k,1)^Xo(j,k,8)^nv(j,k,7),U=Zo(j,k,1)^Zo(j,k,8)^rv(j,k,7),Q=sa[_-2]|0,F=ca[_-2]|0,ie=Xo(Q,F,19)^Vl(Q,F,61)^nv(Q,F,6),le=Zo(Q,F,19)^Wl(Q,F,61)^rv(Q,F,6),ae=Nx(U,le,ca[_-7],ca[_-16]),L=Ix(ae,D,ie,sa[_-7],sa[_-16]);sa[_]=L|0,ca[_]=ae|0}let{Ah:o,Al:s,Bh:c,Bl:u,Ch:f,Cl:p,Dh:h,Dl:g,Eh:b,El:m,Fh:v,Fl:w,Gh:C,Gl:A,Hh:B,Hl:T}=this;for(let _=0;_<80;_++){const j=Xo(b,m,14)^Xo(b,m,18)^Vl(b,m,41),k=Zo(b,m,14)^Zo(b,m,18)^Wl(b,m,41),D=b&v^~b&C,U=m&w^~m&A,Q=Ux(T,k,U,oS[_],ca[_]),F=zx(Q,B,j,D,aS[_],sa[_]),ie=Q|0,le=Xo(o,s,28)^Vl(o,s,34)^Vl(o,s,39),ae=Zo(o,s,28)^Wl(o,s,34)^Wl(o,s,39),L=o&c^o&f^c&f,V=s&u^s&p^u&p;B=C|0,T=A|0,C=v|0,A=w|0,v=b|0,w=m|0,{h:b,l:m}=Cr(h|0,g|0,F|0,ie|0),h=f|0,g=p|0,f=c|0,p=u|0,c=o|0,u=s|0;const $=Rx(ie,ae,V);o=Dx($,F,le,L),s=$|0}({h:o,l:s}=Cr(this.Ah|0,this.Al|0,o|0,s|0)),{h:c,l:u}=Cr(this.Bh|0,this.Bl|0,c|0,u|0),{h:f,l:p}=Cr(this.Ch|0,this.Cl|0,f|0,p|0),{h,l:g}=Cr(this.Dh|0,this.Dl|0,h|0,g|0),{h:b,l:m}=Cr(this.Eh|0,this.El|0,b|0,m|0),{h:v,l:w}=Cr(this.Fh|0,this.Fl|0,v|0,w|0),{h:C,l:A}=Cr(this.Gh|0,this.Gl|0,C|0,A|0),{h:B,l:T}=Cr(this.Hh|0,this.Hl|0,B|0,T|0),this.set(o,s,c,u,f,p,h,g,b,m,v,w,C,A,B,T)}roundClean(){pa(sa,ca)}destroy(){pa(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class iS extends i5{constructor(){super(48),this.Ah=Ot[0]|0,this.Al=Ot[1]|0,this.Bh=Ot[2]|0,this.Bl=Ot[3]|0,this.Ch=Ot[4]|0,this.Cl=Ot[5]|0,this.Dh=Ot[6]|0,this.Dl=Ot[7]|0,this.Eh=Ot[8]|0,this.El=Ot[9]|0,this.Fh=Ot[10]|0,this.Fl=Ot[11]|0,this.Gh=Ot[12]|0,this.Gl=Ot[13]|0,this.Hh=Ot[14]|0,this.Hl=Ot[15]|0}}const s5=zu(()=>new rS),xN=zu(()=>new i5),SN=zu(()=>new iS),sS=s5;function cS(e,t){return sS(Xn(e,{strict:!1})?Si(e):e)}function lS(e){const{commitment:t,version:r=1}=e,o=e.to??(typeof t=="string"?"hex":"bytes"),s=cS(t);return s.set([r],0),o==="bytes"?s:mt(s)}function uS(e){const{commitments:t,version:r}=e,o=e.to,s=[];for(const c of t)s.push(lS({commitment:c,to:o,version:r}));return s}const _v=6,c5=32,Xp=4096,l5=c5*Xp,Bv=l5*_v-1-1*Xp*_v;class fS extends se{constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class dS extends se{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}function hS(e){const t=typeof e.data=="string"?jn(e.data):e.data,r=Je(t);if(!r)throw new dS;if(r>Bv)throw new fS({maxSize:Bv,size:r});const o=[];let s=!0,c=0;for(;s;){const u=jp(new Uint8Array(l5));let f=0;for(;f<Xp;){const p=t.slice(c,c+(c5-1));if(u.pushByte(0),u.pushBytes(p),p.length<31){u.pushByte(128),s=!1;break}f++,c+=31}o.push(u)}return o.map(u=>mt(u.bytes))}function pS(e){const{data:t,kzg:r,to:o}=e,s=e.blobs??hS({data:t}),c=e.commitments??n5({blobs:s,kzg:r,to:o}),u=e.proofs??r5({blobs:s,commitments:c,kzg:r,to:o}),f=[];for(let p=0;p<s.length;p++)f.push({blob:s[p],commitment:c[p],proof:u[p]});return f}function mS(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new _7({transaction:e})}async function Zp(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Jn(t)}const u5=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Tv=new Map;async function Jp(e,t){const{account:r=e.account,blobs:o,chain:s,gas:c,kzg:u,nonce:f,nonceManager:p,parameters:h=u5,type:g}=t,b=r&&Ft(r),m={...t,...b?{from:b?.address}:{}};let v;async function w(){return v||(v=await we(e,Wn,"getBlock")({blockTag:"latest"}),v)}let C;async function A(){return C||(s?s.id:typeof t.chainId<"u"?t.chainId:(C=await we(e,Zp,"getChainId")({}),C))}if(h.includes("nonce")&&typeof f>"u"&&b)if(p){const B=await A();m.nonce=await p.consume({address:b.address,chainId:B,client:e})}else m.nonce=await we(e,t5,"getTransactionCount")({address:b.address,blockTag:"pending"});if((h.includes("blobVersionedHashes")||h.includes("sidecars"))&&o&&u){const B=n5({blobs:o,kzg:u});if(h.includes("blobVersionedHashes")){const T=uS({commitments:B,to:"hex"});m.blobVersionedHashes=T}if(h.includes("sidecars")){const T=r5({blobs:o,commitments:B,kzg:u}),_=pS({blobs:o,commitments:B,proofs:T,to:"hex"});m.sidecars=_}}if(h.includes("chainId")&&(m.chainId=await A()),(h.includes("fees")||h.includes("type"))&&typeof g>"u")try{m.type=mS(m)}catch{let B=Tv.get(e.uid);typeof B>"u"&&(B=typeof(await w())?.baseFeePerGas=="bigint",Tv.set(e.uid,B)),m.type=B?"eip1559":"legacy"}if(h.includes("fees"))if(m.type!=="legacy"&&m.type!=="eip2930"){if(typeof m.maxFeePerGas>"u"||typeof m.maxPriorityFeePerGas>"u"){const B=await w(),{maxFeePerGas:T,maxPriorityFeePerGas:_}=await Kh(e,{block:B,chain:s,request:m});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<_)throw new K9({maxPriorityFeePerGas:_});m.maxPriorityFeePerGas=_,m.maxFeePerGas=T}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new Kp;if(typeof t.gasPrice>"u"){const B=await w(),{gasPrice:T}=await Kh(e,{block:B,chain:s,request:m,type:"legacy"});m.gasPrice=T}}return h.includes("gas")&&typeof c>"u"&&(m.gas=await we(e,tm,"estimateGas")({...m,account:b&&{address:b.address,type:"json-rpc"}})),ji(m),delete m.parameters,m}async function em(e,{address:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest"}){const s=typeof r=="bigint"?ge(r):void 0,c=await e.request({method:"eth_getBalance",params:[t,s||o]});return BigInt(c)}async function tm(e,t){const{account:r=e.account}=t,o=r?Ft(r):void 0;try{let le=function(L){const{block:V,request:$,rpcStateOverride:I}=L;return e.request({method:"eth_estimateGas",params:I?[$,V??e.experimental_blockTag??"latest",I]:V?[$,V]:[$]})};const{accessList:s,authorizationList:c,blobs:u,blobVersionedHashes:f,blockNumber:p,blockTag:h,data:g,gas:b,gasPrice:m,maxFeePerBlobGas:v,maxFeePerGas:w,maxPriorityFeePerGas:C,nonce:A,value:B,stateOverride:T,..._}=await Jp(e,{...t,parameters:o?.type==="local"?void 0:["blobVersionedHashes"]}),k=(typeof p=="bigint"?ge(p):void 0)||h,D=Vp(T),U=await(async()=>{if(_.to)return _.to;if(c&&c.length>0)return await K2({authorization:c[0]}).catch(()=>{throw new se("`to` is required. Could not infer from `authorizationList`")})})();ji(t);const Q=e.chain?.formatters?.transactionRequest?.format,ie=(Q||Ac)({...Wu(_,{format:Q}),from:o?.address,accessList:s,authorizationList:c,blobs:u,blobVersionedHashes:f,data:g,gas:b,gasPrice:m,maxFeePerBlobGas:v,maxFeePerGas:w,maxPriorityFeePerGas:C,nonce:A,to:U,value:B});let ae=BigInt(await le({block:k,request:ie,rpcStateOverride:D}));if(c){const L=await em(e,{address:ie.from}),V=await Promise.all(c.map(async $=>{const{address:I}=$,Y=await le({block:k,request:{authorizationList:void 0,data:g,from:o?.address,to:I,value:ge(L)},rpcStateOverride:D}).catch(()=>100000n);return 2n*BigInt(Y)}));ae+=V.reduce(($,I)=>$+I,0n)}return ae}catch(s){throw W9(s,{...t,account:o,chain:e.chain})}}async function gS(e,t){const{abi:r,address:o,args:s,functionName:c,dataSuffix:u,...f}=t,p=zn({abi:r,args:s,functionName:c});try{return await we(e,tm,"estimateGas")({data:`${p}${u?u.replace("0x",""):""}`,to:o,...f})}catch(h){const g=f.account?Ft(f.account):void 0;throw Ka(h,{abi:r,address:o,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:c,sender:g?.address})}}async function bS(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}const yS=new Map,vS=new Map;function wS(e){const t=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:u=>c.set(s,u)}),r=t(e,yS),o=t(e,vS);return{clear:()=>{r.clear(),o.clear()},promise:r,response:o}}async function CS(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const o=wS(t),s=o.response.get();if(s&&r>0&&Date.now()-s.created.getTime()<r)return s.data;let c=o.promise.get();c||(c=e(),o.promise.set(c));try{const u=await c;return o.response.set({created:new Date,data:u}),u}finally{o.promise.clear()}}const ES=e=>`blockNumber.${e}`;async function _c(e,{cacheTime:t=e.cacheTime}={}){const r=await CS(()=>e.request({method:"eth_blockNumber"}),{cacheKey:ES(e.uid),cacheTime:t});return BigInt(r)}async function AS(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){const s=r!==void 0?ge(r):void 0;let c;return t?c=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):c=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||o]},{dedupe:!!s}),Jn(c)}async function jv(e,{address:t,blockNumber:r,blockTag:o="latest"}){const s=r!==void 0?ge(r):void 0,c=await e.request({method:"eth_getCode",params:[t,s||o]},{dedupe:!!s});if(c!=="0x")return c}function nm(e,t){if(!dn(e,{strict:!1}))throw new ha({address:e});if(!dn(t,{strict:!1}))throw new ha({address:t});return e.toLowerCase()===t.toLowerCase()}const kv="/docs/contract/decodeEventLog";function rm(e){const{abi:t,data:r,strict:o,topics:s}=e,c=o??!0,[u,...f]=s;if(!u)throw new fx({docsPath:kv});const p=t.find(C=>C.type==="event"&&u===qu(Un(C)));if(!(p&&"name"in p)||p.type!=="event")throw new Bw(u,{docsPath:kv});const{name:h,inputs:g}=p,b=g?.some(C=>!("name"in C&&C.name)),m=b?[]:{},v=g.map((C,A)=>[C,A]).filter(([C])=>"indexed"in C&&C.indexed);for(let C=0;C<v.length;C++){const[A,B]=v[C],T=f[C];if(!T)throw new Nu({abiItem:p,param:A});m[b?B:A.name||B]=xS({param:A,value:T})}const w=g.filter(C=>!("indexed"in C&&C.indexed));if(w.length>0){if(r&&r!=="0x")try{const C=yc(w,r);if(C)if(b)for(let A=0;A<g.length;A++)m[A]=m[A]??C.shift();else for(let A=0;A<w.length;A++)m[w[A].name]=C[A]}catch(C){if(c)throw C instanceof Sw||C instanceof Gw?new Fs({abiItem:p,data:r,params:w,size:Je(r)}):C}else if(c)throw new Fs({abiItem:p,data:"0x",params:w,size:0})}return{eventName:h,args:Object.values(m).length>0?m:void 0}}function xS({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(yc([e],t)||[])[0]}function am(e){const{abi:t,args:r,logs:o,strict:s=!0}=e,c=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return o.map(u=>{try{const f=t.find(h=>h.type==="event"&&u.topics[0]===qu(h));if(!f)return null;const p=rm({...u,abi:[f],strict:s});return c&&!c.includes(p.eventName)||!SS({args:p.args,inputs:f.inputs,matchArgs:r})?null:{...p,...u}}catch(f){let p,h;if(f instanceof Bw)return null;if(f instanceof Fs||f instanceof Nu){if(s)return null;p=f.abiItem.name,h=f.abiItem.inputs?.some(g=>!("name"in g&&g.name))}return{...u,args:h?[]:{},eventName:p}}}).filter(Boolean)}function SS(e){const{args:t,inputs:r,matchArgs:o}=e;if(!o)return!0;if(!t)return!1;function s(c,u,f){try{return c.type==="address"?nm(u,f):c.type==="string"||c.type==="bytes"?St(Si(u))===f:u===f}catch{return!1}}return Array.isArray(t)&&Array.isArray(o)?o.every((c,u)=>{if(c==null)return!0;const f=r[u];return f?(Array.isArray(c)?c:[c]).some(h=>s(f,h,t[u])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof o=="object"&&!Array.isArray(o)?Object.entries(o).every(([c,u])=>{if(u==null)return!0;const f=r.find(h=>h.name===c);return f?(Array.isArray(u)?u:[u]).some(h=>s(f,h,t[c])):!1}):!1}function kr(e,{args:t,eventName:r}={}){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,...r?{args:t,eventName:r}:{}}}async function om(e,{address:t,blockHash:r,fromBlock:o,toBlock:s,event:c,events:u,args:f,strict:p}={}){const h=p??!1,g=u??(c?[c]:void 0);let b=[];g&&(b=[g.flatMap(C=>Sc({abi:[C],eventName:C.name,args:u?void 0:f}))],c&&(b=b[0]));let m;r?m=await e.request({method:"eth_getLogs",params:[{address:t,topics:b,blockHash:r}]}):m=await e.request({method:"eth_getLogs",params:[{address:t,topics:b,fromBlock:typeof o=="bigint"?ge(o):o,toBlock:typeof s=="bigint"?ge(s):s}]});const v=m.map(w=>kr(w));return g?am({abi:g,args:f,logs:v,strict:h}):v}async function f5(e,t){const{abi:r,address:o,args:s,blockHash:c,eventName:u,fromBlock:f,toBlock:p,strict:h}=t,g=u?no({abi:r,name:u}):void 0,b=g?void 0:r.filter(m=>m.type==="event");return we(e,om,"getLogs")({address:o,args:s,blockHash:c,event:g,events:b,fromBlock:f,toBlock:p,strict:h})}class _S extends se{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function BS(e,t){const{address:r,factory:o,factoryData:s}=t;try{const[c,u,f,p,h,g,b]=await we(e,nr,"readContract")({abi:TS,address:r,functionName:"eip712Domain",factory:o,factoryData:s});return{domain:{name:u,version:f,chainId:Number(p),verifyingContract:h,salt:g},extensions:b,fields:c}}catch(c){const u=c;throw u.name==="ContractFunctionExecutionError"&&u.cause.name==="ContractFunctionZeroDataError"?new _S({address:r}):u}}const TS=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function jS(e){return{baseFeePerGas:e.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(t=>t.map(r=>BigInt(r)))}}async function kS(e,{blockCount:t,blockNumber:r,blockTag:o="latest",rewardPercentiles:s}){const c=typeof r=="bigint"?ge(r):void 0,u=await e.request({method:"eth_feeHistory",params:[ge(t),c||o,s]},{dedupe:!!c});return jS(u)}async function Ku(e,{filter:t}){const r="strict"in t&&t.strict,o=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof o[0]=="string")return o;const s=o.map(c=>kr(c));return!("abi"in t)||!t.abi?s:am({abi:t.abi,logs:s,strict:r})}async function OS(e,{filter:t}){const r=t.strict??!1,s=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(c=>kr(c));return t.abi?am({abi:t.abi,logs:s,strict:r}):s}const Kl=new Lu(8192);function MS(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(Kl.get(r))return Kl.get(r);const o=e().finally(()=>Kl.delete(r));return Kl.set(r,o),o}async function Yh(e){return new Promise(t=>setTimeout(t,e))}function vi(e,{delay:t=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((s,c)=>{const u=async({count:f=0}={})=>{const p=async({error:h})=>{const g=typeof t=="function"?t({count:f,error:h}):t;g&&await Yh(g),u({count:f+1})};try{const h=await e();s(h)}catch(h){if(f<r&&await o({count:f,error:h}))return p({error:h});c(h)}};u()})}function RS(e,t={}){return async(r,o={})=>{const{dedupe:s=!1,methods:c,retryDelay:u=150,retryCount:f=3,uid:p}={...t,...o},{method:h}=r;if(c?.exclude?.includes(h))throw new Pa(new Error("method not supported"),{method:h});if(c?.include&&!c.include.includes(h))throw new Pa(new Error("method not supported"),{method:h});const g=s?mi(`${p}.${_t(r)}`):void 0;return MS(()=>vi(async()=>{try{return await e(r)}catch(b){const m=b;switch(m.code){case Gs.code:throw new Gs(m);case Vs.code:throw new Vs(m);case Ws.code:throw new Ws(m,{method:r.method});case $s.code:throw new $s(m);case Wa.code:throw new Wa(m);case $a.code:throw new $a(m);case Ks.code:throw new Ks(m);case Kn.code:throw new Kn(m);case Ys.code:throw new Ys(m);case Pa.code:throw new Pa(m,{method:r.method});case yi.code:throw new yi(m);case Xs.code:throw new Xs(m);case Ue.code:throw new Ue(m);case Zs.code:throw new Zs(m);case Js.code:throw new Js(m);case ec.code:throw new ec(m);case tc.code:throw new tc(m);case zt.code:throw new zt(m);case nc.code:throw new nc(m);case rc.code:throw new rc(m);case ac.code:throw new ac(m);case oc.code:throw new oc(m);case ic.code:throw new ic(m);case sc.code:throw new sc(m);case cc.code:throw new cc(m);case 5e3:throw new Ue(m);default:throw b instanceof se?b:new L7(m)}}},{delay:({count:b,error:m})=>{if(m&&m instanceof Ps){const v=m?.headers?.get("Retry-After");if(v?.match(/\d/))return Number.parseInt(v,10)*1e3}return~~(1<<b)*u},retryCount:f,shouldRetry:({error:b})=>DS(b)}),{enabled:s,id:g})}}function DS(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===yi.code||e.code===Wa.code:e instanceof Ps&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function NS({chain:e,currentChainId:t}){if(!e)throw new m7;if(t!==e.id)throw new p7({chain:e,currentChainId:t})}function im(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function IS(e,{docsPath:t,...r}){const o=(()=>{const s=Vu(e,r);return s instanceof Ec?e:s})();return new B7(o,{docsPath:t,...r})}const US={"0x0":"reverted","0x1":"success"};function zS(e){const t={...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(r=>kr(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Jn(e.transactionIndex):null,status:e.status?US[e.status]:null,type:e.type?X2[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}function Yu(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:o}){return new Promise((s,c)=>{(async()=>{let u;try{const f=new AbortController;r>0&&(u=setTimeout(()=>{o?f.abort():c(t)},r)),s(await e({signal:f?.signal||null}))}catch(f){f?.name==="AbortError"&&c(t),c(f)}finally{clearTimeout(u)}})()})}function LS(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Ov=LS();function PS(e,t={}){return{async request(r){const{body:o,onRequest:s=t.onRequest,onResponse:c=t.onResponse,timeout:u=t.timeout??1e4}=r,f={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:p,method:h,signal:g}=f;try{const b=await Yu(async({signal:v})=>{const w={...f,body:Array.isArray(o)?_t(o.map(T=>({jsonrpc:"2.0",id:T.id??Ov.take(),...T}))):_t({jsonrpc:"2.0",id:o.id??Ov.take(),...o}),headers:{"Content-Type":"application/json",...p},method:h||"POST",signal:g||(u>0?v:null)},C=new Request(e,w),A=await s?.(C,w)??{...w,url:e};return await fetch(A.url??e,A)},{errorInstance:new mv({body:o,url:e}),timeout:u,signal:!0});c&&await c(b);let m;if(b.headers.get("Content-Type")?.startsWith("application/json"))m=await b.json();else{m=await b.text();try{m=JSON.parse(m||"{}")}catch(v){if(b.ok)throw v;m={error:m}}}if(!b.ok)throw new Ps({body:o,details:_t(m.error)||b.statusText,headers:b.headers,status:b.status,url:e});return m}catch(b){throw b instanceof Ps||b instanceof mv?b:new Ps({body:o,cause:b,url:e})}}}}const qS=`Ethereum Signed Message:
`;function FS(e){const t=typeof e=="string"?mi(e):typeof e.raw=="string"?e.raw:mt(e.raw),r=mi(`${qS}${Je(t)}`);return er([r,t])}function d5(e,t){return St(FS(e),t)}class HS extends se{constructor({domain:t}){super(`Invalid domain "${_t(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class QS extends se{constructor({primaryType:t,types:r}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(r))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class GS extends se{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function VS(e){const{domain:t,message:r,primaryType:o,types:s}=e,c=(u,f)=>{for(const p of u){const{name:h,type:g}=p,b=f[h],m=g.match(Yw);if(m&&(typeof b=="number"||typeof b=="bigint")){const[C,A,B]=m;ge(b,{signed:A==="int",size:Number.parseInt(B,10)/8})}if(g==="address"&&typeof b=="string"&&!dn(b))throw new ha({address:b});const v=g.match(s4);if(v){const[C,A]=v;if(A&&Je(b)!==Number.parseInt(A,10))throw new px({expectedSize:Number.parseInt(A,10),givenSize:Je(b)})}const w=s[g];w&&($S(g),c(w,b))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new HS({domain:t});c(s.EIP712Domain,t)}if(o!=="EIP712Domain")if(s[o])c(s[o],r);else throw new QS({primaryType:o,types:s})}function WS({domain:e}){return[typeof e?.name=="string"&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},(typeof e?.chainId=="number"||typeof e?.chainId=="bigint")&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function $S(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new GS({type:e})}function KS(e){const{domain:t={},message:r,primaryType:o}=e,s={EIP712Domain:WS({domain:t}),...e.types};VS({domain:t,message:r,primaryType:o,types:s});const c=["0x1901"];return t&&c.push(YS({domain:t,types:s})),o!=="EIP712Domain"&&c.push(h5({data:r,primaryType:o,types:s})),St(er(c))}function YS({domain:e,types:t}){return h5({data:e,primaryType:"EIP712Domain",types:t})}function h5({data:e,primaryType:t,types:r}){const o=p5({data:e,primaryType:t,types:r});return St(o)}function p5({data:e,primaryType:t,types:r}){const o=[{type:"bytes32"}],s=[XS({primaryType:t,types:r})];for(const c of r[t]){const[u,f]=g5({types:r,name:c.name,type:c.type,value:e[c.name]});o.push(u),s.push(f)}return ba(o,s)}function XS({primaryType:e,types:t}){const r=Tr(ZS({primaryType:e,types:t}));return St(r)}function ZS({primaryType:e,types:t}){let r="";const o=m5({primaryType:e,types:t});o.delete(e);const s=[e,...Array.from(o).sort()];for(const c of s)r+=`${c}(${t[c].map(({name:u,type:f})=>`${f} ${u}`).join(",")})`;return r}function m5({primaryType:e,types:t},r=new Set){const s=e.match(/^\w*/u)?.[0];if(r.has(s)||t[s]===void 0)return r;r.add(s);for(const c of t[s])m5({primaryType:c.type,types:t},r);return r}function g5({types:e,name:t,type:r,value:o}){if(e[r]!==void 0)return[{type:"bytes32"},St(p5({data:o,primaryType:r,types:e}))];if(r==="bytes")return o=`0x${(o.length%2?"0":"")+o.slice(2)}`,[{type:"bytes32"},St(o)];if(r==="string")return[{type:"bytes32"},St(Tr(o))];if(r.lastIndexOf("]")===r.length-1){const s=r.slice(0,r.lastIndexOf("[")),c=o.map(u=>g5({name:t,type:s,types:e,value:u}));return[{type:"bytes32"},St(ba(c.map(([u])=>u),c.map(([,u])=>u)))]}return[{type:r},o]}const b5="0x6492649264926492649264926492649264926492649264926492649264926492";function JS(e){return Kw(e,-32)===b5}function e_(e){const{address:t,data:r,signature:o,to:s="hex"}=e,c=_i([ba([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,o]),b5]);return s==="hex"?c:jn(c)}class t_ extends se{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function n_(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new t_({value:e});let[r,o="0"]=e.split(".");const s=r.startsWith("-");if(s&&(r=r.slice(1)),o=o.replace(/(0+)$/,""),o.length>t){const[c,u,f]=[o.slice(0,t-1),o.slice(t-1,t),o.slice(t)],p=Math.round(+`${u}.${f}`);p>9?o=`${BigInt(c)+BigInt(1)}0`.padStart(c.length+1,"0"):o=`${c}${p}`,o.length>t&&(o=o.slice(1),r=`${BigInt(r)+1n}`),o=o.slice(0,t)}else o=o.padEnd(t,"0");return BigInt(`${s?"-":""}${r}${o}`)}function r_(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function a_(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Jn(e.nonce):void 0,storageProof:e.storageProof?r_(e.storageProof):void 0}}async function o_(e,{address:t,blockNumber:r,blockTag:o,storageKeys:s}){const c=o??"latest",u=r!==void 0?ge(r):void 0,f=await e.request({method:"eth_getProof",params:[t,s,u||c]});return a_(f)}async function i_(e,{address:t,blockNumber:r,blockTag:o="latest",slot:s}){const c=r!==void 0?ge(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,s,c||o]})}async function Xu(e,{blockHash:t,blockNumber:r,blockTag:o,hash:s,index:c}){const u=o||"latest",f=r!==void 0?ge(r):void 0;let p=null;if(s?p=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,ge(c)]},{dedupe:!0}):p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||u,ge(c)]},{dedupe:!!f}),!p)throw new m2({blockHash:t,blockNumber:r,blockTag:u,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||Z2)(p)}async function s_(e,{hash:t,transactionReceipt:r}){const[o,s]=await Promise.all([we(e,_c,"getBlockNumber")({}),t?we(e,Xu,"getTransaction")({hash:t}):void 0]),c=r?.blockNumber||s?.blockNumber;return c?o-c+1n:0n}async function lu(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new g2({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||zS)(r)}async function y5(e,t){const{account:r,authorizationList:o,allowFailure:s=!0,blockNumber:c,blockTag:u,stateOverride:f}=t,p=t.contracts,{batchSize:h=t.batchSize??1024,deployless:g=t.deployless??!1}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},b=(()=>{if(t.multicallAddress)return t.multicallAddress;if(g)return null;if(e.chain)return Ti({blockNumber:c,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),m=[[]];let v=0,w=0;for(let B=0;B<p.length;B++){const{abi:T,address:_,args:j,functionName:k}=p[B];try{const D=zn({abi:T,args:j,functionName:k});w+=(D.length-2)/2,h>0&&w>h&&m[v].length>0&&(v++,w=(D.length-2)/2,m[v]=[]),m[v]=[...m[v],{allowFailure:!0,callData:D,target:_}]}catch(D){const U=Ka(D,{abi:T,address:_,args:j,docsPath:"/docs/contract/multicall",functionName:k,sender:r});if(!s)throw U;m[v]=[...m[v],{allowFailure:!0,callData:"0x",target:_}]}}const C=await Promise.allSettled(m.map(B=>we(e,nr,"readContract")({...b===null?{code:M2}:{address:b},abi:Bh,account:r,args:[B],authorizationList:o,blockNumber:c,blockTag:u,functionName:"aggregate3",stateOverride:f}))),A=[];for(let B=0;B<C.length;B++){const T=C[B];if(T.status==="rejected"){if(!s)throw T.reason;for(let j=0;j<m[B].length;j++)A.push({status:"failure",error:T.reason,result:void 0});continue}const _=T.value;for(let j=0;j<_.length;j++){const{returnData:k,success:D}=_[j],{callData:U}=m[B][j],{abi:Q,address:F,functionName:ie,args:le}=p[A.length];try{if(U==="0x")throw new bc;if(!D)throw new Hu({data:k});const ae=ro({abi:Q,args:le,data:k,functionName:ie});A.push(s?{result:ae,status:"success"}:ae)}catch(ae){const L=Ka(ae,{abi:Q,address:F,args:le,docsPath:"/docs/contract/multicall",functionName:ie});if(!s)throw L;A.push({error:L,result:void 0,status:"failure"})}}}if(A.length!==p.length)throw new se("multicall results mismatch");return A}async function Xh(e,t){const{blockNumber:r,blockTag:o=e.experimental_blockTag??"latest",blocks:s,returnFullTransactions:c,traceTransfers:u,validation:f}=t;try{const p=[];for(const m of s){const v=m.blockOverrides?k2(m.blockOverrides):void 0,w=m.calls.map(A=>{const B=A,T=B.account?Ft(B.account):void 0,_=B.abi?zn(B):B.data,j={...B,data:B.dataSuffix?er([_||"0x",B.dataSuffix]):_,from:B.from??T?.address};return ji(j),Ac(j)}),C=m.stateOverrides?Vp(m.stateOverrides):void 0;p.push({blockOverrides:v,calls:w,stateOverrides:C})}const g=(typeof r=="bigint"?ge(r):void 0)||o;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:p,returnFullTransactions:c,traceTransfers:u,validation:f},g]})).map((m,v)=>({...J2(m),calls:m.calls.map((w,C)=>{const{abi:A,args:B,functionName:T,to:_}=s[v].calls[C],j=w.error?.data??w.returnData,k=BigInt(w.gasUsed),D=w.logs?.map(ie=>kr(ie)),U=w.status==="0x1"?"success":"failure",Q=A&&U==="success"&&j!=="0x"?ro({abi:A,data:j,functionName:T}):null,F=(()=>{if(U==="success")return;let ie;if(w.error?.data==="0x"?ie=new bc:w.error&&(ie=new Hu(w.error)),!!ie)return Ka(ie,{abi:A??[],address:_??"0x",args:B,functionName:T??"<unknown>"})})();return{data:j,gasUsed:k,logs:D,status:U,...U==="success"?{result:Q}:{error:F}}})}))}catch(p){const h=p,g=Vu(h,{});throw g instanceof Ec?h:g}}function v5(e,t={}){const{as:r=typeof e=="string"?"Hex":"Bytes"}=t,o=Qw(J7(e));return r==="Bytes"?o:B2(o)}class c_ extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const o=this.keys().next().value;o&&this.delete(o)}return this}}const l_={checksum:new c_(8192)},F0=l_.checksum,u_=/^0x[a-fA-F0-9]{40}$/;function Zu(e,t={}){const{strict:r=!0}=t;if(!u_.test(e))throw new Mv({address:e,cause:new d_});if(r){if(e.toLowerCase()===e)return;if(f_(e)!==e)throw new Mv({address:e,cause:new h_})}}function f_(e){if(F0.has(e))return F0.get(e);Zu(e,{strict:!1});const t=e.substring(2).toLowerCase(),r=v5(n9(t),{as:"Bytes"}),o=t.split("");for(let c=0;c<40;c+=2)r[c>>1]>>4>=8&&o[c]&&(o[c]=o[c].toUpperCase()),(r[c>>1]&15)>=8&&o[c+1]&&(o[c+1]=o[c+1].toUpperCase());const s=`0x${o.join("")}`;return F0.set(e,s),s}function Zh(e,t={}){const{strict:r=!0}=t??{};try{return Zu(e,{strict:r}),!0}catch{return!1}}class Mv extends nt{constructor({address:t,cause:r}){super(`Address "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class d_ extends nt{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class h_ extends nt{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function Jh(e){let t=!0,r="",o=0,s="",c=!1;for(let u=0;u<e.length;u++){const f=e[u];if(["(",")",","].includes(f)&&(t=!0),f==="("&&o++,f===")"&&o--,!!t){if(o===0){if(f===" "&&["event","function","error",""].includes(s))s="";else if(s+=f,f===")"){c=!0;break}continue}if(f===" "){e[u-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=f,r+=f}}if(!c)throw new nt("Unable to normalize signature.");return s}function ep(e,t){const r=typeof e,o=t.type;switch(o){case"address":return Zh(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return o==="tuple"&&"components"in t?Object.values(t.components).every((s,c)=>ep(Object.values(e)[c],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)?Array.isArray(e)&&e.every(s=>ep(s,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function w5(e,t,r){for(const o in e){const s=e[o],c=t[o];if(s.type==="tuple"&&c.type==="tuple"&&"components"in s&&"components"in c)return w5(s.components,c.components,r[o]);const u=[s.type,c.type];if(u.includes("address")&&u.includes("bytes20")?!0:u.includes("address")&&u.includes("string")?Zh(r[o],{strict:!1}):u.includes("address")&&u.includes("bytes")?Zh(r[o],{strict:!1}):!1)return u}}function C5(e,t={}){const{prepare:r=!0}=t,o=Array.isArray(e)||typeof e=="string"?fv(e):e;return{...o,...r?{hash:si(o)}:{}}}function p_(e,t,r){const{args:o=[],prepare:s=!0}=r??{},c=l9(t,{strict:!1}),u=e.filter(h=>c?h.type==="function"||h.type==="error"?E5(h)===Qp(t,0,4):h.type==="event"?si(h)===t:!1:"name"in h&&h.name===t);if(u.length===0)throw new tp({name:t});if(u.length===1)return{...u[0],...s?{hash:si(u[0])}:{}};let f;for(const h of u){if(!("inputs"in h))continue;if(!o||o.length===0){if(!h.inputs||h.inputs.length===0)return{...h,...s?{hash:si(h)}:{}};continue}if(!h.inputs||h.inputs.length===0||h.inputs.length!==o.length)continue;if(o.every((b,m)=>{const v="inputs"in h&&h.inputs[m];return v?ep(b,v):!1})){if(f&&"inputs"in f&&f.inputs){const b=w5(h.inputs,f.inputs,o);if(b)throw new g_({abiItem:h,type:b[0]},{abiItem:f,type:b[1]})}f=h}}const p=(()=>{if(f)return f;const[h,...g]=u;return{...h,overloads:g}})();if(!p)throw new tp({name:t});return{...p,...s?{hash:si(p)}:{}}}function E5(e){return Qp(si(e),0,4)}function m_(e){const t=typeof e=="string"?e:bu(e);return Jh(t)}function si(e){return typeof e!="string"&&"hash"in e&&e.hash?e.hash:v5(Hp(m_(e)))}class g_ extends nt{constructor(t,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Jh(bu(t.abiItem))}\`, and`,`\`${r.type}\` in \`${Jh(bu(r.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class tp extends nt{constructor({name:t,data:r,type:o="item"}){const s=t?` with name "${t}"`:r?` with data "${r}"`:"";super(`ABI ${o}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}const b_=/^(.*)\[([0-9]*)\]$/,y_=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,A5=/^(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 v_({checksumAddress:e,parameters:t,values:r}){const o=[];for(let s=0;s<t.length;s++)o.push(sm({checksumAddress:e,parameter:t[s],value:r[s]}));return o}function sm({checksumAddress:e=!1,parameter:t,value:r}){const o=t,s=B_(o.type);if(s){const[c,u]=s;return C_(r,{checksumAddress:e,length:c,parameter:{...o,type:u}})}if(o.type==="tuple")return __(r,{checksumAddress:e,parameter:o});if(o.type==="address")return w_(r,{checksum:e});if(o.type==="bool")return A_(r);if(o.type.startsWith("uint")||o.type.startsWith("int")){const c=o.type.startsWith("int"),[,,u="256"]=A5.exec(o.type)??[];return x_(r,{signed:c,size:Number(u)})}if(o.type.startsWith("bytes"))return E_(r,{type:o.type});if(o.type==="string")return S_(r);throw new B5(o.type)}function cm(e){let t=0;for(let c=0;c<e.length;c++){const{dynamic:u,encoded:f}=e[c];u?t+=32:t+=kn(f)}const r=[],o=[];let s=0;for(let c=0;c<e.length;c++){const{dynamic:u,encoded:f}=e[c];u?(r.push(Ut(t+s,{size:32})),o.push(f),s+=kn(f)):r.push(f)}return tr(...r,...o)}function w_(e,t){const{checksum:r=!1}=t;return Zu(e,{strict:r}),{dynamic:!1,encoded:Ya(e.toLowerCase())}}function C_(e,t){const{checksumAddress:r,length:o,parameter:s}=t,c=o===null;if(!Array.isArray(e))throw new j_(e);if(!c&&e.length!==o)throw new T_({expectedLength:o,givenLength:e.length,type:`${s.type}[${o}]`});let u=!1;const f=[];for(let p=0;p<e.length;p++){const h=sm({checksumAddress:r,parameter:s,value:e[p]});h.dynamic&&(u=!0),f.push(h)}if(c||u){const p=cm(f);if(c){const h=Ut(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?tr(h,p):h}}if(u)return{dynamic:!0,encoded:p}}return{dynamic:!1,encoded:tr(...f.map(({encoded:p})=>p))}}function E_(e,{type:t}){const[,r]=t.split("bytes"),o=kn(e);if(!r){let s=e;return o%32!==0&&(s=Xa(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:tr(Ya(Ut(o,{size:32})),s)}}if(o!==Number.parseInt(r,10))throw new S5({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Xa(e)}}function A_(e){if(typeof e!="boolean")throw new nt(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ya(_2(e))}}function x_(e,{signed:t,size:r}){if(typeof r=="number"){const o=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-o-1n:0n;if(e>o||e<s)throw new T2({max:o.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Ut(e,{size:32,signed:t})}}function S_(e){const t=Hp(e),r=Math.ceil(kn(t)/32),o=[];for(let s=0;s<r;s++)o.push(Xa(Qp(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:tr(Xa(Ut(kn(t),{size:32})),...o)}}function __(e,t){const{checksumAddress:r,parameter:o}=t;let s=!1;const c=[];for(let u=0;u<o.components.length;u++){const f=o.components[u],p=Array.isArray(e)?u:f.name,h=sm({checksumAddress:r,parameter:f,value:e[p]});c.push(h),h.dynamic&&(s=!0)}return{dynamic:s,encoded:s?cm(c):tr(...c.map(({encoded:u})=>u))}}function B_(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function x5(e,t,r){const{checksumAddress:o=!1}={};if(e.length!==t.length)throw new _5({expectedLength:e.length,givenLength:t.length});const s=v_({checksumAddress:o,parameters:e,values:t}),c=cm(s);return c.length===0?"0x":c}function np(e,t){if(e.length!==t.length)throw new _5({expectedLength:e.length,givenLength:t.length});const r=[];for(let o=0;o<e.length;o++){const s=e[o],c=t[o];r.push(np.encode(s,c))}return tr(...r)}(function(e){function t(r,o,s=!1){if(r==="address"){const p=o;return Zu(p),Ya(p.toLowerCase(),s?32:0)}if(r==="string")return Hp(o);if(r==="bytes")return o;if(r==="bool")return Ya(_2(o),s?32:1);const c=r.match(A5);if(c){const[p,h,g="256"]=c,b=Number.parseInt(g,10)/8;return Ut(o,{size:s?32:b,signed:h==="int"})}const u=r.match(y_);if(u){const[p,h]=u;if(Number.parseInt(h,10)!==(o.length-2)/2)throw new S5({expectedSize:Number.parseInt(h,10),value:o});return Xa(o,s?32:0)}const f=r.match(b_);if(f&&Array.isArray(o)){const[p,h]=f,g=[];for(let b=0;b<o.length;b++)g.push(t(h,o[b],!0));return g.length===0?"0x":tr(...g)}throw new B5(r)}e.encode=t})(np||(np={}));class T_ extends nt{constructor({expectedLength:t,givenLength:r,type:o}){super(`Array length mismatch for type \`${o}\`. Expected: \`${t}\`. Given: \`${r}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class S5 extends nt{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${kn(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class _5 extends nt{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class j_ extends nt{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class B5 extends nt{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function k_(e,t){const{bytecode:r,args:o}=t;return tr(r,e.inputs?.length&&o?.length?x5(e.inputs,o):"0x")}function O_(e){return C5(e)}function M_(e,...t){const{overloads:r}=e,o=r?R_([e,...r],e.name,{args:t[0]}):e,s=D_(o),c=t.length>0?x5(o.inputs,t[0]):void 0;return c?tr(s,c):s}function ei(e,t={}){return C5(e,t)}function R_(e,t,r){const o=p_(e,t,r);if(o.type!=="function")throw new tp({name:t,type:"function"});return o}function D_(e){return E5(e)}const N_="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Vn="0x0000000000000000000000000000000000000000",I_="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function U_(e,t){const{blockNumber:r,blockTag:o,calls:s,stateOverrides:c,traceAssetChanges:u,traceTransfers:f,validation:p}=t,h=t.account?Ft(t.account):void 0;if(u&&!h)throw new se("`account` is required when `traceAssetChanges` is true");const g=h?k_(O_("constructor(bytes, bytes)"),{bytecode:O2,args:[I_,M_(ei("function getBalance(address)"),[h.address])]}):void 0,b=u?await Promise.all(t.calls.map(async q=>{if(!q.data&&!q.abi)return;const{accessList:oe}=await F2(e,{account:h.address,...q,data:q.abi?zn(q):q.data});return oe.map(({address:O,storageKeys:G})=>G.length>0?O:null)})).then(q=>q.flat().filter(Boolean)):[],m=await Xh(e,{blockNumber:r,blockTag:o,blocks:[...u?[{calls:[{data:g}],stateOverrides:c},{calls:b.map((q,oe)=>({abi:[ei("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[h.address],to:q,from:Vn,nonce:oe})),stateOverrides:[{address:Vn,nonce:0}]}]:[],{calls:[...s,{}].map(q=>({...q,from:h?.address})),stateOverrides:c},...u?[{calls:[{data:g}]},{calls:b.map((q,oe)=>({abi:[ei("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[h.address],to:q,from:Vn,nonce:oe})),stateOverrides:[{address:Vn,nonce:0}]},{calls:b.map((q,oe)=>({to:q,abi:[ei("function decimals() returns (uint256)")],functionName:"decimals",from:Vn,nonce:oe})),stateOverrides:[{address:Vn,nonce:0}]},{calls:b.map((q,oe)=>({to:q,abi:[ei("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Vn,nonce:oe})),stateOverrides:[{address:Vn,nonce:0}]},{calls:b.map((q,oe)=>({to:q,abi:[ei("function symbol() returns (string)")],functionName:"symbol",from:Vn,nonce:oe})),stateOverrides:[{address:Vn,nonce:0}]}]:[]],traceTransfers:f,validation:p}),v=u?m[2]:m[0],[w,C,,A,B,T,_,j]=u?m:[],{calls:k,...D}=v,U=k.slice(0,-1)??[],Q=w?.calls??[],F=C?.calls??[],ie=[...Q,...F].map(q=>q.status==="success"?Zn(q.data):null),le=A?.calls??[],ae=B?.calls??[],L=[...le,...ae].map(q=>q.status==="success"?Zn(q.data):null),V=(T?.calls??[]).map(q=>q.status==="success"?q.result:null),$=(j?.calls??[]).map(q=>q.status==="success"?q.result:null),I=(_?.calls??[]).map(q=>q.status==="success"?q.result:null),Y=[];for(const[q,oe]of L.entries()){const O=ie[q];if(typeof oe!="bigint"||typeof O!="bigint")continue;const G=V[q-1],J=$[q-1],ce=I[q-1],te=q===0?{address:N_,decimals:18,symbol:"ETH"}:{address:b[q-1],decimals:ce||G?Number(G??1):void 0,symbol:J??void 0};Y.some(ue=>ue.token.address===te.address)||Y.push({token:te,value:{pre:O,post:oe,diff:oe-O}})}return{assetChanges:Y,block:D,results:U}}async function z_(e,t){const{abi:r,address:o,args:s,dataSuffix:c,functionName:u,...f}=t,p=f.account?Ft(f.account):e.account,h=zn({abi:r,args:s,functionName:u});try{const{data:g}=await we(e,xc,"call")({batch:!1,data:`${h}${c?c.replace("0x",""):""}`,to:o,...f,account:p}),b=ro({abi:r,args:s,functionName:u,data:g||"0x"}),m=r.filter(v=>"name"in v&&v.name===t.functionName);return{result:b,request:{abi:m,address:o,args:s,dataSuffix:c,functionName:u,...f,account:p}}}catch(g){throw Ka(g,{abi:r,address:o,args:s,docsPath:"/docs/contract/simulateContract",functionName:u,sender:p?.address})}}async function Ju(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}class T5 extends Bp{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Iw(t);const o=Uu(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,c=new Uint8Array(s);c.set(o.length>s?t.create().update(o).digest():o);for(let u=0;u<c.length;u++)c[u]^=54;this.iHash.update(c),this.oHash=t.create();for(let u=0;u<c.length;u++)c[u]^=106;this.oHash.update(c),pa(c)}update(t){return gi(this),this.iHash.update(t),this}digestInto(t){gi(this),jr(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:o,finished:s,destroyed:c,blockLen:u,outputLen:f}=this;return t=t,t.finished=s,t.destroyed=c,t.blockLen=u,t.outputLen=f,t.oHash=r._cloneInto(t.oHash),t.iHash=o._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const j5=(e,t,r)=>new T5(e,t).update(r).digest();j5.create=(e,t)=>new T5(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Yt=BigInt(0),Lt=BigInt(1),Fa=BigInt(2),k5=BigInt(3),O5=BigInt(4),M5=BigInt(5),L_=BigInt(7),R5=BigInt(8),P_=BigInt(9),D5=BigInt(16);function Nn(e,t){const r=e%t;return r>=Yt?r:t+r}function Sn(e,t,r){let o=e;for(;t-- >Yt;)o*=o,o%=r;return o}function Rv(e,t){if(e===Yt)throw new Error("invert: expected non-zero number");if(t<=Yt)throw new Error("invert: expected positive modulus, got "+t);let r=Nn(e,t),o=t,s=Yt,c=Lt;for(;r!==Yt;){const f=o/r,p=o%r,h=s-c*f;o=r,r=p,s=c,c=h}if(o!==Lt)throw new Error("invert: does not exist");return Nn(s,t)}function lm(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}function N5(e,t){const r=(e.ORDER+Lt)/O5,o=e.pow(t,r);return lm(e,o,t),o}function q_(e,t){const r=(e.ORDER-M5)/R5,o=e.mul(t,Fa),s=e.pow(o,r),c=e.mul(t,s),u=e.mul(e.mul(c,Fa),s),f=e.mul(c,e.sub(u,e.ONE));return lm(e,f,t),f}function F_(e){const t=Bc(e),r=I5(e),o=r(t,t.neg(t.ONE)),s=r(t,o),c=r(t,t.neg(o)),u=(e+L_)/D5;return(f,p)=>{let h=f.pow(p,u),g=f.mul(h,o);const b=f.mul(h,s),m=f.mul(h,c),v=f.eql(f.sqr(g),p),w=f.eql(f.sqr(b),p);h=f.cmov(h,g,v),g=f.cmov(m,b,w);const C=f.eql(f.sqr(g),p),A=f.cmov(h,g,C);return lm(f,A,p),A}}function I5(e){if(e<k5)throw new Error("sqrt is not defined for small field");let t=e-Lt,r=0;for(;t%Fa===Yt;)t/=Fa,r++;let o=Fa;const s=Bc(e);for(;Dv(s,o)===1;)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return N5;let c=s.pow(o,t);const u=(t+Lt)/Fa;return function(p,h){if(p.is0(h))return h;if(Dv(p,h)!==1)throw new Error("Cannot find square root");let g=r,b=p.mul(p.ONE,c),m=p.pow(h,t),v=p.pow(h,u);for(;!p.eql(m,p.ONE);){if(p.is0(m))return p.ZERO;let w=1,C=p.sqr(m);for(;!p.eql(C,p.ONE);)if(w++,C=p.sqr(C),w===g)throw new Error("Cannot find square root");const A=Lt<<BigInt(g-w-1),B=p.pow(b,A);g=w,b=p.sqr(B),m=p.mul(m,b),v=p.mul(v,B)}return v}}function H_(e){return e%O5===k5?N5:e%R5===M5?q_:e%D5===P_?F_(e):I5(e)}const Q_=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function G_(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=Q_.reduce((o,s)=>(o[s]="function",o),t);return qp(e,r),e}function V_(e,t,r){if(r<Yt)throw new Error("invalid exponent, negatives unsupported");if(r===Yt)return e.ONE;if(r===Lt)return t;let o=e.ONE,s=t;for(;r>Yt;)r&Lt&&(o=e.mul(o,s)),s=e.sqr(s),r>>=Lt;return o}function U5(e,t,r=!1){const o=new Array(t.length).fill(r?e.ZERO:void 0),s=t.reduce((u,f,p)=>e.is0(f)?u:(o[p]=u,e.mul(u,f)),e.ONE),c=e.inv(s);return t.reduceRight((u,f,p)=>e.is0(f)?u:(o[p]=e.mul(u,o[p]),e.mul(u,f)),c),o}function Dv(e,t){const r=(e.ORDER-Lt)/Fa,o=e.pow(t,r),s=e.eql(o,e.ONE),c=e.eql(o,e.ZERO),u=e.eql(o,e.neg(e.ONE));if(!s&&!c&&!u)throw new Error("invalid Legendre symbol result");return s?1:c?0:-1}function z5(e,t){t!==void 0&&Hs(t);const r=t!==void 0?t:e.toString(2).length,o=Math.ceil(r/8);return{nBitLength:r,nByteLength:o}}function Bc(e,t,r=!1,o={}){if(e<=Yt)throw new Error("invalid field: expected ORDER > 0, got "+e);let s,c,u=!1,f;if(typeof t=="object"&&t!=null){if(o.sqrt||r)throw new Error("cannot specify opts in two arguments");const m=t;m.BITS&&(s=m.BITS),m.sqrt&&(c=m.sqrt),typeof m.isLE=="boolean"&&(r=m.isLE),typeof m.modFromBytes=="boolean"&&(u=m.modFromBytes),f=m.allowedLengths}else typeof t=="number"&&(s=t),o.sqrt&&(c=o.sqrt);const{nBitLength:p,nByteLength:h}=z5(e,s);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let g;const b=Object.freeze({ORDER:e,isLE:r,BITS:p,BYTES:h,MASK:Cc(p),ZERO:Yt,ONE:Lt,allowedLengths:f,create:m=>Nn(m,e),isValid:m=>{if(typeof m!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof m);return Yt<=m&&m<e},is0:m=>m===Yt,isValidNot0:m=>!b.is0(m)&&b.isValid(m),isOdd:m=>(m&Lt)===Lt,neg:m=>Nn(-m,e),eql:(m,v)=>m===v,sqr:m=>Nn(m*m,e),add:(m,v)=>Nn(m+v,e),sub:(m,v)=>Nn(m-v,e),mul:(m,v)=>Nn(m*v,e),pow:(m,v)=>V_(b,m,v),div:(m,v)=>Nn(m*Rv(v,e),e),sqrN:m=>m*m,addN:(m,v)=>m+v,subN:(m,v)=>m-v,mulN:(m,v)=>m*v,inv:m=>Rv(m,e),sqrt:c||(m=>(g||(g=H_(e)),g(b,m))),toBytes:m=>r?E2(m,h):Pp(m,h),fromBytes:(m,v=!0)=>{if(f){if(!f.includes(m.length)||m.length>h)throw new Error("Field.fromBytes: expected "+f+" bytes, got "+m.length);const C=new Uint8Array(h);C.set(m,r?0:C.length-m.length),m=C}if(m.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+m.length);let w=r?C2(m):Gu(m);if(u&&(w=Nn(w,e)),!v&&!b.isValid(w))throw new Error("invalid field element: outside of range 0..ORDER");return w},invertBatch:m=>U5(b,m),cmov:(m,v,w)=>w?v:m});return Object.freeze(b)}function L5(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function P5(e){const t=L5(e);return t+Math.ceil(t/2)}function W_(e,t,r=!1){const o=e.length,s=L5(t),c=P5(t);if(o<16||o<c||o>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+o);const u=r?C2(e):Gu(e),f=Nn(u,t-Lt)+Lt;return r?E2(f,s):Pp(f,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wi=BigInt(0),Ha=BigInt(1);function Cu(e,t){const r=t.negate();return e?r:t}function H0(e,t){const r=U5(e.Fp,t.map(o=>o.Z));return t.map((o,s)=>e.fromAffine(o.toAffine(r[s])))}function q5(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Q0(e,t){q5(e,t);const r=Math.ceil(t/e)+1,o=2**(e-1),s=2**e,c=Cc(e),u=BigInt(e);return{windows:r,windowSize:o,mask:c,maxNumber:s,shiftBy:u}}function Nv(e,t,r){const{windowSize:o,mask:s,maxNumber:c,shiftBy:u}=r;let f=Number(e&s),p=e>>u;f>o&&(f-=c,p+=Ha);const h=t*o,g=h+Math.abs(f)-1,b=f===0,m=f<0,v=t%2!==0;return{nextN:p,offset:g,isZero:b,isNeg:m,isNegF:v,offsetF:h}}function $_(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,o)=>{if(!(r instanceof t))throw new Error("invalid point at index "+o)})}function K_(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,o)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+o)})}const G0=new WeakMap,F5=new WeakMap;function V0(e){return F5.get(e)||1}function Iv(e){if(e!==wi)throw new Error("invalid wNAF")}class Y_{constructor(t,r){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=r}_unsafeLadder(t,r,o=this.ZERO){let s=t;for(;r>wi;)r&Ha&&(o=o.add(s)),s=s.double(),r>>=Ha;return o}precomputeWindow(t,r){const{windows:o,windowSize:s}=Q0(r,this.bits),c=[];let u=t,f=u;for(let p=0;p<o;p++){f=u,c.push(f);for(let h=1;h<s;h++)f=f.add(u),c.push(f);u=f.double()}return c}wNAF(t,r,o){if(!this.Fn.isValid(o))throw new Error("invalid scalar");let s=this.ZERO,c=this.BASE;const u=Q0(t,this.bits);for(let f=0;f<u.windows;f++){const{nextN:p,offset:h,isZero:g,isNeg:b,isNegF:m,offsetF:v}=Nv(o,f,u);o=p,g?c=c.add(Cu(m,r[v])):s=s.add(Cu(b,r[h]))}return Iv(o),{p:s,f:c}}wNAFUnsafe(t,r,o,s=this.ZERO){const c=Q0(t,this.bits);for(let u=0;u<c.windows&&o!==wi;u++){const{nextN:f,offset:p,isZero:h,isNeg:g}=Nv(o,u,c);if(o=f,!h){const b=r[p];s=s.add(g?b.negate():b)}}return Iv(o),s}getPrecomputes(t,r,o){let s=G0.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&(typeof o=="function"&&(s=o(s)),G0.set(r,s))),s}cached(t,r,o){const s=V0(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)}unsafe(t,r,o,s){const c=V0(t);return c===1?this._unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)}createCache(t,r){q5(r,this.bits),F5.set(t,r),G0.delete(t)}hasCache(t){return V0(t)!==1}}function X_(e,t,r,o){let s=t,c=e.ZERO,u=e.ZERO;for(;r>wi||o>wi;)r&Ha&&(c=c.add(s)),o&Ha&&(u=u.add(s)),s=s.double(),r>>=Ha,o>>=Ha;return{p1:c,p2:u}}function Z_(e,t,r,o){$_(r,e),K_(o,t);const s=r.length,c=o.length;if(s!==c)throw new Error("arrays of points and scalars must have equal length");const u=e.ZERO,f=A2(BigInt(s));let p=1;f>12?p=f-3:f>4?p=f-2:f>0&&(p=2);const h=Cc(p),g=new Array(Number(h)+1).fill(u),b=Math.floor((t.BITS-1)/p)*p;let m=u;for(let v=b;v>=0;v-=p){g.fill(u);for(let C=0;C<c;C++){const A=o[C],B=Number(A>>BigInt(v)&h);g[B]=g[B].add(r[C])}let w=u;for(let C=g.length-1,A=u;C>0;C--)A=A.add(g[C]),w=w.add(A);if(m=m.add(w),v!==0)for(let C=0;C<p;C++)m=m.double()}return m}function Uv(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return G_(t),t}else return Bc(e,{isLE:r})}function J_(e,t,r={},o){if(o===void 0&&(o=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const p of["p","n","h"]){const h=t[p];if(!(typeof h=="bigint"&&h>wi))throw new Error(`CURVE.${p} must be positive bigint`)}const s=Uv(t.p,r.Fp,o),c=Uv(t.n,r.Fn,o),f=["Gx","Gy","a","b"];for(const p of f)if(!s.isValid(t[p]))throw new Error(`CURVE.${p} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:s,Fn:c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const zv=(e,t)=>(e+(e>=0?t:-t)/H5)/t;function eB(e,t,r){const[[o,s],[c,u]]=t,f=zv(u*e,r),p=zv(-s*e,r);let h=e-f*o-p*c,g=-f*s-p*u;const b=h<Sr,m=g<Sr;b&&(h=-h),m&&(g=-g);const v=Cc(Math.ceil(A2(r)/2))+fi;if(h<Sr||h>=v||g<Sr||g>=v)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:b,k1:h,k2neg:m,k2:g}}function rp(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function W0(e,t){const r={};for(let o of Object.keys(t))r[o]=e[o]===void 0?t[o]:e[o];return yu(r.lowS,"lowS"),yu(r.prehash,"prehash"),r.format!==void 0&&rp(r.format),r}class tB extends Error{constructor(t=""){super(t)}}const xr={Err:tB,_tlv:{encode:(e,t)=>{const{Err:r}=xr;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const o=t.length/2,s=$l(o);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const c=o>127?$l(s.length/2|128):"";return $l(e)+c+s+t},decode(e,t){const{Err:r}=xr;let o=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[o++]!==e)throw new r("tlv.decode: wrong tlv");const s=t[o++],c=!!(s&128);let u=0;if(!c)u=s;else{const p=s&127;if(!p)throw new r("tlv.decode(long): indefinite length not supported");if(p>4)throw new r("tlv.decode(long): byte length is too big");const h=t.subarray(o,o+p);if(h.length!==p)throw new r("tlv.decode: length bytes not complete");if(h[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const g of h)u=u<<8|g;if(o+=p,u<128)throw new r("tlv.decode(long): not minimal encoding")}const f=t.subarray(o,o+u);if(f.length!==u)throw new r("tlv.decode: wrong value length");return{v:f,l:t.subarray(o+u)}}},_int:{encode(e){const{Err:t}=xr;if(e<Sr)throw new t("integer: negative integers are not allowed");let r=$l(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=xr;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Gu(e)}},toSig(e){const{Err:t,_int:r,_tlv:o}=xr,s=Kt("signature",e),{v:c,l:u}=o.decode(48,s);if(u.length)throw new t("invalid signature: left bytes after parsing");const{v:f,l:p}=o.decode(2,c),{v:h,l:g}=o.decode(2,p);if(g.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(f),s:r.decode(h)}},hexFromSig(e){const{_tlv:t,_int:r}=xr,o=t.encode(2,r.encode(e.r)),s=t.encode(2,r.encode(e.s)),c=o+s;return t.encode(48,c)}},Sr=BigInt(0),fi=BigInt(1),H5=BigInt(2),Yl=BigInt(3),nB=BigInt(4);function ci(e,t){const{BYTES:r}=e;let o;if(typeof t=="bigint")o=t;else{let s=Kt("private key",t);try{o=e.fromBytes(s)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof t}`)}}if(!e.isValidNot0(o))throw new Error("invalid private key: out of range [1..N-1]");return o}function rB(e,t={}){const r=J_("weierstrass",e,t),{Fp:o,Fn:s}=r;let c=r.CURVE;const{h:u,n:f}=c;qp(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:p}=t;if(p&&(!o.is0(c.a)||typeof p.beta!="bigint"||!Array.isArray(p.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const h=G5(o,s);function g(){if(!o.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function b(ae,L,V){const{x:$,y:I}=L.toAffine(),Y=o.toBytes($);if(yu(V,"isCompressed"),V){g();const q=!o.isOdd(I);return ua(Q5(q),Y)}else return ua(Uint8Array.of(4),Y,o.toBytes(I))}function m(ae){qa(ae,void 0,"Point");const{publicKey:L,publicKeyUncompressed:V}=h,$=ae.length,I=ae[0],Y=ae.subarray(1);if($===L&&(I===2||I===3)){const q=o.fromBytes(Y);if(!o.isValid(q))throw new Error("bad point: is not on curve, wrong x");const oe=C(q);let O;try{O=o.sqrt(oe)}catch(ce){const te=ce instanceof Error?": "+ce.message:"";throw new Error("bad point: is not on curve, sqrt error"+te)}g();const G=o.isOdd(O);return(I&1)===1!==G&&(O=o.neg(O)),{x:q,y:O}}else if($===V&&I===4){const q=o.BYTES,oe=o.fromBytes(Y.subarray(0,q)),O=o.fromBytes(Y.subarray(q,q*2));if(!A(oe,O))throw new Error("bad point: is not on curve");return{x:oe,y:O}}else throw new Error(`bad point: got length ${$}, expected compressed=${L} or uncompressed=${V}`)}const v=t.toBytes||b,w=t.fromBytes||m;function C(ae){const L=o.sqr(ae),V=o.mul(L,ae);return o.add(o.add(V,o.mul(ae,c.a)),c.b)}function A(ae,L){const V=o.sqr(L),$=C(ae);return o.eql(V,$)}if(!A(c.Gx,c.Gy))throw new Error("bad curve params: generator point");const B=o.mul(o.pow(c.a,Yl),nB),T=o.mul(o.sqr(c.b),BigInt(27));if(o.is0(o.add(B,T)))throw new Error("bad curve params: a or b");function _(ae,L,V=!1){if(!o.isValid(L)||V&&o.is0(L))throw new Error(`bad point coordinate ${ae}`);return L}function j(ae){if(!(ae instanceof F))throw new Error("ProjectivePoint expected")}function k(ae){if(!p||!p.basises)throw new Error("no endo");return eB(ae,p.basises,s.ORDER)}const D=gv((ae,L)=>{const{X:V,Y:$,Z:I}=ae;if(o.eql(I,o.ONE))return{x:V,y:$};const Y=ae.is0();L==null&&(L=Y?o.ONE:o.inv(I));const q=o.mul(V,L),oe=o.mul($,L),O=o.mul(I,L);if(Y)return{x:o.ZERO,y:o.ZERO};if(!o.eql(O,o.ONE))throw new Error("invZ was invalid");return{x:q,y:oe}}),U=gv(ae=>{if(ae.is0()){if(t.allowInfinityPoint&&!o.is0(ae.Y))return;throw new Error("bad point: ZERO")}const{x:L,y:V}=ae.toAffine();if(!o.isValid(L)||!o.isValid(V))throw new Error("bad point: x or y not field elements");if(!A(L,V))throw new Error("bad point: equation left != right");if(!ae.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function Q(ae,L,V,$,I){return V=new F(o.mul(V.X,ae),V.Y,V.Z),L=Cu($,L),V=Cu(I,V),L.add(V)}class F{constructor(L,V,$){this.X=_("x",L),this.Y=_("y",V,!0),this.Z=_("z",$),Object.freeze(this)}static CURVE(){return c}static fromAffine(L){const{x:V,y:$}=L||{};if(!L||!o.isValid(V)||!o.isValid($))throw new Error("invalid affine point");if(L instanceof F)throw new Error("projective point not allowed");return o.is0(V)&&o.is0($)?F.ZERO:new F(V,$,o.ONE)}static fromBytes(L){const V=F.fromAffine(w(qa(L,void 0,"point")));return V.assertValidity(),V}static fromHex(L){return F.fromBytes(Kt("pointHex",L))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(L=8,V=!0){return le.createCache(this,L),V||this.multiply(Yl),this}assertValidity(){U(this)}hasEvenY(){const{y:L}=this.toAffine();if(!o.isOdd)throw new Error("Field doesn't support isOdd");return!o.isOdd(L)}equals(L){j(L);const{X:V,Y:$,Z:I}=this,{X:Y,Y:q,Z:oe}=L,O=o.eql(o.mul(V,oe),o.mul(Y,I)),G=o.eql(o.mul($,oe),o.mul(q,I));return O&&G}negate(){return new F(this.X,o.neg(this.Y),this.Z)}double(){const{a:L,b:V}=c,$=o.mul(V,Yl),{X:I,Y,Z:q}=this;let oe=o.ZERO,O=o.ZERO,G=o.ZERO,J=o.mul(I,I),ce=o.mul(Y,Y),te=o.mul(q,q),ue=o.mul(I,Y);return ue=o.add(ue,ue),G=o.mul(I,q),G=o.add(G,G),oe=o.mul(L,G),O=o.mul($,te),O=o.add(oe,O),oe=o.sub(ce,O),O=o.add(ce,O),O=o.mul(oe,O),oe=o.mul(ue,oe),G=o.mul($,G),te=o.mul(L,te),ue=o.sub(J,te),ue=o.mul(L,ue),ue=o.add(ue,G),G=o.add(J,J),J=o.add(G,J),J=o.add(J,te),J=o.mul(J,ue),O=o.add(O,J),te=o.mul(Y,q),te=o.add(te,te),J=o.mul(te,ue),oe=o.sub(oe,J),G=o.mul(te,ce),G=o.add(G,G),G=o.add(G,G),new F(oe,O,G)}add(L){j(L);const{X:V,Y:$,Z:I}=this,{X:Y,Y:q,Z:oe}=L;let O=o.ZERO,G=o.ZERO,J=o.ZERO;const ce=c.a,te=o.mul(c.b,Yl);let ue=o.mul(V,Y),fe=o.mul($,q),ye=o.mul(I,oe),Ae=o.add(V,$),Me=o.add(Y,q);Ae=o.mul(Ae,Me),Me=o.add(ue,fe),Ae=o.sub(Ae,Me),Me=o.add(V,I);let We=o.add(Y,oe);return Me=o.mul(Me,We),We=o.add(ue,ye),Me=o.sub(Me,We),We=o.add($,I),O=o.add(q,oe),We=o.mul(We,O),O=o.add(fe,ye),We=o.sub(We,O),J=o.mul(ce,Me),O=o.mul(te,ye),J=o.add(O,J),O=o.sub(fe,J),J=o.add(fe,J),G=o.mul(O,J),fe=o.add(ue,ue),fe=o.add(fe,ue),ye=o.mul(ce,ye),Me=o.mul(te,Me),fe=o.add(fe,ye),ye=o.sub(ue,ye),ye=o.mul(ce,ye),Me=o.add(Me,ye),ue=o.mul(fe,Me),G=o.add(G,ue),ue=o.mul(We,Me),O=o.mul(Ae,O),O=o.sub(O,ue),ue=o.mul(Ae,fe),J=o.mul(We,J),J=o.add(J,ue),new F(O,G,J)}subtract(L){return this.add(L.negate())}is0(){return this.equals(F.ZERO)}multiply(L){const{endo:V}=t;if(!s.isValidNot0(L))throw new Error("invalid scalar: out of range");let $,I;const Y=q=>le.cached(this,q,oe=>H0(F,oe));if(V){const{k1neg:q,k1:oe,k2neg:O,k2:G}=k(L),{p:J,f:ce}=Y(oe),{p:te,f:ue}=Y(G);I=ce.add(ue),$=Q(V.beta,J,te,q,O)}else{const{p:q,f:oe}=Y(L);$=q,I=oe}return H0(F,[$,I])[0]}multiplyUnsafe(L){const{endo:V}=t,$=this;if(!s.isValid(L))throw new Error("invalid scalar: out of range");if(L===Sr||$.is0())return F.ZERO;if(L===fi)return $;if(le.hasCache(this))return this.multiply(L);if(V){const{k1neg:I,k1:Y,k2neg:q,k2:oe}=k(L),{p1:O,p2:G}=X_(F,$,Y,oe);return Q(V.beta,O,G,I,q)}else return le.unsafe($,L)}multiplyAndAddUnsafe(L,V,$){const I=this.multiplyUnsafe(V).add(L.multiplyUnsafe($));return I.is0()?void 0:I}toAffine(L){return D(this,L)}isTorsionFree(){const{isTorsionFree:L}=t;return u===fi?!0:L?L(F,this):le.unsafe(this,f).is0()}clearCofactor(){const{clearCofactor:L}=t;return u===fi?this:L?L(F,this):this.multiplyUnsafe(u)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}toBytes(L=!0){return yu(L,"isCompressed"),this.assertValidity(),v(F,this,L)}toHex(L=!0){return li(this.toBytes(L))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(L=!0){return this.toBytes(L)}_setWindowSize(L){this.precompute(L)}static normalizeZ(L){return H0(F,L)}static msm(L,V){return Z_(F,s,L,V)}static fromPrivateKey(L){return F.BASE.multiply(ci(s,L))}}F.BASE=new F(c.Gx,c.Gy,o.ONE),F.ZERO=new F(o.ZERO,o.ONE,o.ZERO),F.Fp=o,F.Fn=s;const ie=s.BITS,le=new Y_(F,t.endo?Math.ceil(ie/2):ie);return F.BASE.precompute(8),F}function Q5(e){return Uint8Array.of(e?2:3)}function G5(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function aB(e,t={}){const{Fn:r}=e,o=t.randomBytes||Lw,s=Object.assign(G5(e.Fp,r),{seed:P5(r.ORDER)});function c(v){try{return!!ci(r,v)}catch{return!1}}function u(v,w){const{publicKey:C,publicKeyUncompressed:A}=s;try{const B=v.length;return w===!0&&B!==C||w===!1&&B!==A?!1:!!e.fromBytes(v)}catch{return!1}}function f(v=o(s.seed)){return W_(qa(v,s.seed,"seed"),r.ORDER)}function p(v,w=!0){return e.BASE.multiply(ci(r,v)).toBytes(w)}function h(v){const w=f(v);return{secretKey:w,publicKey:p(w)}}function g(v){if(typeof v=="bigint")return!1;if(v instanceof e)return!0;const{secretKey:w,publicKey:C,publicKeyUncompressed:A}=s;if(r.allowedLengths||w===C)return;const B=Kt("key",v).length;return B===C||B===A}function b(v,w,C=!0){if(g(v)===!0)throw new Error("first arg must be private key");if(g(w)===!1)throw new Error("second arg must be public key");const A=ci(r,v);return e.fromHex(w).multiply(A).toBytes(C)}return Object.freeze({getPublicKey:p,getSharedSecret:b,keygen:h,Point:e,utils:{isValidSecretKey:c,isValidPublicKey:u,randomSecretKey:f,isValidPrivateKey:c,randomPrivateKey:f,normPrivateKeyToScalar:v=>ci(r,v),precompute(v=8,w=e.BASE){return w.precompute(v,!1)}},lengths:s})}function oB(e,t,r={}){Iw(t),qp(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const o=r.randomBytes||Lw,s=r.hmac||((V,...$)=>j5(t,V,ua(...$))),{Fp:c,Fn:u}=e,{ORDER:f,BITS:p}=u,{keygen:h,getPublicKey:g,getSharedSecret:b,utils:m,lengths:v}=aB(e,r),w={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},C="compact";function A(V){const $=f>>fi;return V>$}function B(V,$){if(!u.isValidNot0($))throw new Error(`invalid signature ${V}: out of range 1..Point.Fn.ORDER`);return $}function T(V,$){rp($);const I=v.signature,Y=$==="compact"?I:$==="recovered"?I+1:void 0;return qa(V,Y,`${$} signature`)}class _{constructor($,I,Y){this.r=B("r",$),this.s=B("s",I),Y!=null&&(this.recovery=Y),Object.freeze(this)}static fromBytes($,I=C){T($,I);let Y;if(I==="der"){const{r:G,s:J}=xr.toSig(qa($));return new _(G,J)}I==="recovered"&&(Y=$[0],I="compact",$=$.subarray(1));const q=u.BYTES,oe=$.subarray(0,q),O=$.subarray(q,q*2);return new _(u.fromBytes(oe),u.fromBytes(O),Y)}static fromHex($,I){return this.fromBytes(gu($),I)}addRecoveryBit($){return new _(this.r,this.s,$)}recoverPublicKey($){const I=c.ORDER,{r:Y,s:q,recovery:oe}=this;if(oe==null||![0,1,2,3].includes(oe))throw new Error("recovery id invalid");if(f*H5<I&&oe>1)throw new Error("recovery id is ambiguous for h>1 curve");const G=oe===2||oe===3?Y+f:Y;if(!c.isValid(G))throw new Error("recovery id 2 or 3 invalid");const J=c.toBytes(G),ce=e.fromBytes(ua(Q5((oe&1)===0),J)),te=u.inv(G),ue=k(Kt("msgHash",$)),fe=u.create(-ue*te),ye=u.create(q*te),Ae=e.BASE.multiplyUnsafe(fe).add(ce.multiplyUnsafe(ye));if(Ae.is0())throw new Error("point at infinify");return Ae.assertValidity(),Ae}hasHighS(){return A(this.s)}toBytes($=C){if(rp($),$==="der")return gu(xr.hexFromSig(this));const I=u.toBytes(this.r),Y=u.toBytes(this.s);if($==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return ua(Uint8Array.of(this.recovery),I,Y)}return ua(I,Y)}toHex($){return li(this.toBytes($))}assertValidity(){}static fromCompact($){return _.fromBytes(Kt("sig",$),"compact")}static fromDER($){return _.fromBytes(Kt("sig",$),"der")}normalizeS(){return this.hasHighS()?new _(this.r,u.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return li(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return li(this.toBytes("compact"))}}const j=r.bits2int||function($){if($.length>8192)throw new Error("input is too large");const I=Gu($),Y=$.length*8-p;return Y>0?I>>BigInt(Y):I},k=r.bits2int_modN||function($){return u.create(j($))},D=Cc(p);function U(V){return F7("num < 2^"+p,V,Sr,D),u.toBytes(V)}function Q(V,$){return qa(V,void 0,"message"),$?qa(t(V),void 0,"prehashed message"):V}function F(V,$,I){if(["recovered","canonical"].some(fe=>fe in I))throw new Error("sign() legacy options not supported");const{lowS:Y,prehash:q,extraEntropy:oe}=W0(I,w);V=Q(V,q);const O=k(V),G=ci(u,$),J=[U(G),U(O)];if(oe!=null&&oe!==!1){const fe=oe===!0?o(v.secretKey):oe;J.push(Kt("extraEntropy",fe))}const ce=ua(...J),te=O;function ue(fe){const ye=j(fe);if(!u.isValidNot0(ye))return;const Ae=u.inv(ye),Me=e.BASE.multiply(ye).toAffine(),We=u.create(Me.x);if(We===Sr)return;const Jt=u.create(Ae*u.create(te+We*G));if(Jt===Sr)return;let Ln=(Me.x===We?0:2)|Number(Me.y&fi),ar=Jt;return Y&&A(Jt)&&(ar=u.neg(Jt),Ln^=1),new _(We,ar,Ln)}return{seed:ce,k2sig:ue}}function ie(V,$,I={}){V=Kt("message",V);const{seed:Y,k2sig:q}=F(V,$,I);return H7(t.outputLen,u.BYTES,s)(Y,q)}function le(V){let $;const I=typeof V=="string"||Iu(V),Y=!I&&V!==null&&typeof V=="object"&&typeof V.r=="bigint"&&typeof V.s=="bigint";if(!I&&!Y)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(Y)$=new _(V.r,V.s);else if(I){try{$=_.fromBytes(Kt("sig",V),"der")}catch(q){if(!(q instanceof xr.Err))throw q}if(!$)try{$=_.fromBytes(Kt("sig",V),"compact")}catch{return!1}}return $||!1}function ae(V,$,I,Y={}){const{lowS:q,prehash:oe,format:O}=W0(Y,w);if(I=Kt("publicKey",I),$=Q(Kt("message",$),oe),"strict"in Y)throw new Error("options.strict was renamed to lowS");const G=O===void 0?le(V):_.fromBytes(Kt("sig",V),O);if(G===!1)return!1;try{const J=e.fromBytes(I);if(q&&G.hasHighS())return!1;const{r:ce,s:te}=G,ue=k($),fe=u.inv(te),ye=u.create(ue*fe),Ae=u.create(ce*fe),Me=e.BASE.multiplyUnsafe(ye).add(J.multiplyUnsafe(Ae));return Me.is0()?!1:u.create(Me.x)===ce}catch{return!1}}function L(V,$,I={}){const{prehash:Y}=W0(I,w);return $=Q($,Y),_.fromBytes(V,"recovered").recoverPublicKey($).toBytes()}return Object.freeze({keygen:h,getPublicKey:g,getSharedSecret:b,utils:m,lengths:v,Point:e,sign:ie,verify:ae,recoverPublicKey:L,Signature:_,hash:t})}function iB(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp;let o=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(u=>Math.ceil(u/2)))):void 0;const s=Bc(t.n,{BITS:e.nBitLength,allowedLengths:o,modFromBytes:e.wrapPrivateKey}),c={Fp:r,Fn:s,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:c}}function sB(e){const{CURVE:t,curveOpts:r}=iB(e),o={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:o}}function cB(e,t){const r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,z5(r.Fn.ORDER,r.Fn.BITS))})}function lB(e){const{CURVE:t,curveOpts:r,hash:o,ecdsaOpts:s}=sB(e),c=rB(t,r),u=oB(c,o,s);return cB(e,u)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function uB(e,t){const r=o=>lB({...e,hash:o});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const um={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},fB={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Lv=BigInt(2);function dB(e){const t=um.p,r=BigInt(3),o=BigInt(6),s=BigInt(11),c=BigInt(22),u=BigInt(23),f=BigInt(44),p=BigInt(88),h=e*e*e%t,g=h*h*e%t,b=Sn(g,r,t)*g%t,m=Sn(b,r,t)*g%t,v=Sn(m,Lv,t)*h%t,w=Sn(v,s,t)*v%t,C=Sn(w,c,t)*w%t,A=Sn(C,f,t)*C%t,B=Sn(A,p,t)*A%t,T=Sn(B,f,t)*C%t,_=Sn(T,r,t)*g%t,j=Sn(_,u,t)*w%t,k=Sn(j,o,t)*h%t,D=Sn(k,Lv,t);if(!ap.eql(ap.sqr(D),e))throw new Error("Cannot find square root");return D}const ap=Bc(um.p,{sqrt:dB}),V5=uB({...um,Fp:ap,lowS:!0,endo:fB},s5),hB=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:V5},Symbol.toStringTag,{value:"Module"}));function pB({r:e,s:t,to:r="hex",v:o,yParity:s}){const c=(()=>{if(s===0||s===1)return s;if(o&&(o===27n||o===28n||o>=35n))return o%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),u=`0x${new V5.Signature(Zn(e),Zn(t)).toCompactHex()}${c===0?"1b":"1c"}`;return r==="hex"?u:jn(u)}async function fm(e,t){const{address:r,factory:o,factoryData:s,hash:c,signature:u,universalSignatureVerifierAddress:f=e.chain?.contracts?.universalSignatureVerifier?.address,...p}=t,h=Xn(u)?u:typeof u=="object"&&"r"in u&&"s"in u?pB(u):mt(u),g=await(async()=>!o&&!s||JS(h)?h:e_({address:o,data:s,signature:h}))();try{const b=f?{to:f,data:zn({abi:$y,functionName:"isValidSig",args:[r,c,g]}),...p}:{data:Gp({abi:$y,args:[r,c,g],bytecode:m9}),...p},{data:m}=await we(e,xc,"call")(b);return Ex(m??"0x0")}catch(b){try{if(nm(pt(r),await V2({hash:c,signature:u})))return!0}catch{}if(b instanceof b2)return!1;throw b}}async function mB(e,{address:t,message:r,factory:o,factoryData:s,signature:c,...u}){const f=d5(r);return fm(e,{address:t,factory:o,factoryData:s,hash:f,signature:c,...u})}async function gB(e,t){const{address:r,factory:o,factoryData:s,signature:c,message:u,primaryType:f,types:p,domain:h,...g}=t,b=KS({message:u,primaryType:f,types:p,domain:h});return fm(e,{address:r,factory:o,factoryData:s,hash:b,signature:c,...g})}const $0=new Map,Pv=new Map;let bB=0;function ma(e,t,r){const o=++bB,s=()=>$0.get(e)||[],c=()=>{const g=s();$0.set(e,g.filter(b=>b.id!==o))},u=()=>{const g=s();if(!g.some(m=>m.id===o))return;const b=Pv.get(e);if(g.length===1&&b){const m=b();m instanceof Promise&&m.catch(()=>{})}c()},f=s();if($0.set(e,[...f,{id:o,fns:t}]),f&&f.length>0)return u;const p={};for(const g in t)p[g]=((...b)=>{const m=s();if(m.length!==0)for(const v of m)v.fns[g]?.(...b)});const h=r(p);return typeof h=="function"&&Pv.set(e,h),u}function Tc(e,{emitOnBegin:t,initialWaitTime:r,interval:o}){let s=!0;const c=()=>s=!1;return(async()=>{let f;t&&(f=await e({unpoll:c}));const p=await r?.(f)??o;await Yh(p);const h=async()=>{s&&(await e({unpoll:c}),await Yh(o),h())};h()})(),c}function W5(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:o,onError:s,poll:c,pollingInterval:u=e.pollingInterval}){const f=typeof c<"u"?c:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let p;return f?(()=>{const b=_t(["watchBlockNumber",e.uid,t,r,u]);return ma(b,{onBlockNumber:o,onError:s},m=>Tc(async()=>{try{const v=await we(e,_c,"getBlockNumber")({cacheTime:0});if(p){if(v===p)return;if(v-p>1&&r)for(let w=p+1n;w<v;w++)m.onBlockNumber(w,p),p=w}(!p||v>p)&&(m.onBlockNumber(v,p),p=v)}catch(v){m.onError?.(v)}},{emitOnBegin:t,interval:u}))})():(()=>{const b=_t(["watchBlockNumber",e.uid,t,r]);return ma(b,{onBlockNumber:o,onError:s},m=>{let v=!0,w=()=>v=!1;return(async()=>{try{const C=(()=>{if(e.transport.type==="fallback"){const B=e.transport.transports.find(T=>T.config.type==="webSocket"||T.config.type==="ipc");return B?B.value:e.transport}return e.transport})(),{unsubscribe:A}=await C.subscribe({params:["newHeads"],onData(B){if(!v)return;const T=Zn(B.result?.number);m.onBlockNumber(T,p),p=T},onError(B){m.onError?.(B)}});w=A,v||w()}catch(C){s?.(C)}})(),()=>w()})})()}async function $5(e,t){const{checkReplacement:r=!0,confirmations:o=1,hash:s,onReplaced:c,retryCount:u=6,retryDelay:f=({count:k})=>~~(1<<k)*200,timeout:p=18e4}=t,h=_t(["waitForTransactionReceipt",e.uid,s]),g=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval;let b,m,v,w=!1,C,A;const{promise:B,resolve:T,reject:_}=D2(),j=p?setTimeout(()=>{A?.(),C?.(),_(new T7({hash:s}))},p):void 0;return C=ma(h,{onReplaced:c,resolve:T,reject:_},async k=>{if(v=await we(e,lu,"getTransactionReceipt")({hash:s}).catch(()=>{}),v&&o<=1){clearTimeout(j),k.resolve(v),C?.();return}A=we(e,W5,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:g,async onBlockNumber(D){const U=F=>{clearTimeout(j),A?.(),F(),C?.()};let Q=D;if(!w)try{if(v){if(o>1&&(!v.blockNumber||Q-v.blockNumber+1n<o))return;U(()=>k.resolve(v));return}if(r&&!b&&(w=!0,await vi(async()=>{b=await we(e,Xu,"getTransaction")({hash:s}),b.blockNumber&&(Q=b.blockNumber)},{delay:f,retryCount:u}),w=!1),v=await we(e,lu,"getTransactionReceipt")({hash:s}),o>1&&(!v.blockNumber||Q-v.blockNumber+1n<o))return;U(()=>k.resolve(v))}catch(F){if(F instanceof m2||F instanceof g2){if(!b){w=!1;return}try{m=b,w=!0;const ie=await vi(()=>we(e,Wn,"getBlock")({blockNumber:Q,includeTransactions:!0}),{delay:f,retryCount:u,shouldRetry:({error:L})=>L instanceof Y2});w=!1;const le=ie.transactions.find(({from:L,nonce:V})=>L===m.from&&V===m.nonce);if(!le||(v=await we(e,lu,"getTransactionReceipt")({hash:le.hash}),o>1&&(!v.blockNumber||Q-v.blockNumber+1n<o)))return;let ae="replaced";le.to===m.to&&le.value===m.value&&le.input===m.input?ae="repriced":le.from===le.to&&le.value===0n&&(ae="cancelled"),U(()=>{k.onReplaced?.({reason:ae,replacedTransaction:m,transaction:le,transactionReceipt:v}),k.resolve(v)})}catch(ie){U(()=>k.reject(ie))}}else U(()=>k.reject(F))}}})}),B}function yB(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:o=!1,onBlock:s,onError:c,includeTransactions:u,poll:f,pollingInterval:p=e.pollingInterval}){const h=typeof f<"u"?f:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),g=u??!1;let b;return h?(()=>{const w=_t(["watchBlocks",e.uid,t,r,o,g,p]);return ma(w,{onBlock:s,onError:c},C=>Tc(async()=>{try{const A=await we(e,Wn,"getBlock")({blockTag:t,includeTransactions:g});if(A.number!==null&&b?.number!=null){if(A.number===b.number)return;if(A.number-b.number>1&&r)for(let B=b?.number+1n;B<A.number;B++){const T=await we(e,Wn,"getBlock")({blockNumber:B,includeTransactions:g});C.onBlock(T,b),b=T}}(b?.number==null||t==="pending"&&A?.number==null||A.number!==null&&A.number>b.number)&&(C.onBlock(A,b),b=A)}catch(A){C.onError?.(A)}},{emitOnBegin:o,interval:p}))})():(()=>{let w=!0,C=!0,A=()=>w=!1;return(async()=>{try{o&&we(e,Wn,"getBlock")({blockTag:t,includeTransactions:g}).then(_=>{w&&C&&(s(_,void 0),C=!1)}).catch(c);const B=(()=>{if(e.transport.type==="fallback"){const _=e.transport.transports.find(j=>j.config.type==="webSocket"||j.config.type==="ipc");return _?_.value:e.transport}return e.transport})(),{unsubscribe:T}=await B.subscribe({params:["newHeads"],async onData(_){if(!w)return;const j=await we(e,Wn,"getBlock")({blockNumber:_.result?.number,includeTransactions:g}).catch(()=>{});w&&(s(j,b),C=!1,b=j)},onError(_){c?.(_)}});A=T,w||A()}catch(B){c?.(B)}})(),()=>A()})()}function vB(e,t){const{abi:r,address:o,args:s,batch:c=!0,eventName:u,fromBlock:f,onError:p,onLogs:h,poll:g,pollingInterval:b=e.pollingInterval,strict:m}=t;return(typeof g<"u"?g:typeof f=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const A=m??!1,B=_t(["watchContractEvent",o,s,c,e.uid,u,b,A,f]);return ma(B,{onLogs:h,onError:p},T=>{let _;f!==void 0&&(_=f-1n);let j,k=!1;const D=Tc(async()=>{if(!k){try{j=await we(e,H2,"createContractEventFilter")({abi:r,address:o,args:s,eventName:u,strict:A,fromBlock:f})}catch{}k=!0;return}try{let U;if(j)U=await we(e,Ku,"getFilterChanges")({filter:j});else{const Q=await we(e,_c,"getBlockNumber")({});_&&_<Q?U=await we(e,f5,"getContractEvents")({abi:r,address:o,args:s,eventName:u,fromBlock:_+1n,toBlock:Q,strict:A}):U=[],_=Q}if(U.length===0)return;if(c)T.onLogs(U);else for(const Q of U)T.onLogs([Q])}catch(U){j&&U instanceof $a&&(k=!1),T.onError?.(U)}},{emitOnBegin:!0,interval:b});return async()=>{j&&await we(e,Ju,"uninstallFilter")({filter:j}),D()}})})():(()=>{const A=m??!1,B=_t(["watchContractEvent",o,s,c,e.uid,u,b,A]);let T=!0,_=()=>T=!1;return ma(B,{onLogs:h,onError:p},j=>((async()=>{try{const k=(()=>{if(e.transport.type==="fallback"){const Q=e.transport.transports.find(F=>F.config.type==="webSocket"||F.config.type==="ipc");return Q?Q.value:e.transport}return e.transport})(),D=u?Sc({abi:r,eventName:u,args:s}):[],{unsubscribe:U}=await k.subscribe({params:["logs",{address:o,topics:D}],onData(Q){if(!T)return;const F=Q.result;try{const{eventName:ie,args:le}=rm({abi:r,data:F.data,topics:F.topics,strict:m}),ae=kr(F,{args:le,eventName:ie});j.onLogs([ae])}catch(ie){let le,ae;if(ie instanceof Fs||ie instanceof Nu){if(m)return;le=ie.abiItem.name,ae=ie.abiItem.inputs?.some(V=>!("name"in V&&V.name))}const L=kr(F,{args:ae?[]:{},eventName:le});j.onLogs([L])}},onError(Q){j.onError?.(Q)}});_=U,T||_()}catch(k){p?.(k)}})(),()=>_()))})()}function wB(e,{address:t,args:r,batch:o=!0,event:s,events:c,fromBlock:u,onError:f,onLogs:p,poll:h,pollingInterval:g=e.pollingInterval,strict:b}){const m=typeof h<"u"?h:typeof u=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),v=b??!1;return m?(()=>{const A=_t(["watchEvent",t,r,o,e.uid,s,g,u]);return ma(A,{onLogs:p,onError:f},B=>{let T;u!==void 0&&(T=u-1n);let _,j=!1;const k=Tc(async()=>{if(!j){try{_=await we(e,Q2,"createEventFilter")({address:t,args:r,event:s,events:c,strict:v,fromBlock:u})}catch{}j=!0;return}try{let D;if(_)D=await we(e,Ku,"getFilterChanges")({filter:_});else{const U=await we(e,_c,"getBlockNumber")({});T&&T!==U?D=await we(e,om,"getLogs")({address:t,args:r,event:s,events:c,fromBlock:T+1n,toBlock:U}):D=[],T=U}if(D.length===0)return;if(o)B.onLogs(D);else for(const U of D)B.onLogs([U])}catch(D){_&&D instanceof $a&&(j=!1),B.onError?.(D)}},{emitOnBegin:!0,interval:g});return async()=>{_&&await we(e,Ju,"uninstallFilter")({filter:_}),k()}})})():(()=>{let A=!0,B=()=>A=!1;return(async()=>{try{const T=(()=>{if(e.transport.type==="fallback"){const D=e.transport.transports.find(U=>U.config.type==="webSocket"||U.config.type==="ipc");return D?D.value:e.transport}return e.transport})(),_=c??(s?[s]:void 0);let j=[];_&&(j=[_.flatMap(U=>Sc({abi:[U],eventName:U.name,args:r}))],s&&(j=j[0]));const{unsubscribe:k}=await T.subscribe({params:["logs",{address:t,topics:j}],onData(D){if(!A)return;const U=D.result;try{const{eventName:Q,args:F}=rm({abi:_??[],data:U.data,topics:U.topics,strict:v}),ie=kr(U,{args:F,eventName:Q});p([ie])}catch(Q){let F,ie;if(Q instanceof Fs||Q instanceof Nu){if(b)return;F=Q.abiItem.name,ie=Q.abiItem.inputs?.some(ae=>!("name"in ae&&ae.name))}const le=kr(U,{args:ie?[]:{},eventName:F});p([le])}},onError(D){f?.(D)}});B=k,A||B()}catch(T){f?.(T)}})(),()=>B()})()}function CB(e,{batch:t=!0,onError:r,onTransactions:o,poll:s,pollingInterval:c=e.pollingInterval}){return(typeof s<"u"?s:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const h=_t(["watchPendingTransactions",e.uid,t,c]);return ma(h,{onTransactions:o,onError:r},g=>{let b;const m=Tc(async()=>{try{if(!b)try{b=await we(e,G2,"createPendingTransactionFilter")({});return}catch(w){throw m(),w}const v=await we(e,Ku,"getFilterChanges")({filter:b});if(v.length===0)return;if(t)g.onTransactions(v);else for(const w of v)g.onTransactions([w])}catch(v){g.onError?.(v)}},{emitOnBegin:!0,interval:c});return async()=>{b&&await we(e,Ju,"uninstallFilter")({filter:b}),m()}})})():(()=>{let h=!0,g=()=>h=!1;return(async()=>{try{const{unsubscribe:b}=await e.transport.subscribe({params:["newPendingTransactions"],onData(m){if(!h)return;const v=m.result;o([v])},onError(m){r?.(m)}});g=b,h||g()}catch(b){r?.(b)}})(),()=>g()})()}class dm extends se{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class K0 extends se{constructor({docsPath:t,metaMessages:r,type:o}){super(`Account type "${o}" is not supported.`,{docsPath:t,metaMessages:r,name:"AccountTypeNotSupportedError"})}}async function K5(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Y0=new Lu(128);async function EB(e,t){const{account:r=e.account,chain:o=e.chain,accessList:s,authorizationList:c,blobs:u,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:m,nonce:v,type:w,value:C,...A}=t;if(typeof r>"u")throw new dm({docsPath:"/docs/actions/wallet/sendTransaction"});const B=r?Ft(r):null;try{ji(t);const T=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await K2({authorization:c[0]}).catch(()=>{throw new se("`to` is required. Could not infer from `authorizationList`.")})})();if(B?.type==="json-rpc"||B===null){let _;o!==null&&(_=await we(e,Zp,"getChainId")({}),NS({currentChainId:_,chain:o}));const j=e.chain?.formatters?.transactionRequest?.format,D=(j||Ac)({...Wu(A,{format:j}),accessList:s,authorizationList:c,blobs:u,chainId:_,data:f,from:B?.address,gas:p,gasPrice:h,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:m,nonce:v,to:T,type:w,value:C}),U=Y0.get(e.uid),Q=U?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:Q,params:[D]},{retryCount:0})}catch(F){if(U===!1)throw F;const ie=F;if(ie.name==="InvalidInputRpcError"||ie.name==="InvalidParamsRpcError"||ie.name==="MethodNotFoundRpcError"||ie.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[D]},{retryCount:0}).then(le=>(Y0.set(e.uid,!0),le)).catch(le=>{const ae=le;throw ae.name==="MethodNotFoundRpcError"||ae.name==="MethodNotSupportedRpcError"?(Y0.set(e.uid,!1),ie):ae});throw ie}}if(B?.type==="local"){const _=await we(e,Jp,"prepareTransactionRequest")({account:B,accessList:s,authorizationList:c,blobs:u,chain:o,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:m,nonce:v,nonceManager:B.nonceManager,parameters:[...u5,"sidecars"],type:w,value:C,...A,to:T}),j=o?.serializers?.transaction,k=await B.signTransaction(_,{serializer:j});return await we(e,K5,"sendRawTransaction")({serializedTransaction:k})}throw B?.type==="smart"?new K0({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K0({docsPath:"/docs/actions/wallet/sendTransaction",type:B?.type})}catch(T){throw T instanceof K0?T:IS(T,{...t,account:B,chain:t.chain||void 0})}}async function AB(e,{account:t=e.account,message:r}){if(!t)throw new dm({docsPath:"/docs/actions/wallet/signMessage"});const o=Ft(t);if(o.signMessage)return o.signMessage({message:r});const s=typeof r=="string"?mi(r):r.raw instanceof Uint8Array?Tr(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,o.address]},{retryCount:0})}async function xB(e,t){const{abi:r,account:o=e.account,address:s,args:c,dataSuffix:u,functionName:f,...p}=t;if(typeof o>"u")throw new dm({docsPath:"/docs/contract/writeContract"});const h=o?Ft(o):null,g=zn({abi:r,args:c,functionName:f});try{return await we(e,EB,"sendTransaction")({data:`${g}${u?u.replace("0x",""):""}`,to:s,account:h,...p})}catch(b){throw Ka(b,{abi:r,address:s,args:c,docsPath:"/docs/contract/writeContract",functionName:f,sender:h?.address})}}function Yn(e,t,r){const o=e[t.name];if(typeof o=="function")return o;const s=e[r];return typeof s=="function"?s:c=>t(e,c)}const uu="2.20.3",SB=()=>`@wagmi/core@${uu}`;var Y5=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},Eu,X5;let Mr=class op extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return SB()}constructor(t,r={}){super(),Eu.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const o=r.cause instanceof op?r.cause.details:r.cause?.message?r.cause.message:r.details,s=r.cause instanceof op&&r.cause.docsPath||r.docsPath;this.message=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${r.docsSlug?`#${r.docsSlug}`:""}`]:[],...o?[`Details: ${o}`]:[],`Version: ${this.version}`].join(`
`),r.cause&&(this.cause=r.cause),this.details=o,this.docsPath=s,this.metaMessages=r.metaMessages,this.shortMessage=t}walk(t){return Y5(this,Eu,"m",X5).call(this,this,t)}};Eu=new WeakSet,X5=function e(t,r){return r?.(t)?t:t.cause?Y5(this,Eu,"m",e).call(this,t.cause,r):t};class ga extends Mr{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class _B extends Mr{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class BB extends Mr{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class TB extends Mr{constructor({address:t,connector:r}){super(`Account "${t}" not found for connector "${r.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class jB extends Mr{constructor({connectionChainId:t,connectorChainId:r}){super(`The current chain of the connector (id: ${r}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID:  ${r}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class kB extends Mr{constructor({connector:t}){super(`Connector "${t.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function OB(e,t){let r;if(typeof t.connector=="function"?r=e._internal.connectors.setup(t.connector):r=t.connector,r.uid===e.state.current)throw new _B;try{e.setState(f=>({...f,status:"connecting"})),r.emitter.emit("message",{type:"connecting"});const{connector:o,...s}=t,c=await r.connect(s),u=c.accounts;return r.emitter.off("connect",e._internal.events.connect),r.emitter.on("change",e._internal.events.change),r.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",r.id),e.setState(f=>({...f,connections:new Map(f.connections).set(r.uid,{accounts:u,chainId:c.chainId,connector:r}),current:r.uid,status:"connected"})),{accounts:u,chainId:c.chainId}}catch(o){throw e.setState(s=>({...s,status:s.current?"connected":"disconnected"})),o}}const ip=256;let Xl=ip,Zl;function Z5(e=11){if(!Zl||Xl+e>ip*2){Zl="",Xl=0;for(let t=0;t<ip;t++)Zl+=(256+Math.random()*256|0).toString(16).substring(1)}return Zl.substring(Xl,Xl+++e)}function J5(e){const{batch:t,chain:r,ccipRead:o,key:s="base",name:c="Base Client",type:u="base"}=e,f=e.experimental_blockTag??(typeof r?.experimental_preconfirmationTime=="number"?"pending":void 0),p=r?.blockTime??12e3,h=Math.min(Math.max(Math.floor(p/2),500),4e3),g=e.pollingInterval??h,b=e.cacheTime??g,m=e.account?Ft(e.account):void 0,{config:v,request:w,value:C}=e.transport({chain:r,pollingInterval:g}),A={...v,...C},B={account:m,batch:t,cacheTime:b,ccipRead:o,chain:r,key:s,name:c,pollingInterval:g,request:w,transport:A,type:u,uid:Z5(),...f?{experimental_blockTag:f}:{}};function T(_){return j=>{const k=j(_);for(const U in B)delete k[U];const D={..._,...k};return Object.assign(D,{extend:T(D)})}}return Object.assign(B,{extend:T(B)})}function MB(e){const{scheme:t,statement:r,...o}=e.match(RB)?.groups??{},{chainId:s,expirationTime:c,issuedAt:u,notBefore:f,requestId:p,...h}=e.match(DB)?.groups??{},g=e.split("Resources:")[1]?.split(`
- `).slice(1);return{...o,...h,...s?{chainId:Number(s)}:{},...c?{expirationTime:new Date(c)}:{},...u?{issuedAt:new Date(u)}:{},...f?{notBefore:new Date(f)}:{},...p?{requestId:p}:{},...g?{resources:g}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}const RB=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,DB=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function NB(e){const{address:t,domain:r,message:o,nonce:s,scheme:c,time:u=new Date}=e;if(r&&o.domain!==r||s&&o.nonce!==s||c&&o.scheme!==c||o.expirationTime&&u>=o.expirationTime||o.notBefore&&u<o.notBefore)return!1;try{if(!o.address||!dn(o.address,{strict:!1})||t&&!nm(o.address,t))return!1}catch{return!1}return!0}async function IB(e,t){const{address:r,domain:o,message:s,nonce:c,scheme:u,signature:f,time:p=new Date,...h}=t,g=MB(s);if(!g.address||!NB({address:r,domain:o,message:g,nonce:c,scheme:u,time:p}))return!1;const m=d5(s);return fm(e,{address:g.address,hash:m,signature:f,...h})}function UB(e){return{call:t=>xc(e,t),createAccessList:t=>F2(e,t),createBlockFilter:()=>z9(e),createContractEventFilter:t=>H2(e,t),createEventFilter:t=>Q2(e,t),createPendingTransactionFilter:()=>G2(e),estimateContractGas:t=>gS(e,t),estimateGas:t=>tm(e,t),getBalance:t=>em(e,t),getBlobBaseFee:()=>bS(e),getBlock:t=>Wn(e,t),getBlockNumber:t=>_c(e,t),getBlockTransactionCount:t=>AS(e,t),getBytecode:t=>jv(e,t),getChainId:()=>Zp(e),getCode:t=>jv(e,t),getContractEvents:t=>f5(e,t),getEip712Domain:t=>BS(e,t),getEnsAddress:t=>x9(e,t),getEnsAvatar:t=>P2(e,t),getEnsName:t=>q2(e,t),getEnsResolver:t=>U9(e,t),getEnsText:t=>L2(e,t),getFeeHistory:t=>kS(e,t),estimateFeesPerGas:t=>Z9(e,t),getFilterChanges:t=>Ku(e,t),getFilterLogs:t=>OS(e,t),getGasPrice:()=>Yp(e),getLogs:t=>om(e,t),getProof:t=>o_(e,t),estimateMaxPriorityFeePerGas:t=>X9(e,t),getStorageAt:t=>i_(e,t),getTransaction:t=>Xu(e,t),getTransactionConfirmations:t=>s_(e,t),getTransactionCount:t=>t5(e,t),getTransactionReceipt:t=>lu(e,t),multicall:t=>y5(e,t),prepareTransactionRequest:t=>Jp(e,t),readContract:t=>nr(e,t),sendRawTransaction:t=>K5(e,t),simulate:t=>Xh(e,t),simulateBlocks:t=>Xh(e,t),simulateCalls:t=>U_(e,t),simulateContract:t=>z_(e,t),verifyMessage:t=>mB(e,t),verifySiweMessage:t=>IB(e,t),verifyTypedData:t=>gB(e,t),uninstallFilter:t=>Ju(e,t),waitForTransactionReceipt:t=>$5(e,t),watchBlocks:t=>yB(e,t),watchBlockNumber:t=>W5(e,t),watchContractEvent:t=>vB(e,t),watchEvent:t=>wB(e,t),watchPendingTransactions:t=>CB(e,t)}}function e3({key:e,methods:t,name:r,request:o,retryCount:s=3,retryDelay:c=150,timeout:u,type:f},p){const h=Z5();return{config:{key:e,methods:t,name:r,request:o,retryCount:s,retryDelay:c,timeout:u,type:f},request:RS(o,{methods:t,retryCount:s,retryDelay:c,uid:h}),value:p}}function zB(e,t={}){const{key:r="custom",methods:o,name:s="Custom Provider",retryDelay:c}=t;return({retryCount:u})=>e3({key:r,methods:o,name:s,request:e.request.bind(e),retryCount:t.retryCount??u,retryDelay:c,type:"custom"})}class LB extends se{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function PB(e,t={}){const{batch:r,fetchOptions:o,key:s="http",methods:c,name:u="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:p,retryDelay:h,raw:g}=t;return({chain:b,retryCount:m,timeout:v})=>{const{batchSize:w=1e3,wait:C=0}=typeof r=="object"?r:{},A=t.retryCount??m,B=v??t.timeout??1e4,T=e||b?.rpcUrls.default.http[0];if(!T)throw new LB;const _=PS(T,{fetchOptions:o,onRequest:f,onResponse:p,timeout:B});return e3({key:s,methods:c,name:u,async request({method:j,params:k}){const D={method:j,params:k},{schedule:U}=N2({id:T,wait:C,shouldSplitBatch(le){return le.length>w},fn:le=>_.request({body:le}),sort:(le,ae)=>le.id-ae.id}),Q=async le=>r?U(le):[await _.request({body:le})],[{error:F,result:ie}]=await Q(D);if(g)return{error:F,result:ie};if(F)throw new zp({body:D,error:F,url:T});return ie},retryCount:A,retryDelay:h,timeout:B,type:"http"},{fetchOptions:o,url:T})}}async function t3(e,t={}){let r;if(t.connector){const{connector:h}=t;if(e.state.status==="reconnecting"&&!h.getAccounts&&!h.getChainId)throw new kB({connector:h});const[g,b]=await Promise.all([h.getAccounts().catch(m=>{if(t.account===null)return[];throw m}),h.getChainId()]);r={accounts:g,chainId:b,connector:h}}else r=e.state.connections.get(e.state.current);if(!r)throw new BB;const o=t.chainId??r.chainId,s=await r.connector.getChainId();if(s!==o)throw new jB({connectionChainId:o,connectorChainId:s});const c=r.connector;if(c.getClient)return c.getClient({chainId:o});const u=Ft(t.account??r.accounts[0]);if(u&&(u.address=pt(u.address)),t.account&&!r.accounts.some(h=>h.toLowerCase()===u.address.toLowerCase()))throw new TB({address:u.address,connector:c});const f=e.chains.find(h=>h.id===o),p=await r.connector.getProvider({chainId:o});return J5({account:u,chain:f,name:"Connector Client",transport:h=>zB(p)({...h,retryCount:0})})}async function qB(e,t={}){let r;if(t.connector)r=t.connector;else{const{connections:s,current:c}=e.state;r=s.get(c)?.connector}const o=e.state.connections;r&&(await r.disconnect(),r.emitter.off("change",e._internal.events.change),r.emitter.off("disconnect",e._internal.events.disconnect),r.emitter.on("connect",e._internal.events.connect),o.delete(r.uid)),e.setState(s=>{if(o.size===0)return{...s,connections:new Map,current:null,status:"disconnected"};const c=o.values().next().value;return{...s,connections:new Map(o),current:c.connector.uid}});{const s=e.state.current;if(!s)return;const c=e.state.connections.get(s)?.connector;if(!c)return;await e.storage?.setItem("recentConnectorId",c.id)}}function n3(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(C7[e])}function r3(e){const t=e.state.current,r=e.state.connections.get(t),o=r?.accounts,s=o?.[0],c=e.chains.find(f=>f.id===r?.chainId),u=e.state.status;switch(u){case"connected":return{address:s,addresses:o,chain:c,chainId:r?.chainId,connector:r?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:u};case"reconnecting":return{address:s,addresses:o,chain:c,chainId:r?.chainId,connector:r?.connector,isConnected:!!s,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:u};case"connecting":return{address:s,addresses:o,chain:c,chainId:r?.chainId,connector:r?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:u};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:u}}}async function FB(e,t){const{allowFailure:r=!0,chainId:o,contracts:s,...c}=t,u=e.getClient({chainId:o});return Yn(u,y5,"multicall")({allowFailure:r,contracts:s,...c})}function a3(e,t){const{chainId:r,...o}=t,s=e.getClient({chainId:r});return Yn(s,nr,"readContract")(o)}async function HB(e,t){const{allowFailure:r=!0,blockNumber:o,blockTag:s,...c}=t,u=t.contracts;try{const f={};for(const[b,m]of u.entries()){const v=m.chainId??e.state.chainId;f[v]||(f[v]=[]),f[v]?.push({contract:m,index:b})}const p=()=>Object.entries(f).map(([b,m])=>FB(e,{...c,allowFailure:r,blockNumber:o,blockTag:s,chainId:Number.parseInt(b),contracts:m.map(({contract:v})=>v)})),h=(await Promise.all(p())).flat(),g=Object.values(f).flatMap(b=>b.map(({index:m})=>m));return h.reduce((b,m,v)=>(b&&(b[g[v]]=m),b),[])}catch(f){if(f instanceof y2)throw f;const p=()=>u.map(h=>a3(e,{...h,blockNumber:o,blockTag:s}));return r?(await Promise.allSettled(p())).map(h=>h.status==="fulfilled"?{result:h.value,status:"success"}:{error:h.reason,result:void 0,status:"failure"}):await Promise.all(p())}}async function QB(e,t){const{address:r,blockNumber:o,blockTag:s,chainId:c,token:u,unit:f="ether"}=t;if(u)try{return await qv(e,{balanceAddress:r,chainId:c,symbolType:"string",tokenAddress:u})}catch(m){if(m.name==="ContractFunctionExecutionError"){const v=await qv(e,{balanceAddress:r,chainId:c,symbolType:"bytes32",tokenAddress:u}),w=Rw(_r(v.symbol,{dir:"right"}));return{...v,symbol:w}}throw m}const p=e.getClient({chainId:c}),g=await Yn(p,em,"getBalance")(o?{address:r,blockNumber:o}:{address:r,blockTag:s}),b=e.chains.find(m=>m.id===c)??p.chain;return{decimals:b.nativeCurrency.decimals,formatted:Fu(g,n3(f)),symbol:b.nativeCurrency.symbol,value:g}}async function qv(e,t){const{balanceAddress:r,chainId:o,symbolType:s,tokenAddress:c,unit:u}=t,f={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:s}]}],address:c},[p,h,g]=await HB(e,{allowFailure:!1,contracts:[{...f,functionName:"balanceOf",args:[r],chainId:o},{...f,functionName:"decimals",chainId:o},{...f,functionName:"symbol",chainId:o}]}),b=Fu(p??"0",n3(u??h));return{decimals:h,formatted:b,symbol:g,value:p}}function Fv(e){return e.state.chainId}function Za(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,o;if(Array.isArray(e)&&Array.isArray(t)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Za(e[o],t[o]))return!1;return!0}if(typeof e.valueOf=="function"&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(typeof e.toString=="function"&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();const s=Object.keys(e);if(r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.hasOwn(t,s[o]))return!1;for(o=r;o--!==0;){const c=s[o];if(c&&!Za(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}let X0=[];function Hv(e){const t=e.chains;return Za(X0,t)?X0:(X0=t,t)}function GB(e,t={}){try{return e.getClient(t)}catch{return}}let Jl=[];function sp(e){const t=[...e.state.connections.values()];return e.state.status==="reconnecting"||Za(Jl,t)?Jl:(Jl=t,t)}let Z0=[];function Qv(e){const t=e.connectors;return Z0.map(r=>r.uid)===t.map(r=>r.uid)?Z0:(Z0=t,t)}function VB(e,t){const{chainId:r,...o}=t,s=e.getClient({chainId:r});return Yn(s,P2,"getEnsAvatar")(o)}function WB(e,t){const{chainId:r,...o}=t,s=e.getClient({chainId:r});return Yn(s,q2,"getEnsName")(o)}function cp(e,t={}){return GB(e,t)?.extend(UB)}let J0=!1;async function $B(e,t={}){if(J0)return[];J0=!0,e.setState(h=>({...h,status:h.current?"reconnecting":"connecting"}));const r=[];if(t.connectors?.length)for(const h of t.connectors){let g;typeof h=="function"?g=e._internal.connectors.setup(h):g=h,r.push(g)}else r.push(...e.connectors);let o;try{o=await e.storage?.getItem("recentConnectorId")}catch{}const s={};for(const[,h]of e.state.connections)s[h.connector.id]=1;o&&(s[o]=0);const c=Object.keys(s).length>0?[...r].sort((h,g)=>(s[h.id]??10)-(s[g.id]??10)):r;let u=!1;const f=[],p=[];for(const h of c){const g=await h.getProvider().catch(()=>{});if(!g||p.some(v=>v===g)||!await h.isAuthorized())continue;const m=await h.connect({isReconnecting:!0}).catch(()=>null);m&&(h.emitter.off("connect",e._internal.events.connect),h.emitter.on("change",e._internal.events.change),h.emitter.on("disconnect",e._internal.events.disconnect),e.setState(v=>{const w=new Map(u?v.connections:new Map).set(h.uid,{accounts:m.accounts,chainId:m.chainId,connector:h});return{...v,current:u?v.current:h.uid,connections:w}}),f.push({accounts:m.accounts,chainId:m.chainId,connector:h}),p.push(g),u=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(u?e.setState(h=>({...h,status:"connected"})):e.setState(h=>({...h,connections:new Map,current:null,status:"disconnected"}))),J0=!1,f}async function KB(e,t){const{account:r,connector:o,...s}=t;let c;return typeof r=="object"&&r.type==="local"?c=e.getClient():c=await t3(e,{account:r,connector:o}),Yn(c,AB,"signMessage")({...s,...r?{account:r}:{}})}class fn extends Mr{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class YB extends Mr{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}async function XB(e,t){const{addEthereumChainParameter:r,chainId:o}=t,s=e.state.connections.get(t.connector?.uid??e.state.current);if(s){const u=s.connector;if(!u.switchChain)throw new YB({connector:u});return await u.switchChain({addEthereumChainParameter:r,chainId:o})}const c=e.chains.find(u=>u.id===o);if(!c)throw new ga;return e.setState(u=>({...u,chainId:o})),c}async function eh(e,t){const{chainId:r,timeout:o=0,...s}=t,c=e.getClient({chainId:r}),f=await Yn(c,$5,"waitForTransactionReceipt")({...s,timeout:o});if(f.status==="reverted"){const h=await Yn(c,Xu,"getTransaction")({hash:f.transactionHash}),b=await Yn(c,xc,"call")({...h,data:h.input,gasPrice:h.type!=="eip1559"?h.gasPrice:void 0,maxFeePerGas:h.type==="eip1559"?h.maxFeePerGas:void 0,maxPriorityFeePerGas:h.type==="eip1559"?h.maxPriorityFeePerGas:void 0}),m=b?.data?Rw(`0x${b.data.substring(138)}`):"unknown reason";throw new Error(m)}return{...f,chainId:c.chain.id}}function o3(e,t){const{onChange:r}=t;return e.subscribe(()=>r3(e),r,{equalityFn(o,s){const{connector:c,...u}=o,{connector:f,...p}=s;return Za(u,p)&&c?.id===f?.id&&c?.uid===f?.uid}})}function ZB(e,t){const{onChange:r}=t;return e.subscribe(o=>o.chainId,r)}function JB(e,t){const{onChange:r}=t;return e.subscribe(()=>sp(e),r,{equalityFn:Za})}function eT(e,t){const{onChange:r}=t;return e._internal.connectors.subscribe((o,s)=>{r(Object.values(o),s)})}function tT(e,t){const{onChange:r}=t;return e.subscribe(()=>cp(e),r,{equalityFn(o,s){return o?.uid===s?.uid}})}async function nT(e,t){const{account:r,chainId:o,connector:s,...c}=t;let u;return typeof r=="object"&&r?.type==="local"?u=e.getClient({chainId:o}):u=await t3(e,{account:r??void 0,chainId:o,connector:s}),await Yn(u,xB,"writeContract")({...c,...r?{account:r}:{},chain:o?{id:o}:null})}ef.type="injected";function ef(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function o(){const p=e.target;if(typeof p=="function"){const h=p();if(h)return h}return typeof p=="object"?p:typeof p=="string"?{...rT[p]??{id:p,name:`${p[0].toUpperCase()}${p.slice(1)}`,provider:`is${p[0].toUpperCase()}${p.slice(1)}`}}:{id:"injected",name:"Injected",provider(h){return h?.ethereum}}}let s,c,u,f;return p=>({get icon(){return o().icon},get id(){return o().id},get name(){return o().name},get supportsSimulation(){return!0},type:ef.type,async setup(){const h=await this.getProvider();h?.on&&e.target&&(u||(u=this.onConnect.bind(this),h.on("connect",u)),s||(s=this.onAccountsChanged.bind(this),h.on("accountsChanged",s)))},async connect({chainId:h,isReconnecting:g}={}){const b=await this.getProvider();if(!b)throw new fn;let m=[];if(g)m=await this.getAccounts().catch(()=>[]);else if(t)try{m=(await b.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(w=>pt(w)),m.length>0&&(m=await this.getAccounts())}catch(v){const w=v;if(w.code===Ue.code)throw new Ue(w);if(w.code===Kn.code)throw w}try{!m?.length&&!g&&(m=(await b.request({method:"eth_requestAccounts"})).map(C=>pt(C))),u&&(b.removeListener("connect",u),u=void 0),s||(s=this.onAccountsChanged.bind(this),b.on("accountsChanged",s)),c||(c=this.onChainChanged.bind(this),b.on("chainChanged",c)),f||(f=this.onDisconnect.bind(this),b.on("disconnect",f));let v=await this.getChainId();return h&&v!==h&&(v=(await this.switchChain({chainId:h}).catch(C=>{if(C.code===Ue.code)throw C;return{id:v}}))?.id??v),t&&await p.storage?.removeItem(`${this.id}.disconnected`),e.target||await p.storage?.setItem("injected.connected",!0),{accounts:m,chainId:v}}catch(v){const w=v;throw w.code===Ue.code?new Ue(w):w.code===Kn.code?new Kn(w):w}},async disconnect(){const h=await this.getProvider();if(!h)throw new fn;c&&(h.removeListener("chainChanged",c),c=void 0),f&&(h.removeListener("disconnect",f),f=void 0),u||(u=this.onConnect.bind(this),h.on("connect",u));try{await Yu(()=>h.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await p.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await p.storage?.removeItem("injected.connected")},async getAccounts(){const h=await this.getProvider();if(!h)throw new fn;return(await h.request({method:"eth_accounts"})).map(b=>pt(b))},async getChainId(){const h=await this.getProvider();if(!h)throw new fn;const g=await h.request({method:"eth_chainId"});return Number(g)},async getProvider(){if(typeof window>"u")return;let h;const g=o();return typeof g.provider=="function"?h=g.provider(window):typeof g.provider=="string"?h=fu(window,g.provider):h=g.provider,h&&!h.removeListener&&("off"in h&&typeof h.off=="function"?h.removeListener=h.off:h.removeListener=()=>{}),h},async isAuthorized(){try{if(t&&await p.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await p.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(r!==void 0&&r!==!1){const m=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",m),!!await this.getProvider()),v=typeof r=="number"?r:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(C=>window.addEventListener("ethereum#initialized",()=>C(m()),{once:!0}))]:[],new Promise(C=>setTimeout(()=>C(m()),v))]))return!0}throw new fn}return!!(await vi(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:h,chainId:g}){const b=await this.getProvider();if(!b)throw new fn;const m=p.chains.find(w=>w.id===g);if(!m)throw new zt(new ga);const v=new Promise(w=>{const C=(A=>{"chainId"in A&&A.chainId===g&&(p.emitter.off("change",C),w())});p.emitter.on("change",C)});try{return await Promise.all([b.request({method:"wallet_switchEthereumChain",params:[{chainId:ge(g)}]}).then(async()=>{await this.getChainId()===g&&p.emitter.emit("change",{chainId:g})}),v]),m}catch(w){const C=w;if(C.code===4902||C?.data?.originalError?.code===4902)try{const{default:A,...B}=m.blockExplorers??{};let T;h?.blockExplorerUrls?T=h.blockExplorerUrls:A&&(T=[A.url,...Object.values(B).map(k=>k.url)]);let _;h?.rpcUrls?.length?_=h.rpcUrls:_=[m.rpcUrls.default?.http[0]??""];const j={blockExplorerUrls:T,chainId:ge(g),chainName:h?.chainName??m.name,iconUrls:h?.iconUrls,nativeCurrency:h?.nativeCurrency??m.nativeCurrency,rpcUrls:_};return await Promise.all([b.request({method:"wallet_addEthereumChain",params:[j]}).then(async()=>{if(await this.getChainId()===g)p.emitter.emit("change",{chainId:g});else throw new Ue(new Error("User rejected switch after adding network."))}),v]),m}catch(A){throw new Ue(A)}throw C.code===Ue.code?new Ue(C):new zt(C)}},async onAccountsChanged(h){if(h.length===0)this.onDisconnect();else if(p.emitter.listenerCount("connect")){const g=(await this.getChainId()).toString();this.onConnect({chainId:g}),t&&await p.storage?.removeItem(`${this.id}.disconnected`)}else p.emitter.emit("change",{accounts:h.map(g=>pt(g))})},onChainChanged(h){const g=Number(h);p.emitter.emit("change",{chainId:g})},async onConnect(h){const g=await this.getAccounts();if(g.length===0)return;const b=Number(h.chainId);p.emitter.emit("connect",{accounts:g,chainId:b});const m=await this.getProvider();m&&(u&&(m.removeListener("connect",u),u=void 0),s||(s=this.onAccountsChanged.bind(this),m.on("accountsChanged",s)),c||(c=this.onChainChanged.bind(this),m.on("chainChanged",c)),f||(f=this.onDisconnect.bind(this),m.on("disconnect",f)))},async onDisconnect(h){const g=await this.getProvider();h&&h.code===1013&&g&&(await this.getAccounts()).length||(p.emitter.emit("disconnect"),g&&(c&&(g.removeListener("chainChanged",c),c=void 0),f&&(g.removeListener("disconnect",f),f=void 0),u||(u=this.onConnect.bind(this),g.on("connect",u))))}})}const rT={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:fu(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return fu(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const r=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const o of r)if(t[o])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:fu(e,"isPhantom")}}};function fu(e,t){function r(s){return typeof t=="function"?t(s):typeof t=="string"?s[t]:!0}const o=e.ethereum;if(o?.providers)return o.providers.find(s=>r(s));if(o&&r(o))return o}function aT(e){if(typeof window>"u")return;const t=r=>e(r.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function oT(){const e=new Set;let t=[];const r=()=>aT(s=>{t.some(({info:c})=>c.uuid===s.info.uuid)||(t=[...t,s],e.forEach(c=>c(t,{added:[s]})))});let o=r();return{_listeners(){return e},clear(){e.forEach(s=>s([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),o?.()},findProvider({rdns:s}){return t.find(c=>c.info.rdns===s)},getProviders(){return t},reset(){this.clear(),o?.(),o=r()},subscribe(s,{emitImmediately:c}={}){return e.add(s),c&&s(t,{added:t}),()=>e.delete(s)}}}const iT=e=>(t,r,o)=>{const s=o.subscribe;return o.subscribe=(u,f,p)=>{let h=u;if(f){const g=p?.equalityFn||Object.is;let b=u(o.getState());h=m=>{const v=u(m);if(!g(b,v)){const w=b;f(b=v,w)}},p?.fireImmediately&&f(b,b)}return s(h)},e(t,r,o)},sT=iT;function cT(e,t){let r;try{r=e()}catch{return}return{getItem:s=>{var c;const u=p=>p===null?null:JSON.parse(p,void 0),f=(c=r.getItem(s))!=null?c:null;return f instanceof Promise?f.then(u):u(f)},setItem:(s,c)=>r.setItem(s,JSON.stringify(c,void 0)),removeItem:s=>r.removeItem(s)}}const lp=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(o){return lp(o)(r)},catch(o){return this}}}catch(r){return{then(o){return this},catch(o){return lp(o)(r)}}}},lT=(e,t)=>(r,o,s)=>{let c={storage:cT(()=>localStorage),partialize:C=>C,version:0,merge:(C,A)=>({...A,...C}),...t},u=!1;const f=new Set,p=new Set;let h=c.storage;if(!h)return e((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...C)},o,s);const g=()=>{const C=c.partialize({...o()});return h.setItem(c.name,{state:C,version:c.version})},b=s.setState;s.setState=(C,A)=>{b(C,A),g()};const m=e((...C)=>{r(...C),g()},o,s);s.getInitialState=()=>m;let v;const w=()=>{var C,A;if(!h)return;u=!1,f.forEach(T=>{var _;return T((_=o())!=null?_:m)});const B=((A=c.onRehydrateStorage)==null?void 0:A.call(c,(C=o())!=null?C:m))||void 0;return lp(h.getItem.bind(h))(c.name).then(T=>{if(T)if(typeof T.version=="number"&&T.version!==c.version){if(c.migrate)return[!0,c.migrate(T.state,T.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,T.state];return[!1,void 0]}).then(T=>{var _;const[j,k]=T;if(v=c.merge(k,(_=o())!=null?_:m),r(v,!0),j)return g()}).then(()=>{B?.(v,void 0),v=o(),u=!0,p.forEach(T=>T(v))}).catch(T=>{B?.(void 0,T)})};return s.persist={setOptions:C=>{c={...c,...C},C.storage&&(h=C.storage)},clearStorage:()=>{h?.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>w(),hasHydrated:()=>u,onHydrate:C=>(f.add(C),()=>{f.delete(C)}),onFinishHydration:C=>(p.add(C),()=>{p.delete(C)})},c.skipHydration||w(),v||m},uT=lT,Gv=e=>{let t;const r=new Set,o=(h,g)=>{const b=typeof h=="function"?h(t):h;if(!Object.is(b,t)){const m=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),r.forEach(v=>v(t,m))}},s=()=>t,f={setState:o,getState:s,getInitialState:()=>p,subscribe:h=>(r.add(h),()=>r.delete(h))},p=t=e(o,s,f);return f},th=e=>e?Gv(e):Gv;var nh={exports:{}},Vv;function fT(){return Vv||(Vv=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(r=!1));function s(p,h,g){this.fn=p,this.context=h,this.once=g||!1}function c(p,h,g,b,m){if(typeof g!="function")throw new TypeError("The listener must be a function");var v=new s(g,b||p,m),w=r?r+h:h;return p._events[w]?p._events[w].fn?p._events[w]=[p._events[w],v]:p._events[w].push(v):(p._events[w]=v,p._eventsCount++),p}function u(p,h){--p._eventsCount===0?p._events=new o:delete p._events[h]}function f(){this._events=new o,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],g,b;if(this._eventsCount===0)return h;for(b in g=this._events)t.call(g,b)&&h.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(g)):h},f.prototype.listeners=function(h){var g=r?r+h:h,b=this._events[g];if(!b)return[];if(b.fn)return[b.fn];for(var m=0,v=b.length,w=new Array(v);m<v;m++)w[m]=b[m].fn;return w},f.prototype.listenerCount=function(h){var g=r?r+h:h,b=this._events[g];return b?b.fn?1:b.length:0},f.prototype.emit=function(h,g,b,m,v,w){var C=r?r+h:h;if(!this._events[C])return!1;var A=this._events[C],B=arguments.length,T,_;if(A.fn){switch(A.once&&this.removeListener(h,A.fn,void 0,!0),B){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,g),!0;case 3:return A.fn.call(A.context,g,b),!0;case 4:return A.fn.call(A.context,g,b,m),!0;case 5:return A.fn.call(A.context,g,b,m,v),!0;case 6:return A.fn.call(A.context,g,b,m,v,w),!0}for(_=1,T=new Array(B-1);_<B;_++)T[_-1]=arguments[_];A.fn.apply(A.context,T)}else{var j=A.length,k;for(_=0;_<j;_++)switch(A[_].once&&this.removeListener(h,A[_].fn,void 0,!0),B){case 1:A[_].fn.call(A[_].context);break;case 2:A[_].fn.call(A[_].context,g);break;case 3:A[_].fn.call(A[_].context,g,b);break;case 4:A[_].fn.call(A[_].context,g,b,m);break;default:if(!T)for(k=1,T=new Array(B-1);k<B;k++)T[k-1]=arguments[k];A[_].fn.apply(A[_].context,T)}}return!0},f.prototype.on=function(h,g,b){return c(this,h,g,b,!1)},f.prototype.once=function(h,g,b){return c(this,h,g,b,!0)},f.prototype.removeListener=function(h,g,b,m){var v=r?r+h:h;if(!this._events[v])return this;if(!g)return u(this,v),this;var w=this._events[v];if(w.fn)w.fn===g&&(!m||w.once)&&(!b||w.context===b)&&u(this,v);else{for(var C=0,A=[],B=w.length;C<B;C++)(w[C].fn!==g||m&&!w[C].once||b&&w[C].context!==b)&&A.push(w[C]);A.length?this._events[v]=A.length===1?A[0]:A:u(this,v)}return this},f.prototype.removeAllListeners=function(h){var g;return h?(g=r?r+h:h,this._events[g]&&u(this,g)):(this._events=new o,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f})(nh)),nh.exports}var dT=fT();const hT=dw(dT);class pT{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new hT})}on(t,r){this._emitter.on(t,r)}once(t,r){this._emitter.once(t,r)}off(t,r){this._emitter.off(t,r)}emit(t,...r){const o=r[0];this._emitter.emit(t,{uid:this.uid,...o})}listenerCount(t){return this._emitter.listenerCount(t)}}function mT(e){return new pT(e)}function gT(e,t){return JSON.parse(e,(r,o)=>{let s=o;return s?.__type==="bigint"&&(s=BigInt(s.value)),s?.__type==="Map"&&(s=new Map(s.value)),t?.(r,s)??s})}function Wv(e,t){return e.slice(0,t).join(".")||"."}function $v(e,t){const{length:r}=e;for(let o=0;o<r;++o)if(e[o]===t)return o+1;return 0}function bT(e,t){const r=typeof e=="function",o=typeof t=="function",s=[],c=[];return function(f,p){if(typeof p=="object")if(s.length){const h=$v(s,this);h===0?s[s.length]=this:(s.splice(h),c.splice(h)),c[c.length]=f;const g=$v(s,p);if(g!==0)return o?t.call(this,f,p,Wv(c,g)):`[ref=${Wv(c,g)}]`}else s[0]=p,c[0]=f;return r?e.call(this,f,p):p}}function yT(e,t,r,o){return JSON.stringify(e,bT((s,c)=>{let u=c;return typeof u=="bigint"&&(u={__type:"bigint",value:c.toString()}),u instanceof Map&&(u={__type:"Map",value:Array.from(c.entries())}),t?.(s,u)??u},o),r??void 0)}function vT(e){const{deserialize:t=gT,key:r="wagmi",serialize:o=yT,storage:s=i3}=e;function c(u){return u instanceof Promise?u.then(f=>f).catch(()=>null):u}return{...s,key:r,async getItem(u,f){const p=s.getItem(`${r}.${u}`),h=await c(p);return h?t(h)??null:f??null},async setItem(u,f){const p=`${r}.${u}`;f===null?await c(s.removeItem(p)):await c(s.setItem(p,o(f)))},async removeItem(u){await c(s.removeItem(`${r}.${u}`))}}}const i3={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function wT(){const e=typeof window<"u"&&window.localStorage?window.localStorage:i3;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,r){try{e.setItem(t,r)}catch{}}}}const up=256;let eu=up,tu;function CT(e=11){if(!tu||eu+e>up*2){tu="",eu=0;for(let t=0;t<up;t++)tu+=(256+Math.random()*256|0).toString(16).substring(1)}return tu.substring(eu,eu+++e)}function ET(e){const{multiInjectedProviderDiscovery:t=!0,storage:r=vT({storage:wT()}),syncConnectedChain:o=!0,ssr:s=!1,...c}=e,u=typeof window<"u"&&t?oT():void 0,f=th(()=>c.chains),p=th(()=>{const k=[],D=new Set;for(const U of c.connectors??[]){const Q=h(U);if(k.push(Q),!s&&Q.rdns){const F=typeof Q.rdns=="string"?[Q.rdns]:Q.rdns;for(const ie of F)D.add(ie)}}if(!s&&u){const U=u.getProviders();for(const Q of U)D.has(Q.info.rdns)||k.push(h(g(Q)))}return k});function h(k){const D=mT(CT()),U={...k({emitter:D,chains:f.getState(),storage:r,transports:c.transports}),emitter:D,uid:D.uid};return D.on("connect",_),U.setup?.(),U}function g(k){const{info:D}=k,U=k.provider;return ef({target:{...D,id:D.rdns,provider:U}})}const b=new Map;function m(k={}){const D=k.chainId??A.getState().chainId,U=f.getState().find(F=>F.id===D);if(k.chainId&&!U)throw new ga;{const F=b.get(A.getState().chainId);if(F&&!U)return F;if(!U)throw new ga}{const F=b.get(D);if(F)return F}let Q;if(c.client)Q=c.client({chain:U});else{const F=U.id,ie=f.getState().map(L=>L.id),le={},ae=Object.entries(c);for(const[L,V]of ae)if(!(L==="chains"||L==="client"||L==="connectors"||L==="transports"))if(typeof V=="object")if(F in V)le[L]=V[F];else{if(ie.some(I=>I in V))continue;le[L]=V}else le[L]=V;Q=J5({...le,chain:U,batch:le.batch??{multicall:!0},transport:L=>c.transports[F]({...L,connectors:p})})}return b.set(D,Q),Q}function v(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let w;const C="0.0.0-canary-";uu.startsWith(C)?w=Number.parseInt(uu.replace(C,"")):w=Number.parseInt(uu.split(".")[0]??"0");const A=th(sT(r?uT(v,{migrate(k,D){if(D===w)return k;const U=v(),Q=B(k,U.chainId);return{...U,chainId:Q}},name:"store",partialize(k){return{connections:{__type:"Map",value:Array.from(k.connections.entries()).map(([D,U])=>{const{id:Q,name:F,type:ie,uid:le}=U.connector;return[D,{...U,connector:{id:Q,name:F,type:ie,uid:le}}]})},chainId:k.chainId,current:k.current}},merge(k,D){typeof k=="object"&&k&&"status"in k&&delete k.status;const U=B(k,D.chainId);return{...D,...k,chainId:U}},skipHydration:s,storage:r,version:w}):v));A.setState(v());function B(k,D){return k&&typeof k=="object"&&"chainId"in k&&typeof k.chainId=="number"&&f.getState().some(U=>U.id===k.chainId)?k.chainId:D}o&&A.subscribe(({connections:k,current:D})=>D?k.get(D)?.chainId:void 0,k=>{if(f.getState().some(U=>U.id===k))return A.setState(U=>({...U,chainId:k??U.chainId}))}),u?.subscribe(k=>{const D=new Set,U=new Set;for(const F of p.getState())if(D.add(F.id),F.rdns){const ie=typeof F.rdns=="string"?[F.rdns]:F.rdns;for(const le of ie)U.add(le)}const Q=[];for(const F of k){if(U.has(F.info.rdns))continue;const ie=h(g(F));D.has(ie.id)||Q.push(ie)}r&&!A.persist.hasHydrated()||p.setState(F=>[...F,...Q],!0)});function T(k){A.setState(D=>{const U=D.connections.get(k.uid);return U?{...D,connections:new Map(D.connections).set(k.uid,{accounts:k.accounts??U.accounts,chainId:k.chainId??U.chainId,connector:U.connector})}:D})}function _(k){A.getState().status==="connecting"||A.getState().status==="reconnecting"||A.setState(D=>{const U=p.getState().find(Q=>Q.uid===k.uid);return U?(U.emitter.listenerCount("connect")&&U.emitter.off("connect",T),U.emitter.listenerCount("change")||U.emitter.on("change",T),U.emitter.listenerCount("disconnect")||U.emitter.on("disconnect",j),{...D,connections:new Map(D.connections).set(k.uid,{accounts:k.accounts,chainId:k.chainId,connector:U}),current:k.uid,status:"connected"}):D})}function j(k){A.setState(D=>{const U=D.connections.get(k.uid);if(U){const F=U.connector;F.emitter.listenerCount("change")&&U.connector.emitter.off("change",T),F.emitter.listenerCount("disconnect")&&U.connector.emitter.off("disconnect",j),F.emitter.listenerCount("connect")||U.connector.emitter.on("connect",_)}if(D.connections.delete(k.uid),D.connections.size===0)return{...D,connections:new Map,current:null,status:"disconnected"};const Q=D.connections.values().next().value;return{...D,connections:new Map(D.connections),current:Q.connector.uid}})}return{get chains(){return f.getState()},get connectors(){return p.getState()},storage:r,getClient:m,get state(){return A.getState()},setState(k){let D;typeof k=="function"?D=k(A.getState()):D=k;const U=v();typeof D!="object"&&(D=U),Object.keys(U).some(F=>!(F in D))&&(D=U),A.setState(D,!0)},subscribe(k,D,U){return A.subscribe(k,D,U?{...U,fireImmediately:U.emitImmediately}:void 0)},_internal:{mipd:u,async revalidate(){const k=A.getState(),D=k.connections;let U=k.current;for(const[,Q]of D){const F=Q.connector;F.isAuthorized&&await F.isAuthorized()||(D.delete(F.uid),U===F.uid&&(U=null))}A.setState(Q=>({...Q,connections:D,current:U}))},store:A,ssr:!!s,syncConnectedChain:o,transports:c.transports,chains:{setState(k){const D=typeof k=="function"?k(f.getState()):k;if(D.length!==0)return f.setState(D,!0)},subscribe(k){return f.subscribe(k)}},connectors:{providerDetailToConnector:g,setup:h,setState(k){return p.setState(typeof k=="function"?k(p.getState()):k,!0)},subscribe(k){return p.subscribe(k)}},events:{change:T,connect:_,disconnect:j}}}}function AT(e,t){const{initialState:r,reconnectOnMount:o}=t;return r&&!e._internal.store.persist.hasHydrated()&&e.setState({...r,chainId:e.chains.some(s=>s.id===r.chainId)?r.chainId:e.chains[0].id,connections:o?r.connections:new Map,status:o?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(s=>{const c=new Set;for(const p of s??[])if(p.rdns){const h=Array.isArray(p.rdns)?p.rdns:[p.rdns];for(const g of h)c.add(g)}const u=[],f=e._internal.mipd?.getProviders()??[];for(const p of f){if(c.has(p.info.rdns))continue;const h=e._internal.connectors.providerDetailToConnector(p),g=e._internal.connectors.setup(h);u.push(g)}return[...s,...u]})),o?$B(e):e.storage&&e.setState(s=>({...s,connections:new Map}))}}}function s3(e){const{chain:t}=e,r=t.rpcUrls.default.http[0];if(!e.transports)return[r];const o=e.transports?.[t.id]?.({chain:t});return(o?.value?.transports||[o]).map(({value:c})=>c?.url||r)}function xT(e){const{children:t,config:r,initialState:o,reconnectOnMount:s=!0}=e,{onMount:c}=AT(r,{initialState:o,reconnectOnMount:s});r._internal.ssr||c();const u=N.useRef(!0);return N.useEffect(()=>{if(u.current&&r._internal.ssr)return c(),()=>{u.current=!1}},[]),t}const c3=N.createContext(void 0);function ST(e){const{children:t,config:r}=e,o={value:r};return N.createElement(xT,e,N.createElement(c3.Provider,o,t))}const _T="2.16.9",BT=()=>`wagmi@${_T}`;class TT extends Mr{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return BT()}}class jT extends TT{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function rt(e={}){const t=e.config??N.useContext(c3);if(!t)throw new jT;return t}function kT(e,t){const{onChange:r}=t;return e._internal.chains.subscribe((o,s)=>{r(o,s)})}var rh={exports:{}},ah={},oh={exports:{}},ih={};/**
 * @license React
 * use-sync-external-store-shim.production.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 Kv;function OT(){if(Kv)return ih;Kv=1;var e=gc();function t(b,m){return b===m&&(b!==0||1/b===1/m)||b!==b&&m!==m}var r=typeof Object.is=="function"?Object.is:t,o=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function f(b,m){var v=m(),w=o({inst:{value:v,getSnapshot:m}}),C=w[0].inst,A=w[1];return c(function(){C.value=v,C.getSnapshot=m,p(C)&&A({inst:C})},[b,v,m]),s(function(){return p(C)&&A({inst:C}),b(function(){p(C)&&A({inst:C})})},[b]),u(v),v}function p(b){var m=b.getSnapshot;b=b.value;try{var v=m();return!r(b,v)}catch{return!0}}function h(b,m){return m()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return ih.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,ih}var Yv;function MT(){return Yv||(Yv=1,oh.exports=OT()),oh.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.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 Xv;function RT(){if(Xv)return ah;Xv=1;var e=gc(),t=MT();function r(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var o=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,f=e.useMemo,p=e.useDebugValue;return ah.useSyncExternalStoreWithSelector=function(h,g,b,m,v){var w=c(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=f(function(){function B(D){if(!T){if(T=!0,_=D,D=m(D),v!==void 0&&C.hasValue){var U=C.value;if(v(U,D))return j=U}return j=D}if(U=j,o(_,D))return U;var Q=m(D);return v!==void 0&&v(U,Q)?(_=D,U):(_=D,j=Q)}var T=!1,_,j,k=b===void 0?null:b;return[function(){return B(g())},k===null?void 0:function(){return B(k())}]},[g,b,m,v]);var A=s(h,w[0],w[1]);return u(function(){C.hasValue=!0,C.value=A},[A]),p(A),A},ah}var Zv;function DT(){return Zv||(Zv=1,rh.exports=RT()),rh.exports}var l3=DT();const sh=e=>typeof e=="object"&&!Array.isArray(e);function NT(e,t,r=t,o=Za){const s=N.useRef([]),c=l3.useSyncExternalStoreWithSelector(e,t,r,u=>u,(u,f)=>{if(sh(u)&&sh(f)&&s.current.length){for(const p of s.current)if(!o(u[p],f[p]))return!1;return!0}return o(u,f)});return N.useMemo(()=>{if(sh(c)){const u={...c};let f={};for(const[p,h]of Object.entries(u))f={...f,[p]:{configurable:!1,enumerable:!0,get:()=>(s.current.includes(p)||s.current.push(p),h)}};return Object.defineProperties(u,f),u}return c},[c])}function qt(e={}){const t=rt(e);return NT(r=>o3(t,{onChange:r}),()=>r3(t))}function u3(e={}){const{onConnect:t,onDisconnect:r}=e,o=rt(e);N.useEffect(()=>o3(o,{onChange(s,c){if((c.status==="reconnecting"||c.status==="connecting"&&c.address===void 0)&&s.status==="connected"){const{address:u,addresses:f,chain:p,chainId:h,connector:g}=s,b=c.status==="reconnecting"||c.status===void 0;t?.({address:u,addresses:f,chain:p,chainId:h,connector:g,isReconnected:b})}else c.status==="connected"&&s.status==="disconnected"&&r?.()}}),[o,t,r])}var ki=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ja=typeof window>"u"||"Deno"in globalThis;function It(){}function IT(e,t){return typeof e=="function"?e(t):e}function fp(e){return typeof e=="number"&&e>=0&&e!==1/0}function f3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function da(e,t){return typeof e=="function"?e(t):e}function _n(e,t){return typeof e=="function"?e(t):e}function Jv(e,t){const{type:r="all",exact:o,fetchStatus:s,predicate:c,queryKey:u,stale:f}=e;if(u){if(o){if(t.queryHash!==hm(u,t.options))return!1}else if(!lc(t.queryKey,u))return!1}if(r!=="all"){const p=t.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||c&&!c(t))}function e6(e,t){const{exact:r,status:o,predicate:s,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(r){if(eo(t.options.mutationKey)!==eo(c))return!1}else if(!lc(t.options.mutationKey,c))return!1}return!(o&&t.state.status!==o||s&&!s(t))}function hm(e,t){return(t?.queryKeyHashFn||eo)(e)}function eo(e){return JSON.stringify(e,(t,r)=>dp(r)?Object.keys(r).sort().reduce((o,s)=>(o[s]=r[s],o),{}):r)}function lc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>lc(e[r],t[r])):!1}function pm(e,t){if(e===t)return e;const r=t6(e)&&t6(t);if(r||dp(e)&&dp(t)){const o=r?e:Object.keys(e),s=o.length,c=r?t:Object.keys(t),u=c.length,f=r?[]:{},p=new Set(o);let h=0;for(let g=0;g<u;g++){const b=r?g:c[g];(!r&&p.has(b)||r)&&e[b]===void 0&&t[b]===void 0?(f[b]=void 0,h++):(f[b]=pm(e[b],t[b]),f[b]===e[b]&&e[b]!==void 0&&h++)}return s===u&&h===s?e:f}return t}function Au(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function t6(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dp(e){if(!n6(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!n6(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function n6(e){return Object.prototype.toString.call(e)==="[object Object]"}function UT(e){return new Promise(t=>{setTimeout(t,e)})}function hp(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?pm(e,t):t}function zT(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}function LT(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var mm=Symbol();function d3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===mm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function h3(e,t){return typeof e=="function"?e(...t):!!e}var PT=class extends ki{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Ja&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},gm=new PT,qT=class extends ki{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Ja&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},xu=new qT;function pp(){let e,t;const r=new Promise((s,c)=>{e=s,t=c});r.status="pending",r.catch(()=>{});function o(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{o({status:"fulfilled",value:s}),e(s)},r.reject=s=>{o({status:"rejected",reason:s}),t(s)},r}function FT(e){return Math.min(1e3*2**e,3e4)}function p3(e){return(e??"online")==="online"?xu.isOnline():!0}var mp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function m3(e){let t=!1,r=0,o;const s=pp(),c=()=>s.status!=="pending",u=C=>{if(!c()){const A=new mp(C);m(A),e.onCancel?.(A)}},f=()=>{t=!0},p=()=>{t=!1},h=()=>gm.isFocused()&&(e.networkMode==="always"||xu.isOnline())&&e.canRun(),g=()=>p3(e.networkMode)&&e.canRun(),b=C=>{c()||(o?.(),s.resolve(C))},m=C=>{c()||(o?.(),s.reject(C))},v=()=>new Promise(C=>{o=A=>{(c()||h())&&C(A)},e.onPause?.()}).then(()=>{o=void 0,c()||e.onContinue?.()}),w=()=>{if(c())return;let C;const A=r===0?e.initialPromise:void 0;try{C=A??e.fn()}catch(B){C=Promise.reject(B)}Promise.resolve(C).then(b).catch(B=>{if(c())return;const T=e.retry??(Ja?0:3),_=e.retryDelay??FT,j=typeof _=="function"?_(r,B):_,k=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,B);if(t||!k){m(B);return}r++,e.onFail?.(r,B),UT(j).then(()=>h()?void 0:v()).then(()=>{t?m(B):w()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(o?.(),s),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?w():v().then(w),s)}}var HT=e=>setTimeout(e,0);function QT(){let e=[],t=0,r=f=>{f()},o=f=>{f()},s=HT;const c=f=>{t?e.push(f):s(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&s(()=>{o(()=>{f.forEach(p=>{r(p)})})})};return{batch:f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},batchCalls:f=>(...p)=>{c(()=>{f(...p)})},schedule:c,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{o=f},setScheduler:f=>{s=f}}}var ht=QT(),g3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fp(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ja?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},GT=class extends g3{#t;#e;#n;#r;#a;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=VT(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=hp(this.state.data,e,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>_n(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>da(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!f3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},s=()=>{const f=d3(this.options,t),h=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#s=!1,this.options.persister?this.options.persister(f,h,this):f(h)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:s};return o(f),f})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=m3({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof mp&&f.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(f,p)=>{this.#o({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#a.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof mp){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...b3(r.data,this.options),fetchMeta:e.meta??null};case"success":const o={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?o:void 0,o;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ht.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function b3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:p3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function VT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var WT=class extends ki{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const o=t.queryKey,s=t.queryHash??hm(o,t);let c=this.get(s);return c||(c=new GT({client:e,queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(c)),c}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ht.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Jv(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>Jv(e,r)):t}notify(e){ht.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$T=class extends g3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||y3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=m3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",o=!this.#n.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#e.config.onMutate?.(e,this);const c=await this.options.onMutate?.(e);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:o})}const s=await this.#n.start();return await this.#e.config.onSuccess?.(s,e,this.state.context,this),await this.options.onSuccess?.(s,e,this.state.context),await this.#e.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,e,this.state.context),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#e.config.onError?.(s,e,this.state.context,this),await this.options.onError?.(s,e,this.state.context),await this.#e.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,s,e,this.state.context),s}finally{this.#r({type:"error",error:s})}}finally{this.#e.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ht.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function y3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var KT=class extends ki{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,r){const o=new $T({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){this.#t.add(e);const t=nu(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=nu(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=nu(e);if(typeof t=="string"){const o=this.#e.get(t)?.find(s=>s.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=nu(e);return typeof t=="string"?this.#e.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ht.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>e6(t,r))}findAll(e={}){return this.getAll().filter(t=>e6(e,t))}notify(e){ht.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ht.batch(()=>Promise.all(e.map(t=>t.continue().catch(It))))}};function nu(e){return e.options.scope?.id}function r6(e){return{onFetch:(t,r)=>{const o=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const h=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=d3(t.options,t.fetchOptions),v=async(w,C,A)=>{if(g)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const T=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:C,direction:A?"backward":"forward",meta:t.options.meta};return b(D),D})(),_=await m(T),{maxPages:j}=t.options,k=A?LT:zT;return{pages:k(w.pages,_,j),pageParams:k(w.pageParams,C,j)}};if(s&&c.length){const w=s==="backward",C=w?YT:a6,A={pages:c,pageParams:u},B=C(o,A);f=await v(A,B,w)}else{const w=e??c.length;do{const C=p===0?u[0]??o.initialPageParam:a6(o,f);if(p>0&&C==null)break;f=await v(f,C),p++}while(p<w)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=h}}}function a6(e,{pages:t,pageParams:r}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}function YT(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var XT=class{#t;#e;#n;#r;#a;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new WT,this.#e=e.mutationCache||new KT,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=gm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=xu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(da(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),c=this.#t.get(o.queryHash)?.state.data,u=IT(t,c);if(u!==void 0)return this.#t.build(this,o).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return ht.batch(()=>this.#t.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;ht.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return ht.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=ht.batch(()=>this.#t.findAll(e).map(s=>s.cancel(r)));return Promise.all(o).then(It).catch(It)}invalidateQueries(e,t={}){return ht.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=ht.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(It)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(o).then(It)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(da(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(It).catch(It)}fetchInfiniteQuery(e){return e.behavior=r6(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(It).catch(It)}ensureInfiniteQueryData(e){return e.behavior=r6(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return xu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(o=>{lc(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){this.#a.set(eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],r={};return t.forEach(o=>{lc(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===mm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},ZT=class extends ki{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=pp(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#s;#o;#m;#d;#h;#l;#u;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),o6(this.#e,this.options)?this.#f():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gp(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gp(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#C(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _n(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#e.setOptions(this.options),t._defaulted&&!Au(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&i6(this.#e,r,this.options,t)&&this.#f(),this.updateResult(),o&&(this.#e!==r||_n(this.options.enabled,this.#e)!==_n(t.enabled,this.#e)||da(this.options.staleTime,this.#e)!==da(t.staleTime,this.#e))&&this.#g();const s=this.#b();o&&(this.#e!==r||_n(this.options.enabled,this.#e)!==_n(t.enabled,this.#e)||s!==this.#c)&&this.#y(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return ej(this,r)&&(this.#r=r,this.#i=this.options,this.#a=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,o)=>(this.trackProp(o),t?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#E();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(It)),t}#g(){this.#w();const e=da(this.options.staleTime,this.#e);if(Ja||this.#r.isStale||!fp(e))return;const r=f3(this.#r.dataUpdatedAt,e)+1;this.#l=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#C(),this.#c=e,!(Ja||_n(this.options.enabled,this.#e)===!1||!fp(this.#c)||this.#c===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||gm.isFocused())&&this.#f()},this.#c))}#v(){this.#g(),this.#y(this.#b())}#w(){this.#l&&(clearTimeout(this.#l),this.#l=void 0)}#C(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#e,o=this.options,s=this.#r,c=this.#a,u=this.#i,p=e!==r?e.state:this.#n,{state:h}=e;let g={...h},b=!1,m;if(t._optimisticResults){const Q=this.hasListeners(),F=!Q&&o6(e,t),ie=Q&&i6(e,r,t,o);(F||ie)&&(g={...g,...b3(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:w,status:C}=g;m=g.data;let A=!1;if(t.placeholderData!==void 0&&m===void 0&&C==="pending"){let Q;s?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(Q=s.data,A=!0):Q=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,Q!==void 0&&(C="success",m=hp(s?.data,Q,t),b=!0)}if(t.select&&m!==void 0&&!A)if(s&&m===c?.data&&t.select===this.#m)m=this.#d;else try{this.#m=t.select,m=t.select(m),m=hp(s?.data,m,t),this.#d=m,this.#o=null}catch(Q){this.#o=Q}this.#o&&(v=this.#o,m=this.#d,w=Date.now(),C="error");const B=g.fetchStatus==="fetching",T=C==="pending",_=C==="error",j=T&&B,k=m!==void 0,U={status:C,fetchStatus:g.fetchStatus,isPending:T,isSuccess:C==="success",isError:_,isInitialLoading:j,isLoading:j,data:m,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:B,isRefetching:B&&!T,isLoadingError:_&&!k,isPaused:g.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:_&&k,isStale:bm(e,t),refetch:this.refetch,promise:this.#s,isEnabled:_n(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const Q=le=>{U.status==="error"?le.reject(U.error):U.data!==void 0&&le.resolve(U.data)},F=()=>{const le=this.#s=U.promise=pp();Q(le)},ie=this.#s;switch(ie.status){case"pending":e.queryHash===r.queryHash&&Q(ie);break;case"fulfilled":(U.status==="error"||U.data!==ie.value)&&F();break;case"rejected":(U.status!=="error"||U.error!==ie.reason)&&F();break}}return U}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Au(t,e))return;this.#r=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.#p.size)return!0;const c=new Set(s??this.#p);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(u=>{const f=u;return this.#r[f]!==e[f]&&c.has(f)})};this.#A({listeners:r()})}#E(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#A(e){ht.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function JT(e,t){return _n(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function o6(e,t){return JT(e,t)||e.state.data!==void 0&&gp(e,t,t.refetchOnMount)}function gp(e,t,r){if(_n(t.enabled,e)!==!1&&da(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&bm(e,t)}return!1}function i6(e,t,r,o){return(e!==t||_n(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&bm(e,r)}function bm(e,t){return _n(t.enabled,e)!==!1&&e.isStaleByTime(da(t.staleTime,e))}function ej(e,t){return!Au(e.getCurrentResult(),t)}var tj=class extends ki{#t;#e=void 0;#n;#r;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Au(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&eo(r.mutationKey)!==eo(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(t,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??y3();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){ht.batch(()=>{if(this.#r&&this.hasListeners()){const r=this.#e.variables,o=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,r,o),this.#r.onSettled?.(t.data,null,r,o)):t?.type==="error"&&(this.#r.onError?.(t.error,r,o),this.#r.onSettled?.(void 0,t.error,r,o))}this.listeners.forEach(r=>{r(this.#e)})})}};function nj(e,t){return pm(e,t)}function rj(e){return JSON.stringify(e,(t,r)=>aj(r)?Object.keys(r).sort().reduce((o,s)=>(o[s]=r[s],o),{}):typeof r=="bigint"?r.toString():r)}function aj(e){if(!s6(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!s6(r)||!r.hasOwnProperty("isPrototypeOf"))}function s6(e){return Object.prototype.toString.call(e)==="[object Object]"}function tf(e){const{_defaulted:t,behavior:r,gcTime:o,initialData:s,initialDataUpdatedAt:c,maxPages:u,meta:f,networkMode:p,queryFn:h,queryHash:g,queryKey:b,queryKeyHashFn:m,retry:v,retryDelay:w,structuralSharing:C,getPreviousPageParam:A,getNextPageParam:B,initialPageParam:T,_optimisticResults:_,enabled:j,notifyOnChangeProps:k,placeholderData:D,refetchInterval:U,refetchIntervalInBackground:Q,refetchOnMount:F,refetchOnReconnect:ie,refetchOnWindowFocus:le,retryOnMount:ae,select:L,staleTime:V,suspense:$,throwOnError:I,config:Y,connector:q,query:oe,...O}=e;return O}function oj(e){return{mutationFn(t){return OB(e,t)},mutationKey:["connect"]}}function ij(e){return{mutationFn(t){return qB(e,t)},mutationKey:["disconnect"]}}function sj(e,t={}){return{async queryFn({queryKey:r}){const{address:o,scopeKey:s,...c}=r[1];if(!o)throw new Error("address is required");return await QB(e,{...c,address:o})??null},queryKey:cj(t)}}function cj(e={}){return["balance",tf(e)]}function lj(e,t={}){return{async queryFn({queryKey:r}){const{name:o,scopeKey:s,...c}=r[1];if(!o)throw new Error("name is required");return VB(e,{...c,name:o})},queryKey:uj(t)}}function uj(e={}){return["ensAvatar",tf(e)]}function fj(e,t={}){return{async queryFn({queryKey:r}){const{address:o,scopeKey:s,...c}=r[1];if(!o)throw new Error("address is required");return WB(e,{...c,address:o})},queryKey:dj(t)}}function dj(e={}){return["ensName",tf(e)]}function hj(e,t={}){return{async queryFn({queryKey:r}){const o=t.abi;if(!o)throw new Error("abi is required");const{functionName:s,scopeKey:c,...u}=r[1],f=(()=>{const p=r[1];if(p.address)return{address:p.address};if(p.code)return{code:p.code};throw new Error("address or code is required")})();if(!s)throw new Error("functionName is required");return a3(e,{abi:o,functionName:s,args:u.args,...f,...u})},queryKey:pj(t)}}function pj(e={}){const{abi:t,...r}=e;return["readContract",tf(r)]}function mj(e){return{mutationFn(t){return KB(e,t)},mutationKey:["signMessage"]}}function gj(e){return{mutationFn(t){return XB(e,t)},mutationKey:["switchChain"]}}function bj(e){return{mutationFn(t){return nT(e,t)},mutationKey:["writeContract"]}}var v3=N.createContext(void 0),w3=e=>{const t=N.useContext(v3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yj=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Z.jsx(v3.Provider,{value:e,children:t})),C3=N.createContext(!1),vj=()=>N.useContext(C3);C3.Provider;function wj(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Cj=N.createContext(wj()),Ej=()=>N.useContext(Cj),Aj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},xj=e=>{N.useEffect(()=>{e.clearReset()},[e])},Sj=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(s&&e.data===void 0||h3(r,[e.error,o])),_j=e=>{if(e.suspense){const t=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>t(r(...o)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Bj=(e,t)=>e.isLoading&&e.isFetching&&!t,Tj=(e,t)=>e?.suspense&&t.isPending,c6=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function jj(e,t,r){const o=vj(),s=Ej(),c=w3(),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=o?"isRestoring":"optimistic",_j(u),Aj(u,s),xj(s);const f=!c.getQueryCache().get(u.queryHash),[p]=N.useState(()=>new t(c,u)),h=p.getOptimisticResult(u),g=!o&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(b=>{const m=g?p.subscribe(ht.batchCalls(b)):It;return p.updateResult(),m},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),N.useEffect(()=>{p.setOptions(u)},[u,p]),Tj(u,h))throw c6(u,p,s);if(Sj({result:h,errorResetBoundary:s,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,h),u.experimental_prefetchInRender&&!Ja&&Bj(h,o)&&(f?c6(u,p,s):c.getQueryCache().get(u.queryHash)?.promise)?.catch(It).finally(()=>{p.updateResult()}),u.notifyOnChangeProps?h:p.trackResult(h)}function E3(e,t){return jj(e,ZT)}function jc(e,t){const r=w3(),[o]=N.useState(()=>new tj(r,e));N.useEffect(()=>{o.setOptions(e)},[o,e]);const s=N.useSyncExternalStore(N.useCallback(u=>o.subscribe(ht.batchCalls(u)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=N.useCallback((u,f)=>{o.mutate(u,f).catch(It)},[o]);if(s.error&&h3(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function nf(e){const t=E3({...e,queryKeyHashFn:rj});return t.queryKey=e.queryKey,t}function rf(e={}){const t=rt(e);return N.useSyncExternalStore(r=>ZB(t,{onChange:r}),()=>Fv(t),()=>Fv(t))}function A3(e={}){const{address:t,query:r={}}=e,o=rt(e),s=rf({config:o}),c=sj(o,{...e,chainId:e.chainId??s}),u=!!(t&&(r.enabled??!0));return nf({...r,...c,enabled:u})}function kj(e={}){const t=rt(e);return N.useSyncExternalStore(r=>kT(t,{onChange:r}),()=>Hv(t),()=>Hv(t))}function Oj(e={}){const t=rt(e);return N.useSyncExternalStore(r=>eT(t,{onChange:r}),()=>Qv(t),()=>Qv(t))}function Mj(e={}){const{mutation:t}=e,r=rt(e),o=oj(r),{mutate:s,mutateAsync:c,...u}=jc({...t,...o});return N.useEffect(()=>r.subscribe(({status:f})=>f,(f,p)=>{p==="connected"&&f==="disconnected"&&u.reset()}),[r,u.reset]),{...u,connect:s,connectAsync:c,connectors:Oj({config:r})}}function Rj(e={}){const t=rt(e);return N.useSyncExternalStore(r=>JB(t,{onChange:r}),()=>sp(t),()=>sp(t))}function ym(e={}){const{mutation:t}=e,r=rt(e),o=ij(r),{mutate:s,mutateAsync:c,...u}=jc({...t,...o});return{...u,connectors:Rj({config:r}).map(f=>f.connector),disconnect:s,disconnectAsync:c}}function Dj(e={}){const{name:t,query:r={}}=e,o=rt(e),s=rf({config:o}),c=lj(o,{...e,chainId:e.chainId??s}),u=!!(t&&(r.enabled??!0));return nf({...r,...c,enabled:u})}function Nj(e={}){const{address:t,query:r={}}=e,o=rt(e),s=rf({config:o}),c=fj(o,{...e,chainId:e.chainId??s}),u=!!(t&&(r.enabled??!0));return nf({...r,...c,enabled:u})}function Ij(e={}){const t=rt(e);return l3.useSyncExternalStoreWithSelector(r=>tT(t,{onChange:r}),()=>cp(t,e),()=>cp(t,e),r=>r,(r,o)=>r?.uid===o?.uid)}function l6(e={}){const{abi:t,address:r,functionName:o,query:s={}}=e,c=e.code,u=rt(e),f=rf({config:u}),p=hj(u,{...e,chainId:e.chainId??f}),h=!!((r||c)&&t&&o&&(s.enabled??!0));return nf({...s,...p,enabled:h,structuralSharing:s.structuralSharing??nj})}function Uj(e={}){const{mutation:t}=e,r=rt(e),o=mj(r),{mutate:s,mutateAsync:c,...u}=jc({...t,...o});return{...u,signMessage:s,signMessageAsync:c}}function zj(e={}){const{mutation:t}=e,r=rt(e),o=gj(r),{mutate:s,mutateAsync:c,...u}=jc({...t,...o});return{...u,chains:kj({config:r}),switchChain:s,switchChainAsync:c}}function Lj(e={}){const{mutation:t}=e,r=rt(e),o=bj(r),{mutate:s,mutateAsync:c,...u}=jc({...t,...o});return{...u,writeContract:s,writeContractAsync:c}}function x3(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=x3(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function S3(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=x3(e))&&(o&&(o+=" "),o+=t);return o}var Pj=" ";const u6=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),f6=4;function qj(e){let t=0;function r(){return e[t++]<<8|e[t++]}let o=r(),s=1,c=[0,1];for(let k=1;k<o;k++)c.push(s+=r());let u=r(),f=t;t+=u;let p=0,h=0;function g(){return p==0&&(h=h<<8|e[t++],p=8),h>>--p&1}const b=31,m=2**b,v=m>>>1,w=v>>1,C=m-1;let A=0;for(let k=0;k<b;k++)A=A<<1|g();let B=[],T=0,_=m;for(;;){let k=Math.floor(((A-T+1)*s-1)/_),D=0,U=o;for(;U-D>1;){let ie=D+U>>>1;k<c[ie]?U=ie:D=ie}if(D==0)break;B.push(D);let Q=T+Math.floor(_*c[D]/s),F=T+Math.floor(_*c[D+1]/s)-1;for(;((Q^F)&v)==0;)A=A<<1&C|g(),Q=Q<<1&C,F=F<<1&C|1;for(;Q&~F&w;)A=A&v|A<<1&C>>>1|g(),Q=Q<<1^v,F=(F^v)<<1|v|1;T=Q,_=1+F-Q}let j=o-4;return B.map(k=>{switch(k-j){case 3:return j+65792+(e[f++]<<16|e[f++]<<8|e[f++]);case 2:return j+256+(e[f++]<<8|e[f++]);case 1:return j+e[f++];default:return k-1}})}function Fj(e){let t=0;return()=>e[t++]}function _3(e){return Fj(qj(Hj(e)))}function Hj(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,c)=>t[s.charCodeAt(0)]=c);let r=e.length,o=new Uint8Array(6*r>>3);for(let s=0,c=0,u=0,f=0;s<r;s++)f=f<<6|t[e.charCodeAt(s)],u+=6,u>=8&&(o[c++]=f>>(u-=8));return o}function Qj(e){return e&1?~e>>1:e>>1}function Gj(e,t){let r=Array(e);for(let o=0,s=0;o<e;o++)r[o]=s+=Qj(t());return r}function uc(e,t=0){let r=[];for(;;){let o=e(),s=e();if(!s)break;t+=o;for(let c=0;c<s;c++)r.push(t+c);t+=s+1}return r}function B3(e){return fc(()=>{let t=uc(e);if(t.length)return t})}function T3(e){let t=[];for(;;){let r=e();if(r==0)break;t.push(Vj(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(Wj(r,e))}return t.flat()}function fc(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function j3(e,t,r){let o=Array(e).fill().map(()=>[]);for(let s=0;s<t;s++)Gj(e,r).forEach((c,u)=>o[u].push(c));return o}function Vj(e,t){let r=1+t(),o=t(),s=fc(t);return j3(s.length,1+e,t).flatMap((u,f)=>{let[p,...h]=u;return Array(s[f]).fill().map((g,b)=>{let m=b*o;return[p+b*r,h.map(v=>v+m)]})})}function Wj(e,t){let r=1+t();return j3(r,1+e,t).map(s=>[s[0],s.slice(1)])}function $j(e){let t=[],r=uc(e);return s(o([]),[]),t;function o(c){let u=e(),f=fc(()=>{let p=uc(e).map(h=>r[h]);if(p.length)return o(p)});return{S:u,B:f,Q:c}}function s({S:c,B:u},f,p){if(!(c&4&&p===f[f.length-1])){c&2&&(p=f[f.length-1]),c&1&&t.push(f);for(let h of u)for(let g of h.Q)s(h,[...f,g],p)}}}function Kj(e){return e.toString(16).toUpperCase().padStart(2,"0")}function k3(e){return`{${Kj(e)}}`}function Yj(e){let t=[];for(let r=0,o=e.length;r<o;){let s=e.codePointAt(r);r+=s<65536?1:2,t.push(s)}return t}function Ci(e){let r=e.length;if(r<4096)return String.fromCodePoint(...e);let o=[];for(let s=0;s<r;)o.push(String.fromCodePoint(...e.slice(s,s+=4096)));return o.join("")}function Xj(e,t){let r=e.length,o=r-t.length;for(let s=0;o==0&&s<r;s++)o=e[s]-t[s];return o}var Zj=" ";const dc=44032,Su=4352,_u=4449,Bu=4519,O3=19,M3=21,Ei=28,Tu=M3*Ei,Jj=O3*Tu,ek=dc+Jj,tk=Su+O3,nk=_u+M3,rk=Bu+Ei;function Us(e){return e>>24&255}function R3(e){return e&16777215}let bp,d6,yp,du;function ak(){let e=_3(Zj);bp=new Map(B3(e).flatMap((t,r)=>t.map(o=>[o,r+1<<24]))),d6=new Set(uc(e)),yp=new Map,du=new Map;for(let[t,r]of T3(e)){if(!d6.has(t)&&r.length==2){let[o,s]=r,c=du.get(o);c||(c=new Map,du.set(o,c)),c.set(s,t)}yp.set(t,r.reverse())}}function D3(e){return e>=dc&&e<ek}function ok(e,t){if(e>=Su&&e<tk&&t>=_u&&t<nk)return dc+(e-Su)*Tu+(t-_u)*Ei;if(D3(e)&&t>Bu&&t<rk&&(e-dc)%Ei==0)return e+(t-Bu);{let r=du.get(e);return r&&(r=r.get(t),r)?r:-1}}function N3(e){bp||ak();let t=[],r=[],o=!1;function s(c){let u=bp.get(c);u&&(o=!0,c|=u),t.push(c)}for(let c of e)for(;;){if(c<128)t.push(c);else if(D3(c)){let u=c-dc,f=u/Tu|0,p=u%Tu/Ei|0,h=u%Ei;s(Su+f),s(_u+p),h>0&&s(Bu+h)}else{let u=yp.get(c);u?r.push(...u):s(c)}if(!r.length)break;c=r.pop()}if(o&&t.length>1){let c=Us(t[0]);for(let u=1;u<t.length;u++){let f=Us(t[u]);if(f==0||c<=f){c=f;continue}let p=u-1;for(;;){let h=t[p+1];if(t[p+1]=t[p],t[p]=h,!p||(c=Us(t[--p]),c<=f))break}c=Us(t[u])}}return t}function ik(e){let t=[],r=[],o=-1,s=0;for(let c of e){let u=Us(c),f=R3(c);if(o==-1)u==0?o=f:t.push(f);else if(s>0&&s>=u)u==0?(t.push(o,...r),r.length=0,o=f):r.push(f),s=u;else{let p=ok(o,f);p>=0?o=p:s==0&&u==0?(t.push(o),o=f):(r.push(f),s=u)}}return o>=0&&t.push(o,...r),t}function I3(e){return N3(e).map(R3)}function sk(e){return ik(N3(e))}const h6=45,U3=".",z3=65039,L3=1,ju=e=>Array.from(e);function hc(e,t){return e.P.has(t)||e.Q.has(t)}class ck extends Array{get is_emoji(){return!0}}let vp,P3,Qa,wp,q3,di,ch,oi,La,p6,Cp;function vm(){if(vp)return;let e=_3(Pj);const t=()=>uc(e),r=()=>new Set(t()),o=(g,b)=>b.forEach(m=>g.add(m));vp=new Map(T3(e)),P3=r(),Qa=t(),wp=new Set(t().map(g=>Qa[g])),Qa=new Set(Qa),q3=r(),r();let s=B3(e),c=e();const u=()=>{let g=new Set;return t().forEach(b=>o(g,s[b])),o(g,t()),g};di=fc(g=>{let b=fc(e).map(m=>m+96);if(b.length){let m=g>=c;b[0]-=32,b=Ci(b),m&&(b=`Restricted[${b}]`);let v=u(),w=u(),C=!e();return{N:b,P:v,Q:w,M:C,R:m}}}),ch=r(),oi=new Map;let f=t().concat(ju(ch)).sort((g,b)=>g-b);f.forEach((g,b)=>{let m=e(),v=f[b]=m?f[b-m]:{V:[],M:new Map};v.V.push(g),ch.has(g)||oi.set(g,v)});for(let{V:g,M:b}of new Set(oi.values())){let m=[];for(let w of g){let C=di.filter(B=>hc(B,w)),A=m.find(({G:B})=>C.some(T=>B.has(T)));A||(A={G:new Set,V:[]},m.push(A)),A.V.push(w),o(A.G,C)}let v=m.flatMap(w=>ju(w.G));for(let{G:w,V:C}of m){let A=new Set(v.filter(B=>!w.has(B)));for(let B of C)b.set(B,A)}}La=new Set;let p=new Set;const h=g=>La.has(g)?p.add(g):La.add(g);for(let g of di){for(let b of g.P)h(b);for(let b of g.Q)h(b)}for(let g of La)!oi.has(g)&&!p.has(g)&&oi.set(g,L3);o(La,I3(La)),p6=$j(e).map(g=>ck.from(g)).sort(Xj),Cp=new Map;for(let g of p6){let b=[Cp];for(let m of g){let v=b.map(w=>{let C=w.get(m);return C||(C=new Map,w.set(m,C)),C});m===z3?b.push(...v):b=v}for(let m of b)m.V=g}}function wm(e){return(F3(e)?"":`${Cm(af([e]))} `)+k3(e)}function Cm(e){return`"${e}"‎`}function lk(e){if(e.length>=4&&e[2]==h6&&e[3]==h6)throw new Error(`invalid label extension: "${Ci(e.slice(0,4))}"`)}function uk(e){for(let r=e.lastIndexOf(95);r>0;)if(e[--r]!==95)throw new Error("underscore allowed only at start")}function fk(e){let t=e[0],r=u6.get(t);if(r)throw qs(`leading ${r}`);let o=e.length,s=-1;for(let c=1;c<o;c++){t=e[c];let u=u6.get(t);if(u){if(s==c)throw qs(`${r} + ${u}`);s=c+1,r=u}}if(s==o)throw qs(`trailing ${r}`)}function af(e,t=1/0,r=k3){let o=[];dk(e[0])&&o.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let s=0,c=e.length;for(let u=0;u<c;u++){let f=e[u];F3(f)&&(o.push(Ci(e.slice(s,u))),o.push(r(f)),s=u+1)}return o.push(Ci(e.slice(s,c))),o.join("")}function dk(e,t){return vm(),Qa.has(e)}function F3(e){return vm(),q3.has(e)}function hk(e){return bk(pk(e,sk,wk))}function pk(e,t,r){if(!e)return[];vm();let o=0;return e.split(U3).map(s=>{let c=Yj(s),u={input:c,offset:o};o+=c.length+1;try{let f=u.tokens=vk(c,t,r),p=f.length,h;if(!p)throw new Error("empty label");let g=u.output=f.flat();if(uk(g),!(u.emoji=p>1||f[0].is_emoji)&&g.every(m=>m<128))lk(g),h="ASCII";else{let m=f.flatMap(v=>v.is_emoji?[]:v);if(!m.length)h="Emoji";else{if(Qa.has(g[0]))throw qs("leading combining mark");for(let C=1;C<p;C++){let A=f[C];if(!A.is_emoji&&Qa.has(A[0]))throw qs(`emoji + combining mark: "${Ci(f[C-1])} + ${af([A[0]])}"`)}fk(g);let v=ju(new Set(m)),[w]=gk(v);yk(w,m),mk(w,v),h=w.N}}u.type=h}catch(f){u.error=f}return u})}function mk(e,t){let r,o=[];for(let s of t){let c=oi.get(s);if(c===L3)return;if(c){let u=c.M.get(s);if(r=r?r.filter(f=>u.has(f)):ju(u),!r.length)return}else o.push(s)}if(r){for(let s of r)if(o.every(c=>hc(s,c)))throw new Error(`whole-script confusable: ${e.N}/${s.N}`)}}function gk(e){let t=di;for(let r of e){let o=t.filter(s=>hc(s,r));if(!o.length)throw di.some(s=>hc(s,r))?Q3(t[0],r):H3(r);if(t=o,o.length==1)break}return t}function bk(e){return e.map(({input:t,error:r,output:o})=>{if(r){let s=r.message;throw new Error(e.length==1?s:`Invalid label ${Cm(af(t,63))}: ${s}`)}return Ci(o)}).join(U3)}function H3(e){return new Error(`disallowed character: ${wm(e)}`)}function Q3(e,t){let r=wm(t),o=di.find(s=>s.P.has(t));return o&&(r=`${o.N} ${r}`),new Error(`illegal mixture: ${e.N} + ${r}`)}function qs(e){return new Error(`illegal placement: ${e}`)}function yk(e,t){for(let r of t)if(!hc(e,r))throw Q3(e,r);if(e.M){let r=I3(t);for(let o=1,s=r.length;o<s;o++)if(wp.has(r[o])){let c=o+1;for(let u;c<s&&wp.has(u=r[c]);c++)for(let f=o;f<c;f++)if(r[f]==u)throw new Error(`duplicate non-spacing marks: ${wm(u)}`);if(c-o>f6)throw new Error(`excessive non-spacing marks: ${Cm(af(r.slice(o-1,c)))} (${c-o}/${f6})`);o=c}}}function vk(e,t,r){let o=[],s=[];for(e=e.slice().reverse();e.length;){let c=Ck(e);if(c)s.length&&(o.push(t(s)),s=[]),o.push(r(c));else{let u=e.pop();if(La.has(u))s.push(u);else{let f=vp.get(u);if(f)s.push(...f);else if(!P3.has(u))throw H3(u)}}}return s.length&&o.push(t(s)),o}function wk(e){return e.filter(t=>t!=z3)}function Ck(e,t){let r=Cp,o,s=e.length;for(;s&&(r=r.get(e[--s]),!!r);){let{V:c}=r;c&&(o=c,e.length=s)}return o}function Ek(e){return hk(e)}function Ak(e){return Ek(e)}const Em=im({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var xk=hw(),Ep=function(e,t){return Ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},Ep(e,t)};function G3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ep(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Bn=function(){return Bn=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},Bn.apply(this,arguments)};function of(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function V3(e,t,r,o){var s=arguments.length,c=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(u=e[f])&&(c=(s<3?u(c):s>3?u(t,r,c):u(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c}function W3(e,t){return function(r,o){t(r,o,e)}}function $3(e,t,r,o,s,c){function u(B){if(B!==void 0&&typeof B!="function")throw new TypeError("Function expected");return B}for(var f=o.kind,p=f==="getter"?"get":f==="setter"?"set":"value",h=!t&&e?o.static?e:e.prototype:null,g=t||(h?Object.getOwnPropertyDescriptor(h,o.name):{}),b,m=!1,v=r.length-1;v>=0;v--){var w={};for(var C in o)w[C]=C==="access"?{}:o[C];for(var C in o.access)w.access[C]=o.access[C];w.addInitializer=function(B){if(m)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(B||null))};var A=(0,r[v])(f==="accessor"?{get:g.get,set:g.set}:g[p],w);if(f==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(b=u(A.get))&&(g.get=b),(b=u(A.set))&&(g.set=b),(b=u(A.init))&&s.unshift(b)}else(b=u(A))&&(f==="field"?s.unshift(b):g[p]=b)}h&&Object.defineProperty(h,o.name,g),m=!0}function K3(e,t,r){for(var o=arguments.length>2,s=0;s<t.length;s++)r=o?t[s].call(e,r):t[s].call(e);return o?r:void 0}function Y3(e){return typeof e=="symbol"?e:"".concat(e)}function X3(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Z3(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function J3(e,t,r,o){function s(c){return c instanceof r?c:new r(function(u){u(c)})}return new(r||(r=Promise))(function(c,u){function f(g){try{h(o.next(g))}catch(b){u(b)}}function p(g){try{h(o.throw(g))}catch(b){u(b)}}function h(g){g.done?c(g.value):s(g.value).then(f,p)}h((o=o.apply(e,t||[])).next())})}function e8(e,t){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,s,c,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=f(0),u.throw=f(1),u.return=f(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(h){return function(g){return p([h,g])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(r=0)),r;)try{if(o=1,s&&(c=h[0]&2?s.return:h[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,h[1])).done)return c;switch(s=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){r.label=h[1];break}if(h[0]===6&&r.label<c[1]){r.label=c[1],c=h;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(h);break}c[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(g){h=[6,g],s=0}finally{o=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var sf=Object.create?(function(e,t,r,o){o===void 0&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]});function t8(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&sf(t,e,r)}function ku(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Am(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),s,c=[],u;try{for(;(t===void 0||t-- >0)&&!(s=o.next()).done;)c.push(s.value)}catch(f){u={error:f}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(u)throw u.error}}return c}function n8(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Am(arguments[t]));return e}function r8(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var o=Array(e),s=0,t=0;t<r;t++)for(var c=arguments[t],u=0,f=c.length;u<f;u++,s++)o[s]=c[u];return o}function xm(e,t,r){if(r||arguments.length===2)for(var o=0,s=t.length,c;o<s;o++)(c||!(o in t))&&(c||(c=Array.prototype.slice.call(t,0,o)),c[o]=t[o]);return e.concat(c||Array.prototype.slice.call(t))}function Ai(e){return this instanceof Ai?(this.v=e,this):new Ai(e)}function a8(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),s,c=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",u),s[Symbol.asyncIterator]=function(){return this},s;function u(v){return function(w){return Promise.resolve(w).then(v,b)}}function f(v,w){o[v]&&(s[v]=function(C){return new Promise(function(A,B){c.push([v,C,A,B])>1||p(v,C)})},w&&(s[v]=w(s[v])))}function p(v,w){try{h(o[v](w))}catch(C){m(c[0][3],C)}}function h(v){v.value instanceof Ai?Promise.resolve(v.value.v).then(g,b):m(c[0][2],v)}function g(v){p("next",v)}function b(v){p("throw",v)}function m(v,w){v(w),c.shift(),c.length&&p(c[0][0],c[0][1])}}function o8(e){var t,r;return t={},o("next"),o("throw",function(s){throw s}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(s,c){t[s]=e[s]?function(u){return(r=!r)?{value:Ai(e[s](u)),done:!1}:c?c(u):u}:c}}function i8(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ku=="function"?ku(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(c){r[c]=e[c]&&function(u){return new Promise(function(f,p){u=e[c](u),s(f,p,u.done,u.value)})}}function s(c,u,f,p){Promise.resolve(p).then(function(h){c({value:h,done:f})},u)}}function s8(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Sk=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Ap=function(e){return Ap=Object.getOwnPropertyNames||function(t){var r=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[r.length]=o);return r},Ap(e)};function c8(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Ap(e),o=0;o<r.length;o++)r[o]!=="default"&&sf(t,e,r[o]);return Sk(t,e),t}function l8(e){return e&&e.__esModule?e:{default:e}}function u8(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)}function f8(e,t,r,o,s){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r}function d8(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function h8(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],r&&(s=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");s&&(o=function(){try{s.call(this)}catch(c){return Promise.reject(c)}}),e.stack.push({value:t,dispose:o,async:r})}else r&&e.stack.push({async:!0});return t}var _k=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var o=new Error(r);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};function p8(e){function t(c){e.error=e.hasError?new _k(c,e.error,"An error was suppressed during disposal."):c,e.hasError=!0}var r,o=0;function s(){for(;r=e.stack.pop();)try{if(!r.async&&o===1)return o=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var c=r.dispose.call(r.value);if(r.async)return o|=2,Promise.resolve(c).then(s,function(u){return t(u),s()})}else o|=1}catch(u){t(u)}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s()}function m8(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,o,s,c,u){return o?t?".jsx":".js":s&&(!c||!u)?r:s+c+"."+u.toLowerCase()+"js"}):e}const Bk={__extends:G3,__assign:Bn,__rest:of,__decorate:V3,__param:W3,__esDecorate:$3,__runInitializers:K3,__propKey:Y3,__setFunctionName:X3,__metadata:Z3,__awaiter:J3,__generator:e8,__createBinding:sf,__exportStar:t8,__values:ku,__read:Am,__spread:n8,__spreadArrays:r8,__spreadArray:xm,__await:Ai,__asyncGenerator:a8,__asyncDelegator:o8,__asyncValues:i8,__makeTemplateObject:s8,__importStar:c8,__importDefault:l8,__classPrivateFieldGet:u8,__classPrivateFieldSet:f8,__classPrivateFieldIn:d8,__addDisposableResource:h8,__disposeResources:p8,__rewriteRelativeImportExtension:m8},BN=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:h8,get __assign(){return Bn},__asyncDelegator:o8,__asyncGenerator:a8,__asyncValues:i8,__await:Ai,__awaiter:J3,__classPrivateFieldGet:u8,__classPrivateFieldIn:d8,__classPrivateFieldSet:f8,__createBinding:sf,__decorate:V3,__disposeResources:p8,__esDecorate:$3,__exportStar:t8,__extends:G3,__generator:e8,__importDefault:l8,__importStar:c8,__makeTemplateObject:s8,__metadata:Z3,__param:W3,__propKey:Y3,__read:Am,__rest:of,__rewriteRelativeImportExtension:m8,__runInitializers:K3,__setFunctionName:X3,__spread:n8,__spreadArray:xm,__spreadArrays:r8,__values:ku,default:Bk},Symbol.toStringTag,{value:"Module"}));var hu="right-scroll-bar-position",pu="width-before-scroll-bar",Tk="with-scroll-bars-hidden",jk="--removed-body-scroll-bar-size";function lh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kk(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=t,r.facade}var Ok=typeof window<"u"?N.useLayoutEffect:N.useEffect,m6=new WeakMap;function Mk(e,t){var r=kk(null,function(o){return e.forEach(function(s){return lh(s,o)})});return Ok(function(){var o=m6.get(r);if(o){var s=new Set(o),c=new Set(e),u=r.current;s.forEach(function(f){c.has(f)||lh(f,null)}),c.forEach(function(f){s.has(f)||lh(f,u)})}m6.set(r,e)},[e]),r}function Rk(e){return e}function Dk(e,t){t===void 0&&(t=Rk);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var u=t(c,o);return r.push(u),function(){r=r.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(o=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(f){return c(f)},filter:function(){return r}}},assignMedium:function(c){o=!0;var u=[];if(r.length){var f=r;r=[],f.forEach(c),u=r}var p=function(){var g=u;u=[],g.forEach(c)},h=function(){return Promise.resolve().then(p)};h(),r={push:function(g){u.push(g),h()},filter:function(g){return u=u.filter(g),r}}}};return s}function Nk(e){e===void 0&&(e={});var t=Dk(null);return t.options=Bn({async:!0,ssr:!1},e),t}var g8=function(e){var t=e.sideCar,r=of(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return N.createElement(o,Bn({},r))};g8.isSideCarExport=!0;function Ik(e,t){return e.useMedium(t),g8}var b8=Nk(),uh=function(){},cf=N.forwardRef(function(e,t){var r=N.useRef(null),o=N.useState({onScrollCapture:uh,onWheelCapture:uh,onTouchMoveCapture:uh}),s=o[0],c=o[1],u=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,g=e.enabled,b=e.shards,m=e.sideCar,v=e.noIsolation,w=e.inert,C=e.allowPinchZoom,A=e.as,B=A===void 0?"div":A,T=e.gapMode,_=of(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=m,k=Mk([r,t]),D=Bn(Bn({},_),s);return N.createElement(N.Fragment,null,g&&N.createElement(j,{sideCar:b8,removeScrollBar:h,shards:b,noIsolation:v,inert:w,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:T}),u?N.cloneElement(N.Children.only(f),Bn(Bn({},D),{ref:k})):N.createElement(B,Bn({},D,{className:p,ref:k}),f))});cf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cf.classNames={fullWidth:pu,zeroRight:hu};var Uk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uk();return t&&e.setAttribute("nonce",t),e}function Lk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qk=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zk())&&(Lk(t,r),Pk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fk=function(){var e=qk();return function(t,r){N.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},y8=function(){var e=Fk(),t=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return t},Hk={left:0,top:0,right:0,gap:0},fh=function(e){return parseInt(e||"",10)||0},Qk=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[fh(r),fh(o),fh(s)]},Gk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hk;var t=Qk(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},Vk=y8(),hi="data-scroll-locked",Wk=function(e,t,r,o){var s=e.left,c=e.top,u=e.right,f=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(Tk,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(f,"px ").concat(o,`;
  }
  body[`).concat(hi,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(c,`px;
    padding-right: `).concat(u,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(f,"px ").concat(o,`;
    `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(hu,` {
    right: `).concat(f,"px ").concat(o,`;
  }
  
  .`).concat(pu,` {
    margin-right: `).concat(f,"px ").concat(o,`;
  }
  
  .`).concat(hu," .").concat(hu,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(pu," .").concat(pu,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(hi,`] {
    `).concat(jk,": ").concat(f,`px;
  }
`)},g6=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},$k=function(){N.useEffect(function(){return document.body.setAttribute(hi,(g6()+1).toString()),function(){var e=g6()-1;e<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,e.toString())}},[])},Kk=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;$k();var c=N.useMemo(function(){return Gk(s)},[s]);return N.createElement(Vk,{styles:Wk(c,!t,s,r?"":"!important")})},xp=!1;if(typeof window<"u")try{var ru=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",ru,ru),window.removeEventListener("test",ru,ru)}catch{xp=!1}var ti=xp?{passive:!1}:!1,Yk=function(e){return e.tagName==="TEXTAREA"},v8=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Yk(e)&&r[t]==="visible")},Xk=function(e){return v8(e,"overflowY")},Zk=function(e){return v8(e,"overflowX")},b6=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=w8(e,o);if(s){var c=C8(e,o),u=c[1],f=c[2];if(u>f)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},Jk=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},eO=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},w8=function(e,t){return e==="v"?Xk(t):Zk(t)},C8=function(e,t){return e==="v"?Jk(t):eO(t)},tO=function(e,t){return e==="h"&&t==="rtl"?-1:1},nO=function(e,t,r,o,s){var c=tO(e,window.getComputedStyle(t).direction),u=c*o,f=r.target,p=t.contains(f),h=!1,g=u>0,b=0,m=0;do{var v=C8(e,f),w=v[0],C=v[1],A=v[2],B=C-A-c*w;(w||B)&&w8(e,f)&&(b+=B,m+=w),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!p&&f!==document.body||p&&(t.contains(f)||t===f));return(g&&Math.abs(b)<1||!g&&Math.abs(m)<1)&&(h=!0),h},au=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},y6=function(e){return[e.deltaX,e.deltaY]},v6=function(e){return e&&"current"in e?e.current:e},rO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aO=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},oO=0,ni=[];function iO(e){var t=N.useRef([]),r=N.useRef([0,0]),o=N.useRef(),s=N.useState(oO++)[0],c=N.useState(y8)[0],u=N.useRef(e);N.useEffect(function(){u.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var C=xm([e.lockRef.current],(e.shards||[]).map(v6),!0).filter(Boolean);return C.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=N.useCallback(function(C,A){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!u.current.allowPinchZoom;var B=au(C),T=r.current,_="deltaX"in C?C.deltaX:T[0]-B[0],j="deltaY"in C?C.deltaY:T[1]-B[1],k,D=C.target,U=Math.abs(_)>Math.abs(j)?"h":"v";if("touches"in C&&U==="h"&&D.type==="range")return!1;var Q=b6(U,D);if(!Q)return!0;if(Q?k=U:(k=U==="v"?"h":"v",Q=b6(U,D)),!Q)return!1;if(!o.current&&"changedTouches"in C&&(_||j)&&(o.current=k),!k)return!0;var F=o.current||k;return nO(F,A,C,F==="h"?_:j)},[]),p=N.useCallback(function(C){var A=C;if(!(!ni.length||ni[ni.length-1]!==c)){var B="deltaY"in A?y6(A):au(A),T=t.current.filter(function(k){return k.name===A.type&&(k.target===A.target||A.target===k.shadowParent)&&rO(k.delta,B)})[0];if(T&&T.should){A.cancelable&&A.preventDefault();return}if(!T){var _=(u.current.shards||[]).map(v6).filter(Boolean).filter(function(k){return k.contains(A.target)}),j=_.length>0?f(A,_[0]):!u.current.noIsolation;j&&A.cancelable&&A.preventDefault()}}},[]),h=N.useCallback(function(C,A,B,T){var _={name:C,delta:A,target:B,should:T,shadowParent:sO(B)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(j){return j!==_})},1)},[]),g=N.useCallback(function(C){r.current=au(C),o.current=void 0},[]),b=N.useCallback(function(C){h(C.type,y6(C),C.target,f(C,e.lockRef.current))},[]),m=N.useCallback(function(C){h(C.type,au(C),C.target,f(C,e.lockRef.current))},[]);N.useEffect(function(){return ni.push(c),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:m}),document.addEventListener("wheel",p,ti),document.addEventListener("touchmove",p,ti),document.addEventListener("touchstart",g,ti),function(){ni=ni.filter(function(C){return C!==c}),document.removeEventListener("wheel",p,ti),document.removeEventListener("touchmove",p,ti),document.removeEventListener("touchstart",g,ti)}},[]);var v=e.removeScrollBar,w=e.inert;return N.createElement(N.Fragment,null,w?N.createElement(c,{styles:aO(s)}):null,v?N.createElement(Kk,{gapMode:e.gapMode}):null)}function sO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cO=Ik(b8,iO);var E8=N.forwardRef(function(e,t){return N.createElement(cf,Bn({},e,{ref:t,sideCar:cO}))});E8.classNames=cf.classNames;function w6(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function lO(e,t){var r=e;for(var o of t){if(!(o in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[o]}return r}function A8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o={};for(var s in e){var c=e[s],u=[...r,s];typeof c=="string"||typeof c=="number"||c==null?o[s]=t(c,u):typeof c=="object"&&!Array.isArray(c)?o[s]=A8(c,t,u):console.warn('Skipping invalid key "'.concat(u.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(c)?"Array":typeof c,'"'))}return o}function C6(e,t){var r={};if(typeof t=="object"){var o=e;A8(t,(f,p)=>{if(f!=null){var h=lO(o,p);r[w6(h)]=String(f)}})}else{var s=e;for(var c in s){var u=s[c];u!=null&&(r[w6(c)]=u)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map(p=>"".concat(p,":").concat(this[p])).join(";")},writable:!1}),r}var zs={exports:{}},uO=zs.exports,E6;function fO(){return E6||(E6=1,(function(e,t){(function(r,o){var s="1.0.41",c="",u="?",f="function",p="undefined",h="object",g="string",b="major",m="model",v="name",w="type",C="vendor",A="version",B="architecture",T="console",_="mobile",j="tablet",k="smarttv",D="wearable",U="embedded",Q=500,F="Amazon",ie="Apple",le="ASUS",ae="BlackBerry",L="Browser",V="Chrome",$="Edge",I="Firefox",Y="Google",q="Honor",oe="Huawei",O="Lenovo",G="LG",J="Microsoft",ce="Motorola",te="Nvidia",ue="OnePlus",fe="Opera",ye="OPPO",Ae="Samsung",Me="Sharp",We="Sony",Jt="Xiaomi",Ln="Zebra",ar="Facebook",oo="Chromium OS",Rc="Mac OS",Dc=" Browser",mn=function(je,Ie){var xe={};for(var Le in je)Ie[Le]&&Ie[Le].length%2===0?xe[Le]=Ie[Le].concat(je[Le]):xe[Le]=je[Le];return xe},io=function(je){for(var Ie={},xe=0;xe<je.length;xe++)Ie[je[xe].toUpperCase()]=je[xe];return Ie},Ri=function(je,Ie){return typeof je===g?Rr(Ie).indexOf(Rr(je))!==-1:!1},Rr=function(je){return je.toLowerCase()},so=function(je){return typeof je===g?je.replace(/[^\d\.]/g,c).split(".")[0]:o},Di=function(je,Ie){if(typeof je===g)return je=je.replace(/^\s\s*/,c),typeof Ie===p?je:je.substring(0,Q)},Dr=function(je,Ie){for(var xe=0,Le,Ct,Dt,Re,Se,en;xe<Ie.length&&!Se;){var lo=Ie[xe],uo=Ie[xe+1];for(Le=Ct=0;Le<lo.length&&!Se&&lo[Le];)if(Se=lo[Le++].exec(je),Se)for(Dt=0;Dt<uo.length;Dt++)en=Se[++Ct],Re=uo[Dt],typeof Re===h&&Re.length>0?Re.length===2?typeof Re[1]==f?this[Re[0]]=Re[1].call(this,en):this[Re[0]]=Re[1]:Re.length===3?typeof Re[1]===f&&!(Re[1].exec&&Re[1].test)?this[Re[0]]=en?Re[1].call(this,en,Re[2]):o:this[Re[0]]=en?en.replace(Re[1],Re[2]):o:Re.length===4&&(this[Re[0]]=en?Re[3].call(this,en.replace(Re[1],Re[2])):o):this[Re]=en||o;xe+=2}},ya=function(je,Ie){for(var xe in Ie)if(typeof Ie[xe]===h&&Ie[xe].length>0){for(var Le=0;Le<Ie[xe].length;Le++)if(Ri(Ie[xe][Le],je))return xe===u?o:xe}else if(Ri(Ie[xe],je))return xe===u?o:xe;return Ie.hasOwnProperty("*")?Ie["*"]:je},hf={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Nr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Bt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[A,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[A,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,A],[/opios[\/ ]+([\w\.]+)/i],[A,[v,fe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[A,[v,fe+" GX"]],[/\bopr\/([\w\.]+)/i],[A,[v,fe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[A,[v,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[A,[v,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[v,A],[/quark(?:pc)?\/([-\w\.]+)/i],[A,[v,"Quark"]],[/\bddg\/([\w\.]+)/i],[A,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[A,[v,"UC"+L]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[A,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[A,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[A,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[A,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[A,[v,"Smart Lenovo "+L]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+L],A],[/\bfocus\/([\w\.]+)/i],[A,[v,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[A,[v,fe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[A,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[A,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[A,[v,fe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[A,[v,"MIUI"+Dc]],[/fxios\/([\w\.-]+)/i],[A,[v,I]],[/\bqihoobrowser\/?([\w\.]*)/i],[A,[v,"360"]],[/\b(qq)\/([\w\.]+)/i],[[v,/(.+)/,"$1Browser"],A],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1"+Dc],A],[/samsungbrowser\/([\w\.]+)/i],[A,[v,Ae+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[A,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],A],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[v,A],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[v],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[A,v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,ar],A],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,A],[/\bgsa\/([\w\.]+) .*safari\//i],[A,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[A,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[A,[v,V+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,V+" WebView"],A],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[A,[v,"Android "+L]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,A],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[A,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[A,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[A,ya,hf]],[/(webkit|khtml)\/([\w\.]+)/i],[v,A],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],A],[/(wolvic|librewolf)\/([\w\.]+)/i],[v,A],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[A,[v,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[v,[A,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[v,[A,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[B,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[B,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[B,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[B,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[B,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[B,/ower/,c,Rr]],[/ sun4\w[;\)]/i],[[B,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[B,Rr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[m,[C,Ae],[w,j]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[m,[C,Ae],[w,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[C,ie],[w,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[C,ie],[w,j]],[/(macintosh);/i],[m,[C,ie]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[C,Me],[w,_]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[m,[C,q],[w,j]],[/honor([-\w ]+)[;\)]/i],[m,[C,q],[w,_]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[m,[C,oe],[w,j]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[C,oe],[w,_]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[m,/_/g," "],[C,Jt],[w,j]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[m,/_/g," "],[C,Jt],[w,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[C,ye],[w,_]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[m,[C,ya,{OnePlus:["304","403","203"],"*":ye}],[w,j]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[C,"Vivo"],[w,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[m,[C,"Realme"],[w,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[m,[C,ce],[w,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[C,ce],[w,j]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[C,G],[w,j]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[C,G],[w,_]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[m,[C,O],[w,j]],[/(nokia) (t[12][01])/i],[C,m,[w,j]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[m,/_/g," "],[w,_],[C,"Nokia"]],[/(pixel (c|tablet))\b/i],[m,[C,Y],[w,j]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[C,Y],[w,_]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[m,[C,We],[w,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[C,We],[w,j]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[C,ue],[w,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[C,F],[w,j]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[C,F],[w,_]],[/(playbook);[-\w\),; ]+(rim)/i],[m,C,[w,j]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[C,ae],[w,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[C,le],[w,j]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[C,le],[w,_]],[/(nexus 9)/i],[m,[C,"HTC"],[w,j]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[C,[m,/_/g," "],[w,_]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[m,[C,"TCL"],[w,j]],[/(itel) ((\w+))/i],[[C,Rr],m,[w,ya,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[C,"Acer"],[w,j]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[C,"Meizu"],[w,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[m,[C,"Ulefone"],[w,_]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[m,[C,"Energizer"],[w,_]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[m,[C,"Cat"],[w,_]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[m,[C,"Smartfren"],[w,_]],[/droid.+; (a(?:015|06[35]|142p?))/i],[m,[C,"Nothing"],[w,_]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[m,[C,"Archos"],[w,j]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[m,[C,"Archos"],[w,_]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[C,m,[w,j]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[C,m,[w,_]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[C,m,[w,j]],[/(surface duo)/i],[m,[C,J],[w,j]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[C,"Fairphone"],[w,_]],[/(u304aa)/i],[m,[C,"AT&T"],[w,_]],[/\bsie-(\w*)/i],[m,[C,"Siemens"],[w,_]],[/\b(rct\w+) b/i],[m,[C,"RCA"],[w,j]],[/\b(venue[\d ]{2,7}) b/i],[m,[C,"Dell"],[w,j]],[/\b(q(?:mv|ta)\w+) b/i],[m,[C,"Verizon"],[w,j]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[C,"Barnes & Noble"],[w,j]],[/\b(tm\d{3}\w+) b/i],[m,[C,"NuVision"],[w,j]],[/\b(k88) b/i],[m,[C,"ZTE"],[w,j]],[/\b(nx\d{3}j) b/i],[m,[C,"ZTE"],[w,_]],[/\b(gen\d{3}) b.+49h/i],[m,[C,"Swiss"],[w,_]],[/\b(zur\d{3}) b/i],[m,[C,"Swiss"],[w,j]],[/\b((zeki)?tb.*\b) b/i],[m,[C,"Zeki"],[w,j]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[C,"Dragon Touch"],m,[w,j]],[/\b(ns-?\w{0,9}) b/i],[m,[C,"Insignia"],[w,j]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[C,"NextBook"],[w,j]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[C,"Voice"],m,[w,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[C,"LvTel"],m,[w,_]],[/\b(ph-1) /i],[m,[C,"Essential"],[w,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[C,"Envizen"],[w,j]],[/\b(trio[-\w\. ]+) b/i],[m,[C,"MachSpeed"],[w,j]],[/\btu_(1491) b/i],[m,[C,"Rotor"],[w,j]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[m,[C,te],[w,j]],[/(sprint) (\w+)/i],[C,m,[w,_]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[C,J],[w,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[C,Ln],[w,j]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[C,Ln],[w,_]],[/smart-tv.+(samsung)/i],[C,[w,k]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[C,Ae],[w,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[C,G],[w,k]],[/(apple) ?tv/i],[C,[m,ie+" TV"],[w,k]],[/crkey/i],[[m,V+"cast"],[C,Y],[w,k]],[/droid.+aft(\w+)( bui|\))/i],[m,[C,F],[w,k]],[/(shield \w+ tv)/i],[m,[C,te],[w,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[C,Me],[w,k]],[/(bravia[\w ]+)( bui|\))/i],[m,[C,We],[w,k]],[/(mi(tv|box)-?\w+) bui/i],[m,[C,Jt],[w,k]],[/Hbbtv.*(technisat) (.*);/i],[C,m,[w,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[C,Di],[m,Di],[w,k]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[m,[w,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[C,m,[w,T]],[/droid.+; (shield)( bui|\))/i],[m,[C,te],[w,T]],[/(playstation \w+)/i],[m,[C,We],[w,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[C,J],[w,T]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[m,[C,Ae],[w,D]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[C,m,[w,D]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[m,[C,ye],[w,D]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[C,ie],[w,D]],[/(opwwe\d{3})/i],[m,[C,ue],[w,D]],[/(moto 360)/i],[m,[C,ce],[w,D]],[/(smartwatch 3)/i],[m,[C,We],[w,D]],[/(g watch r)/i],[m,[C,G],[w,D]],[/droid.+; (wt63?0{2,3})\)/i],[m,[C,Ln],[w,D]],[/droid.+; (glass) \d/i],[m,[C,Y],[w,D]],[/(pico) (4|neo3(?: link|pro)?)/i],[C,m,[w,D]],[/; (quest( \d| pro)?)/i],[m,[C,ar],[w,D]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[C,[w,U]],[/(aeobc)\b/i],[m,[C,F],[w,U]],[/(homepod).+mac os/i],[m,[C,ie],[w,U]],[/windows iot/i],[[w,U]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[m,[w,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[w,j]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,j]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,_]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[m,[C,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[A,[v,$+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[v,A],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[A,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,A],[/ladybird\//i],[[v,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[A,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,A],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[v,[A,ya,Nr]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[A,ya,Nr],[v,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[A,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,Rc],[A,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[A,v],[/(ubuntu) ([\w\.]+) like android/i],[[v,/(.+)/,"$1 Touch"],A],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[v,A],[/\(bb(10);/i],[A,[v,ae]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[A,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[A,[v,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[A,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[A,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[A,[v,V+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,oo],A],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,A],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],A],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,A]]},at=function(je,Ie){if(typeof je===h&&(Ie=je,je=o),!(this instanceof at))return new at(je,Ie).getResult();var xe=typeof r!==p&&r.navigator?r.navigator:o,Le=je||(xe&&xe.userAgent?xe.userAgent:c),Ct=xe&&xe.userAgentData?xe.userAgentData:o,Dt=Ie?mn(Bt,Ie):Bt,Re=xe&&xe.userAgent==Le;return this.getBrowser=function(){var Se={};return Se[v]=o,Se[A]=o,Dr.call(Se,Le,Dt.browser),Se[b]=so(Se[A]),Re&&xe&&xe.brave&&typeof xe.brave.isBrave==f&&(Se[v]="Brave"),Se},this.getCPU=function(){var Se={};return Se[B]=o,Dr.call(Se,Le,Dt.cpu),Se},this.getDevice=function(){var Se={};return Se[C]=o,Se[m]=o,Se[w]=o,Dr.call(Se,Le,Dt.device),Re&&!Se[w]&&Ct&&Ct.mobile&&(Se[w]=_),Re&&Se[m]=="Macintosh"&&xe&&typeof xe.standalone!==p&&xe.maxTouchPoints&&xe.maxTouchPoints>2&&(Se[m]="iPad",Se[w]=j),Se},this.getEngine=function(){var Se={};return Se[v]=o,Se[A]=o,Dr.call(Se,Le,Dt.engine),Se},this.getOS=function(){var Se={};return Se[v]=o,Se[A]=o,Dr.call(Se,Le,Dt.os),Re&&!Se[v]&&Ct&&Ct.platform&&Ct.platform!="Unknown"&&(Se[v]=Ct.platform.replace(/chrome os/i,oo).replace(/macos/i,Rc)),Se},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Le},this.setUA=function(Se){return Le=typeof Se===g&&Se.length>Q?Di(Se,Q):Se,this},this.setUA(Le),this};at.VERSION=s,at.BROWSER=io([v,A,b]),at.CPU=io([B]),at.DEVICE=io([m,C,w,T,_,k,j,D,U]),at.ENGINE=at.OS=io([v,A]),e.exports&&(t=e.exports=at),t.UAParser=at;var ot=typeof r!==p&&(r.jQuery||r.Zepto);if(ot&&!ot.ua){var co=new at;ot.ua=co.getResult(),ot.ua.get=function(){return co.getUA()},ot.ua.set=function(je){co.setUA(je);var Ie=co.getResult();for(var xe in Ie)ot.ua[xe]=Ie[xe]}}})(typeof window=="object"?window:uO)})(zs,zs.exports)),zs.exports}var dO=fO();/*!
Copyright (c) 2023 Paul Miller (paulmillr.com)
The library paulmillr-qr is dual-licensed under the Apache 2.0 OR MIT license.
You can select a license of your choice.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/const Is={newline:10,reset:27};function hO(e){if(!Number.isSafeInteger(e))throw new Error(`integer expected: ${e}`)}function pO(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw new Error(`Invalid version=${e}. Expected number [1..40]`)}function Ia(e,t){return e.toString(2).padStart(t,"0")}function A6(e,t){const r=e%t;return r>=0?r:t+r}function un(e,t){return new Array(e).fill(t)}function x6(...e){let t=0;for(const o of e)t=Math.max(t,o.length);const r=[];for(let o=0;o<t;o++)for(const s of e)o>=s.length||r.push(s[o]);return new Uint8Array(r)}function S6(e,t,r){if(r<0||r+t.length>e.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==e[r+o])return!1;return!0}function mO(){let e,t=1/0;return{add(r,o){r>=t||(e=o,t=r)},get:()=>e,score:()=>t}}function _6(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(r=>{if(typeof r!="string")throw new Error(`alphabet.decode: not string element=${r}`);const o=e.indexOf(r);if(o===-1)throw new Error(`Unknown letter: "${r}". Allowed: ${e}`);return o})},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(r=>{if(hO(r),r<0||r>=e.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${e.length})`);return e[r]})}}}class ln{static size(t,r){if(typeof t=="number"&&(t={height:t,width:t}),!Number.isSafeInteger(t.height)&&t.height!==1/0)throw new Error(`Bitmap: invalid height=${t.height} (${typeof t.height})`);if(!Number.isSafeInteger(t.width)&&t.width!==1/0)throw new Error(`Bitmap: invalid width=${t.width} (${typeof t.width})`);return r!==void 0&&(t={width:Math.min(t.width,r.width),height:Math.min(t.height,r.height)}),t}static fromString(t){t=t.replace(/^\n+/g,"").replace(/\n+$/g,"");const r=t.split(String.fromCharCode(Is.newline)),o=r.length,s=new Array(o);let c;for(const u of r){const f=u.split("").map(p=>{if(p==="X")return!0;if(p===" ")return!1;if(p!=="?")throw new Error(`Bitmap.fromString: unknown symbol=${p}`)});if(c&&f.length!==c)throw new Error(`Bitmap.fromString different row sizes: width=${c} cur=${f.length}`);c=f.length,s.push(f)}return c||(c=0),new ln({height:o,width:c},s)}data;height;width;constructor(t,r){const{height:o,width:s}=ln.size(t);this.data=r||Array.from({length:o},()=>un(s,void 0)),this.height=o,this.width=s}point(t){return this.data[t.y][t.x]}isInside(t){return 0<=t.x&&t.x<this.width&&0<=t.y&&t.y<this.height}size(t){if(!t)return{height:this.height,width:this.width};const{x:r,y:o}=this.xy(t);return{height:this.height-o,width:this.width-r}}xy(t){if(typeof t=="number"&&(t={x:t,y:t}),!Number.isSafeInteger(t.x))throw new Error(`Bitmap: invalid x=${t.x}`);if(!Number.isSafeInteger(t.y))throw new Error(`Bitmap: invalid y=${t.y}`);return t.x=A6(t.x,this.width),t.y=A6(t.y,this.height),t}rect(t,r,o){const{x:s,y:c}=this.xy(t),{height:u,width:f}=ln.size(r,this.size({x:s,y:c}));for(let p=0;p<u;p++)for(let h=0;h<f;h++)this.data[c+p][s+h]=typeof o=="function"?o({x:h,y:p},this.data[c+p][s+h]):o;return this}rectRead(t,r,o){return this.rect(t,r,(s,c)=>(o(s,c),c))}hLine(t,r,o){return this.rect(t,{width:r,height:1},o)}vLine(t,r,o){return this.rect(t,{width:1,height:r},o)}border(t=2,r){const o=this.height+2*t,s=this.width+2*t,c=un(t,r),u=Array.from({length:t},()=>un(s,r));return new ln({height:o,width:s},[...u,...this.data.map(f=>[...c,...f,...c]),...u])}embed(t,r){return this.rect(t,r.size(),({x:o,y:s})=>r.data[s][o])}rectSlice(t,r=this.size()){const o=new ln(ln.size(r,this.size(this.xy(t))));return this.rect(t,r,({x:s,y:c},u)=>o.data[c][s]=u),o}inverse(){const{height:t,width:r}=this;return new ln({height:r,width:t}).rect({x:0,y:0},1/0,({x:s,y:c})=>this.data[s][c])}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw new Error(`invalid scale factor: ${t}`);const{height:r,width:o}=this;return new ln({height:t*r,width:t*o}).rect({x:0,y:0},1/0,({x:c,y:u})=>this.data[Math.floor(u/t)][Math.floor(c/t)])}clone(){return new ln(this.size()).rect({x:0,y:0},this.size(),({x:r,y:o})=>this.data[o][r])}assertDrawn(){this.rectRead(0,1/0,(t,r)=>{if(typeof r!="boolean")throw new Error(`Invalid color type=${typeof r}`)})}toString(){return this.data.map(t=>t.map(r=>r===void 0?"?":r?"X":" ").join("")).join(String.fromCharCode(Is.newline))}toASCII(){const{height:t,width:r,data:o}=this;let s="";for(let c=0;c<t;c+=2){for(let u=0;u<r;u++){const f=o[c][u],p=c+1>=t?!0:o[c+1][u];!f&&!p?s+="█":!f&&p?s+="▀":f&&!p?s+="▄":f&&p&&(s+=" ")}s+=String.fromCharCode(Is.newline)}return s}toTerm(){const t=String.fromCharCode(Is.reset),r=t+"[0m",o=t+"[1;47m  "+r,s=t+"[40m  "+r;return this.data.map(c=>c.map(u=>u?s:o).join("")).join(String.fromCharCode(Is.newline))}toSVG(t=!0){let r=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,o="",s;return this.rectRead(0,1/0,(c,u)=>{if(!u)return;const{x:f,y:p}=c;if(!t){r+=`<rect x="${f}" y="${p}" width="1" height="1" />`;return}let h=`M${f} ${p}`;if(s){const b=`m${f-s.x} ${p-s.y}`;b.length<=h.length&&(h=b)}const g=f<10?`H${f}`:"h-1";o+=`${h}h1v1${g}Z`,s=c}),t&&(r+=`<path d="${o}"/>`),r+="</svg>",r}toGIF(){const t=f=>[f&255,f>>>8&255],r=[...t(this.width),...t(this.height)],o=[];this.rectRead(0,1/0,(f,p)=>o.push(+(p===!0)));const s=126,c=[71,73,70,56,55,97,...r,246,0,0,255,255,255,...un(381,0),44,0,0,0,0,...r,0,7],u=Math.floor(o.length/s);for(let f=0;f<u;f++)c.push(s+1,128,...o.slice(s*f,s*(f+1)).map(p=>+p));return c.push(o.length%s+1,128,...o.slice(u*s).map(f=>+f)),c.push(1,129,0,59),new Uint8Array(c)}toImage(t=!1){const{height:r,width:o}=this.size(),s=new Uint8Array(r*o*(t?3:4));let c=0;for(let u=0;u<r;u++)for(let f=0;f<o;f++){const p=this.data[u][f]?0:255;s[c++]=p,s[c++]=p,s[c++]=p,t||(s[c++]=255)}return{height:r,width:o,data:s}}}const B6=["low","medium","quartile","high"],T6=["numeric","alphanumeric","byte","kanji","eci"],gO=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],bO={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},yO={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},Rt={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];const t=6,r=Rt.size.encode(e)-t-1,o=r-t,s=Math.ceil(o/28);let c=Math.floor(o/s);c%2?c+=1:o%s*2>=s&&(c+=2);const u=[t];for(let f=1;f<s;f++)u.push(r-(s-f)*c);return u.push(r),u},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){const r=Rt.ECCode[e]<<3|t;let o=r;for(let s=0;s<10;s++)o=o<<1^(o>>9)*1335;return(r<<10|o)^Rt.formatMask},versionBits(e){let t=e;for(let r=0;r<12;r++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:_6("0123456789"),alphanumerc:_6("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")},lengthBits(e,t){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[t][Rt.sizeType(e)]},modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(e,t){const r=gO[e-1],o=bO[t][e-1],s=yO[t][e-1],c=Math.floor(r/s)-o,u=s-r%s;return{words:o,numBlocks:s,shortBlocks:u,blockLen:c,capacity:(r-o*s)*8,total:(o+c)*s+s-u}}},Sm=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],he={tables:(e=>{const t=un(256,0),r=un(256,0);for(let o=0,s=1;o<256;o++)t[o]=s,r[s]=o,s<<=1,s&256&&(s^=e);return{exp:t,log:r}})(285),exp:e=>he.tables.exp[e],log(e){if(e===0)throw new Error(`GF.log: invalid arg=${e}`);return he.tables.log[e]%255},mul(e,t){return e===0||t===0?0:he.tables.exp[(he.tables.log[e]+he.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>he.tables.exp[he.tables.log[e]*t%255],inv(e){if(e===0)throw new Error(`GF.inverse: invalid arg=${e}`);return he.tables.exp[255-he.tables.log[e]]},polynomial(e){if(e.length==0)throw new Error("GF.polymomial: invalid length");if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw new Error(`GF.monomial: invalid degree=${e}`);if(t==0)return[0];let r=un(e+1,0);return r[0]=t,he.polynomial(r)},degree:e=>e.length-1,coefficient:(e,t)=>e[he.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];const r=un(e.length+t.length-1,0);for(let o=0;o<e.length;o++)for(let s=0;s<t.length;s++)r[o+s]=he.add(r[o+s],he.mul(e[o],t[s]));return he.polynomial(r)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;const r=un(e.length,0);for(let o=0;o<e.length;o++)r[o]=he.mul(e[o],t);return he.polynomial(r)},mulPolyMonomial(e,t,r){if(t<0)throw new Error("GF.mulPolyMonomial: invalid degree");if(r==0)return[0];const o=un(e.length+t,0);for(let s=0;s<e.length;s++)o[s]=he.mul(e[s],r);return he.polynomial(o)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let r=e,o=t;r.length>o.length&&([r,o]=[o,r]);let s=un(o.length,0),c=o.length-r.length,u=o.slice(0,c);for(let f=0;f<u.length;f++)s[f]=u[f];for(let f=c;f<o.length;f++)s[f]=he.add(r[f-c],o[f]);return he.polynomial(s)},remainderPoly(e,t){const r=Array.from(e);for(let o=0;o<e.length-t.length+1;o++){const s=r[o];if(s!==0)for(let c=1;c<t.length;c++)t[c]!==0&&(r[o+c]=he.add(r[o+c],he.mul(t[c],s)))}return r.slice(e.length-t.length+1,r.length)},divisorPoly(e){let t=[1];for(let r=0;r<e;r++)t=he.mulPoly(t,[1,he.pow(2,r)]);return t},evalPoly(e,t){if(t==0)return he.coefficient(e,0);let r=e[0];for(let o=1;o<e.length;o++)r=he.add(he.mul(t,r),e[o]);return r},euclidian(e,t,r){he.degree(e)<he.degree(t)&&([e,t]=[t,e]);let o=e,s=t,c=[0],u=[1];for(;2*he.degree(s)>=r;){let h=o,g=c;if(o=s,c=u,o[0]===0)throw new Error("rLast[0] === 0");s=h;let b=[0];const m=he.inv(o[0]);for(;he.degree(s)>=he.degree(o)&&s[0]!==0;){const v=he.degree(s)-he.degree(o),w=he.mul(s[0],m);b=he.addPoly(b,he.monomial(v,w)),s=he.addPoly(s,he.mulPolyMonomial(o,v,w))}if(b=he.mulPoly(b,c),u=he.addPoly(b,g),he.degree(s)>=he.degree(o))throw new Error(`Division failed r: ${s}, rLast: ${o}`)}const f=he.coefficient(u,0);if(f==0)throw new Error("sigmaTilde(0) was zero");const p=he.inv(f);return[he.mulPolyScalar(u,p),he.mulPolyScalar(s,p)]}};function vO(e){return{encode(t){const r=he.divisorPoly(e),o=Array.from(t);return o.push(...r.slice(0,-1).fill(0)),Uint8Array.from(he.remainderPoly(o,r))},decode(t){const r=t.slice(),o=he.polynomial(Array.from(t));let s=un(e,0),c=!1;for(let b=0;b<e;b++){const m=he.evalPoly(o,he.exp(b));s[s.length-1-b]=m,m!==0&&(c=!0)}if(!c)return r;s=he.polynomial(s);const u=he.monomial(e,1),[f,p]=he.euclidian(u,s,e),h=un(he.degree(f),0);let g=0;for(let b=1;b<256&&g<h.length;b++)he.evalPoly(f,b)===0&&(h[g++]=he.inv(b));if(g!==h.length)throw new Error("RS.decode: invalid errors number");for(let b=0;b<h.length;b++){const m=r.length-1-he.log(h[b]);if(m<0)throw new Error("RS.decode: invalid error location");const v=he.inv(h[b]);let w=1;for(let C=0;C<h.length;C++)b!==C&&(w=he.mul(w,he.add(1,he.mul(h[C],v))));r[m]=he.add(r[m],he.mul(he.evalPoly(p,v),he.inv(w)))}return r}}}function wO(e,t){const{words:r,shortBlocks:o,numBlocks:s,blockLen:c,total:u}=Rt.capacity(e,t),f=vO(r);return{encode(p){const h=[],g=[];for(let w=0;w<s;w++){const C=w<o,A=c+(C?0:1);h.push(p.subarray(0,A)),g.push(f.encode(p.subarray(0,A))),p=p.subarray(A)}const b=x6(...h),m=x6(...g),v=new Uint8Array(b.length+m.length);return v.set(b),v.set(m,b.length),v},decode(p){if(p.length!==u)throw new Error(`interleave.decode: len(data)=${p.length}, total=${u}`);const h=[];for(let m=0;m<s;m++){const v=m<o;h.push(new Uint8Array(r+c+(v?0:1)))}let g=0;for(let m=0;m<c;m++)for(let v=0;v<s;v++)h[v][m]=p[g++];for(let m=o;m<s;m++)h[m][c]=p[g++];for(let m=c;m<c+r;m++)for(let v=0;v<s;v++){const w=v<o;h[v][m+(w?0:1)]=p[g++]}const b=[];for(const m of h)b.push(...Array.from(f.decode(m)).slice(0,-r));return Uint8Array.from(b)}}}function CO(e,t,r,o=!1){const s=Rt.size.encode(e);let c=new ln(s+2);const u=new ln(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);c=c.embed(0,u).embed({x:-u.width,y:0},u).embed({x:0,y:-u.height},u),c=c.rectSlice(1,s);const f=new ln(1).rect(0,1,!0).border(1,!1).border(1,!0),p=Rt.alignmentPatterns(e);for(const h of p)for(const g of p)c.data[h][g]===void 0&&c.embed({x:g-2,y:h-2},f);c=c.hLine({x:0,y:6},1/0,({x:h},g)=>g===void 0?h%2==0:g).vLine({x:6,y:0},1/0,({y:h},g)=>g===void 0?h%2==0:g);{const h=Rt.formatBits(t,r),g=b=>!o&&(h>>b&1)==1;for(let b=0;b<6;b++)c.data[b][8]=g(b);for(let b=6;b<8;b++)c.data[b+1][8]=g(b);for(let b=8;b<15;b++)c.data[s-15+b][8]=g(b);for(let b=0;b<8;b++)c.data[8][s-b-1]=g(b);for(let b=8;b<9;b++)c.data[8][15-b-1+1]=g(b);for(let b=9;b<15;b++)c.data[8][15-b-1]=g(b);c.data[s-8][8]=!o}if(e>=7){const h=Rt.versionBits(e);for(let g=0;g<18;g+=1){const b=!o&&(h>>g&1)==1,m=Math.floor(g/3),v=g%3+s-8-3;c.data[m][v]=b,c.data[v][m]=b}}return c}function EO(e,t,r){const o=e.height,s=Sm[t];let c=-1,u=o-1;for(let f=o-1;f>0;f-=2){for(f==6&&(f=5);;u+=c){for(let p=0;p<2;p+=1){const h=f-p;e.data[u][h]===void 0&&r(h,u,s(h,u))}if(u+c<0||u+c>=o)break}c=-c}}function AO(e){let t="numeric";for(let r of e)if(!Rt.alphabet.numeric.has(r)&&(t="alphanumeric",!Rt.alphabet.alphanumerc.has(r)))return"byte";return t}function xO(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function j6(e,t,r,o){let s="",c=r.length;if(o==="numeric"){const b=Rt.alphabet.numeric.decode(r.split("")),m=b.length;for(let v=0;v<m-2;v+=3)s+=Ia(b[v]*100+b[v+1]*10+b[v+2],10);m%3===1?s+=Ia(b[m-1],4):m%3===2&&(s+=Ia(b[m-2]*10+b[m-1],7))}else if(o==="alphanumeric"){const b=Rt.alphabet.alphanumerc.decode(r.split("")),m=b.length;for(let v=0;v<m-1;v+=2)s+=Ia(b[v]*45+b[v+1],11);m%2==1&&(s+=Ia(b[m-1],6))}else if(o==="byte"){const b=xO(r);c=b.length,s=Array.from(b).map(m=>Ia(m,8)).join("")}else throw new Error("encode: unsupported type");const{capacity:u}=Rt.capacity(e,t),f=Ia(c,Rt.lengthBits(e,o));let p=Rt.modeBits[o]+f+s;if(p.length>u)throw new Error("Capacity overflow");p+="0".repeat(Math.min(4,Math.max(0,u-p.length))),p.length%8&&(p+="0".repeat(8-p.length%8));const h="1110110000010001";for(let b=0;p.length!==u;b++)p+=h[b%h.length];const g=Uint8Array.from(p.match(/(.{8})/g).map(b=>+`0b${b}`));return wO(e,t).encode(g)}function k6(e,t,r,o,s=!1){const c=CO(e,t,o,s);let u=0;const f=8*r.length;if(EO(c,o,(p,h,g)=>{let b=!1;u<f&&(b=(r[u>>>3]>>(7-u&7)&1)!==0,u++),c.data[h][p]=b!==g}),u!==f)throw new Error("QR: bytes left after draw");return c}function SO(e){const t=e.inverse(),r=v=>{let w=0;for(let C=0,A=1,B=void 0;C<v.length;C++)B===v[C]&&(A++,C!==v.length-1)||(A>=5&&(w+=3+(A-5)),B=v[C],A=1);return w};let o=0;e.data.forEach(v=>o+=r(v)),t.data.forEach(v=>o+=r(v));let s=0,c=e.data;const u=e.width-1,f=e.height-1;for(let v=0;v<u;v++)for(let w=0;w<f;w++){const C=v+1,A=w+1;c[v][w]===c[C][w]&&c[C][w]===c[v][A]&&c[C][w]===c[C][A]&&(s+=3)}const p=v=>{const w=[!0,!1,!0,!0,!0,!1,!0],C=[!1,!1,!1,!1],A=[...w,...C],B=[...C,...w];let T=0;for(let _=0;_<v.length;_++)S6(v,A,_)&&(T+=40),S6(v,B,_)&&(T+=40);return T};let h=0;for(const v of e.data)h+=p(v);for(const v of t.data)h+=p(v);let g=0;e.rectRead(0,1/0,(v,w)=>g+=w?1:0);const b=g/(e.height*e.width)*100,m=10*Math.floor(Math.abs(b-50)/5);return o+s+h+m}function _O(e,t,r,o){if(o===void 0){const s=mO();for(let c=0;c<Sm.length;c++)s.add(SO(k6(e,t,r,c,!0)),c);o=s.get()}if(o===void 0)throw new Error("Cannot find mask");return k6(e,t,r,o)}function BO(e){if(!B6.includes(e))throw new Error(`Invalid error correction mode=${e}. Expected: ${B6}`)}function TO(e){if(!T6.includes(e))throw new Error(`Encoding: invalid mode=${e}. Expected: ${T6}`);if(e==="kanji"||e==="eci")throw new Error(`Encoding: ${e} is not supported (yet?).`)}function jO(e){if(![0,1,2,3,4,5,6,7].includes(e)||!Sm[e])throw new Error(`Invalid mask=${e}. Expected number [0..7]`)}function kO(e,t="raw",r={}){const o=r.ecc!==void 0?r.ecc:"medium";BO(o);const s=r.encoding!==void 0?r.encoding:AO(e);TO(s),r.mask!==void 0&&jO(r.mask);let c=r.version,u,f=new Error("Unknown error");if(c!==void 0)pO(c),u=j6(c,o,e,s);else for(let g=1;g<=40;g++)try{u=j6(g,o,e,s),c=g;break}catch(b){f=b}if(!c||!u)throw f;let p=_O(c,o,u,r.mask);p.assertDrawn();const h=r.border===void 0?2:r.border;if(!Number.isSafeInteger(h))throw new Error(`invalid border type=${typeof h}`);if(p=p.border(h,!1),r.scale!==void 0&&(p=p.scale(r.scale)),t==="raw")return p.data;if(t==="ascii")return p.toASCII();if(t==="svg")return p.toSVG(r.optimize);if(t==="gif")return p.toGIF();if(t==="term")return p.toTerm();throw new Error(`Unknown output: ${t}`)}function OO(e,t={}){const{errorCorrection:r,version:o}=t,s=kO(e,"raw",{border:0,ecc:r,scale:1,version:o});return{edgeLength:s.length,finderLength:7,grid:s,value:e}}function $n(e){const{arena:t,...r}=e;return Z.jsxs($n.Root,{...r,children:[Z.jsx($n.Finder,{}),Z.jsx($n.Cells,{}),t&&Z.jsx($n.Arena,{children:typeof t=="string"?Z.jsx("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}(function(e){e.Context=N.createContext(null);function t(c){const{children:u,size:f="100%",value:p,version:h,...g}=c,b=N.useMemo(()=>(N.Children.map(u,T=>!N.isValidElement(T)||typeof T.type=="string"?null:"displayName"in T.type&&T.type.displayName==="Arena"?!0:null)??[]).some(Boolean),[u]),m=N.useMemo(()=>{let T=c.errorCorrection;return b&&T==="low"&&(T="medium"),OO(p,{errorCorrection:T,version:h})},[p,b,c.errorCorrection,h]),v=1,w=m.edgeLength*v,C=m.finderLength*v/2,A=b?Math.floor(w/4):0,B=N.useMemo(()=>({arenaSize:A,cellSize:v,edgeSize:w,qrcode:m,finderSize:C}),[A,w,m,C]);return Z.jsx(e.Context.Provider,{value:B,children:Z.jsxs("svg",{...g,width:f,height:f,viewBox:`0 0 ${w} ${w}`,xmlns:"http://www.w3.org/2000/svg",children:[Z.jsx("title",{children:"QR Code"}),u]})})}e.Root=t,(function(c){c.displayName="Root"})(t=e.Root||(e.Root={}));function r(c){const{className:u,fill:f,innerClassName:p,radius:h=.25}=c,{cellSize:g,edgeSize:b,finderSize:m}=N.useContext(e.Context);function v({position:w}){let C=m-(m-g)-g/2;w==="top-right"&&(C=b-m-(m-g)-g/2);let A=m-(m-g)-g/2;w==="bottom-left"&&(A=b-m-(m-g)-g/2);let B=m-g*1.5;w==="top-right"&&(B=b-m-g*1.5);let T=m-g*1.5;return w==="bottom-left"&&(T=b-m-g*1.5),Z.jsxs(Z.Fragment,{children:[Z.jsx("rect",{className:u,stroke:f??"currentColor",fill:"transparent",x:C,y:A,width:g+(m-g)*2,height:g+(m-g)*2,rx:2*h*(m-g),ry:2*h*(m-g),strokeWidth:g}),Z.jsx("rect",{className:p,fill:f??"currentColor",x:B,y:T,width:g*3,height:g*3,rx:2*h*g,ry:2*h*g})]})}return Z.jsxs(Z.Fragment,{children:[Z.jsx(v,{position:"top-left"}),Z.jsx(v,{position:"top-right"}),Z.jsx(v,{position:"bottom-left"})]})}e.Finder=r,(function(c){c.displayName="Finder"})(r=e.Finder||(e.Finder={}));function o(c){const{className:u,fill:f="currentColor",inset:p=!0,radius:h=1}=c,{arenaSize:g,cellSize:b,qrcode:m}=N.useContext(e.Context),{edgeLength:v,finderLength:w}=m,C=N.useMemo(()=>{let A="";for(let B=0;B<m.grid.length;B++){const T=m.grid[B];if(T)for(let _=0;_<T.length;_++){if(!T[_])continue;const k=v/2-g/2,D=k+g;if(B>=k&&B<=D&&_>=k&&_<=D)continue;const U=B<w&&_<w,Q=B<w&&_>=v-w,F=B>=v-w&&_<w;if(U||Q||F)continue;const ie=p?b*.1:0,le=(b-ie*2)/2,ae=_*b+b/2,L=B*b+b/2,V=ae-le,$=ae+le,I=L-le,Y=L+le,q=h*le;A+=[`M ${V+q},${I}`,`L ${$-q},${I}`,`A ${q},${q} 0 0,1 ${$},${I+q}`,`L ${$},${Y-q}`,`A ${q},${q} 0 0,1 ${$-q},${Y}`,`L ${V+q},${Y}`,`A ${q},${q} 0 0,1 ${V},${Y-q}`,`L ${V},${I+q}`,`A ${q},${q} 0 0,1 ${V+q},${I}`,"z"].join(" ")}}return A},[g,b,v,w,m.grid,p,h]);return Z.jsx("path",{className:u,d:C,fill:f})}e.Cells=o,(function(c){c.displayName="Cells"})(o=e.Cells||(e.Cells={}));function s(c){const{children:u}=c,{arenaSize:f,cellSize:p,edgeSize:h}=N.useContext(e.Context),g=Math.ceil(h/2-f/2),b=f+f%2,m=p/2;return Z.jsx("foreignObject",{x:g,y:g,width:b,height:b,children:Z.jsx("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",width:"100%",padding:m,boxSizing:"border-box"},children:u})})}e.Arena=s,(function(c){c.displayName="Arena"})(s=e.Arena||(e.Arena={}))})($n||($n={}));lf.type="coinbaseWallet";function lf(e={}){return e.version==="3"||e.headlessMode?RO(e):MO(e)}function MO(e){let t,r,o,s;return c=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:lf.type,async connect({chainId:u,...f}={}){try{const p=await this.getProvider(),h=(await p.request({method:"eth_requestAccounts",params:"instantOnboarding"in f&&f.instantOnboarding?[{onboarding:"instant"}]:[]})).map(b=>pt(b));r||(r=this.onAccountsChanged.bind(this),p.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),p.on("chainChanged",o)),s||(s=this.onDisconnect.bind(this),p.on("disconnect",s));let g=await this.getChainId();return u&&g!==u&&(g=(await this.switchChain({chainId:u}).catch(m=>{if(m.code===Ue.code)throw m;return{id:g}}))?.id??g),{accounts:h,chainId:g}}catch(p){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(p.message)?new Ue(p):p}},async disconnect(){const u=await this.getProvider();r&&(u.removeListener("accountsChanged",r),r=void 0),o&&(u.removeListener("chainChanged",o),o=void 0),s&&(u.removeListener("disconnect",s),s=void 0),u.disconnect(),u.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(f=>pt(f))},async getChainId(){const f=await(await this.getProvider()).request({method:"eth_chainId"});return Number(f)},async getProvider(){if(!t){const u=typeof e.preference=="string"?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createCoinbaseWalletSDK:f}=await de(async()=>{const{createCoinbaseWalletSDK:h}=await import("./index-CosEW3z7.js");return{createCoinbaseWalletSDK:h}},__vite__mapDeps([0,1,2]));t=f({...e,appChainIds:c.chains.map(h=>h.id),preference:u}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:f}){const p=c.chains.find(g=>g.id===f);if(!p)throw new zt(new ga);const h=await this.getProvider();try{return await h.request({method:"wallet_switchEthereumChain",params:[{chainId:ge(p.id)}]}),p}catch(g){if(g.code===4902)try{let b;u?.blockExplorerUrls?b=u.blockExplorerUrls:b=p.blockExplorers?.default.url?[p.blockExplorers?.default.url]:[];let m;u?.rpcUrls?.length?m=u.rpcUrls:m=[p.rpcUrls.default?.http[0]??""];const v={blockExplorerUrls:b,chainId:ge(f),chainName:u?.chainName??p.name,iconUrls:u?.iconUrls,nativeCurrency:u?.nativeCurrency??p.nativeCurrency,rpcUrls:m};return await h.request({method:"wallet_addEthereumChain",params:[v]}),p}catch(b){throw new Ue(b)}throw new zt(g)}},onAccountsChanged(u){u.length===0?this.onDisconnect():c.emitter.emit("change",{accounts:u.map(f=>pt(f))})},onChainChanged(u){const f=Number(u);c.emitter.emit("change",{chainId:f})},async onDisconnect(u){c.emitter.emit("disconnect");const f=await this.getProvider();r&&(f.removeListener("accountsChanged",r),r=void 0),o&&(f.removeListener("chainChanged",o),o=void 0),s&&(f.removeListener("disconnect",s),s=void 0)}})}function RO(e){let r,o,s,c,u;return f=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:lf.type,async connect({chainId:p}={}){try{const h=await this.getProvider(),g=(await h.request({method:"eth_requestAccounts"})).map(m=>pt(m));s||(s=this.onAccountsChanged.bind(this),h.on("accountsChanged",s)),c||(c=this.onChainChanged.bind(this),h.on("chainChanged",c)),u||(u=this.onDisconnect.bind(this),h.on("disconnect",u));let b=await this.getChainId();return p&&b!==p&&(b=(await this.switchChain({chainId:p}).catch(v=>{if(v.code===Ue.code)throw v;return{id:b}}))?.id??b),{accounts:g,chainId:b}}catch(h){throw/(user closed modal|accounts received is empty|user denied account)/i.test(h.message)?new Ue(h):h}},async disconnect(){const p=await this.getProvider();s&&(p.removeListener("accountsChanged",s),s=void 0),c&&(p.removeListener("chainChanged",c),c=void 0),u&&(p.removeListener("disconnect",u),u=void 0),p.disconnect(),p.close()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(h=>pt(h))},async getChainId(){const h=await(await this.getProvider()).request({method:"eth_chainId"});return Number(h)},async getProvider(){if(!o){const p=await(async()=>{const{default:v}=await de(async()=>{const{default:w}=await import("./index-Cw8RVAy8.js").then(C=>C.i);return{default:w}},__vite__mapDeps([3,1,4,5]));return typeof v!="function"&&typeof v.default=="function"?v.default:v})();r=new p({...e,reloadOnDisconnect:!1});const h=r.walletExtension?.getChainId(),g=f.chains.find(v=>e.chainId?v.id===e.chainId:v.id===h)||f.chains[0],b=e.chainId||g?.id,m=e.jsonRpcUrl||g?.rpcUrls.default.http[0];o=r.makeWeb3Provider(m,b)}return o},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:h}){const g=f.chains.find(m=>m.id===h);if(!g)throw new zt(new ga);const b=await this.getProvider();try{return await b.request({method:"wallet_switchEthereumChain",params:[{chainId:ge(g.id)}]}),g}catch(m){if(m.code===4902)try{let v;p?.blockExplorerUrls?v=p.blockExplorerUrls:v=g.blockExplorers?.default.url?[g.blockExplorers?.default.url]:[];let w;p?.rpcUrls?.length?w=p.rpcUrls:w=[g.rpcUrls.default?.http[0]??""];const C={blockExplorerUrls:v,chainId:ge(h),chainName:p?.chainName??g.name,iconUrls:p?.iconUrls,nativeCurrency:p?.nativeCurrency??g.nativeCurrency,rpcUrls:w};return await b.request({method:"wallet_addEthereumChain",params:[C]}),g}catch(v){throw new Ue(v)}throw new zt(m)}},onAccountsChanged(p){p.length===0?this.onDisconnect():f.emitter.emit("change",{accounts:p.map(h=>pt(h))})},onChainChanged(p){const h=Number(p);f.emitter.emit("change",{chainId:h})},async onDisconnect(p){f.emitter.emit("disconnect");const h=await this.getProvider();s&&(h.removeListener("accountsChanged",s),s=void 0),c&&(h.removeListener("chainChanged",c),c=void 0),u&&(h.removeListener("disconnect",u),u=void 0)}})}_m.type="metaMask";function _m(e={}){let t,r,o,s,c,u,f,p;return h=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:_m.type,async setup(){const g=await this.getProvider();g?.on&&(u||(u=this.onConnect.bind(this),g.on("connect",u)),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)))},async connect({chainId:g,isReconnecting:b}={}){const m=await this.getProvider();f||(f=this.onDisplayUri,m.on("display_uri",f));let v=[];b&&(v=await this.getAccounts().catch(()=>[]));try{let w,C;v?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?w=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(C=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),v=await this.getAccounts()):v=(await t.connect()).map(T=>pt(T)));let A=await this.getChainId();return g&&A!==g&&(A=(await this.switchChain({chainId:g}).catch(T=>{if(T.code===Ue.code)throw T;return{id:A}}))?.id??A),f&&(m.removeListener("display_uri",f),f=void 0),w?m.emit("connectAndSign",{accounts:v,chainId:A,signResponse:w}):C&&m.emit("connectWith",{accounts:v,chainId:A,connectWithResponse:C}),u&&(m.removeListener("connect",u),u=void 0),s||(s=this.onAccountsChanged.bind(this),m.on("accountsChanged",s)),c||(c=this.onChainChanged.bind(this),m.on("chainChanged",c)),p||(p=this.onDisconnect.bind(this),m.on("disconnect",p)),{accounts:v,chainId:A}}catch(w){const C=w;throw C.code===Ue.code?new Ue(C):C.code===Kn.code?new Kn(C):C}},async disconnect(){const g=await this.getProvider();c&&(g.removeListener("chainChanged",c),c=void 0),p&&(g.removeListener("disconnect",p),p=void 0),u||(u=this.onConnect.bind(this),g.on("connect",u)),await t.terminate()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(m=>pt(m))},async getChainId(){const g=await this.getProvider(),b=g.getChainId()||await g?.request({method:"eth_chainId"});return Number(b)},async getProvider(){async function g(){const b=await(async()=>{const{default:C}=await de(async()=>{const{default:A}=await import("./metamask-sdk-BYFFOxXT.js");return{default:A}},__vite__mapDeps([6,5]));return typeof C!="function"&&typeof C.default=="function"?C.default:C})(),m={};for(const C of h.chains)m[ge(C.id)]=s3({chain:C,transports:h.transports})?.[0];t=new b({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:m,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:"wagmi",url:e.dappMetadata?.url?e.dappMetadata?.url:typeof window<"u"?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});const v=await t.init(),w=v?.activeProvider?v.activeProvider:t.getProvider();if(!w)throw new fn;return w}return r||(o||(o=g()),r=await o),r},async isAuthorized(){try{return!!(await vi(()=>Yu(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:g,chainId:b}){const m=await this.getProvider(),v=h.chains.find(A=>A.id===b);if(!v)throw new zt(new ga);try{return await m.request({method:"wallet_switchEthereumChain",params:[{chainId:ge(b)}]}),await w(),await C(b),v}catch(A){const B=A;if(B.code===Ue.code)throw new Ue(B);if(B.code===4902||B?.data?.originalError?.code===4902)try{return await m.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{const{default:T,..._}=v.blockExplorers??{};if(g?.blockExplorerUrls)return g.blockExplorerUrls;if(T)return[T.url,...Object.values(_).map(j=>j.url)]})(),chainId:ge(b),chainName:g?.chainName??v.name,iconUrls:g?.iconUrls,nativeCurrency:g?.nativeCurrency??v.nativeCurrency,rpcUrls:g?.rpcUrls?.length?g.rpcUrls:[v.rpcUrls.default?.http[0]??""]}]}),await w(),await C(b),v}catch(T){const _=T;throw _.code===Ue.code?new Ue(_):new zt(_)}throw new zt(B)}async function w(){await vi(async()=>{const A=Jn(await m.request({method:"eth_chainId"}));if(A!==b)throw new Error("User rejected switch after adding network.");return A},{delay:50,retryCount:20})}async function C(A){await new Promise(B=>{const T=(_=>{"chainId"in _&&_.chainId===A&&(h.emitter.off("change",T),B())});h.emitter.on("change",T),h.emitter.emit("change",{chainId:A})})}},async onAccountsChanged(g){if(g.length===0)if(t.isExtensionActive())this.onDisconnect();else return;else if(h.emitter.listenerCount("connect")){const b=(await this.getChainId()).toString();this.onConnect({chainId:b})}else h.emitter.emit("change",{accounts:g.map(b=>pt(b))})},onChainChanged(g){const b=Number(g);h.emitter.emit("change",{chainId:b})},async onConnect(g){const b=await this.getAccounts();if(b.length===0)return;const m=Number(g.chainId);h.emitter.emit("connect",{accounts:b,chainId:m});const v=await this.getProvider();u&&(v.removeListener("connect",u),u=void 0),s||(s=this.onAccountsChanged.bind(this),v.on("accountsChanged",s)),c||(c=this.onChainChanged.bind(this),v.on("chainChanged",c)),p||(p=this.onDisconnect.bind(this),v.on("disconnect",p))},async onDisconnect(g){const b=await this.getProvider();g&&g.code===1013&&b&&(await this.getAccounts()).length||(h.emitter.emit("disconnect"),c&&(b.removeListener("chainChanged",c),c=void 0),p&&(b.removeListener("disconnect",p),p=void 0),u||(u=this.onConnect.bind(this),b.on("connect",u)))},onDisplayUri(g){h.emitter.emit("message",{type:"display_uri",data:g})}})}Bm.type="safe";function Bm(e={}){const{shimDisconnect:t=!1}=e;let r,o;return s=>({id:"safe",name:"Safe",type:Bm.type,async connect(){const c=await this.getProvider();if(!c)throw new fn;const u=await this.getAccounts(),f=await this.getChainId();return o||(o=this.onDisconnect.bind(this),c.on("disconnect",o)),t&&await s.storage?.removeItem("safe.disconnected"),{accounts:u,chainId:f}},async disconnect(){const c=await this.getProvider();if(!c)throw new fn;o&&(c.removeListener("disconnect",o),o=void 0),t&&await s.storage?.setItem("safe.disconnected",!0)},async getAccounts(){const c=await this.getProvider();if(!c)throw new fn;return(await c.request({method:"eth_accounts"})).map(pt)},async getProvider(){if(typeof window<"u"&&window?.parent!==window){if(!r){const{default:u}=await de(async()=>{const{default:g}=await import("./index-1fQ6M7hc.js");return{default:g}},__vite__mapDeps([7,8])),f=new u(e),p=await Yu(()=>f.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!p)throw new Error("Could not load Safe information");const h=await(async()=>{const g=await de(()=>import("./index-Bsys59T0.js").then(b=>b.i),__vite__mapDeps([9,8,4]));return typeof g.SafeAppProvider!="function"&&typeof g.default.SafeAppProvider=="function"?g.default.SafeAppProvider:g.SafeAppProvider})();r=new h(p,f)}return r}},async getChainId(){const c=await this.getProvider();if(!c)throw new fn;return Number(c.chainId)},async isAuthorized(){try{return t&&await s.storage?.getItem("safe.disconnected")?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){s.emitter.emit("disconnect")}})}Tm.type="walletConnect";function Tm(e){const t=e.isNewChainsStale??!0;let r,o;const s="eip155";let c,u,f,p,h,g;return b=>({id:"walletConnect",name:"WalletConnect",type:Tm.type,async setup(){const m=await this.getProvider().catch(()=>null);m&&(f||(f=this.onConnect.bind(this),m.on("connect",f)),h||(h=this.onSessionDelete.bind(this),m.on("session_delete",h)))},async connect({chainId:m,...v}={}){try{const w=await this.getProvider();if(!w)throw new fn;p||(p=this.onDisplayUri,w.on("display_uri",p));let C=m;if(!C){const _=await b.storage?.getItem("state")??{};b.chains.some(k=>k.id===_.chainId)?C=_.chainId:C=b.chains[0]?.id}if(!C)throw new Error("No chains found on connector.");const A=await this.isChainsStale();if(w.session&&A&&await w.disconnect(),!w.session||A){const _=b.chains.filter(j=>j.id!==C).map(j=>j.id);await w.connect({optionalChains:[C,..._],..."pairingTopic"in v?{pairingTopic:v.pairingTopic}:{}}),this.setRequestedChainsIds(b.chains.map(j=>j.id))}const B=(await w.enable()).map(_=>pt(_));let T=await this.getChainId();return m&&T!==m&&(T=(await this.switchChain({chainId:m}).catch(j=>{if(j.code===Ue.code&&j.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw j;return{id:T}}))?.id??T),p&&(w.removeListener("display_uri",p),p=void 0),f&&(w.removeListener("connect",f),f=void 0),c||(c=this.onAccountsChanged.bind(this),w.on("accountsChanged",c)),u||(u=this.onChainChanged.bind(this),w.on("chainChanged",u)),g||(g=this.onDisconnect.bind(this),w.on("disconnect",g)),h||(h=this.onSessionDelete.bind(this),w.on("session_delete",h)),{accounts:B,chainId:T}}catch(w){throw/(user rejected|connection request reset)/i.test(w?.message)?new Ue(w):w}},async disconnect(){const m=await this.getProvider();try{await m?.disconnect()}catch(v){if(!/No matching key/i.test(v.message))throw v}finally{u&&(m?.removeListener("chainChanged",u),u=void 0),g&&(m?.removeListener("disconnect",g),g=void 0),f||(f=this.onConnect.bind(this),m?.on("connect",f)),c&&(m?.removeListener("accountsChanged",c),c=void 0),h&&(m?.removeListener("session_delete",h),h=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(v=>pt(v))},async getProvider(){async function m(){const v=b.chains.map(C=>C.id);if(!v.length)return;const{EthereumProvider:w}=await de(async()=>{const{EthereumProvider:C}=await import("./index.es-CJ60zr0-.js").then(A=>A.X);return{EthereumProvider:C}},__vite__mapDeps([10,4,2]));return await w.init({...e,disableProviderPing:!0,optionalChains:v,projectId:e.projectId,rpcMap:Object.fromEntries(b.chains.map(C=>{const[A]=s3({chain:C,transports:b.transports});return[C.id,A]})),showQrModal:e.showQrModal??!0})}return r||(o||(o=m()),r=await o,r?.events.setMaxListeners(Number.POSITIVE_INFINITY)),r},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[m,v]=await Promise.all([this.getAccounts(),this.getProvider()]);return m.length?await this.isChainsStale()&&v.session?(await v.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:m,chainId:v}){const w=await this.getProvider();if(!w)throw new fn;const C=b.chains.find(A=>A.id===v);if(!C)throw new zt(new ga);try{await Promise.all([new Promise(B=>{const T=({chainId:_})=>{_===v&&(b.emitter.off("change",T),B())};b.emitter.on("change",T)}),w.request({method:"wallet_switchEthereumChain",params:[{chainId:ge(v)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,v]),C}catch(A){const B=A;if(/(user rejected)/i.test(B.message))throw new Ue(B);try{let T;m?.blockExplorerUrls?T=m.blockExplorerUrls:T=C.blockExplorers?.default.url?[C.blockExplorers?.default.url]:[];let _;m?.rpcUrls?.length?_=m.rpcUrls:_=[...C.rpcUrls.default.http];const j={blockExplorerUrls:T,chainId:ge(v),chainName:m?.chainName??C.name,iconUrls:m?.iconUrls,nativeCurrency:m?.nativeCurrency??C.nativeCurrency,rpcUrls:_};await w.request({method:"wallet_addEthereumChain",params:[j]});const k=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...k,v]),C}catch(T){throw new Ue(T)}}},onAccountsChanged(m){m.length===0?this.onDisconnect():b.emitter.emit("change",{accounts:m.map(v=>pt(v))})},onChainChanged(m){const v=Number(m);b.emitter.emit("change",{chainId:v})},async onConnect(m){const v=Number(m.chainId),w=await this.getAccounts();b.emitter.emit("connect",{accounts:w,chainId:v})},async onDisconnect(m){this.setRequestedChainsIds([]),b.emitter.emit("disconnect");const v=await this.getProvider();c&&(v.removeListener("accountsChanged",c),c=void 0),u&&(v.removeListener("chainChanged",u),u=void 0),g&&(v.removeListener("disconnect",g),g=void 0),h&&(v.removeListener("session_delete",h),h=void 0),f||(f=this.onConnect.bind(this),v.on("connect",f))},onDisplayUri(m){b.emitter.emit("message",{type:"display_uri",data:m})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){return r?r.session?.namespaces[s]?.accounts?.map(v=>Number.parseInt(v.split(":")[1]||""))??[]:[]},async getRequestedChainsIds(){return await b.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!t)return!1;const m=b.chains.map(C=>C.id),v=this.getNamespaceChainsIds();if(v.length&&!v.some(C=>m.includes(C)))return!1;const w=await this.getRequestedChainsIds();return!m.every(C=>w.includes(C))},async setRequestedChainsIds(m){await b.storage?.setItem(this.requestedChainsStorageKey,m)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}var Ou={},DO=768,ri=XA({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),x8=ww({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),Sp=rx({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},accentColorForeground:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"},actionButtonBorder:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},actionButtonBorderMobile:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},closeButton:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},closeButtonBackground:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonBackgroundError:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonInnerBackground:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectButtonText:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},connectButtonTextError:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},connectionIndicator:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},downloadBottomCardBackground:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},downloadTopCardBackground:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},error:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"},generalBorder:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},generalBorderDim:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"},menuItemBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBackdrop:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalBackground:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalBorder:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalText:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},modalTextDim:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},modalTextSecondary:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileAction:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},profileActionHover:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},profileForeground:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"},selectedOptionBorder:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},standby:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},accentColorForeground:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonBorder:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},actionButtonBorderMobile:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},closeButton:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},closeButtonBackground:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonBackgroundError:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonInnerBackground:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectButtonText:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},connectButtonTextError:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},connectionIndicator:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},downloadBottomCardBackground:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},downloadTopCardBackground:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},error:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"},generalBorder:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},generalBorderDim:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"},menuItemBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBackdrop:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalBackground:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalBorder:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalText:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},modalTextDim:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},modalTextSecondary:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileAction:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},profileActionHover:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},profileForeground:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"},selectedOptionBorder:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},standby:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},dialog:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},profileDetailsAction:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},selectedOption:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"},selectedWallet:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},walletLogo:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"}}},color:{values:{accentColor:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},accentColorForeground:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonBorder:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},actionButtonBorderMobile:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},closeButton:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},closeButtonBackground:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonBackgroundError:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonInnerBackground:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectButtonText:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},connectButtonTextError:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},connectionIndicator:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},downloadBottomCardBackground:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},downloadTopCardBackground:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},error:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"},generalBorder:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},generalBorderDim:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"},menuItemBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBackdrop:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalBackground:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalBorder:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalText:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},modalTextDim:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},modalTextSecondary:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileAction:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},profileActionHover:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},profileForeground:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"},selectedOptionBorder:{conditions:{base:"ju367vhc",hover:"ju367vhd",active:"ju367vhe"},defaultClass:"ju367vhc"},standby:{conditions:{base:"ju367vhf",hover:"ju367vhg",active:"ju367vhh"},defaultClass:"ju367vhf"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},WebkitUserSelect:{values:{none:{defaultClass:"ju367v8s"}}},right:{values:{0:{defaultClass:"ju367v8t"}}},transition:{values:{default:{defaultClass:"ju367v8u"},transform:{defaultClass:"ju367v8v"}}},userSelect:{values:{none:{defaultClass:"ju367v8w"}}},width:{values:{1:{defaultClass:"ju367v8x"},2:{defaultClass:"ju367v8y"},4:{defaultClass:"ju367v8z"},8:{defaultClass:"ju367v90"},12:{defaultClass:"ju367v91"},20:{defaultClass:"ju367v92"},24:{defaultClass:"ju367v93"},28:{defaultClass:"ju367v94"},30:{defaultClass:"ju367v95"},32:{defaultClass:"ju367v96"},34:{defaultClass:"ju367v97"},36:{defaultClass:"ju367v98"},40:{defaultClass:"ju367v99"},44:{defaultClass:"ju367v9a"},48:{defaultClass:"ju367v9b"},54:{defaultClass:"ju367v9c"},60:{defaultClass:"ju367v9d"},200:{defaultClass:"ju367v9e"},full:{defaultClass:"ju367v9f"},max:{defaultClass:"ju367v9g"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9h"}}}}}),O6={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},NO={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},IO="_12cbo8i3 ju367v8r",UO={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function ct({active:e,hover:t}){return[IO,t&&UO[t],NO[e]]}var S8=N.createContext(null);function zO(){const{adapter:e}=N.useContext(S8)??{};if(!e)throw new Error("No authentication adapter found");return e}function uf(){return N.useContext(S8)?.status??null}function jm(){const e=uf(),{isConnected:t}=qt();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function _8(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function LO(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function PO(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function Oi(){return LO()||PO()}function lt(){return _8()||Oi()}var qO="iekbcc0",FO={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},HO=({reset:e,...t})=>{if(!e)return Sp(t);const r=FO[e],o=Sp(t);return S3(qO,r,o)},M=E.forwardRef(({as:e="div",className:t,testId:r,...o},s)=>{const c={},u={};for(const p in o)Sp.properties.has(p)?c[p]=o[p]:u[p]=o[p];const f=HO({reset:typeof e=="string"?e:"div",...c});return E.createElement(e,{className:S3(f,t),...u,"data-testid":r?`rk-${r.replace(/^rk-/,"")}`:void 0,ref:s})});M.displayName="Box";var B8=new Map,dh=new Map;async function T8(e){const t=dh.get(e);if(t)return t;const r=async()=>e().then(async s=>(B8.set(e,s),s)),o=r().catch(s=>r().catch(c=>{dh.delete(e)}));return dh.set(e,o),o}async function rr(...e){return await Promise.all(e.map(t=>typeof t=="function"?T8(t):t))}function QO(){const[,e]=N.useReducer(t=>t+1,0);return e}function ff(e){const t=typeof e=="function"?B8.get(e):void 0,r=QO();return N.useEffect(()=>{typeof e=="function"&&!t&&T8(e).then(r)},[e,t,r]),typeof e=="function"?t:e}function wt({alt:e,background:t,borderColor:r,borderRadius:o,useAsImage:s,boxShadow:c,height:u,src:f,width:p,testId:h}){const g=Oi(),b=ff(f),m=b&&/^http/.test(b),[v,w]=N.useReducer(()=>!0,!1);return E.createElement(M,{"aria-label":e,borderRadius:o,boxShadow:c,height:typeof u=="string"?u:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof u=="number"?u:void 0,width:typeof p=="number"?p:void 0},width:typeof p=="string"?p:void 0,testId:h},E.createElement(M,{...m?{"aria-hidden":!0,as:"img",onLoad:w,src:b}:{"aria-hidden":!0,as:"img",src:b},height:"full",position:"absolute",...g?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!s&&m?{opacity:v?1:0}:{}},width:"full"}),r?E.createElement(M,{...typeof r=="object"&&"custom"in r?{style:{borderColor:r.custom}}:{borderColor:r},borderRadius:o,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var GO="_1luule42",VO="_1luule43",WO=e=>N.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),pc=({height:e=21,width:t=21})=>{const r=WO("spinner");return E.createElement("svg",{className:GO,fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Loading"),E.createElement("clipPath",{id:r},E.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),E.createElement("foreignObject",{clipPath:`url(#${r})`,height:"21",width:"21",x:"0",y:"0"},E.createElement("div",{className:VO})))},De=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],M6=[{color:De[0],emoji:"🌶"},{color:De[1],emoji:"🤑"},{color:De[2],emoji:"🐙"},{color:De[3],emoji:"🫐"},{color:De[4],emoji:"🐳"},{color:De[0],emoji:"🤶"},{color:De[5],emoji:"🌲"},{color:De[6],emoji:"🌞"},{color:De[7],emoji:"🐒"},{color:De[8],emoji:"🐵"},{color:De[9],emoji:"🦊"},{color:De[10],emoji:"🐼"},{color:De[11],emoji:"🦄"},{color:De[12],emoji:"🐷"},{color:De[13],emoji:"🐧"},{color:De[8],emoji:"🦩"},{color:De[14],emoji:"👽"},{color:De[0],emoji:"🎈"},{color:De[8],emoji:"🍉"},{color:De[1],emoji:"🎉"},{color:De[15],emoji:"🐲"},{color:De[16],emoji:"🌎"},{color:De[17],emoji:"🍊"},{color:De[18],emoji:"🐭"},{color:De[19],emoji:"🍣"},{color:De[1],emoji:"🐥"},{color:De[20],emoji:"👾"},{color:De[15],emoji:"🥦"},{color:De[0],emoji:"👹"},{color:De[17],emoji:"🙀"},{color:De[4],emoji:"⛱"},{color:De[21],emoji:"⛵️"},{color:De[17],emoji:"🥳"},{color:De[8],emoji:"🤯"},{color:De[22],emoji:"🤠"}];function $O(e){let t=0;if(e.length===0)return t;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t|=0}return t}function KO(e){const r=Math.abs($O((typeof e=="string"?e:"").toLowerCase())%M6.length);return M6[r??0]}var YO=({address:e,ensImage:t,size:r})=>{const[o,s]=N.useState(!1);N.useEffect(()=>{if(t){const f=new Image;f.src=t,f.onload=()=>s(!0)}},[t]);const{color:c,emoji:u}=N.useMemo(()=>KO(e),[e]);return t?o?E.createElement(M,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:r,width:r}}):E.createElement(M,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:r,width:r}},E.createElement(pc,null)):E.createElement(M,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:c},height:r,width:r}},u)},j8=YO,k8=N.createContext(j8);function O8({address:e,imageUrl:t,loading:r,size:o}){const s=N.useContext(k8);return E.createElement(M,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${o}px`,width:`${o}px`},userSelect:"none"},E.createElement(M,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(o*.55)}px`,height:`${o}px`,transform:r?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:r?void 0:".1s",width:`${o}px`,willChange:"transform"},userSelect:"none"},E.createElement(s,{address:e,ensImage:t,size:o})),r&&E.createElement(M,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},E.createElement(pc,{height:"100%",width:"100%"})))}var R6=()=>E.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Dropdown"),E.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),D6={defaultLocale:"en",locale:"en"},XO=class{constructor(e){this.listeners=new Set,this.defaultLocale=D6.defaultLocale,this.enableFallback=!1,this.locale=D6.locale,this.cachedLocales=[],this.translations={};for(const[t,r]of Object.entries(e))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(r,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){const r={},o=(s,c)=>{for(const u of Object.keys(s)){const f=`${c}.${u}`,p=s[u];typeof p=="object"&&p!==null?o(p,f):r[f]=p}};return o(e,t),r}translateWithReplacements(e,t={}){let r=e;for(const o in t){const s=t[o];r=r.replace(`%{${o}}`,s)}return r}t(e,t,r){const o=`${this.locale}.${e}`,s=this.translations[o];if(!s){if(this.enableFallback){const c=`${this.defaultLocale}.${e}`,u=this.translations[c];if(u)return this.translateWithReplacements(u,t)}return r?.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(s,t)}isLocaleCached(e){return this.cachedLocales.includes(e)}updateLocale(e){this.locale=e,this.notifyListeners()}setTranslations(e,t){this.isLocaleCached(e)||(this.cachedLocales=[...this.cachedLocales,e],this.translations={...this.translations,...this.flattenTranslation(t,e)}),this.locale=e,this.notifyListeners()}notifyListeners(){for(const e of this.listeners)e()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},Tn=new XO({en:JSON.parse(_h),"en-US":JSON.parse(_h)});Tn.defaultLocale="en-US";Tn.locale="en-US";Tn.enableFallback=!0;var ZO=async e=>{switch(e){case"ar":case"ar-AR":return(await de(async()=>{const{default:t}=await import("./ar_AR-CTNWGWSS-DlAFo0vZ.js");return{default:t}},[])).default;case"de":case"de-DE":return(await de(async()=>{const{default:t}=await import("./de_DE-P43L3PR7-pJRS3eyz.js");return{default:t}},[])).default;case"en":case"en-US":return(await de(async()=>{const{default:t}=await Promise.resolve().then(()=>fw);return{default:t}},void 0)).default;case"es":case"es-419":return(await de(async()=>{const{default:t}=await import("./es_419-JBX5FS3Q-Bk-MlIq_.js");return{default:t}},[])).default;case"fr":case"fr-FR":return(await de(async()=>{const{default:t}=await import("./fr_FR-CM2EDAQC-DvlCXiU9.js");return{default:t}},[])).default;case"hi":case"hi-IN":return(await de(async()=>{const{default:t}=await import("./hi_IN-GYVCUYRD-CQnOa8U_.js");return{default:t}},[])).default;case"id":case"id-ID":return(await de(async()=>{const{default:t}=await import("./id_ID-7ZWSMOOE-ZzIoBaiI.js");return{default:t}},[])).default;case"ja":case"ja-JP":return(await de(async()=>{const{default:t}=await import("./ja_JP-CGMP6VLZ-BBxPp4Hq.js");return{default:t}},[])).default;case"ko":case"ko-KR":return(await de(async()=>{const{default:t}=await import("./ko_KR-YCZDTF7X-4W342j3x.js");return{default:t}},[])).default;case"ms":case"ms-MY":return(await de(async()=>{const{default:t}=await import("./ms_MY-5LHAYMS7-BUU8UB2I.js");return{default:t}},[])).default;case"pt":case"pt-BR":return(await de(async()=>{const{default:t}=await import("./pt_BR-3JTS4PSK-Cou37HE0.js");return{default:t}},[])).default;case"ru":case"ru-RU":return(await de(async()=>{const{default:t}=await import("./ru_RU-6J6XERHI-BEDPqa1p.js");return{default:t}},[])).default;case"th":case"th-TH":return(await de(async()=>{const{default:t}=await import("./th_TH-STXOD4CR-DmwaGyKS.js");return{default:t}},[])).default;case"tr":case"tr-TR":return(await de(async()=>{const{default:t}=await import("./tr_TR-P7QAUUZU-DHzPxq5a.js");return{default:t}},[])).default;case"ua":case"uk-UA":return(await de(async()=>{const{default:t}=await import("./uk_UA-JTTBGJGQ-bEPIKyyu.js");return{default:t}},[])).default;case"vi":case"vi-VN":return(await de(async()=>{const{default:t}=await import("./vi_VN-5XUUAVWW-DvcbUvCZ.js");return{default:t}},[])).default;case"zh":case"zh-CN":case"zh-Hans":return(await de(async()=>{const{default:t}=await import("./zh_CN-RGMLPFEP-CPkk4IYh.js");return{default:t}},[])).default;case"zh-HK":return(await de(async()=>{const{default:t}=await import("./zh_HK-YM3T6EI5-BYHcXtXC.js");return{default:t}},[])).default;case"zh-Hant":case"zh-TW":return(await de(async()=>{const{default:t}=await import("./zh_TW-HAEH6VE5-r-nym7hs.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await Promise.resolve().then(()=>fw);return{default:t}},void 0)).default}};async function N6(e){if(Tn.isLocaleCached(e)){Tn.updateLocale(e);return}const r=await ZO(e);Tn.setTranslations(e,JSON.parse(r))}var JO=()=>{if(typeof window<"u"&&typeof navigator<"u"){if(navigator.languages?.length)return navigator.languages[0];if(navigator.language)return navigator.language}},ut=N.createContext({i18n:Tn}),eM=({children:e,locale:t})=>{const[r,o]=N.useState(0),s=N.useMemo(()=>JO(),[]);N.useEffect(()=>Tn.onChange(()=>{o(f=>f+1)}),[]),N.useEffect(()=>{t&&t!==Tn.locale?N6(t):!t&&s&&s!==Tn.locale&&N6(s)},[t,s]);const c=N.useMemo(()=>({t:(f,p)=>Tn.t(f,p),i18n:Tn}),[r]);return E.createElement(ut.Provider,{value:c},e)};function M8(e){return e!=null}var I6={iconBackground:"#7290CC",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./apechain-SX5YFU6N-q5qBv-mp.js");return{default:e}},[])).default},hh={iconBackground:"#96bedc",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./arbitrum-WURIBY6W-CqVkHBr5.js");return{default:e}},[])).default},U6={iconBackground:"#e84141",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./avalanche-KOMJD3XY-Dsn_JPR4.js");return{default:e}},[])).default},ph={iconBackground:"#0052ff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./base-OAXLRA4F-CoYTVIiL.js");return{default:e}},[])).default},mh={iconBackground:"#814625",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./berachain-NJECWIVC-DumxnFvf.js");return{default:e}},[])).default},z6={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./blast-V555OVXZ-BbhJh1tj.js");return{default:e}},[])).default},L6={iconBackground:"#ebac0e",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./bsc-N647EYR2-B2nLKXWV.js");return{default:e}},[])).default},P6={iconBackground:"#FCFF52",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./celo-GEP4TUHG-CenIBYLU.js");return{default:e}},[])).default},q6={iconBackground:"#002D74",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./cronos-HJPAQTAE-BEOvlOC4.js");return{default:e}},[])).default},tM={iconBackground:"#A36EFD",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./degen-FQQ4XGHB-CeHTs88l.js");return{default:e}},[])).default},la={iconBackground:"#484c50",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ethereum-RGGVA4PY-SWGOlkuk.js");return{default:e}},[])).default},F6={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./flow-5FQJFCTK-CUie2reO.js");return{default:e}},[])).default},nM={iconBackground:"#04795c",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./gnosis-37ZC4RBL-B137OtHZ.js");return{default:e}},[])).default},H6={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./gravity-J5YQHTYH-Bj6B0uod.js");return{default:e}},[])).default},rM={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./hardhat-TX56IT5N-CV1FY-wE.js");return{default:e}},[])).default},aM={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./hyperevm-VKPAA4SA-CHwraEsx.js");return{default:e}},[])).default},Q6={iconBackground:"#7132F5",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ink-FZMYZWHG-62p-5IK5.js");return{default:e}},[])).default},G6={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./kaia-65D2U3PU-JmuLQ4gC.js");return{default:e}},[])).default},gh={iconBackground:"#ffffff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./linea-QRMVQ5DY-DuI3vv0d.js");return{default:e}},[])).default},bh={iconBackground:"#ffffff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./manta-SI27YFEJ-CpVOKa06.js");return{default:e}},[])).default},V6={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./mantle-CKIUT334-DR2WgqzU.js");return{default:e}},[])).default},ou={iconBackground:"#ff5a57",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./optimism-HAF2GUT7-ec6Nqxs9.js");return{default:e}},[])).default},yh={iconBackground:"#9f71ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./polygon-WW6ZI7PM-DXlmm4L1.js");return{default:e}},[])).default},oM={iconBackground:"#1273EA",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ronin-EMCPYXZT-N-QBHZdV.js");return{default:e}},[])).default},iM={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./sanko-RHQYXGM5-OX010CbN.js");return{default:e}},[])).default},sM={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./superposition-HG6MMR2Y-bRkgatRO.js");return{default:e}},[])).default},W6={iconBackground:"#FFEEDA",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./scroll-5OBGQVOV-DJFECiai.js");return{default:e}},[])).default},$6={iconBackground:"#F50DB4",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./unichain-C5BWO2ZY-BfguYsnu.js");return{default:e}},[])).default},K6={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./xdc-KJ3TDBYO-DNV6zchh.js");return{default:e}},[])).default},Y6={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zetachain-TLDS5IPW-Udhyw16T.js");return{default:e}},[])).default},X6={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zksync-DH7HK5U4-Dt4usFw6.js");return{default:e}},[])).default},vh={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zora-FYL5H3IO-iB4wygST.js");return{default:e}},[])).default},cM={apechain:{chainId:33139,name:"ApeChain",...I6},apechainCurtis:{chainId:33111,name:"ApeChain Curtis",...I6},arbitrum:{chainId:42161,name:"Arbitrum",...hh},arbitrumGoerli:{chainId:421613,...hh},arbitrumSepolia:{chainId:421614,...hh},avalanche:{chainId:43114,...U6},avalancheFuji:{chainId:43113,...U6},base:{chainId:8453,name:"Base",...ph},baseGoerli:{chainId:84531,...ph},baseSepolia:{chainId:84532,...ph},berachain:{chainId:80094,name:"Berachain",...mh},berachainArtio:{chainId:80085,name:"Berachain Artio",...mh},berachainBArtio:{chainId:80084,name:"Berachain bArtio",...mh},blast:{chainId:81457,name:"Blast",...z6},blastSepolia:{chainId:168587773,...z6},bsc:{chainId:56,name:"BSC",...L6},bscTestnet:{chainId:97,...L6},celo:{chainId:42220,name:"Celo",...P6},celoAlfajores:{chainId:44787,name:"Celo Alfajores",...P6},cronos:{chainId:25,...q6},cronosTestnet:{chainId:338,...q6},degen:{chainId:666666666,name:"Degen",...tM},flow:{chainId:747,...F6},flowTestnet:{chainId:545,...F6},gnosis:{chainId:100,name:"Gnosis",...nM},goerli:{chainId:5,...la},gravity:{chainId:1625,name:"Gravity",...H6},gravitySepolia:{chainId:13505,name:"Gravity Sepolia",...H6},hardhat:{chainId:31337,...rM},holesky:{chainId:17e3,...la},hyperevm:{chainId:999,...aM},ink:{chainId:57073,...Q6},inkSepolia:{chainId:763373,...Q6},kaia:{chainId:8217,name:"Kaia",...G6},kairos:{chainId:1001,name:"Kairos",...G6},kovan:{chainId:42,...la},linea:{chainId:59144,name:"Linea",...gh},lineaGoerli:{chainId:59140,name:"Linea Goerli",...gh},lineaSepolia:{chainId:59141,name:"Linea Sepolia",...gh},localhost:{chainId:1337,...la},mainnet:{chainId:1,name:"Ethereum",...la},manta:{chainId:169,name:"Manta",...bh},mantaSepolia:{chainId:3441006,...bh},mantaTestnet:{chainId:3441005,...bh},mantle:{chainId:5e3,...V6},mantleTestnet:{chainId:5001,...V6},optimism:{chainId:10,name:"Optimism",...ou},optimismGoerli:{chainId:420,...ou},optimismKovan:{chainId:69,...ou},optimismSepolia:{chainId:11155420,...ou},polygon:{chainId:137,name:"Polygon",...yh},polygonAmoy:{chainId:80002,...yh},polygonMumbai:{chainId:80001,...yh},rinkeby:{chainId:4,...la},ronin:{chainId:2020,...oM},ropsten:{chainId:3,...la},sanko:{chainId:1996,name:"Sanko",...iM},scroll:{chainId:534352,...W6},scrollSepolia:{chainId:534351,...W6},sepolia:{chainId:11155111,...la},superposition:{chainId:55244,name:"Superposition",...sM},unichain:{chainId:130,...$6},unichainSepolia:{chainId:1301,...$6},xdc:{chainId:50,name:"XDC",...K6},xdcTestnet:{chainId:51,...K6},zetachain:{chainId:7e3,name:"ZetaChain",...Y6},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...Y6},zkSync:{chainId:324,name:"zkSync",...X6},zkSyncTestnet:{chainId:280,...X6},zora:{chainId:7777777,name:"Zora",...vh},zoraSepolia:{chainId:999999999,...vh},zoraTestnet:{chainId:999,...vh}},lM=Object.fromEntries(Object.values(cM).filter(M8).map(({chainId:e,...t})=>[e,t])),uM=e=>e.map(t=>{const r=lM[t.id]??{};return{...t,name:r.name??t.name,iconUrl:t.iconUrl??r.iconUrl,iconBackground:t.iconBackground??r.iconBackground}}),km=N.createContext({chains:[]});function fM({children:e,initialChain:t}){const{chains:r}=rt();return E.createElement(km.Provider,{value:N.useMemo(()=>({chains:uM(r),initialChainId:typeof t=="number"?t:t?.id}),[r,t])},e)}var ao=()=>N.useContext(km).chains,dM=()=>N.useContext(km).initialChainId,hM=()=>{const e=ao();return N.useMemo(()=>{const t={};for(const r of e)t[r.id]=r;return t},[e])},R8=N.createContext({showBalance:void 0,setShowBalance:()=>{}});function pM({children:e}){const[t,r]=N.useState();return E.createElement(R8.Provider,{value:{showBalance:t,setShowBalance:r}},e)}var D8=()=>N.useContext(R8);function mM(){const[e,t]=N.useState(!1);return N.useEffect(()=>(t(!0),()=>{t(!1)}),[]),N.useCallback(()=>e,[e])}function N8(){const e=ao(),t=Em.id;return e.some(o=>o.id===t)}function gM(e){const t=N8(),r=s=>{try{return Ak(s)}catch{}},{data:o}=Dj({chainId:Em.id,name:e?r(e):void 0,query:{enabled:t}});return o}async function Ua(e,t){if(t={headers:{},method:"get",...t,timeout:t.timeout??1e4},!e)throw new Error("rainbowFetch: Missing url argument");const r=new AbortController,o=setTimeout(()=>r.abort(),t.timeout),{body:s,params:c,headers:u,...f}=t,p=s&&typeof s=="object"?JSON.stringify(t.body):t.body,h=await fetch(`${e}${yM(c)}`,{...f,body:p,headers:{Accept:"application/json","Content-Type":"application/json",...u},signal:r.signal});clearTimeout(o);const g=await bM(h);if(h.ok){const{headers:v,status:w}=h;return{data:g,headers:v,status:w}}throw vM({requestBody:s,response:h,responseBody:typeof g=="string"?{error:g}:g})}function bM(e){return e.headers.get("Content-Type")?.startsWith("application/json")?e.json():e.text()}function yM(e){return e&&Object.keys(e).length?`?${new URLSearchParams(e)}`:""}function vM({requestBody:e,response:t,responseBody:r}){const o=r?.error||t?.statusText||"There was an error with the request.",s=new Error(o);return s.response=t,s.responseBody=r,s.requestBody=e,s}var wM=class{constructor(e={}){const{baseUrl:t="",...r}=e;this.baseUrl=t,this.opts=r}get(e,t){return Ua(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return Ua(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return Ua(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return Ua(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,r){return Ua(`${this.baseUrl}${e}`,{...this.opts,...r||{},body:t,method:"post"})}put(e,t,r){return Ua(`${this.baseUrl}${e}`,{...this.opts,...r||{},body:t,method:"put"})}patch(e,t,r){return Ua(`${this.baseUrl}${e}`,{...this.opts,...r||{},body:t,method:"patch"})}};function CM({baseUrl:e,headers:t,params:r,timeout:o}){return new wM({baseUrl:e,headers:t,params:r,timeout:o})}var EM=!!(typeof process<"u"&&typeof Ou<"u"&&Ou.RAINBOW_PROVIDER_API_KEY),AM=CM({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":typeof process<"u"&&typeof Ou<"u"&&Ou.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function xM(e,t,r={}){return[e,t,r]}function mu(e){return`rk-ens-name-${e}`}function SM(e){try{const t=e?JSON.parse(e):null;return typeof t=="object"?t:null}catch{return null}}function _M(e,t){if(!dn(e))return;const r=new Date,o=new Date(r.getTime()+180*6e4);localStorage.setItem(mu(e),JSON.stringify({ensName:t,expires:o.getTime()}))}function BM(e){const t=SM(localStorage.getItem(mu(e)));if(!t)return null;const{ensName:r,expires:o}=t;return typeof r!="string"||Number.isNaN(Number(o))||new Date().getTime()>Number(o)?(localStorage.removeItem(mu(e)),null):r}async function TM({address:e}){const t=BM(e);if(t)return t;const o=(await AM.get("/v1/resolve-ens",{params:{address:e}})).data.data;return o&&_M(e,o),o}function jM(e){const t=N8(),{data:r}=Nj({chainId:Em.id,address:e,query:{enabled:t}}),{data:o}=E3({queryKey:xM("address",e),queryFn:()=>TM({address:e}),enabled:!t&&!!e&&EM,staleTime:10*(60*1e3),retry:1});return r||o}function I8({address:e,includeBalance:t}){const r=jM(e),o=gM(r),{data:s}=A3({address:t?e:void 0});return{ensName:r,ensAvatar:o,balance:s}}function Om(){const{chain:e}=qt();return e?.id??null}var U8="rk-transactions";function kM(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function Z6(){return kM(typeof localStorage<"u"?localStorage.getItem(U8):null)}var OM=/^0x([A-Fa-f0-9]{64})$/;function MM(e){const t=[];return OM.test(e.hash)||t.push("Invalid transaction hash"),typeof e.description!="string"&&t.push("Transaction must have a description"),typeof e.confirmations<"u"&&(!Number.isInteger(e.confirmations)||e.confirmations<1)&&t.push("Transaction confirmations must be a positiver integer"),t}function RM({provider:e}){let t=Z6(),r=e;const o=new Set,s=new Set,c=new Map;function u(T){r=T}function f(T,_){return t[T]?.[_]??[]}function p(T,_,j){const k=MM(j);if(k.length>0)throw new Error(["Unable to add transaction",...k].join(`
`));m(T,_,D=>[{...j,status:"pending"},...D.filter(({hash:U})=>U!==j.hash)])}function h(T,_){m(T,_,()=>[])}function g(T,_,j,k){m(T,_,D=>D.map(U=>U.hash===j?{...U,status:k}:U))}async function b(T,_){await Promise.all(f(T,_).filter(j=>j.status==="pending").map(async j=>{const{confirmations:k,hash:D}=j,U=c.get(D);if(U)return await U;const Q=r.waitForTransactionReceipt({confirmations:k,hash:D,timeout:3e5}).then(({status:F})=>{c.delete(D),F!==void 0&&(g(T,_,D,F===0||F==="reverted"?"failed":"confirmed"),C(F))}).catch(()=>{g(T,_,D,"failed")});return c.set(D,Q),await Q}))}function m(T,_,j){t=Z6(),t[T]=t[T]??{};let k=0;const D=10,U=j(t[T][_]??[]).filter(({status:Q})=>Q==="pending"?!0:k++<=D);t[T][_]=U.length>0?U:void 0,v(),w(),b(T,_)}function v(){localStorage.setItem(U8,JSON.stringify(t))}function w(){for(const T of o)T()}function C(T){for(const _ of s)_(T)}function A(T){return o.add(T),()=>{o.delete(T)}}function B(T){return s.add(T),()=>{s.delete(T)}}return{addTransaction:p,clearTransactions:h,getTransactions:f,onTransactionStatus:B,onChange:A,setProvider:u,waitForPendingTransactions:b}}var J6,z8=E.createContext(null);function DM({children:e}){const t=Ij(),{address:r}=qt(),o=Om(),{refetch:s}=A3({address:r,query:{enabled:!1}}),[c]=E.useState(()=>J6??(J6=RM({provider:t}))),u=E.useCallback(f=>{f==="success"&&s()},[s]);return E.useEffect(()=>{c.setProvider(t)},[c,t]),E.useEffect(()=>{r&&o&&c.waitForPendingTransactions(r,o)},[c,r,o]),E.useEffect(()=>{if(c&&r&&o)return c.onTransactionStatus(u)},[c,r,o,u]),E.createElement(z8.Provider,{value:c},e)}function L8(){const e=E.useContext(z8);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function P8(){const e=L8(),{address:t}=qt(),r=Om(),[o,s]=N.useState(()=>e&&t&&r?e.getTransactions(t,r):[]);return N.useEffect(()=>{if(e&&t&&r)return s(e.getTransactions(t,r)),e.onChange(()=>{s(e.getTransactions(t,r))})},[e,t,r]),o}var ew=e=>typeof e=="function"?e():e;function NM(e,{extends:t}={}){const r={...C6(O6,ew(e))};if(!t)return r;const o=C6(O6,ew(t));return Object.fromEntries(Object.entries(r).filter(([c,u])=>u!==o[c]))}function tw(e,t={}){return Object.entries(NM(e,t)).map(([r,o])=>`${r}:${o.replace(/[:;{}</>]/g,"")};`).join("")}var q8={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},kc=N.createContext(q8),F8=N.createContext(!1);function IM(e,t){let r;return()=>{r&&clearTimeout(r),r=setTimeout(()=>{r=null,e()},t)}}var H8=()=>{const[e,t]=N.useState({height:void 0,width:void 0});return N.useEffect(()=>{const r=IM(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),e},Oc=N.createContext({connector:null,setConnector:()=>{}});function UM({children:e}){const[t,r]=N.useState(null);return E.createElement(Oc.Provider,{value:N.useMemo(()=>({connector:t,setConnector:r}),[t])},e)}var Mc={COMPACT:"compact",WIDE:"wide"},df=N.createContext(Mc.WIDE);function zM({children:e,modalSize:t}){const{width:r}=H8(),o=r&&r<DO,{connector:s}=N.useContext(Oc);return E.createElement(df.Provider,{value:o||s?Mc.COMPACT:t},e)}var Mm=N.createContext(!1),LM="rk-version";function PM({version:e}){localStorage.setItem(LM,e)}function qM(){const e=N.useCallback(()=>{PM({version:"2.2.8"})},[]);N.useEffect(()=>{e()},[e])}function FM(e,t){const r={};for(const o of e){const s=t(o);s&&(r[s]=o)}return r}function Rm(){return typeof navigator<"u"&&typeof navigator.userAgent<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function HM(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function Dm(){if(typeof navigator>"u")return"Browser";const e=navigator.userAgent?.toLowerCase();return navigator.brave?.isBrave?"Brave":e?.indexOf("edg/")>-1?"Edge":e?.indexOf("op")>-1?"Opera":HM()?"Arc":e?.indexOf("chrome")>-1?"Chrome":e?.indexOf("firefox")>-1?"Firefox":Rm()?"Safari":"Browser"}var QM=dO.UAParser(),{os:Nm}=QM;function GM(){return Nm.name==="Windows"}function VM(){return Nm.name==="Mac OS"}function WM(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(Nm.name)}function Im(){return GM()?"Windows":VM()?"macOS":WM()?"Linux":"Desktop"}var $M=e=>{const t=Dm();return{Arc:e?.downloadUrls?.chrome,Brave:e?.downloadUrls?.chrome,Chrome:e?.downloadUrls?.chrome,Edge:e?.downloadUrls?.edge||e?.downloadUrls?.chrome,Firefox:e?.downloadUrls?.firefox,Opera:e?.downloadUrls?.opera||e?.downloadUrls?.chrome,Safari:e?.downloadUrls?.safari,Browser:e?.downloadUrls?.browserExtension}[t]??e?.downloadUrls?.browserExtension},KM=e=>(Oi()?e?.downloadUrls?.ios:e?.downloadUrls?.android)??e?.downloadUrls?.mobile,YM=e=>{const t=Im();return{Windows:e?.downloadUrls?.windows,macOS:e?.downloadUrls?.macos,Linux:e?.downloadUrls?.linux,Desktop:e?.downloadUrls?.desktop}[t]??e?.downloadUrls?.desktop},Q8=(e,t)=>e.some(r=>r.id===t),XM=e=>!!e.isRainbowKitConnector,nw=e=>!!(!e.isRainbowKitConnector&&e.icon?.replace(/\n/g,"").startsWith("data:image")&&e.uid&&e.name),ZM=(e,t)=>e.id==="walletConnect"&&t?{...e,walletConnectModalConnector:t}:e,JM=({wallets:e,recentWallets:t})=>[...t,...e.filter(r=>!Q8(t,r.id))],G8="rk-recent";function eR(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function V8(){return typeof localStorage<"u"?eR(localStorage.getItem(G8)):[]}function tR(e){return[...new Set(e)]}function nR(e){const t=tR([e,...V8()]);localStorage.setItem(G8,JSON.stringify(t))}function mc(e=!1){const t=ao(),r=dM(),{connectAsync:o,connectors:s}=Mj(),c=s,{setIsWalletConnectModalOpen:u}=bC(),f=c.map(j=>({...j,...j.rkDetails||{}}));async function p(j){const k=await j.getChainId(),D=await o({chainId:r??t.find(({id:U})=>U===k)?.id??t[0]?.id,connector:j});return D&&nR(j.id),D}async function h(j){try{u(!0),await p(j),u(!1)}catch(k){const D=k.name==="UserRejectedRequestError"||k.message==="Connection request reset. Please try again.";if(u(!1),!D)throw k}}const g=async(j,k)=>{const D=await j.getProvider();return j.id==="coinbase"?D.qrUrl:new Promise(U=>D.once("display_uri",Q=>{U(k(Q))}))},b=f.find(j=>j.id==="walletConnect"&&j.isWalletConnectModalConnector),m=f.filter(nw).map(j=>({...j,groupIndex:0})),v=f.filter(XM).filter(j=>!j.isWalletConnectModalConnector).filter(j=>e?!m.some(D=>D.id===j.rdns):!0).map(j=>ZM(j,b)),w=[...m,...v],C=FM(w,j=>j.id),B=V8().map(j=>C[j]).filter(Boolean).slice(0,3),T=[],_=JM({wallets:w,recentWallets:B});for(const j of _){if(!j)continue;const k=nw(j),D=Q8(B,j.id);if(k){T.push({...j,iconUrl:j.icon,ready:!0,connect:()=>p(j),groupName:"Installed",recent:D});continue}T.push({...j,ready:j.installed??!0,connect:()=>p(j),desktopDownloadUrl:YM(j),extensionDownloadUrl:$M(j),groupName:j.groupName,mobileDownloadUrl:KM(j),getQrCodeUri:j.qrCode?.getUri?()=>g(j,j.qrCode.getUri):void 0,getDesktopUri:j.desktop?.getUri?()=>g(j,j.desktop.getUri):void 0,getMobileUri:j.mobile?.getUri?()=>g(j,j.mobile?.getUri):void 0,recent:D,showWalletConnectModal:j.walletConnectModalConnector?()=>h(j.walletConnectModalConnector):void 0})}return T}var W8=async()=>(await de(async()=>{const{default:e}=await import("./assets-Q6ZU7ZJ5-P8HioiAD.js");return{default:e}},[])).default,rR=()=>rr(W8),aR=()=>E.createElement(wt,{background:"#d0d5de",borderRadius:"10",height:"48",src:W8,width:"48"}),$8=async()=>(await de(async()=>{const{default:e}=await import("./login-UP3DZBGS-Db_wM5oQ.js");return{default:e}},[])).default,oR=()=>rr($8),iR=()=>E.createElement(wt,{background:"#d0d5de",borderRadius:"10",height:"48",src:$8,width:"48"}),me=E.forwardRef(({as:e="div",children:t,className:r,color:o,display:s,font:c="body",id:u,size:f="16",style:p,tabIndex:h,textAlign:g="inherit",weight:b="regular",testId:m},v)=>E.createElement(M,{as:e,className:r,color:o,display:s,fontFamily:c,fontSize:f,fontWeight:b,id:u,ref:v,style:p,tabIndex:h,textAlign:g,testId:m},t));me.displayName="Text";var sR={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function Pt({disabled:e=!1,href:t,label:r,onClick:o,rel:s="noreferrer noopener",size:c="medium",target:u="_blank",testId:f,type:p="primary"}){const h=p==="primary",g=c!=="large",b=lt(),m=e?"actionButtonSecondaryBackground":h?"accentColor":g?"actionButtonSecondaryBackground":null,{fontSize:v,height:w,paddingX:C,paddingY:A}=sR[c],B=!b||!g;return E.createElement(M,{...t?e?{}:{as:"a",href:t,rel:s,target:u}:{as:"button",type:"button"},onClick:e?void 0:o,...B?{borderColor:b&&!g&&!h?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&ct({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:C,paddingY:A,style:{willChange:"transform"},testId:f,textAlign:"center",transition:"transform",...m?{background:m}:{},...w?{height:w}:{}},E.createElement(me,{color:e?"modalTextSecondary":h?"accentColorForeground":"accentColor",size:v,weight:"bold"},r))}var cR=()=>lt()?E.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Close"),E.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):E.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Close"),E.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),to=({"aria-label":e="Close",onClose:t})=>{const r=lt();return E.createElement(M,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:r?"0":"1",className:ct({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:r?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:r?"30":"28"},E.createElement(cR,null))},K8=async()=>(await de(async()=>{const{default:e}=await import("./sign-A7IJEUT5-CGsRnPrd.js");return{default:e}},[])).default;function lR({onClose:e,onCloseModal:t}){const{i18n:r}=N.useContext(ut),[{status:o,...s},c]=E.useState({status:"idle"}),u=zO(),f=N.useCallback(async()=>{try{const w=await u.getNonce();c(C=>({...C,nonce:w}))}catch{c(w=>({...w,errorMessage:r.t("sign_in.message.preparing_error"),status:"idle"}))}},[u,r.t]),p=N.useRef(!1);E.useEffect(()=>{p.current||(p.current=!0,f())},[f]);const h=lt(),{address:g,chain:b}=qt(),{signMessageAsync:m}=Uj(),v=async()=>{try{const w=b?.id,{nonce:C}=s;if(!g||!w||!C)return;c(T=>({...T,errorMessage:void 0,status:"signing"}));const A=u.createMessage({address:g,chainId:w,nonce:C});let B;try{B=await m({message:A})}catch(T){return T instanceof Ue?c(_=>({..._,status:"idle"})):c(_=>({..._,errorMessage:r.t("sign_in.signature.signing_error"),status:"idle"}))}c(T=>({...T,status:"verifying"}));try{if(await u.verify({message:A,signature:B})){t();return}throw new Error}catch{return c(T=>({...T,errorMessage:r.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{c({errorMessage:r.t("sign_in.signature.oops_error"),status:"idle"})}};return E.createElement(M,{position:"relative"},E.createElement(M,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},E.createElement(to,{onClose:e})),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:h?"60px":"36px"}},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"6":"4",style:{maxWidth:h?320:280}},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"32":"16"},E.createElement(wt,{height:40,src:K8,width:40}),E.createElement(me,{color:"modalText",size:h?"20":"18",textAlign:"center",weight:"heavy"},r.t("sign_in.label"))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"16":"12"},E.createElement(me,{color:"modalTextSecondary",size:h?"16":"14",textAlign:"center"},r.t("sign_in.description")),o==="idle"&&s.errorMessage?E.createElement(me,{color:"error",size:h?"16":"14",textAlign:"center",weight:"bold"},s.errorMessage):null)),E.createElement(M,{alignItems:h?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},E.createElement(Pt,{disabled:!s.nonce||o==="signing"||o==="verifying",label:s.nonce?o==="signing"?r.t("sign_in.signature.waiting"):o==="verifying"?r.t("sign_in.signature.verifying"):r.t("sign_in.message.send"):r.t("sign_in.message.preparing"),onClick:v,size:h?"large":"medium",testId:"auth-message-button"}),h?E.createElement(Pt,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):E.createElement(M,{as:"button",borderRadius:"full",className:ct({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(me,{color:"closeButton",size:h?"16":"14",weight:"bold"},r.t("sign_in.message.cancel"))))))}function uR(){const e=ao(),t=mc(),r=uf()==="unauthenticated",o=N.useCallback(()=>{rr(...t.map(s=>s.iconUrl),...e.map(s=>s.iconUrl).filter(M8)),lt()||(rR(),oR()),r&&rr(K8)},[t,e,r]);N.useEffect(()=>{o()},[o])}var Y8="WALLETCONNECT_DEEPLINK_CHOICE";function fR({mobileUri:e,name:t}){localStorage.setItem(Y8,JSON.stringify({href:e.split("?")[0],name:t}))}function dR(){localStorage.removeItem(Y8)}var X8=N.createContext(void 0),_p="data-rk",Z8=e=>({[_p]:e||""}),hR=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${_p}="${e}"]`:`[${_p}]`},pR=()=>{const e=N.useContext(X8);return Z8(e)},mR=yw();function gR({appInfo:e,avatar:t,children:r,coolMode:o=!1,id:s,initialChain:c,locale:u,modalSize:f=Mc.WIDE,showRecentTransactions:p=!1,theme:h=mR}){if(uR(),qM(),u3({onDisconnect:dR}),typeof h=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const g=hR(s),b={...q8,...e},m=t??j8;return E.createElement(fM,{initialChain:c},E.createElement(UM,null,E.createElement(eM,{locale:u},E.createElement(F8.Provider,{value:o},E.createElement(zM,{modalSize:f},E.createElement(Mm.Provider,{value:p},E.createElement(DM,null,E.createElement(k8.Provider,{value:m},E.createElement(kc.Provider,{value:b},E.createElement(X8.Provider,{value:s},E.createElement(pM,null,E.createElement(kD,null,h?E.createElement("div",{...Z8(s)},E.createElement("style",{dangerouslySetInnerHTML:{__html:[`${g}{${tw("lightMode"in h?h.lightMode:h)}}`,"darkMode"in h?`@media(prefers-color-scheme:dark){${g}{${tw(h.darkMode,{extends:h.lightMode})}}}`:null].join("")}}),r):r))))))))))))}var bR="_9pm4ki5 ju367va ju367v15 ju367v8r",yR="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",rw=(e,t)=>{const r=e.querySelectorAll("button:not(:disabled), a[href]");r.length!==0&&r[t==="end"?r.length-1:0].focus()};function vR(e){const t=N.useRef(null);return N.useEffect(()=>{const r=document.activeElement;return()=>{r.focus?.()}},[]),N.useEffect(()=>{if(t.current){const r=t.current.querySelector("[data-auto-focus]");r?r.focus():t.current.focus()}},[]),E.createElement(E.Fragment,null,E.createElement("div",{onFocus:N.useCallback(()=>t.current&&rw(t.current,"end"),[]),tabIndex:0}),E.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),E.createElement("div",{onFocus:N.useCallback(()=>t.current&&rw(t.current,"start"),[]),tabIndex:0}))}var wR=e=>e.stopPropagation();function Mu({children:e,onClose:t,open:r,titleId:o}){N.useEffect(()=>{const h=g=>r&&g.key==="Escape"&&t();return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r,t]);const[s,c]=N.useState(!0);N.useEffect(()=>{c(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const u=N.useCallback(()=>t(),[t]),f=pR(),p=lt();return E.createElement(E.Fragment,null,r?xk.createPortal(E.createElement(E8,{enabled:s},E.createElement(M,{...f},E.createElement(M,{...f,alignItems:p?"flex-end":"center","aria-labelledby":o,"aria-modal":!0,className:yR,onClick:u,position:"fixed",role:"dialog"},E.createElement(vR,{className:bR,onClick:wR,role:"document"},e)))),document.body):null)}var CR="_1ckjpok7",ER="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",AR="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",xR="_1ckjpok6 ju367vq",SR="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",_R="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function Ru({bottomSheetOnMobile:e=!1,children:t,marginTop:r,padding:o="16",paddingBottom:s,wide:c=!1}){const u=lt(),p=N.useContext(df)===Mc.COMPACT;return E.createElement(M,{marginTop:r},E.createElement(M,{className:[c?u?_R:p?AR:SR:ER,u?xR:null,u&&e?CR:null].join(" ")},E.createElement(M,{padding:o,paddingBottom:s??o},t)))}var aw=["k","m","b","t"];function iu(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function J8(e){if(e<1)return iu(e,3);if(e<10**2)return iu(e,2);if(e<10**4)return new Intl.NumberFormat().format(Number.parseFloat(iu(e,1)));const t=10**1;let r=String(e);for(let o=aw.length-1;o>=0;o--){const s=10**((o+1)*3);if(s<=e){e=e*t/s/t,r=iu(e,1)+aw[o];break}}return r}function eC(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function tC(e){if(!e)return"";const t=e.split("."),r=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${r}`}var BR=()=>E.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Copied"),E.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),TR=()=>E.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Copy"),E.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),jR=()=>E.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Disconnect"),E.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function kR(){const e=L8(),{address:t}=qt(),r=Om();return N.useCallback(()=>{if(!t||!r)throw new Error("No address or chain ID found");e.clearTransactions(t,r)},[e,t,r])}var nC=e=>e?.blockExplorers?.default?.url,rC=()=>E.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Link"),E.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),OR=()=>E.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Cancel"),E.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),MR=()=>E.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Success"),E.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),RR=e=>{switch(e){case"pending":return pc;case"confirmed":return MR;case"failed":return OR;default:return pc}};function DR({tx:e}){const t=lt(),r=RR(e.status),o=e.status==="failed"?"error":"accentColor",{chain:s}=qt(),c=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",u=nC(s);return E.createElement(E.Fragment,null,E.createElement(M,{...u?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ct({active:"shrink"}),href:`${u}/tx/${e.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},E.createElement(M,{color:o},E.createElement(r,null)),E.createElement(M,{display:"flex",flexDirection:"column",gap:t?"3":"1"},E.createElement(M,null,E.createElement(me,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e?.description)),E.createElement(M,null,E.createElement(me,{color:e.status==="pending"?"modalTextSecondary":o,font:"body",size:"14",weight:t?"medium":"regular"},c)))),u&&E.createElement(M,{alignItems:"center",color:"modalTextDim",display:"flex"},E.createElement(rC,null))))}var NR=3;function IR({address:e}){const t=P8(),r=kR(),{chain:o}=qt(),s=nC(o),c=t.slice(0,NR),u=c.length>0,f=lt(),{appName:p}=N.useContext(kc),{i18n:h}=N.useContext(ut);return E.createElement(E.Fragment,null,E.createElement(M,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:f?"8":"18"},u&&E.createElement(M,{paddingBottom:f?"4":"0",paddingTop:"8",paddingX:f?"12":"6"},E.createElement(M,{display:"flex",justifyContent:"space-between"},E.createElement(me,{color:"modalTextSecondary",size:f?"16":"14",weight:"semibold"},h.t("profile.transactions.recent.title")),E.createElement(M,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},E.createElement(M,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:ct({active:"shrink"}),onClick:r,paddingX:f?"8":"12",paddingY:f?"4":"5",transition:"default",type:"button"},E.createElement(me,{color:"modalTextSecondary",size:f?"16":"14",weight:"semibold"},h.t("profile.transactions.clear.label")))))),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},u?c.map(g=>E.createElement(DR,{key:g.hash,tx:g})):E.createElement(E.Fragment,null,E.createElement(M,{padding:f?"12":"8"},E.createElement(me,{color:"modalTextDim",size:f?"16":"14",weight:f?"medium":"bold"},p?h.t("profile.transactions.description",{appName:p}):h.t("profile.transactions.description_fallback"))),f&&E.createElement(M,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),s&&E.createElement(M,{paddingBottom:"18",paddingX:f?"8":"18"},E.createElement(M,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ct({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${s}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...f?{paddingLeft:"12"}:{}},E.createElement(me,{color:"modalText",font:"body",size:f?"16":"14",weight:f?"semibold":"bold"},h.t("profile.explorer.label")),E.createElement(rC,null))))}function ow({action:e,icon:t,label:r,testId:o,url:s}){const c=lt();return E.createElement(M,{...s?{as:"a",href:s,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...c?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:ct({active:"shrinkSm",hover:c?void 0:"grow"}),display:"flex",onClick:e,padding:c?"6":"8",style:{willChange:"transform"},testId:o,transition:"default",width:"full"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},E.createElement(M,{color:"modalText",height:"max"},t),E.createElement(M,null,E.createElement(me,{color:"modalText",size:c?"12":"13",weight:"semibold"},r))))}function UR({address:e,ensAvatar:t,ensName:r,balance:o,onClose:s,onDisconnect:c}){const u=N.useContext(Mm),[f,p]=N.useState(!1),h=N.useCallback(()=>{e&&(navigator.clipboard.writeText(e),p(!0))},[e]);if(N.useEffect(()=>{if(f){const A=setTimeout(()=>{p(!1)},1500);return()=>clearTimeout(A)}},[f]),!e)return null;const g=r?tC(r):eC(e),b=o?.formatted,m=b?J8(Number.parseFloat(b)):void 0,v="rk_profile_title",w=lt(),{i18n:C}=N.useContext(ut);return E.createElement(E.Fragment,null,E.createElement(M,{display:"flex",flexDirection:"column"},E.createElement(M,{background:"profileForeground",padding:"16"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:w?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},E.createElement(M,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},E.createElement(to,{onClose:s}))," ",E.createElement(M,{marginTop:w?"24":"0"},E.createElement(O8,{address:e,imageUrl:t,size:w?82:74})),E.createElement(M,{display:"flex",flexDirection:"column",gap:w?"4":"0",textAlign:"center"},E.createElement(M,{textAlign:"center"},E.createElement(me,{as:"h1",color:"modalText",id:v,size:w?"20":"18",weight:"heavy"},g)),!!o&&E.createElement(M,{textAlign:"center"},E.createElement(me,{as:"h1",color:"modalTextSecondary",id:v,size:w?"16":"14",weight:"semibold"},m," ",o.symbol)))),E.createElement(M,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},E.createElement(ow,{action:h,icon:f?E.createElement(BR,null):E.createElement(TR,null),label:f?C.t("profile.copy_address.copied"):C.t("profile.copy_address.label")}),E.createElement(ow,{action:c,icon:E.createElement(jR,null),label:C.t("profile.disconnect.label"),testId:"disconnect-button"}))),u&&E.createElement(E.Fragment,null,E.createElement(M,{background:"generalBorder",height:"1",marginTop:"-1"}),E.createElement(M,null,E.createElement(IR,{address:e})))))}function zR({onClose:e,open:t}){const{address:r}=qt(),{balance:o,ensAvatar:s,ensName:c}=I8({address:r,includeBalance:t}),{disconnect:u}=ym();return r?E.createElement(E.Fragment,null,r&&E.createElement(Mu,{onClose:e,open:t,titleId:"rk_account_modal_title"},E.createElement(Ru,{bottomSheetOnMobile:!0,padding:"0"},E.createElement(UR,{address:r,ensAvatar:s,ensName:c,balance:o,onClose:e,onDisconnect:u})))):null}var LR=({size:e})=>E.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Disconnect"),E.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),PR="v9horb0",Um=E.forwardRef(({children:e,currentlySelected:t=!1,onClick:r,testId:o,...s},c)=>{const u=lt();return E.createElement(M,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:r,ref:c,testId:o,type:"button"},E.createElement(M,{borderRadius:"menuButton",className:[u?PR:void 0,!t&&ct({active:"shrink"})],padding:u?"8":"6",transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...s},e))});Um.displayName="MenuButton";var qR=({chainId:e,currentChainId:t,switchChain:r,chainIconSize:o,isLoading:s,src:c,name:u,iconBackground:f,idx:p})=>{const h=lt(),{i18n:g}=N.useContext(ut),b=ao(),m=t===e;return E.createElement(N.Fragment,null,E.createElement(Um,{currentlySelected:m,onClick:m?void 0:()=>r({chainId:e}),testId:`chain-option-${e}`},E.createElement(M,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:o},c&&E.createElement(M,{height:"full",marginRight:"8"},E.createElement(wt,{alt:u,background:f,borderRadius:"full",height:o,src:c,width:o,testId:`chain-option-${e}-icon`})),E.createElement("div",null,u??u)),m&&E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},E.createElement(me,{color:"accentColorForeground",size:"14",weight:"medium"},g.t("chains.connected")),E.createElement(M,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),s&&E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},E.createElement(me,{color:"modalText",size:"14",weight:"medium"},g.t("chains.confirm")),E.createElement(M,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),h&&p<b.length-1&&E.createElement(M,{background:"generalBorderDim",height:"1",marginX:"8"}))},FR=qR,HR="_18dqw9x0",QR="_18dqw9x1";function GR({onClose:e,open:t}){const{chainId:r}=qt(),{chains:o}=rt(),[s,c]=N.useState(null),{switchChain:u}=zj({mutation:{onMutate:({chainId:w})=>{c(w)},onSuccess:()=>{s&&c(null)},onError:()=>{s&&c(null)},onSettled:()=>{e()}}}),{i18n:f}=N.useContext(ut),{disconnect:p}=ym(),h="rk_chain_modal_title",g=lt(),b=o.some(w=>w.id===r),m=g?"36":"28",v=ao();return r?E.createElement(Mu,{onClose:e,open:t,titleId:h},E.createElement(Ru,{bottomSheetOnMobile:!0,paddingBottom:"0"},E.createElement(M,{display:"flex",flexDirection:"column",gap:"14"},E.createElement(M,{display:"flex",flexDirection:"row",justifyContent:"space-between"},g&&E.createElement(M,{width:"30"}),E.createElement(M,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},E.createElement(me,{as:"h1",color:"modalText",id:h,size:g?"20":"18",weight:"heavy"},f.t("chains.title"))),E.createElement(to,{onClose:e})),!b&&E.createElement(M,{marginX:"8",textAlign:g?"center":"left"},E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},f.t("chains.wrong_network"))),E.createElement(M,{className:g?QR:HR,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},v.map(({iconBackground:w,iconUrl:C,id:A,name:B},T)=>E.createElement(FR,{key:A,chainId:A,currentChainId:r,switchChain:u,chainIconSize:m,isLoading:s===A,src:C,name:B,iconBackground:w,idx:T})),!b&&E.createElement(E.Fragment,null,E.createElement(M,{background:"generalBorderDim",height:"1",marginX:"8"}),E.createElement(Um,{onClick:()=>p(),testId:"chain-option-disconnect"},E.createElement(M,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:m},E.createElement(M,{alignItems:"center",color:"error",height:m,justifyContent:"center",marginRight:"8"},E.createElement(LR,{size:Number(m)})),E.createElement("div",null,f.t("chains.disconnect"))))))))))):null}function VR(e,t){const r={};for(const o of e){const s=t(o);s&&(r[s]||(r[s]=[]),r[s].push(o))}return r}var zm=({children:e,href:t})=>E.createElement(M,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),Lm=({children:e})=>E.createElement(me,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function iw({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:r,learnMoreUrl:o}=N.useContext(kc),{i18n:s}=N.useContext(ut);return E.createElement(E.Fragment,null,E.createElement(M,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},E.createElement(M,{marginBottom:"10"},!e&&E.createElement(me,{color:"modalText",size:"18",weight:"heavy"},s.t("intro.title"))),E.createElement(M,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},E.createElement(M,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},E.createElement(aR,null)),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},s.t("intro.digital_asset.title")),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("intro.digital_asset.description")))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},E.createElement(M,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},E.createElement(iR,null)),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},s.t("intro.login.title")),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("intro.login.description"))))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},E.createElement(Pt,{label:s.t("intro.get.label"),onClick:t}),E.createElement(M,{as:"a",className:ct({active:"shrink",hover:"grow"}),display:"block",href:o,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(me,{color:"accentColor",size:"14",weight:"bold"},s.t("intro.learn_more.label")))),r&&!e&&E.createElement(M,{marginBottom:"8",marginTop:"12",textAlign:"center"},E.createElement(r,{Link:zm,Text:Lm}))))}var aC=()=>E.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Back"),E.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),WR=()=>E.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,"Info"),E.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),$R=({"aria-label":e="Info",onClick:t})=>{const r=lt();return E.createElement(M,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:r?"0":"1",className:ct({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:r?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:r?"30":"28"},E.createElement(WR,null))},oC=e=>{const t=N.useRef(null),r=N.useContext(F8),o=ff(e);return N.useEffect(()=>{if(r&&t.current&&o)return YR(t.current,o)},[r,o]),t},KR=()=>{const e="_rk_coolMode",t=document.getElementById(e);if(t)return t;const r=document.createElement("div");return r.setAttribute("id",e),r.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(r),r},sw=0;function YR(e,t){sw++;const r=[15,20,25,35,45],o=35;let s=[],c=!1,u=0,f=0;const p=KR();function h(){const j=r[Math.floor(Math.random()*r.length)],k=Math.random()*10,D=Math.random()*25,U=Math.random()*360,Q=Math.random()*35*(Math.random()<=.5?-1:1),F=f-j/2,ie=u-j/2,le=Math.random()<=.5?-1:1,ae=document.createElement("div");ae.innerHTML=`<img src="${t}" width="${j}" height="${j}" style="border-radius: 25%">`,ae.setAttribute("style",["position:absolute","will-change:transform",`top:${F}px`,`left:${ie}px`,`transform:rotate(${U}deg)`].join(";")),p.appendChild(ae),s.push({direction:le,element:ae,left:ie,size:j,speedHorz:k,speedUp:D,spinSpeed:Q,spinVal:U,top:F})}function g(){for(const j of s)j.left=j.left-j.speedHorz*j.direction,j.top=j.top-j.speedUp,j.speedUp=Math.min(j.size,j.speedUp-1),j.spinVal=j.spinVal+j.spinSpeed,j.top>=Math.max(window.innerHeight,document.body.clientHeight)+j.size&&(s=s.filter(k=>k!==j),j.element.remove()),j.element.setAttribute("style",["position:absolute","will-change:transform",`top:${j.top}px`,`left:${j.left}px`,`transform:rotate(${j.spinVal}deg)`].join(";"))}let b;function m(){c&&s.length<o&&h(),g(),b=requestAnimationFrame(m)}m();const v="ontouchstart"in window||navigator.msMaxTouchPoints,w=v?"touchstart":"mousedown",C=v?"touchend":"mouseup",A=v?"touchmove":"mousemove",B=j=>{"touches"in j?(u=j.touches?.[0].clientX,f=j.touches?.[0].clientY):(u=j.clientX,f=j.clientY)},T=j=>{B(j),c=!0},_=()=>{c=!1};return e.addEventListener(A,B,{passive:!1}),e.addEventListener(w,T),e.addEventListener(C,_),e.addEventListener("mouseleave",_),()=>{e.removeEventListener(A,B),e.removeEventListener(w,T),e.removeEventListener(C,_),e.removeEventListener("mouseleave",_);const j=setInterval(()=>{b&&s.length===0&&(cancelAnimationFrame(b),clearInterval(j),--sw===0&&p.remove())},500)}}var XR="g5kl0l0",iC=({as:e="button",currentlySelected:t=!1,iconBackground:r,iconUrl:o,name:s,onClick:c,ready:u,recent:f,testId:p,isRainbowKitConnector:h,...g})=>{const b=oC(o),[m,v]=E.useState(!1),{i18n:w}=E.useContext(ut);return E.createElement(M,{display:"flex",flexDirection:"column",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),ref:b},E.createElement(M,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[XR,ct({active:"shrink"})],disabled:t,onClick:c,padding:"5",style:{willChange:"transform"},testId:p,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...g},E.createElement(M,{color:t?"accentColorForeground":"modalText",disabled:!u,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},E.createElement(wt,{background:r,...!m&&h?{borderColor:"actionButtonBorder"}:{},useAsImage:!h,borderRadius:"6",height:"28",src:o,width:"28"}),E.createElement(M,null,E.createElement(M,{style:{marginTop:f?-2:void 0},maxWidth:"200"},s),f&&E.createElement(me,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},w.t("connect.recent")))))))};iC.displayName="ModalSelection";var ZR="rk-latest-id";function JR(e){localStorage.setItem(ZR,e)}var wh=(e,t=1)=>{let r=e.replace("#","");r.length===3&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`);const o=Number.parseInt(r.substring(0,2),16),s=Number.parseInt(r.substring(2,4),16),c=Number.parseInt(r.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${o},${s},${c},${t})`},eD=e=>e?[wh(e,.2),wh(e,.14),wh(e,.1)]:null,tD=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),sC=async()=>(await de(async()=>{const{default:e}=await import("./connect-UA7M4XW6-IY3X6Bmr.js");return{default:e}},[])).default,nD=()=>rr(sC),rD=()=>E.createElement(wt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:sC,width:"48"}),cC=async()=>(await de(async()=>{const{default:e}=await import("./create-FASO7PVG-D_rvSpre.js");return{default:e}},[])).default,lC=()=>rr(cC),aD=()=>E.createElement(wt,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:cC,width:"48"}),uC=async()=>(await de(async()=>{const{default:e}=await import("./refresh-S4T5V5GX-CwqIaaxK.js");return{default:e}},[])).default,oD=()=>rr(uC),iD=()=>E.createElement(wt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:uC,width:"48"}),fC=async()=>(await de(async()=>{const{default:e}=await import("./scan-4UYSQ56Q-CjMz6-XC.js");return{default:e}},[])).default,dC=()=>rr(fC),sD=()=>E.createElement(wt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:fC,width:"48"}),cD="_1vwt0cg0",lD="_1vwt0cg2 ju367v7a ju367v7v",uD="_1vwt0cg3",fD="_1vwt0cg4";function hC({ecc:e="medium",logoBackground:t,logoSize:r=50,logoUrl:o,size:s=200,uri:c}){const f=s-Number.parseInt("20",10)*2,p=ff(o);return E.createElement(M,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:cD,padding:"20",width:"max"},E.createElement(M,{style:{height:f,userSelect:"none",width:f},userSelect:"none"},E.createElement($n.Root,{errorCorrection:e,size:f,value:c},E.createElement($n.Cells,{radius:1}),E.createElement($n.Finder,{radius:.25}),p&&E.createElement($n.Arena,null,E.createElement("img",{alt:"Wallet Logo",src:p,style:{objectFit:"cover",height:"88%",width:"88%",borderRadius:"22.5%",backgroundColor:t}})))))}var pC=async()=>{switch(Dm()){case"Arc":return(await de(async()=>{const{default:t}=await import("./Arc-VDBY7LNS-BChRXCXW.js");return{default:t}},[])).default;case"Brave":return(await de(async()=>{const{default:t}=await import("./Brave-BRAKJXDS-mq-Xo37j.js");return{default:t}},[])).default;case"Chrome":return(await de(async()=>{const{default:t}=await import("./Chrome-65Q5P54Y-DR9MQEVr.js");return{default:t}},[])).default;case"Edge":return(await de(async()=>{const{default:t}=await import("./Edge-XSPUTORV-DEoZslQE.js");return{default:t}},[])).default;case"Firefox":return(await de(async()=>{const{default:t}=await import("./Firefox-AAHGJQIP-Bp_Hm04m.js");return{default:t}},[])).default;case"Opera":return(await de(async()=>{const{default:t}=await import("./Opera-KQZLSACL-Cwv5MDFy.js");return{default:t}},[])).default;case"Safari":return(await de(async()=>{const{default:t}=await import("./Safari-ZPL37GXR-C4Ggg6rz.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await import("./Browser-76IHF3Y2-BMhRaC5Z.js");return{default:t}},[])).default}},dD=()=>rr(pC),mC=async()=>{switch(Im()){case"Windows":return(await de(async()=>{const{default:t}=await import("./Windows-PPTHQER6-BlyV2p7Y.js");return{default:t}},[])).default;case"macOS":return(await de(async()=>{const{default:t}=await import("./Macos-MW4AE7LN-Vvm8Drw3.js");return{default:t}},[])).default;case"Linux":return(await de(async()=>{const{default:t}=await import("./Linux-OO4TNCLJ-B0aw93n9.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await import("./Linux-OO4TNCLJ-B0aw93n9.js");return{default:t}},[])).default}},hD=()=>rr(mC);function pD({getWalletDownload:e,compactModeEnabled:t}){const o=mc().filter(c=>c.isRainbowKitConnector).splice(0,5),{i18n:s}=N.useContext(ut);return E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},o?.filter(c=>c.extensionDownloadUrl||c.desktopDownloadUrl||c.qrCode&&c.downloadUrls?.qrCode).map(c=>{const{downloadUrls:u,iconBackground:f,iconUrl:p,id:h,name:g,qrCode:b}=c,m=u?.qrCode&&b,v=!!c.extensionDownloadUrl,w=u?.qrCode&&v,C=u?.qrCode&&!!c.desktopDownloadUrl;return E.createElement(M,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:c.id,width:"full"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},E.createElement(wt,{background:f,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:p,width:"48"}),E.createElement(M,{display:"flex",flexDirection:"column",gap:"2"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},g),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},w?s.t("get.mobile_and_extension.description"):C?s.t("get.mobile_and_desktop.description"):m?s.t("get.mobile.description"):v?s.t("get.extension.description"):null))),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(Pt,{label:s.t("get.action.label"),onClick:()=>e(h),type:"secondary"})))})),E.createElement(M,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},s.t("get.looking_for.title")),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},t?s.t("get.looking_for.desktop.compact_description"):s.t("get.looking_for.desktop.wide_description"))))}var Ch="44";function mD({changeWalletStep:e,compactModeEnabled:t,connectionError:r,onClose:o,qrCodeUri:s,reconnect:c,wallet:u}){const{downloadUrls:f,iconBackground:p,iconUrl:h,name:g,qrCode:b,ready:m,showWalletConnectModal:v,getDesktopUri:w}=u,C=!!w,A=Rm(),{i18n:B}=N.useContext(ut),T=!!u.extensionDownloadUrl,_=f?.qrCode&&T,j=f?.qrCode&&!!u.desktopDownloadUrl,k=b&&s,D=async()=>{const ie=await w?.();window.open(ie,A?"_blank":"_self")},U=v?{description:t?B.t("connect.walletconnect.description.compact"):B.t("connect.walletconnect.description.full"),label:B.t("connect.walletconnect.open.label"),onClick:()=>{o(),v()}}:k?{description:B.t("connect.secondary_action.get.description",{wallet:g}),label:B.t("connect.secondary_action.get.label"),onClick:()=>e(_||j?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:Q}=H8(),F=Q&&Q<768;return N.useEffect(()=>{dD(),hD()},[]),E.createElement(M,{display:"flex",flexDirection:"column",height:"full",width:"full"},k?E.createElement(M,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},E.createElement(hC,{logoBackground:p,logoSize:t?60:72,logoUrl:h,size:t?318:F?Math.max(280,Math.min(Q-308,382)):382,uri:s})):E.createElement(M,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},E.createElement(M,{borderRadius:"10",height:Ch,overflow:"hidden"},E.createElement(wt,{useAsImage:!u.isRainbowKitConnector,height:Ch,src:h,width:Ch})),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},E.createElement(me,{color:"modalText",size:"18",weight:"bold"},m?B.t("connect.status.opening",{wallet:g}):T?B.t("connect.status.not_installed",{wallet:g}):B.t("connect.status.not_available",{wallet:g})),!m&&T?E.createElement(M,{paddingTop:"20"},E.createElement(Pt,{href:u.extensionDownloadUrl,label:B.t("connect.secondary_action.install.label"),type:"secondary"})):null,m&&!k&&E.createElement(E.Fragment,null,E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},E.createElement(me,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},B.t("connect.status.confirm"))),E.createElement(M,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},r?E.createElement(Pt,{label:B.t("connect.secondary_action.retry.label"),onClick:async()=>{C&&D(),c(u)}}):E.createElement(M,{color:"modalTextSecondary"},E.createElement(pc,null))))))),E.createElement(M,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},m&&U&&E.createElement(E.Fragment,null,E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},U.description),E.createElement(Pt,{label:U.label,onClick:U.onClick,type:"secondary"}))))}var Eh=({actionLabel:e,description:t,iconAccent:r,iconBackground:o,iconUrl:s,isCompact:c,onAction:u,title:f,url:p,variant:h})=>{const g=h==="browser",b=!g&&r&&eD(r);return E.createElement(M,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:c?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},E.createElement(M,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),g&&E.createElement(M,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},E.createElement(M,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},E.createElement(M,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},E.createElement(wt,{borderRadius:"full",height:"200",src:s,width:"200"})),E.createElement(M,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},E.createElement(wt,{borderRadius:"full",height:"200",src:s,width:"200"})))),!g&&b&&E.createElement(M,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},E.createElement(M,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${b[0]} 0%, ${b[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),E.createElement(M,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${b[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),E.createElement(M,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},E.createElement(M,null,E.createElement(wt,{height:"60",src:s,width:"60",...o?{background:o,borderColor:"generalBorder",borderRadius:"10"}:null})),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},f),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},t),E.createElement(M,{marginTop:"14",width:"max"},E.createElement(Pt,{href:p,label:e,onClick:u,size:"medium"})))))};function gD({changeWalletStep:e,wallet:t}){const r=Dm(),o=Im(),c=N.useContext(df)==="compact",{desktop:u,desktopDownloadUrl:f,extension:p,extensionDownloadUrl:h,mobileDownloadUrl:g}=t,{i18n:b}=N.useContext(ut);return N.useEffect(()=>{lC(),dC(),oD(),nD()},[]),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},h&&E.createElement(Eh,{actionLabel:b.t("get_options.extension.download.label",{browser:r}),description:b.t("get_options.extension.description"),iconUrl:pC,isCompact:c,onAction:()=>e(p?.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:b.t("get_options.extension.title",{wallet:t.name,browser:r}),url:h,variant:"browser"}),f&&E.createElement(Eh,{actionLabel:b.t("get_options.desktop.download.label",{platform:o}),description:b.t("get_options.desktop.description"),iconUrl:mC,isCompact:c,onAction:()=>e(u?.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:b.t("get_options.desktop.title",{wallet:t.name,platform:o}),url:f,variant:"desktop"}),g&&E.createElement(Eh,{actionLabel:b.t("get_options.mobile.download.label",{wallet:t.name}),description:b.t("get_options.mobile.description"),iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:c,onAction:()=>{e("DOWNLOAD")},title:b.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function bD({changeWalletStep:e,wallet:t}){const{downloadUrls:r,qrCode:o}=t,{i18n:s}=N.useContext(ut);return N.useEffect(()=>{lC(),dC()},[]),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},E.createElement(M,{style:{maxWidth:220,textAlign:"center"}},E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"semibold"},s.t("get_mobile.description"))),E.createElement(M,{height:"full"},r?.qrCode?E.createElement(hC,{logoSize:0,size:268,uri:r.qrCode}):null),E.createElement(M,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},E.createElement(Pt,{label:s.t("get_mobile.continue.label"),onClick:()=>e(o?.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Pm={connect:()=>E.createElement(rD,null),create:()=>E.createElement(aD,null),install:e=>E.createElement(wt,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>E.createElement(iD,null),scan:()=>E.createElement(sD,null)};function yD({connectWallet:e,wallet:t}){const{i18n:r}=N.useContext(ut);return E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},E.createElement(M,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},t?.qrCode?.instructions?.steps.map((o,s)=>E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},E.createElement(M,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},Pm[o.step]?.(t)),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},r.t(o.title,void 0,{rawKeyIfTranslationMissing:!0})),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t(o.description,void 0,{rawKeyIfTranslationMissing:!0})))))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},E.createElement(Pt,{label:r.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),E.createElement(M,{as:"a",className:ct({active:"shrink",hover:"grow"}),display:"block",href:t?.qrCode?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(me,{color:"accentColor",size:"14",weight:"bold"},r.t("get_instructions.mobile.learn_more.label")))))}function vD({wallet:e}){const{i18n:t}=N.useContext(ut);return E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},E.createElement(M,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},e?.extension?.instructions?.steps.map((r,o)=>E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:o},E.createElement(M,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},Pm[r.step]?.(e)),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},t.t(r.title,void 0,{rawKeyIfTranslationMissing:!0})),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},t.t(r.description,void 0,{rawKeyIfTranslationMissing:!0})))))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},E.createElement(Pt,{label:t.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),E.createElement(M,{as:"a",className:ct({active:"shrink",hover:"grow"}),display:"block",href:e?.extension?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(me,{color:"accentColor",size:"14",weight:"bold"},t.t("get_instructions.extension.learn_more.label")))))}function wD({connectWallet:e,wallet:t}){const{i18n:r}=N.useContext(ut);return E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},E.createElement(M,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},t?.desktop?.instructions?.steps.map((o,s)=>E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},E.createElement(M,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},Pm[o.step]?.(t)),E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(me,{color:"modalText",size:"14",weight:"bold"},r.t(o.title,void 0,{rawKeyIfTranslationMissing:!0})),E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t(o.description,void 0,{rawKeyIfTranslationMissing:!0})))))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},E.createElement(Pt,{label:r.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),E.createElement(M,{as:"a",className:ct({active:"shrink",hover:"grow"}),display:"block",href:t?.desktop?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(me,{color:"accentColor",size:"14",weight:"bold"},r.t("get_instructions.desktop.learn_more.label")))))}function CD({onClose:e}){const t="rk_connect_title",[r,o]=N.useState(),[s,c]=N.useState(),[u,f]=N.useState(),p=!!s?.qrCode&&u,[h,g]=N.useState(!1),m=N.useContext(df)===Mc.COMPACT,{disclaimer:v}=N.useContext(kc),{i18n:w}=N.useContext(ut),C=Rm(),A=N.useRef(!1),{connector:B}=N.useContext(Oc),_=mc(!B).filter(te=>te.ready||!!te.extensionDownloadUrl).sort((te,ue)=>te.groupIndex-ue.groupIndex),j=mc(),k=VR(_,te=>te.groupName),D=["Recommended","Other","Popular","More","Others","Installed"];N.useEffect(()=>{B&&!A.current&&(L("CONNECT"),ie(B),A.current=!0)},[B]);const U=te=>{g(!1),te.ready&&te?.connect?.()?.catch(()=>{g(!0)})},Q=async te=>{const ue=_.find(fe=>te.id===fe.id);ue?.getDesktopUri&&setTimeout(async()=>{const fe=await ue?.getDesktopUri?.();fe&&window.open(fe,C?"_blank":"_self")},0)},F=async te=>{const ue=_.find(ye=>te.id===ye.id),fe=await ue?.getQrCodeUri?.();f(fe),setTimeout(()=>{c(ue),L("CONNECT")},fe?0:50)},ie=async te=>{JR(te.id),te.ready&&(F(te),Q(te)),U(te),o(te.id),te.ready||(c(te),L(te?.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},le=te=>{const ue=j.find(Me=>te===Me.id),fe=ue?.downloadUrls?.qrCode,ye=!!ue?.desktopDownloadUrl,Ae=!!ue?.extensionDownloadUrl;c(ue),L(fe&&(Ae||ye)?"DOWNLOAD_OPTIONS":fe?"DOWNLOAD":ye?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},ae=()=>{o(void 0),c(void 0),f(void 0)},L=(te,ue=!1)=>{ue&&te==="GET"&&V==="GET"?ae():!ue&&te==="GET"?$("GET"):!ue&&te==="CONNECT"&&$("CONNECT"),Y(te)},[V,$]=N.useState("NONE"),[I,Y]=N.useState("NONE");let q=null,oe=null,O=null,G;N.useEffect(()=>{g(!1)},[I,s]);const ce=!!(!!s?.extensionDownloadUrl&&s?.mobileDownloadUrl);switch(I){case"NONE":q=E.createElement(iw,{getWallet:()=>L("GET")});break;case"LEARN_COMPACT":q=E.createElement(iw,{compactModeEnabled:m,getWallet:()=>L("GET")}),oe=w.t("intro.title"),O="NONE";break;case"GET":q=E.createElement(pD,{getWalletDownload:le,compactModeEnabled:m}),oe=w.t("get.title"),O=m?"LEARN_COMPACT":"NONE";break;case"CONNECT":q=s&&E.createElement(mD,{changeWalletStep:L,compactModeEnabled:m,connectionError:h,onClose:e,qrCodeUri:u,reconnect:U,wallet:s}),oe=p&&(s.name==="WalletConnect"?w.t("connect_scan.fallback_title"):w.t("connect_scan.title",{wallet:s.name})),O=m?B?null:"NONE":null,G=m?B?()=>{}:ae:()=>{};break;case"DOWNLOAD_OPTIONS":q=s&&E.createElement(gD,{changeWalletStep:L,wallet:s}),oe=s&&w.t("get_options.short_title",{wallet:s.name}),O=B?"CONNECT":m?"NONE":V;break;case"DOWNLOAD":q=s&&E.createElement(bD,{changeWalletStep:L,wallet:s}),oe=s&&w.t("get_mobile.title",{wallet:s.name}),O=ce?"DOWNLOAD_OPTIONS":V;break;case"INSTRUCTIONS_MOBILE":q=s&&E.createElement(yD,{connectWallet:ie,wallet:s}),oe=s&&w.t("get_options.title",{wallet:m&&s.shortName||s.name}),O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":q=s&&E.createElement(vD,{wallet:s}),oe=s&&w.t("get_options.title",{wallet:m&&s.shortName||s.name}),O="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":q=s&&E.createElement(wD,{connectWallet:ie,wallet:s}),oe=s&&w.t("get_options.title",{wallet:m&&s.shortName||s.name}),O="DOWNLOAD_OPTIONS";break}return E.createElement(M,{display:"flex",flexDirection:"row",style:{maxHeight:m?468:504}},(m?I==="NONE":!0)&&E.createElement(M,{className:m?fD:uD,display:"flex",flexDirection:"column",marginTop:"16"},E.createElement(M,{display:"flex",justifyContent:"space-between"},m&&v&&E.createElement(M,{marginLeft:"16",width:"28"},E.createElement($R,{onClick:()=>L("LEARN_COMPACT")})),m&&!v&&E.createElement(M,{marginLeft:"16",width:"28"}),E.createElement(M,{marginLeft:m?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},E.createElement(me,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},w.t("connect.title"))),m&&E.createElement(M,{marginRight:"16"},E.createElement(to,{onClose:e}))),E.createElement(M,{className:lD,paddingBottom:"18"},Object.entries(k).map(([te,ue],fe)=>ue.length>0&&E.createElement(N.Fragment,{key:fe},te?E.createElement(M,{marginBottom:"8",marginTop:"16",marginX:"6"},E.createElement(me,{color:te==="Installed"?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},D.includes(te)?w.t(`connector_group.${te.toLowerCase()}`):te)):null,E.createElement(M,{display:"flex",flexDirection:"column",gap:"4"},ue.map(ye=>E.createElement(iC,{currentlySelected:ye.id===r,iconBackground:ye.iconBackground,iconUrl:ye.iconUrl,key:ye.id,name:ye.name,onClick:()=>ie(ye),ready:ye.ready,recent:ye.recent,testId:`wallet-option-${ye.id}`,isRainbowKitConnector:ye.isRainbowKitConnector})))))),m&&E.createElement(E.Fragment,null,E.createElement(M,{background:"generalBorder",height:"1",marginTop:"-1"}),v?E.createElement(M,{paddingX:"24",paddingY:"16",textAlign:"center"},E.createElement(v,{Link:zm,Text:Lm})):E.createElement(M,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},E.createElement(M,{paddingY:"4"},E.createElement(me,{color:"modalTextSecondary",size:"14",weight:"medium"},w.t("connect.new_to_ethereum.description"))),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},E.createElement(M,{className:ct({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>L("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},E.createElement(me,{color:"accentColor",size:"14",weight:"bold"},w.t("connect.new_to_ethereum.learn_more.label"))))))),(m?I!=="NONE":!0)&&E.createElement(E.Fragment,null,!m&&E.createElement(M,{background:"generalBorder",minWidth:"1",width:"1"}),E.createElement(M,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},E.createElement(M,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},E.createElement(M,{width:"28"},O&&E.createElement(M,{as:"button",className:ct({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&L(O,!0),G?.()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},E.createElement(aC,null))),E.createElement(M,{display:"flex",justifyContent:"center",style:{flexGrow:1}},oe&&E.createElement(me,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},oe)),E.createElement(to,{onClose:e})),E.createElement(M,{display:"flex",flexDirection:"column",style:{minHeight:m?396:432}},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},q)))))}var ED="_1am14412",AD="_1am14410",xD="_1am14413",SD=({wallet:e})=>E.createElement("svg",{className:xD,viewBox:"0 0 86 86",width:"86",height:"86"},E.createElement("title",null,"Loading"),E.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${320/3}`,strokeDashoffset:160,className:ED,style:{stroke:e?.iconAccent||"#0D3887"}}));function gC({onClose:e,wallet:t,connecting:r}){const{connect:o,iconBackground:s,iconUrl:c,id:u,name:f,getMobileUri:p,ready:h,shortName:g,showWalletConnectModal:b}=t,m=oC(c),v=N.useRef(!1),{i18n:w}=N.useContext(ut),C=N.useCallback(async()=>{if(u!=="walletConnect"&&(async()=>{const B=await p?.();if(B)if(B&&fR({mobileUri:B,name:f}),B.startsWith("http")){const T=document.createElement("a");T.href=B,T.target="_blank",T.rel="noreferrer noopener",T.click()}else window.location.href=B})(),b){b(),e?.();return}try{await o?.()}catch{}},[o,p,b,e,f,u]);return N.useEffect(()=>{r&&!v.current&&(C(),v.current=!0)},[r,C]),E.createElement(M,{as:"button",color:h?"modalText":"modalTextSecondary",disabled:!h,fontFamily:"body",key:u,onClick:C,ref:m,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${u}`,type:"button",width:"full"},E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},E.createElement(M,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},r?E.createElement(SD,{wallet:t}):null,E.createElement(wt,{background:s,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:c,width:"60"})),r?null:E.createElement(M,{display:"flex",flexDirection:"column",textAlign:"center"},E.createElement(me,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},E.createElement(M,{as:"span",position:"relative"},g??f,!t.ready&&" (unsupported)")),t.recent&&E.createElement(me,{color:"accentColor",size:"12",weight:"medium"},w.t("connect.recent")))))}function _D({onClose:e}){const t="rk_connect_title",r=mc().filter(v=>v.isRainbowKitConnector),{disclaimer:o,learnMoreUrl:s}=N.useContext(kc);let c=null,u=null,f=!1,p=null;const[h,g]=N.useState("CONNECT"),{i18n:b}=N.useContext(ut),m=Oi();switch(h){case"CONNECT":{c=b.t("connect.title"),f=!0,u=E.createElement(M,null,E.createElement(M,{background:"profileForeground",className:AD,display:"flex",paddingBottom:"20",paddingTop:"6"},E.createElement(M,{display:"flex",style:{margin:"0 auto"}},r.filter(v=>v.ready).map(v=>E.createElement(M,{key:v.id,paddingX:"20"},E.createElement(M,{width:"60"},E.createElement(gC,{onClose:e,wallet:v})))))),E.createElement(M,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},E.createElement(M,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},E.createElement(me,{color:"modalText",size:"16",weight:"bold"},b.t("intro.title")),E.createElement(me,{color:"modalTextSecondary",size:"16"},b.t("intro.description")))),E.createElement(M,{paddingTop:"32",paddingX:"20"},E.createElement(M,{display:"flex",gap:"14",justifyContent:"center"},E.createElement(Pt,{label:b.t("intro.get.label"),onClick:()=>g("GET"),size:"large",type:"secondary"}),E.createElement(Pt,{href:s,label:b.t("intro.learn_more.label"),size:"large",type:"secondary"}))),o&&E.createElement(M,{marginTop:"28",marginX:"32",textAlign:"center"},E.createElement(o,{Link:zm,Text:Lm})));break}case"GET":{c=b.t("get.title"),p="CONNECT";const v=r?.filter(w=>w.downloadUrls?.ios||w.downloadUrls?.android||w.downloadUrls?.mobile)?.splice(0,3);u=E.createElement(M,null,E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},v.map((w,C)=>{const{downloadUrls:A,iconBackground:B,iconUrl:T,name:_}=w;return!A?.ios&&!A?.android&&!A?.mobile?null:E.createElement(M,{display:"flex",gap:"16",key:w.id,paddingX:"20",width:"full"},E.createElement(M,{style:{minHeight:48,minWidth:48}},E.createElement(wt,{background:B,borderColor:"generalBorder",borderRadius:"10",height:"48",src:T,width:"48"})),E.createElement(M,{display:"flex",flexDirection:"column",width:"full"},E.createElement(M,{alignItems:"center",display:"flex",height:"48"},E.createElement(M,{width:"full"},E.createElement(me,{color:"modalText",size:"18",weight:"bold"},_)),E.createElement(Pt,{href:(m?A?.ios:A?.android)||A?.mobile,label:b.t("get.action.label"),size:"small",type:"secondary"})),C<v.length-1&&E.createElement(M,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"})))})),E.createElement(M,{style:{marginBottom:"42px"}}),E.createElement(M,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},E.createElement(M,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},E.createElement(me,{color:"modalText",size:"16",weight:"bold"},b.t("get.looking_for.title")),E.createElement(me,{color:"modalTextSecondary",size:"16"},b.t("get.looking_for.mobile.description")))));break}}return E.createElement(M,{display:"flex",flexDirection:"column",paddingBottom:"36"},E.createElement(M,{background:f?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},E.createElement(M,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},p&&E.createElement(M,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},E.createElement(M,{alignItems:"center",as:"button",className:ct({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>g(p),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},E.createElement(aC,null))),E.createElement(M,{marginTop:"4",textAlign:"center",width:"full"},E.createElement(me,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},c)),E.createElement(M,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},E.createElement(M,{style:{marginBottom:-20,marginTop:-20}},E.createElement(to,{onClose:e}))))),E.createElement(M,{display:"flex",flexDirection:"column"},u))}var BD=({onClose:e})=>{const{connector:t}=N.useContext(Oc),{i18n:r}=N.useContext(ut),o=t?.name||"";return E.createElement(M,null,E.createElement(M,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},E.createElement(M,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},E.createElement(to,{onClose:e})),E.createElement(M,{width:"60"},E.createElement(gC,{onClose:e,wallet:t,connecting:!0})),E.createElement(M,{marginTop:"20"},E.createElement(me,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},r.t("connect.status.connect_mobile",{wallet:o}))),E.createElement(M,{maxWidth:"full",marginTop:"8"},E.createElement(me,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},r.t("connect.status.confirm_mobile",{wallet:o})))))};function TD({onClose:e}){const{connector:t}=N.useContext(Oc);return lt()?t?E.createElement(BD,{onClose:e}):E.createElement(_D,{onClose:e}):E.createElement(CD,{onClose:e})}function jD({onClose:e,open:t}){const r="rk_connect_title",o=jm(),{disconnect:s}=ym(),{isConnecting:c}=qt(),u=E.useCallback(()=>{e(),s()},[e,s]),f=E.useCallback(()=>{c&&s(),e()},[e,s,c]);return o==="disconnected"?E.createElement(Mu,{onClose:f,open:t,titleId:r},E.createElement(Ru,{bottomSheetOnMobile:!0,padding:"0",wide:!0},E.createElement(TD,{onClose:f}))):o==="unauthenticated"?E.createElement(Mu,{onClose:u,open:t,titleId:r},E.createElement(Ru,{bottomSheetOnMobile:!0,padding:"0"},E.createElement(lR,{onClose:u,onCloseModal:e}))):null}function Ah(){const[e,t]=N.useState(!1);return{closeModal:N.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:N.useCallback(()=>t(!0),[])}}var Mi=N.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function kD({children:e}){const{closeModal:t,isModalOpen:r,openModal:o}=Ah(),{closeModal:s,isModalOpen:c,openModal:u}=Ah(),{closeModal:f,isModalOpen:p,openModal:h}=Ah(),[g,b]=N.useState(!1),m=jm(),{chainId:v}=qt(),{chains:w}=rt(),C=w.some(T=>T.id===v),A=N.useCallback(({keepConnectModalOpen:T=!1}={})=>{T||t(),s(),f()},[t,s,f]),B=uf()==="unauthenticated";return u3({onConnect:()=>A({keepConnectModalOpen:B}),onDisconnect:()=>A()}),N.useEffect(()=>{B&&A()},[B,A]),E.createElement(Mi.Provider,{value:N.useMemo(()=>({accountModalOpen:c,chainModalOpen:p,connectModalOpen:r,isWalletConnectModalOpen:g,openAccountModal:C&&m==="connected"?u:void 0,openChainModal:m==="connected"?h:void 0,openConnectModal:m==="disconnected"||m==="unauthenticated"?o:void 0,setIsWalletConnectModalOpen:b}),[m,c,p,r,u,h,o,C,g])},e,E.createElement(jD,{onClose:t,open:r}),E.createElement(zR,{onClose:s,open:c}),E.createElement(GR,{onClose:f,open:p}))}function OD(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:r}=N.useContext(Mi);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:r}}function MD(){const{accountModalOpen:e,openAccountModal:t}=N.useContext(Mi);return{accountModalOpen:e,openAccountModal:t}}function RD(){const{chainModalOpen:e,openChainModal:t}=N.useContext(Mi);return{chainModalOpen:e,openChainModal:t}}function bC(){const{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=N.useContext(Mi);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function yC(){const{connectModalOpen:e,openConnectModal:t}=N.useContext(Mi),{isWalletConnectModalOpen:r}=bC();return{connectModalOpen:e||r,openConnectModal:t}}var xh=()=>{};function qm({children:e}){const t=mM(),{address:r}=qt(),{chainId:o}=qt(),{chains:s}=rt(),c=s.some(ae=>ae.id===o),u=hM(),f=uf()??void 0,p=o?u[o]:void 0,h=p?.name??void 0,g=p?.iconUrl??void 0,b=p?.iconBackground??void 0,m=ff(g),v=N.useContext(Mm),w=P8().some(({status:ae})=>ae==="pending")&&v,{showBalance:C}=D8(),B=typeof C=="boolean"?C:C?x8(C)[lt()?"smallScreen":"largeScreen"]:!0,{balance:T,ensAvatar:_,ensName:j}=I8({address:r,includeBalance:B}),k=T?`${J8(Number.parseFloat(T.formatted))} ${T.symbol}`:void 0,{openConnectModal:D}=yC(),{openChainModal:U}=RD(),{openAccountModal:Q}=MD(),{accountModalOpen:F,chainModalOpen:ie,connectModalOpen:le}=OD();return E.createElement(E.Fragment,null,e({account:r?{address:r,balanceDecimals:T?.decimals,balanceFormatted:T?.formatted,balanceSymbol:T?.symbol,displayBalance:k,displayName:j?tC(j):eC(r),ensAvatar:_??void 0,ensName:j??void 0,hasPendingTransactions:w}:void 0,accountModalOpen:F,authenticationStatus:f,chain:o?{hasIcon:!!g,iconBackground:b,iconUrl:m,id:o,name:h,unsupported:!c}:void 0,chainModalOpen:ie,connectModalOpen:le,mounted:t(),openAccountModal:Q??xh,openChainModal:U??xh,openConnectModal:D??xh}))}qm.displayName="ConnectButton.Custom";var Ls={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function Fm({accountStatus:e=Ls.accountStatus,chainStatus:t=Ls.chainStatus,label:r=Ls.label,showBalance:o=Ls.showBalance}){const s=ao(),c=jm(),{setShowBalance:u}=D8(),[f,p]=N.useState(!1),{i18n:h}=N.useContext(ut);return N.useEffect(()=>{u(o),f||p(!0)},[o,u]),f?E.createElement(qm,null,({account:g,chain:b,mounted:m,openAccountModal:v,openChainModal:w,openConnectModal:C})=>{const A=m&&c!=="loading",B=b?.unsupported??!1;return E.createElement(M,{display:"flex",gap:"12",...!A&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},A&&g&&c==="connected"?E.createElement(E.Fragment,null,b&&(s.length>1||B)&&E.createElement(M,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:B?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ct({active:"shrink",hover:"grow"}),color:B?"connectButtonTextError":"connectButtonText",display:ri(t,T=>T==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:B?"unsupported":"supported",onClick:w,paddingX:"10",paddingY:"8",testId:B?"wrong-network-button":"chain-button",transition:"default",type:"button"},B?E.createElement(M,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},h.t("connect_wallet.wrong_network.label")):E.createElement(M,{alignItems:"center",display:"flex",gap:"6"},b.hasIcon?E.createElement(M,{display:ri(t,T=>T==="full"||T==="icon"?"block":"none"),height:"24",width:"24"},E.createElement(wt,{alt:b.name??"Chain icon",background:b.iconBackground,borderRadius:"full",height:"24",src:b.iconUrl,width:"24"})):null,E.createElement(M,{display:ri(t,T=>T==="icon"&&!b.iconUrl||T==="full"||T==="name"?"block":"none")},b.name??b.id)),E.createElement(R6,null)),!B&&E.createElement(M,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ct({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:v,testId:"account-button",transition:"default",type:"button"},g.displayBalance&&E.createElement(M,{display:ri(o,T=>T?"block":"none"),padding:"8",paddingLeft:"12"},g.displayBalance),E.createElement(M,{background:x8(o)[lt()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},E.createElement(M,{alignItems:"center",display:"flex",gap:"6",height:"24"},E.createElement(M,{display:ri(e,T=>T==="full"||T==="avatar"?"block":"none")},E.createElement(O8,{address:g.address,imageUrl:g.ensAvatar,loading:g.hasPendingTransactions,size:24})),E.createElement(M,{alignItems:"center",display:"flex",gap:"6"},E.createElement(M,{display:ri(e,T=>T==="full"||T==="address"?"block":"none")},g.displayName),E.createElement(R6,null)))))):E.createElement(M,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:ct({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:C,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},m&&r==="Connect Wallet"?h.t("connect_wallet.label"):r))}):E.createElement(E.Fragment,null)}Fm.__defaultProps=Ls;Fm.Custom=qm;var vC=({appName:e,appDescription:t,appUrl:r,appIcon:o})=>({name:e,description:t??e,url:r??(typeof window<"u"?window.location.origin:""),icons:[...o?[o]:[]]});function DD(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>r!==void 0))}function ND(e,t){const r=[];for(const o of e)r.some(s=>s[t]===o[t])||r.push(o);return r}var ID=(e,{projectId:t,walletConnectParameters:r,appName:o,appDescription:s,appUrl:c,appIcon:u})=>{if(!e.length)throw new Error("No wallet list was provided");for(const{wallets:v,groupName:w}of e)if(!v.length)throw new Error(`No wallets provided for group: ${w}`);let f=-1;const p=[],h=[],g=[],b=vC({appName:o,appDescription:s,appUrl:c,appIcon:u});for(const[v,{groupName:w,wallets:C}]of e.entries())for(const A of C){f++;const B=A({projectId:t,appName:o,appIcon:u,options:{metadata:b,...r},walletConnectParameters:{metadata:b,...r}});if(B?.iconAccent&&!tD(B?.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${B.name}`);const T={...B,groupIndex:v+1,groupName:w,index:f};typeof B.hidden=="function"?g.push(T):h.push(T)}const m=ND([...h,...g],"id");for(const{createConnector:v,groupIndex:w,groupName:C,hidden:A,...B}of m){if(typeof A=="function"&&A())continue;const T=k=>({rkDetails:DD({...B,groupIndex:w,groupName:C,isRainbowKitConnector:!0,...k||{}})});B.id==="walletConnect"&&p.push(v(T({isWalletConnectModalConnector:!0,showQrModal:!0})));const j=v(T());p.push(j)}return p},cw=new Map,UD=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:r,rkDetailsIsWalletConnectModalConnector:o})=>{let s={...t||{},projectId:e,showQrModal:!1};r&&(s={...s,showQrModal:!0}),"customStoragePrefix"in s||(s={...s,customStoragePrefix:o?"clientOne":"clientTwo"});const c=JSON.stringify(s),u=cw.get(c);if(u)return u;const f=Tm(s);return cw.set(c,f),f};function zD({projectId:e,walletDetails:t,walletConnectParameters:r}){return o=>({...UD({projectId:e,walletConnectParameters:r,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(o),...t})}function Hm({projectId:e,walletConnectParameters:t}){const r="21fef48091f12692cad574a6f7753643";if(!e||e==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return e==="YOUR_PROJECT_ID"&&(e=r),o=>zD({projectId:e,walletDetails:o,walletConnectParameters:t})}function wC(e){const t=typeof window<"u"?window:void 0;if(typeof t>"u"||typeof t.ethereum>"u")return;const r=t.ethereum.providers;return r?r.find(o=>o[e]):t.ethereum[e]?t.ethereum:void 0}function CC(e){const t=(r,o)=>{const[s,...c]=o.split("."),u=r[s];if(u)return c.length===0?u:t(u,c.join("."))};if(typeof window<"u")return t(window,e)}function LD({flag:e,namespace:t}){return!!(t&&typeof CC(t)<"u"||typeof wC(e)<"u")}function PD({flag:e,namespace:t}){const r=typeof window<"u"?window:void 0;if(typeof r>"u")return;if(t){const s=CC(t);if(s)return s}const o=r.ethereum?.providers;{const s=wC(e);if(s)return s}return typeof o<"u"&&o.length>0?o[0]:r.ethereum}function qD(e){return t=>{const r=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return o=>({...ef(r)(o),...t})}}function FD({flag:e,namespace:t,target:r}){const o=r||PD({flag:e,namespace:t});return qD(o)}var EC=({appName:e,appIcon:t})=>{const r=s=>s,o=Oi();return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",rdns:"com.coinbase.wallet",iconUrl:async()=>(await de(async()=>{const{default:s}=await import("./coinbaseWallet-OKXU3TRC-DnGdeF1T.js");return{default:s}},[])).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:!0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},...o?{}:{qrCode:{getUri:r,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}},createConnector:s=>{const{...c}=EC,u=lf({appName:e,appLogoUrl:t,...c});return f=>({...u(f),...s})}}};function HD(e){return!(!e?.isMetaMask||e.isBraveWallet&&!e._events&&!e._state||e.isApexWallet||e.isAvalanche||e.isBackpack||e.isBifrost||e.isBitKeep||e.isBitski||e.isBlockWallet||e.isCoinbaseWallet||e.isDawn||e.isEnkrypt||e.isExodus||e.isFrame||e.isFrontier||e.isGamestop||e.isHyperPay||e.isImToken||e.isKuCoinWallet||e.isMathWallet||e.isNestWallet||e.isOkxWallet||e.isOKExWallet||e.isOneInchIOSWallet||e.isOneInchAndroidWallet||e.isOpera||e.isPhantom||e.isPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isXDEFI||e.isZeal||e.isZerion||e.__seif)}var QD=({projectId:e,walletConnectParameters:t})=>{const r=typeof window<"u"?HD(window.ethereum):!1,o=!r&&!lt(),s=r||lt();return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await de(async()=>{const{default:c}=await import("./metaMaskWallet-SITXT2FV-BlemcphV.js");return{default:c}},[])).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:r||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:s?c=>c:void 0},qrCode:o?{getUri:c=>`https://metamask.app.link/wc?uri=${encodeURIComponent(c)}`,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:o?Hm({projectId:e,walletConnectParameters:t}):(c=>u=>{const f=_m({dappMetadata:{connector:"rainbowkit",name:t?.metadata?.name,iconUrl:t?.metadata?.icons[0],url:t?.metadata?.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1})(u);return{...f,...c,getChainId:async()=>{try{return await f.getChainId()}catch{return u.chains[0]?.id??1}}}})}},GD=({projectId:e,walletConnectParameters:t})=>{const r=LD({flag:"isRainbow"}),o=!r,s=c=>_8()?c:Oi()?`rainbow://wc?uri=${encodeURIComponent(c)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(c)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await de(async()=>{const{default:c}=await import("./rainbowWallet-O26YNBMX-DUhYus-9.js");return{default:c}},[])).default,iconBackground:"#0c2f78",installed:o?void 0:r,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:o?s:void 0},qrCode:o?{getUri:s,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:o?Hm({projectId:e,walletConnectParameters:t}):FD({flag:"isRainbow"})}},VD=()=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./safeWallet-5MNKTR5Z-D-5imDLD.js");return{default:e}},[])).default,installed:!(typeof window>"u")&&window?.parent!==window,downloadUrls:{},createConnector:e=>t=>({...Bm()(t),...e})}),WD=({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await de(async()=>{const{default:o}=await import("./walletConnectWallet-YHWKVTDY-D3lyiczV.js");return{default:o}},[])).default,iconBackground:"#3b99fc",qrCode:{getUri:o=>o},createConnector:Hm({projectId:e,walletConnectParameters:t})}),$D=e=>e.reduce((r,o)=>{const s=o.id;return r[s]=PB(),r},{}),KD=({appName:e,appDescription:t,appUrl:r,appIcon:o,wallets:s,projectId:c,...u})=>{const{transports:f,chains:p,...h}=u,g=vC({appName:e,appDescription:t,appUrl:r,appIcon:o}),b=ID(s||[{groupName:"Popular",wallets:[VD,GD,EC,QD,WD]}],{projectId:c,appName:e,appDescription:t,appUrl:r,appIcon:o,walletConnectParameters:{metadata:g}});return ET({connectors:b,chains:p,transports:f||$D(p),...h})};const YD=()=>Z.jsx(Fm,{chainStatus:"icon",accountStatus:"address",showBalance:!0}),XD=()=>Z.jsx(Z.Fragment,{children:Z.jsx("nav",{className:"nav-wrapper nav-fixed",children:Z.jsx("div",{className:"navbar",style:{justifyContent:"flex-end"},children:Z.jsx(YD,{})})})}),AC=N.createContext(),ZD=({children:e})=>{const[t,r]=N.useState(""),[o,s]=N.useState(""),[c,u]=N.useState(""),[f,p]=N.useState(!1);return Z.jsx(AC.Provider,{value:{success:t,error:o,setSuccess:r,setError:s,notice:c,setNotice:u,active:f,setActive:p},children:e})},xC=()=>N.useContext(AC),JD=()=>{const{success:e,error:t,setSuccess:r,setError:o}=xC();return N.useEffect(()=>{if(e){const s=setTimeout(()=>r(!1),4500);return()=>clearTimeout(s)}},[e,r]),N.useEffect(()=>{if(t){const s=setTimeout(()=>o(!1),4500);return()=>clearTimeout(s)}},[t,o]),Z.jsxs(Z.Fragment,{children:[e&&Z.jsx("div",{className:"notification success-notification",children:e}),t&&Z.jsx("div",{className:"notification error-notification",children:t})]})},lw=[{returns:5.04,time:"30 Days",inDays:30,timesX:"x1.1"},{returns:5.5,time:"3 Months",inDays:90,timesX:"x1.2"},{returns:6.88,time:"6 Months",inDays:180,timesX:"x1.5"},{returns:9.17,time:"1 Year",inDays:365,timesX:"x2"},{returns:13.75,time:"2 Years",inDays:730,timesX:"x3"},{returns:18.34,time:"3 Years",inDays:1095,timesX:"x4"},{returns:36.68,time:"4 Years",inDays:1460,timesX:"x8"}],ai=e=>{let r=e.toString().split("."),o=r[0],s=r[1]||"";return o.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(s?"."+s:"")},za=(e,t)=>{const r=e.toString(),[o,s]=r.split("."),c=s?s.slice(0,t):"";return s?`${o}.${c}`:o},su=e=>new Date(e*1e3).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),uw=e=>{if(e<=30)return`${e} Days`;{const t=Math.floor(e/30);return t===12?"1 Year":t>12?`${t/12} Years`:`${t} Months`}},eN=e=>new Date().getTime()/1e3>e,tN="0x720aAe676854f99B4e48C553Ebd7bd15D9a611cB",nN="0x7F408e0861717b9CD3Bbe3E13b65D5Ff18Cf32C1",rN=50,aN=18,$t={contractAddress:tN,tokenAddress:nN,minAmount:rN,tokenDecimals:aN},Sh=JSON.parse('[{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPenalty","type":"uint256"}],"name":"changePenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"newPlans","type":"uint256[]"}],"name":"changePlans","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"newReturns","type":"uint256[]"}],"name":"changeReturns","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"collectCustomTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"collectLeftTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"plan","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSystemPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_plans","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_returns","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_systemPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_withdrawPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllPlans","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getStakesOfUser","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"totalReturn","type":"uint256"},{"internalType":"uint256","name":"planDays","type":"uint256"},{"internalType":"uint256","name":"planReturn","type":"uint256"},{"internalType":"uint256","name":"stakedOn","type":"uint256"},{"internalType":"uint256","name":"maturesOn","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"bool","name":"emergencyWithdraw","type":"bool"}],"internalType":"struct RelckoStaking.StakeInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"totalReturn","type":"uint256"},{"internalType":"uint256","name":"planDays","type":"uint256"},{"internalType":"uint256","name":"planReturn","type":"uint256"},{"internalType":"uint256","name":"stakedOn","type":"uint256"},{"internalType":"uint256","name":"maturesOn","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"bool","name":"emergencyWithdraw","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]'),oN=()=>{const{address:e}=qt(),t=rt(),{openConnectModal:r}=yC(),{setError:o,setSuccess:s}=xC(),[c,u]=N.useState(lw[0]),[f,p]=N.useState(!1),[h,g]=N.useState(""),[b,m]=N.useState(!1),[v,w]=N.useState(0),[C,A]=N.useState(0),[B,T]=N.useState(0),[_,j]=N.useState([]),{data:k,refetch:D}=l6({address:$t.tokenAddress,abi:Ky,functionName:"balanceOf",args:[e]});N.useEffect(()=>{k&&w(Number(k)/10**$t.tokenDecimals)},[k]);const{data:U,refetch:Q}=l6({address:$t.contractAddress,abi:Sh,functionName:"getStakesOfUser",args:[e],account:e});N.useEffect(()=>{console.log(U),U&&j(U)},[U]),N.useEffect(()=>{if(C>0){const L=C*c.returns/100;T(L+Number(C))}else T(0)},[C,c]);const{writeContractAsync:F}=Lj(),ie=async()=>{if(!e){r();return}if(Number(C)<$t.minAmount){o(`Minimum amount is ${$t.minAmount}`);return}if(Number(C)>v){o("Insufficient balance");return}try{p(!0),g("Approving token");const L=n_(C,$t.tokenDecimals),V=c.inDays.toString(),$=await F({address:$t.tokenAddress,abi:Ky,functionName:"approve",args:[$t.contractAddress,L],account:e});await eh(t,{hash:$,confirmations:3}),g("Staking");const I=await F({address:$t.contractAddress,abi:Sh,functionName:"stake",args:[L,V],account:e});await eh(t,{hash:I,confirmations:4}),D(),Q(),A(0),T(0),s("Staking successful")}catch(L){console.log(L),o("Transaction failed")}finally{p(!1)}},le=async L=>{if(e)try{m(!0);const V=await F({address:$t.contractAddress,abi:Sh,functionName:"claim",args:[L],account:e});await eh(t,{hash:V,confirmations:3}),Q(),D(),s("Claim successful")}catch(V){console.log(V),o("Transaction failed")}finally{m(!1)}},ae=L=>{const V=v*L/100;A(za(V,2))};return Z.jsx(Z.Fragment,{children:Z.jsx("section",{className:"staking-wrapper",children:Z.jsxs("div",{className:"staking-section",children:[Z.jsxs("div",{className:"staking-headers",children:[Z.jsx("h2",{children:"RLKO Staking"}),Z.jsx("p",{children:"Stake RLKO to earn more RLKO"})]}),Z.jsx("div",{className:"staking-plans",children:lw.map((L,V)=>Z.jsxs("div",{className:`staking-plan ${c.time===L.time?"active":""}`,onClick:()=>u(L),children:[Z.jsxs("p",{className:"staking-plan-returns",children:[L.returns,"%"]}),Z.jsx("small",{className:"staking-plan-small",children:"Returns in"}),Z.jsx("p",{className:"staking-plan-time",children:L.time})]},V))}),Z.jsxs("div",{className:"staking-main",children:[Z.jsxs("div",{className:"staking-action",children:[Z.jsxs("h3",{className:"selected-plan",children:["Selected Plan: ",Z.jsx("span",{children:c.time})]}),Z.jsxs("h3",{className:"selected-returns",children:["Get ",Z.jsxs("span",{children:[c.returns,"%"]})," Returns"]}),Z.jsxs("div",{className:"balance-strip",children:["RLKO Balance:"," ",Z.jsx("span",{children:ai(za(v,2))})]}),Z.jsxs("div",{className:"staking-input-group",children:[Z.jsx("input",{type:"number",placeholder:"Amount to Stake",value:C,onChange:L=>A(L.target.value)}),Z.jsxs("div",{children:["Returns ≈"," ",Z.jsx("span",{children:ai(za(B,2))})," ","RLKO"]})]}),Z.jsxs("div",{className:"balance-scale",children:[Z.jsx("div",{className:"balance-scale-item",onClick:()=>ae(15),children:"15%"}),Z.jsx("div",{className:"balance-scale-item",onClick:()=>ae(25),children:"25%"}),Z.jsx("div",{className:"balance-scale-item",onClick:()=>ae(50),children:"50%"}),Z.jsx("div",{className:"balance-scale-item",onClick:()=>ae(75),children:"75%"}),Z.jsx("div",{className:"balance-scale-item",onClick:()=>ae(100),children:"100%"})]}),f?Z.jsxs("a",{className:"stake-loader",children:[Z.jsx("div",{}),h&&Z.jsxs("p",{children:[h,"..."]})]}):Z.jsx("a",{className:"stake-btn",onClick:ie,children:"Stake Now"})]}),Z.jsxs("div",{className:"staking-list",children:[b&&Z.jsx("div",{className:"claim-loader",children:Z.jsx("div",{})}),_.length>0?_.map((L,V)=>!L.claimed&&Z.jsxs("div",{className:"staking-list-item",children:[Z.jsxs("div",{className:"list-item-row",children:[Z.jsxs("p",{children:["Plan:"," ",Z.jsx("span",{children:uw(Number(L.planDays))})]}),Z.jsxs("p",{children:["Amount:"," ",Z.jsx("span",{children:ai(za(Number(L.amount)/10**$t.tokenDecimals,2))})]}),Z.jsxs("p",{children:["Returns:"," ",Z.jsx("span",{children:ai(za(Number(L.totalReturn)/10**$t.tokenDecimals,2))})]})]}),Z.jsxs("div",{className:"list-item-row",children:[Z.jsxs("p",{children:["Staked:"," ",Z.jsx("span",{children:su(Number(L.stakedOn))})]}),Z.jsxs("p",{children:["Matures:"," ",Z.jsx("span",{children:su(Number(L.maturesOn))})]}),eN(L.maturesOn)?Z.jsxs("p",{children:["Action:"," ",Z.jsx("a",{className:"list-item-btn",onClick:()=>le(V),children:"Claim"})]}):Z.jsxs("p",{children:["Action:"," ",Z.jsx("span",{children:"Locked"})]})]})]})):e?Z.jsx("div",{className:"no-stakes",children:"😔 Not staked anything yet!"}):Z.jsx("div",{className:"no-stakes",children:"🤔 Connect your wallet!"}),_.length>0&&Z.jsxs("div",{className:"claimed-list",children:[Z.jsx("div",{}),Z.jsx("p",{children:"Completed Stakes"}),Z.jsx("div",{})]}),_.length>0&&_.map((L,V)=>L.claimed&&Z.jsxs("div",{className:"staking-list-item",children:[Z.jsxs("div",{className:"list-item-row",children:[Z.jsxs("p",{children:["Plan:"," ",Z.jsx("span",{children:uw(Number(L.planDays))})]}),Z.jsxs("p",{children:["Amount:"," ",Z.jsx("span",{children:ai(za(Number(L.amount)/10**$t.tokenDecimals,2))})]}),Z.jsxs("p",{children:["Returned:"," ",Z.jsx("span",{children:ai(za(Number(L.totalReturn)/10**$t.tokenDecimals,2))})]})]}),Z.jsxs("div",{className:"list-item-row",children:[Z.jsxs("p",{children:["Staked:"," ",Z.jsx("span",{children:su(Number(L.stakedOn))})]}),Z.jsxs("p",{children:["Matured:"," ",Z.jsx("span",{children:su(Number(L.maturesOn))})]}),Z.jsxs("p",{children:["Status:"," ",Z.jsx("span",{children:"Claimed"})]})]})]},`claimed-${V}`))]})]})]})})})},iN=()=>Z.jsxs(Z.Fragment,{children:[Z.jsx(XD,{}),Z.jsx(JD,{}),Z.jsx(oN,{})]}),sN=im({id:56,name:"BNB Smart Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://bsc-dataseed.bnbchain.org"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});im({id:97,name:"BNB Testnet",network:"testnet",nativeCurrency:{decimals:18,name:"Binance Coin",symbol:"BNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]}},testnet:!0});const cN=KD({appName:"Relcko Staking",projectId:"4d3156d0759e19c37910ce8a407ab386",chains:[sN]}),lN=new XT;GA.createRoot(document.getElementById("root")).render(Z.jsx(ST,{config:cN,children:Z.jsx(yj,{client:lN,children:Z.jsx(gR,{theme:gw({accentColor:"var(--primary)",accentColorForeground:"white",borderRadius:"large",overlayBlur:"small"}),modalSize:"compact",children:Z.jsx(N.StrictMode,{children:Z.jsx(ZD,{children:Z.jsx(iN,{})})})})})}));const fw=Object.freeze(Object.defineProperty({__proto__:null,default:_h},Symbol.toStringTag,{value:"Module"}));export{Tc as $,lx as A,se as B,Yw as C,ge as D,ii as E,s4 as F,px as G,Ps as H,ha as I,CN as J,pN as K,Lu as L,Jn as M,US as N,Zn as O,_r as P,Kw as Q,dm as R,Ft as S,Ys as T,Ue as U,we as V,Zp as W,t5 as X,D2 as Y,ma as Z,de as _,D7 as a,vi as a0,J5 as a1,UB as a2,V5 as a3,uB as a4,s5 as a5,Bc as a6,SN as a7,xN as a8,St as a9,e_ as aa,jv as ab,nr as ac,l2 as ad,wc as ae,Xt as af,k7 as ag,Uh as ah,y2 as ai,Z9 as aj,Vp as ak,kr as al,zS as am,hT as an,im as ao,bi as ap,Ga as aq,jn as ar,M7 as as,Je as at,Rw as au,pt as av,yc as aw,Ky as ax,BN as ay,fT as az,er as b,xc as c,y7 as d,ba as e,Xn as f,Np as g,zn as h,nm as i,d5 as j,KS as k,Qu as l,uN as m,dw as n,e3 as o,Fu as p,PB as q,fN as r,_t as s,Tr as t,_i as u,dn as v,Yh as w,xi as x,mi as y,Dw as z};
